/* Public Ankauf funnel: one direct search, compact identity choices and one-question flow. */
.ankauf-header .tm24-header-grid {
    grid-template-columns: minmax(0, 1fr) auto;
}
.tm24-direct-search {
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 24px;
    border-radius: 18px;
    background: #f2f6fc;
}
.tm24-direct-search__label {
    display: block;
    color: #102d52;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
}
.tm24-direct-search__hint {
    margin: 8px 0 16px;
    color: #355473;
    font-size: .95rem;
}
.tm24-direct-search__box {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 2px solid #3867a0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(8, 49, 104, .08);
}
.tm24-direct-search__box:focus-within {
    border-color: #003b8f;
    box-shadow: 0 0 0 3px rgba(0, 59, 143, .15), 0 8px 22px rgba(8, 49, 104, .08);
}
.tm24-direct-search__box .suche-icon {
    position: static;
    transform: none;
    flex: none;
    margin-left: 18px;
    color: #003b8f;
    font-size: 19px;
}
.tm24-direct-search__box .suche-input,
.tm24-direct-search__box .suche-input:focus {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #13263d;
    font-size: 1rem;
    box-shadow: none;
}
.tm24-direct-search__box .suche-input::placeholder { color: #526b86; opacity: 1; }
.tm24-direct-search__box .suche-ergebnisse {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    border: 1px solid #d5e0ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(11, 38, 69, .15);
}
.tm24-search-alternative {
    margin: 0 0 14px;
    text-align: center;
    color: #48617b;
    font-weight: 650;
}
.tm24-question-flow {
    margin: 18px 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #edf3fb;
}
.tm24-question-flow__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #244967;
    font-size: .89rem;
    font-weight: 700;
}
.tm24-question-flow__track {
    height: 5px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #c6d7e8;
}
.tm24-question-flow__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #003b8f;
    transition: width 160ms cubic-bezier(.23, 1, .32, 1);
}
.tm24-question-flow__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.tm24-question-flow__actions button {
    min-height: 46px;
    padding: 9px 18px;
    border: 1px solid #8da9c8;
    border-radius: 10px;
    background: #fff;
    color: #003b8f;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.tm24-question-flow__actions button:last-child {
    margin-left: auto;
    border-color: #003b8f;
    background: #003b8f;
    color: #fff;
}
.tm24-question-flow__actions button:focus-visible,
.tm24-direct-search__box .suche-input:focus-visible {
    outline: 3px solid #e0a52b;
    outline-offset: 3px;
}
#tm24-question-flow-error { margin: 12px 0 0; color: #a62428; font-weight: 650; }
#ankauf-fragen[data-question-flow="active"] .s3-grid { grid-template-columns: minmax(0, 1fr); }
#ankauf-fragen[data-question-flow="active"] .s3-grid > .s3-item[hidden],
#ankauf-fragen[data-question-flow="active"] #category-questionnaire[hidden],
#ankauf-fragen[data-question-flow="active"] .tm24-category-question[hidden] { display: none !important; }
#ankauf-fragen[data-question-flow="active"] .s3-item:not([hidden]),
#ankauf-fragen[data-question-flow="active"] .tm24-category-question:not([hidden]) {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.tm24-selected-device {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 11px;
    background: #edf3fb;
    color: #173a61;
    font-size: .92rem;
}
.tm24-selected-device strong { display: block; margin-top: 3px; color: #102d52; font-size: 1rem; }
.tm24-selected-device { display: flow-root; }
.tm24-selected-device__image { float: right; width: 72px; height: 72px; margin-left: 12px; object-fit: contain; }
#modell-bereich .model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 12px;
}
#modell-bereich .model-card {
    min-height: 124px;
    padding: 14px;
    border-radius: 13px;
    text-align: left;
}
#modell-bereich .model-card-image-wrap {
    height: 54px;
    min-height: 54px;
    margin-bottom: 8px;
}
#modell-bereich .model-card-image-wrap img { max-height: 54px; object-fit: contain; }
#modell-bereich .model-card-image-wrap .model-card-dot { width: 38px !important; height: 38px !important; flex-basis: 38px !important; }
#modell-bereich .model-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
#modell-bereich .model-card-color { font-weight: 750; }
#modell-bereich .model-card-price { color: #47617c; font-size: .82rem; }
#modell-bereich .wizard-card--vertical { min-height: 0; }
#modell-bereich .wizard-card--vertical .wizard-card-cta { justify-content: flex-end; }
@media (max-width: 768px) {
    .ankauf-header .tm24-header-grid { grid-template-rows: auto auto; }
    .tm24-direct-search { margin: 0 12px 24px; padding: 18px; }
    .tm24-direct-search__box { min-height: 56px; }
    .tm24-question-flow { margin: 14px 0; }
    #modell-bereich .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #modell-bereich .model-card { min-height: 142px; }
}
@media (prefers-reduced-motion: reduce) {
.tm24-question-flow__track span { transition: none; }
}

.tm24-condition-change {
    display: block;
    margin: 0 0 14px;
    padding: 6px 0;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #003b8f;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
#zustand-titel { font-size: clamp(1.5rem, 3vw, 2rem) !important; }
.tm24-condition-device { margin: 6px 0 0; color: #48617b; font-size: .95rem; line-height: 1.45; }
body.tm24-guided-questions #btn-fragen-weiter,
body.tm24-guided-questions #ankauf-mobile-footer { display: none !important; }
#modell-bereich .wizard-back-btn, #modell-bereich .wizard-back-btn:hover {
    width: auto !important;
    min-width: 100px;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 8px 12px;
    background: transparent !important;
    color: #003b8f !important;
    border: 1px solid #aabed5 !important;
    border-radius: 10px;
    box-shadow: none !important;
    transform: none;
}
.tm24-choice-question {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 750;
    line-height: 1.25;
    color: #13263d;
    margin: 24px 0 16px;
}
#modell-bereich .model-card { opacity: 1; }
#modell-bereich .model-card-bottom { flex-direction: column; align-items: flex-start; }
#modell-bereich .model-card-color { overflow-wrap: anywhere; }
#modell-bereich .model-card:hover { border-color: #3867a0; }
#modell-bereich .model-card:focus-visible { outline: 3px solid #e0a52b; outline-offset: 3px; }
@media (max-width: 360px) {
    #modell-bereich .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #modell-bereich .model-card { padding: 10px; min-height: 124px; }
    .tm24-direct-search { margin-inline: 0; padding: 16px; }
}
