/* ==========================================================
   MOBILE RESPONSIVE – Komplette Reparatur
   ========================================================== */

/* --- Header-Grid in tm24-header-tokens ausgelagert --- */
/* --- 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) {


    /* 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;
    }
}

