/* ===== SCHRITTE ===== */
.steps-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: -25px auto 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    padding: 0 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    font-size: 13px;
    color: #bbb;
    transition: 0.3s;
}

.step-item.active {
    color: var(--tm-blue);
    box-shadow: 0 4px 16px rgba(46, 43, 203, 0.15);
    border: 2px solid var(--tm-blue);
}

.step-item.done {
    color: #4caf50;
    border: 2px solid #4caf50;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.step-item.active .step-number {
    background: var(--tm-blue);
    color: #fff;
}

.step-item.done .step-number {
    background: #4caf50;
    color: #fff;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2 {
    font-weight: 900;
    font-size: 28px;
    color: #111;
    margin-bottom: 6px;
}

.section-title p {
    color: var(--tm-muted);
    font-size: 15px;
}

/* ===== MARKEN GRID ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.brand-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.brand-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 43, 203, 0.12);
}

.brand-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #333;
}

.brand-logo img {
    max-height: 100%;
    max-width: 130px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-logo svg {
    max-height: 100%;
    max-width: 120px;
    width: auto;
    display: block;
}

.brand-text-fallback {
    font-weight: 700;
    font-size: 15px;
    color: #555;
}

.brand-card h5 {
    font-weight: 600;
    margin: 0;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.3px;
}

/* Hover-Effekt fuer Logos */
.brand-card:hover .brand-logo {
    transform: scale(1.05);
    transition: 0.3s;
}

/* ===== MODELL LISTE ===== */
.model-list {
    max-width: 700px;
    margin: 0 auto;
}

.model-item {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.model-item:hover {
    border-color: var(--tm-blue);
    box-shadow: 0 4px 16px rgba(46, 43, 203, 0.1);
}

.model-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.model-icon {
    width: 46px;
    height: 46px;
    background: #f0f0f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.model-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.model-sub {
    font-size: 12px;
    color: var(--tm-muted);
}

.model-farbe {
    margin-top: 2px;
}

.model-price {
    font-weight: 800;
    font-size: 17px;
    color: var(--tm-blue);
    text-align: right;
}

.model-price small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
}

/* ===== MODELLREIHEN ACCORDION ===== */
.model-series {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.model-series:hover {
    border-color: #d0d0d8;
}

.model-series.open {
    border-color: var(--tm-blue);
    box-shadow: 0 6px 24px rgba(46, 43, 203, 0.12);
}

.model-series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.model-series-header:hover {
    background: #fafafe;
}

.model-series-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.model-series-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f0f0f8, #e8e8f4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue);
    font-size: 22px;
    flex-shrink: 0;
}

.model-series.open .model-series-icon {
    background: linear-gradient(135deg, var(--tm-blue), #4a47e0);
    color: #fff;
}

.model-series-name {
    font-weight: 800;
    font-size: 18px;
    color: #111;
    letter-spacing: -0.3px;
}

.model-series-meta {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    font-weight: 500;
}

.model-series-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.model-series-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--tm-blue);
    text-align: right;
    white-space: nowrap;
}

.model-series-arrow {
    width: 32px;
    height: 32px;
    background: #f0f0f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.model-series.open .model-series-arrow {
    transform: rotate(180deg);
    background: var(--tm-blue);
    color: #fff;
}

.model-series-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: 0px solid transparent;
}

.model-series.open .model-series-body {
    border-top: 1px solid #eee;
}

.model-variant-label {
    font-weight: 700;
    font-size: 14px;
    color: #444;
    padding: 14px 24px 6px;
    background: #f8f8fc;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 0.2px;
}

.model-variant-label:first-child {
    padding-top: 16px;
}

.model-series-body .model-item {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    padding: 14px 24px 14px 40px;
}

.model-series-body .model-item:last-child {
    border-bottom: none;
}

.model-series-body .model-item:hover {
    background: var(--tm-blue-light);
    box-shadow: none;
}

.model-icon-sm {
    width: 34px;
    height: 34px;
    background: #f0f0f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

/* Mobile Responsiveness für Modellreihen */
@media (max-width: 576px) {
    .model-series-header {
        padding: 16px 16px;
        gap: 8px;
    }

    .model-series-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 10px;
    }

    .model-series-name {
        font-size: 15px;
    }

    .model-series-meta {
        font-size: 11px;
    }

    .model-series-price {
        font-size: 13px;
    }

    .model-series-arrow {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .model-series-body .model-item {
        padding: 12px 16px 12px 24px;
    }

    .model-variant-label {
        padding: 12px 16px 6px;
        font-size: 13px;
    }

    .model-series-right {
        gap: 10px;
    }
}

.zustand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.zustand-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

.zustand-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 43, 203, 0.1);
}

.zustand-card.selected {
    border-color: var(--tm-blue);
    background: rgba(46, 43, 203, 0.03);
    box-shadow: 0 6px 20px rgba(46, 43, 203, 0.15);
}

.zustand-emoji {
    font-size: 24px;
    margin-bottom: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 12px;
    background: #f0f0ff;
    color: var(--tm-blue);
}

.zustand-card:nth-child(1) .zustand-emoji {
    background: #eff6ff;
    color: #2563eb;
}

.zustand-card:nth-child(2) .zustand-emoji {
    background: #f0fdf4;
    color: #16a34a;
}

.zustand-card:nth-child(3) .zustand-emoji {
    background: #fefce8;
    color: #ca8a04;
}

.zustand-card:nth-child(4) .zustand-emoji {
    background: #fef2f2;
    color: #dc2626;
}

.zustand-label {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 4px;
}

.zustand-desc {
    font-size: 12px;
    color: var(--tm-muted);
    line-height: 1.4;
}

.zustand-ce {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.3;
}

.zustand-preis {
    font-weight: 800;
    color: #16a34a;
    font-size: 20px;
    margin-top: 10px;
}

/* ===== FRAGEBOGEN ===== */
.fragen-summary {
    margin-top: 24px;
    padding: 20px;
    background: #f0faf0;
    border: 1px solid #d4edda;
    border-radius: 12px;
}

.summary-title {
    font-weight: 800;
    font-size: 15px;
    color: #222;
    margin-bottom: 12px;
}

.summary-item {
    padding: 6px 0;
    font-size: 14px;
    color: #888;
    transition: all 0.3s;
}

.summary-item.checked {
    color: #222;
    font-weight: 600;
}

.sum-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 6px;
}

.summary-item.checked .sum-icon {
    color: #28a745;
}

.summary-item.unchecked .sum-icon {
    color: #dc3545;
}

.fragen-box {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.frage-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.frage-item:last-of-type {
    border-bottom: none;
}

.frage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.frage-detail {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f8f8fa;
    border-radius: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* ===== BRUCH/RISSE DEFEKTLISTE (klappbar) ===== */
.tm24-bruch-defekte {
    margin-top: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    animation: tm24-slideDown 0.3s ease-out;
}

@keyframes tm24-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tm24-bruch-defekte__title {
    font-weight: 700;
    font-size: 14px;
    color: #b91c1c;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm24-bruch-defekte__title i {
    font-size: 16px;
}

.tm24-bruch-defekte__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.tm24-bruch-cb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #374151;
    -webkit-user-select: none;
    user-select: none;
}

.tm24-bruch-cb:hover {
    border-color: #f87171;
    background: #fff1f2;
}

.tm24-bruch-cb input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
}

.tm24-bruch-cb input[type="checkbox"]:checked + span {
    color: #b91c1c;
    font-weight: 600;
}

.tm24-bruch-cb span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm24-bruch-cb span i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #9ca3af;
    transition: color 0.2s;
}

.tm24-bruch-cb input[type="checkbox"]:checked + span i {
    color: #dc2626;
}

.tm24-bruch-defekte__bemerkung {
    margin-top: 14px;
}

.tm24-bruch-defekte__bemerkung label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 6px;
}

.tm24-bruch-defekte__bemerkung textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 48px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tm24-bruch-defekte__bemerkung textarea:focus {
    border-color: #f87171;
    outline: none;
}

/* Mobile: 1-spaltig */
@media (max-width: 640px) {
    .tm24-bruch-defekte__grid {
        grid-template-columns: 1fr;
    }
    .tm24-bruch-defekte {
        padding: 14px 14px;
    }
    .tm24-bruch-cb {
        padding: 12px 14px;
    }
}

.frage-label {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    flex: 1;
}

.frage-info {
    cursor: help;
    font-size: 14px;
    margin-left: 6px;
    opacity: 0.5;
}

.frage-buttons {
    display: flex;
    gap: 8px;
}

.frage-btn {
    padding: 8px 28px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.frage-btn:hover {
    border-color: #aaa;
    color: #333;
}

.frage-btn.active {
    background: var(--tm-blue);
    color: #fff;
    border-color: var(--tm-blue);
}

.frage-select {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
    color: #555;
    transition: all 0.2s;
}

.frage-select:focus {
    border-color: var(--tm-blue);
    outline: none;
}

#btn-fragen-weiter:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================================
   WIZARD  HIERARCHISCHE MODELLAUSWAHL
   ========================================================= */

/* Zurück-Button */
.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #e0e0e8;
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin-bottom: 24px;
    font-family: inherit;
    transition: all 0.2s;
}

.wizard-back-btn:hover {
    border-color: var(--tm-blue);
    color: var(--tm-blue);
    background: var(--tm-blue-light);
}

/* === Produktlinie Grid (iPhone / iPad / MacBook) === */
.wizard-produktlinie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-linie-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 18px;
    padding: 28px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}

.wizard-linie-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 43, 203, 0.14);
}

.wizard-linie-icon {
    font-size: 38px;
    color: var(--tm-blue);
    margin: 0 auto 14px;
    line-height: 1;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f0f0ff;
}

.wizard-linie-name {
    font-weight: 800;
    font-size: 15px;
    color: #111;
}

/* === Liste (Modellreihe / Variante) === */
.wizard-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-list-item {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-list-item:hover {
    border-color: var(--tm-blue);
    background: var(--tm-blue-light);
    transform: translateX(4px);
}

.wizard-list-name {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.wizard-list-price {
    font-weight: 800;
    font-size: 17px;
    color: #16a34a;
    white-space: nowrap;
    margin-left: 12px;
}

/* === Karten-Grid (Serie, Variante) === */
.wizard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}

.wizard-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 43, 203, 0.15);
}

.wizard-card-name {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.wizard-card-preis {
    font-size: 17px;
    font-weight: 700;
    color: #16a34a;
}

.wizard-card-icon {
    width: 56px;
    height: 56px;
    background: var(--tm-blue-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-blue);
    font-size: 26px;
    margin: 0 auto 14px;
    transition: background 0.25s, color 0.25s;
}

.wizard-card:hover .wizard-card-icon {
    background: var(--tm-blue);
    color: #fff;
}

/* === Speicher Grid === */
.wizard-speicher-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-speicher-pill {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 18px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    flex: 1 1 120px;
}

.wizard-speicher-pill:hover {
    border-color: var(--tm-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 43, 203, 0.14);
}

.wizard-speicher-gb {
    font-weight: 800;
    font-size: 18px;
    color: #111;
    margin-bottom: 4px;
}

.wizard-speicher-preis {
    font-size: 13px;
    font-weight: 600;
    color: var(--tm-blue);
}

/* === Farb-Grid === */
.wizard-farbe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-farbe-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-farbe-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 43, 203, 0.12);
}

.wizard-farbe-card .farb-punkt {
    width: 34px;
    height: 34px;
    margin: 0 auto 10px;
    font-size: 20px;
}

.wizard-farbe-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.wizard-farbe-preis {
    font-size: 15px;
    font-weight: 800;
    color: #16a34a;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 576px) {
    .wizard-produktlinie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-speicher-grid {
        gap: 8px;
    }

    .wizard-speicher-pill {
        padding: 14px 16px;
        flex: 1 1 90px;
    }

    .wizard-speicher-gb {
        font-size: 16px;
    }

    .wizard-linie-card {
        padding: 20px 10px 14px;
    }

    .wizard-linie-icon {
        font-size: 28px;
    }
}

/* Farb-Kreis im Wizard */
.wizard-farbe-kreis {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== WIZARD SPEICHER-KARTEN (wie Farbe-Karten) ===== */
.wizard-speicher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.wizard-speicher-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 28px 16px 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}

.wizard-speicher-card:hover {
    border-color: var(--tm-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 43, 203, 0.15);
}

.wizard-speicher-card:active {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
}

.wizard-speicher-card:active .wizard-speicher-gb,
.wizard-speicher-card:active .wizard-speicher-preis {
    color: #fff;
}

.wizard-speicher-gb {
    font-weight: 700;
    font-size: 17px;
    color: #333;
    margin-bottom: 6px;
}

.wizard-speicher-preis {
    font-size: 22px;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.5px;
}

@media (max-width: 576px) {
    .wizard-speicher-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wizard-speicher-card {
        padding: 20px 10px 16px;
    }

    .wizard-speicher-gb {
        font-size: 17px;
    }
}


/* ===== ankauf-STYLE 2-SPALTEN LAYOUT ===== */
.ankauf-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.ankauf-left {
    min-width: 0;
}

.ankauf-right {
    position: sticky;
    top: 100px;
}

/* Sections */
.ankauf-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ankauf-section-nr {
    font-size: 20px;
    color: #2E2BCB;
}

.ankauf-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Zustand Radio-Liste */
.ankauf-zustand-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ankauf-zustand-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background: #fff;
    transition: all 0.15s;
}

.ankauf-zustand-option:first-child {
    border-radius: 10px 10px 0 0;
}

.ankauf-zustand-option:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.ankauf-zustand-option:hover {
    background: #f8f8fc;
}

.ankauf-zustand-option input[type="radio"] {
    display: none;
}

.ankauf-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ankauf-zustand-option input:checked~.ankauf-radio-dot {
    border-color: #2E2BCB;
}

.ankauf-zustand-option input:checked~.ankauf-radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2E2BCB;
}

.ankauf-zustand-option input:checked~.ankauf-zustand-info strong {
    color: #2E2BCB;
}

.ankauf-zustand-option.selected,
.ankauf-zustand-option:has(input:checked) {
    background: #f0f0ff;
    border-color: #2E2BCB;
}

.ankauf-zustand-info {
    flex: 1;
}

.ankauf-zustand-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.ankauf-zustand-info span {
    font-size: 13px;
    color: #888;
}

.ankauf-zustand-preis {
    font-size: 16px;
    font-weight: 800;
    color: #2E2BCB;
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* Fragen (ankauf-Style – kurz & clean) */
.ankauf-frage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background: #fff;
    gap: 16px;
}

.ankauf-frage-row:first-of-type {
    border-radius: 10px 10px 0 0;
}

.ankauf-frage-row:last-of-type {
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.ankauf-frage-pflicht {
    border-left: 3px solid #dc2626;
    background: #fff5f5;
}

.ankauf-frage-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.ankauf-frage-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
    margin-left: 4px;
}

.ankauf-frage-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Preisbox (rechts, sticky) */
.ankauf-preisbox {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ankauf-preisbox-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.ankauf-preisbox-betrag {
    font-size: 38px;
    font-weight: 900;
    color: #2E2BCB;
    line-height: 1.1;
    margin-bottom: 8px;
}

.ankauf-preisbox-zustand {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

.ankauf-preisbox-geraet {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.ankauf-preisbox-hinweis {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 18px;
}

.ankauf-preisbox-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ankauf-preisbox-cta:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.ankauf-preisbox-cta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile Sticky Footer */
.ankauf-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
}

.ankauf-mobile-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.ankauf-mobile-footer-label {
    font-size: 12px;
    color: #888;
}

.ankauf-mobile-footer-preis {
    font-size: 22px;
    font-weight: 900;
    color: #2E2BCB;
}

.ankauf-mobile-footer-cta {
    padding: 12px 24px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ankauf-mobile-footer-cta:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
    .ankauf-layout {
        grid-template-columns: 1fr;
    }

    .ankauf-right {
        display: none;
    }

    .ankauf-frage-row {
        flex-wrap: wrap;
    }

    .ankauf-frage-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Info-Detail innerhalb ankauf-Fragen */
.ankauf-frage-row .frage-detail {
    width: 100%;
    padding: 12px 18px;
    margin-top: 8px;
    background: #f8f9ff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    border-left: 3px solid #2E2BCB;
}

.ankauf-frage-row .frage-detail a {
    color: #2E2BCB;
    text-decoration: none;
    font-weight: 600;
}

.ankauf-frage-row .frage-detail a:hover {
    text-decoration: underline;
}

.ankauf-frage-row {
    flex-wrap: wrap;
}

/* Apple-Style Info-Button */
.ankauf-frage-hint {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8e8ed;
    color: #636366;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Georgia', serif;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
    border: none;
    flex-shrink: 0;
}

.ankauf-frage-hint:hover {
    background: #2E2BCB;
    color: #fff;
    transform: scale(1.1);
}

/* Bruch-Warnung unter Zustandsliste */
.zustand-bruch-hinweis {
    color: #b45309;
    font-weight: 600;
    font-size: 13px;
    margin: 8px 0 0;
    padding: 8px 14px;
    background: #fffbeb;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

/* Optional-Tag */
.ankauf-frage-optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 12px;
}

/* Lock-Warnung permanent sichtbar */
.lock-warnung-permanent {
    width: 100%;
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
    margin: 6px 0 0;
    padding: 0;
}

/* Preisbox Warnung */
.preisbox-warnung {
    color: #dc2626;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 10px 12px;
    background: #fef2f2;
    border-radius: 8px;
    margin: 8px 0;
}

/* Defekt-Dropdown */
.defekt-dropdown-wrap {
    width: 100%;
    padding: 10px 0 0;
}

.defekt-dropdown-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Detail-Link Klasse */
.detail-link {
    color: #2E2BCB;
    font-weight: 600;
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
}


/* ===== ANKAUF FIX: Hersteller-Grid/Logos (isolierter Patch) ===== */
#marken-grid,
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.brand-card,
.ankauf-brand-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.brand-card:hover,
.ankauf-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
    border-color: rgba(0, 0, 0, .10);
}

.brand-card:active,
.ankauf-brand-card:active {
    transform: translateY(-1px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
}

.brand-card:focus,
.brand-card:focus-visible,
.ankauf-brand-card:focus,
.ankauf-brand-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 43, 203, .16), 0 18px 50px rgba(0, 0, 0, .10);
    border-color: rgba(46, 43, 203, .35);
}

.brand-logo,
.ankauf-brand-logo {
    width: 120px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    overflow: hidden;
}

/* ID-Spezifität + !important überschreibt Bootstrap img { max-width:100% } */
#marken-grid .brand-logo img,
#marken-grid .ankauf-brand-logo img,
.brand-grid .brand-logo img,
.brand-grid .ankauf-brand-logo img,
.brand-logo img,
.ankauf-brand-logo img {
    max-width: 120px !important;
    max-height: 56px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.brand-card h5,
.ankauf-brand-card h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.brand-text-fallback {
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}

/* Selected State */
.brand-card.is-selected,
.ankauf-brand-card.is-selected {
    border-color: rgba(46, 43, 203, .45);
    box-shadow: 0 0 0 4px rgba(46, 43, 203, .12), 0 18px 50px rgba(0, 0, 0, .10);
}

/* ==========================================================
   MOBILE RESPONSIVE – Komplette Reparatur
   ========================================================== */

/* --- Header-Grid: 3-Spalten-Layout für alle Viewports --- */
.tm24-header-grid {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.tm24-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tm24-header-center {
    display: flex;
    justify-content: center;
}

.tm24-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Topbar Responsive --- */
@media (max-width: 768px) {
    .ankauf-topbar .ankauf-topbar-inner {
        font-size: 10px;
        gap: 8px;
    }

    .ankauf-topbar .ankauf-topbar-inner span:nth-child(n+3) {
        display: none;
    }
}

/* --- TABLET (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Header: Logo + Burger, Pills + Suche verstecken */
    .tm24-header-grid {
        grid-template-columns: 1fr max-content;
        padding: 0 16px;
        gap: 8px;
    }

    .tm24-header-center {
        display: none !important;
    }

    .b2b-pills {
        display: none !important;
    }

    /* Header-Icon-Links auf Mobile AGGRESSIV verstecken */
    .tm24-header-right>a,
    .tm24-header-right .header-icon-link,
    .tm24-header-right .ankauf-icon-link,
    .ankauf-header .tm24-header-right>a {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
    }

    /* Burger-Button auf Mobile zeigen */
    .tm24-header-right .burger-btn,
    .tm24-header-right .ankauf-burger-btn,
    .ankauf-header .burger-btn,
    .ankauf-header .ankauf-burger-btn,
    button.burger-btn.d-md-none,
    button.ankauf-burger-btn.d-md-none {
        display: flex !important;
    }

    .tm24-header-left {
        gap: 8px;
    }

    /* Nav-Pills: Touch-friendly auf Mobile */
    .ankauf-pills {
        gap: 4px;
    }

    .ankauf-pill {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    /* Hero: kleinere Schrift */
    .ankauf-hero {
        padding: 50px 0 40px;
    }

    .ankauf-hero h1 {
        font-size: 28px !important;
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 14px;
        padding: 0 10px;
    }

    .hero-trust-row {
        gap: 12px;
    }

    .hero-trust-item {
        font-size: 11px;
    }

    .hero-cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Beschreibung unter Hero */
    .container[style*="margin-top:-50px"] {
        margin-top: -30px !important;
        padding: 20px 16px 10px !important;
    }

    .container[style*="margin-top:-50px"] h2 {
        font-size: 1.3rem !important;
    }

    .container[style*="margin-top:-50px"] p {
        font-size: 0.9rem !important;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 22px;
    }

    .section-title p {
        font-size: 13px;
    }

    /* Marken-Grid: 2 Spalten */
    .brand-grid,
    #marken-grid.brand-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 100%;
    }

    #marken-grid .brand-card {
        padding: 20px 12px;
    }

    #marken-grid .brand-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    #marken-grid .brand-logo img {
        max-width: 66px;
        max-height: 66px;
    }

    #marken-grid h5 {
        font-size: 14px;
    }

    /* Wizard-Grids Responsive */
    .wizard-produktlinie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .wizard-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wizard-farbe-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .wizard-card-name {
        font-size: 15px;
    }

    /* Modellreihen */
    .model-list {
        max-width: 100%;
    }

    .model-item {
        padding: 14px 16px;
    }

    .model-name {
        font-size: 14px;
    }

    .model-price {
        font-size: 15px;
    }

    /* Zustand Bewertung (Schritt 3) */
    .ankauf-layout {
        grid-template-columns: 1fr !important;
    }

    .ankauf-zustand-option {
        padding: 14px 16px;
    }

    .ankauf-zustand-info strong {
        font-size: 14px;
    }

    .ankauf-zustand-info span {
        font-size: 12px;
    }

    .ankauf-zustand-preis {
        font-size: 16px;
        min-width: 60px;
    }

    .ankauf-frage-row {
        padding: 14px 16px;
    }

    .ankauf-frage-label {
        font-size: 14px;
    }

    .frage-btn {
        padding: 6px 18px;
        font-size: 13px;
    }

    .frage-select {
        min-width: 150px;
        font-size: 13px;
    }

    /* Trust Strip */
    .trust-strip {
        font-size: 11px;
        padding: 14px 10px;
    }

    .trust-strip .container {
        gap: 12px !important;
    }

    /* How Section */
    .how-section {
        padding: 40px 0;
    }

    .how-section .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .how-step {
        padding: 14px 10px;
    }

    .how-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 14px;
    }

    .how-title {
        font-size: 13px;
    }

    .how-text {
        font-size: 12px;
    }

    /* Checkout */
    .checkout-form-box {
        padding: 20px 16px;
        margin: 0 8px;
    }

    .checkout-progress {
        gap: 0;
        margin-bottom: 20px;
    }

    .checkout-step-label {
        font-size: 10px;
    }

    .checkout-step-nr {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .artikel-box {
        max-width: 100%;
    }

    .artikel-card {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .artikel-preis {
        margin-left: 0;
        font-size: 18px;
    }

    .checkout-total {
        padding: 14px 16px;
        font-size: 14px;
    }

    .checkout-total-preis {
        font-size: 20px;
    }

    /* Auszahlung */
    .auszahlung-optionen {
        flex-direction: column;
    }

    /* Pflicht-Checkboxen */
    .pflicht-checkboxen-section {
        padding: 16px 14px;
    }

    .lock-warnung {
        font-size: 12px;
        padding: 10px 12px;
    }

    .gegenangebot-info-box {
        font-size: 12px;
    }

    /* Ergebnis */
    .ergebnis-box {
        margin: 10px;
        padding: 24px 16px;
    }

    .ergebnis-preis {
        font-size: 36px;
    }

    /* Reviews */
    .reviews-section {
        padding: 40px 0;
    }

    .reviews-header {
        margin-bottom: 16px;
    }

    /* Footer */
    .ankauf-footer {
        padding: 30px 0 20px;
    }

    .ankauf-footer .row {
        display: flex;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .ankauf-footer .col-md-4 {
        width: 100%;
    }

    .ankauf-footer h5 {
        margin-bottom: 10px;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* FAQ */
    .tm24-faq {
        padding: 20px 16px 10px;
    }

    .tm24-faq-list {
        padding: 0;
    }

    .tm24-faq-item {
        margin: 8px 0;
    }

    /* Preisgarantie Badge + Vorläufig-Hinweis */
    .preisgarantie-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .preis-vorlaeufig-hinweis {
        font-size: 12px;
        padding: 10px 14px;
    }

    /* Eco Section */
    .eco-section {
        padding: 30px 0;
    }

    .eco-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .eco-text h3 {
        font-size: 18px;
    }

    .eco-text p {
        font-size: 13px;
    }

    .eco-number {
        font-size: 22px;
    }

    /* IMEI Hinweis */
    .imei-info-box {
        font-size: 12px;
    }

    .imei-hinweis {
        font-size: 11px;
    }
}

/* --- SMARTPHONE (max-width: 480px) --- */
@media (max-width: 480px) {

    .ankauf-hero h1 {
        font-size: 24px !important;
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-trust-row {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .hero-cta-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    /* Marken-Grid: immer noch 2 Spalten, aber enger */
    .brand-grid,
    #marken-grid.brand-grid {
        gap: 8px !important;
    }

    #marken-grid .brand-card {
        padding: 16px 8px;
        border-radius: 16px;
    }

    #marken-grid .brand-logo {
        width: 56px;
        height: 56px;
    }

    #marken-grid .brand-logo img {
        max-width: 52px;
        max-height: 52px;
    }

    #marken-grid h5 {
        font-size: 12px;
    }

    #marken-grid .brand-text-fallback {
        font-size: 16px;
    }

    /* Wizard */
    .wizard-card-name {
        font-size: 13px;
    }

    .wizard-card-preis {
        font-size: 14px;
    }

    .wizard-card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Zustand */
    .ankauf-zustand-option {
        padding: 12px;
        gap: 8px;
    }

    .ankauf-zustand-preis {
        font-size: 14px;
    }

    /* How Section: 1 Spalte */
    .how-section .row {
        grid-template-columns: 1fr;
    }

    /* Confirm Steps */
    .confirm-steps {
        padding: 14px;
        font-size: 13px;
    }

    .confirm-step {
        font-size: 12px;
    }

    .tracking-link-box {
        font-size: 12px;
        padding: 10px 14px;
    }

    /* Footer */
    .ankauf-footer .small {
        font-size: 12px !important;
    }

    /* Reviews Score */
    .reviews-big-number {
        font-size: 32px;
    }

    .reviews-score {
        gap: 12px;
    }

    /* Eco Stats */
    .eco-stats {
        gap: 16px;
    }

    .eco-number {
        font-size: 20px;
    }
}

