/* ==========================================================================
   Team Putzfuchs – Runde 2
   Datei: runde2.css
   Zweck: Fehlerbehebungen + Conversion-Optimierung (flach, IONOS-tauglich)
   Wird NACH allen anderen CSS-Dateien geladen.
   ========================================================================== */

.pf-nav-mobil {
    display: none;
}

/* Untere Anruf-Leiste: gibt es nicht mehr, sicherheitshalber immer aus. */
.pf-callbar {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Anruf-Knopf im Startbereich
   Eigener Stil: hell mit Rahmen – bewusst NICHT wie der Haupt-Knopf (Verlauf).
   -------------------------------------------------------------------------- */

.button-row .button-call {
    display: none;               /* nur auf dem Handy sichtbar */
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 9px 8px 20px;
    border-radius: 14px;
    background: #eaf6fc !important;
    color: #0a5c78 !important;
    border: 1px solid #b7dcea !important;
    box-shadow: 0 6px 16px rgba(8, 127, 165, .10);
    font-weight: 600;
}

.button-row .button-call:hover {
    background: #dff0f9 !important;
    border-color: #8fc6dd !important;
    color: #074c63 !important;
}

/* Icon-Kästchen rechts, wie bei den anderen Knöpfen */
.button-row .button-call .pf-cta-icon {
    background: #ffffff;
    color: #0a6684;
    flex: 0 0 auto;
}

.button-row .button-call .pf-cta-icon svg {
    width: 18px;
    height: 18px;
}

.button-row .button-call:focus-visible {
    outline: 3px solid #0d7a4f;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   FIX 1: Telefonnummer auf Mobil und Tablet sichtbar
   Vorher: .header-phone wurde unter 1000px ausgeblendet.
   Das war der teuerste Fehler: 83 % der Ads-Klicks kamen mobil.
   -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
    .pf-header-contact .header-phone {
        display: inline-flex !important;
    }
}

@media (max-width: 1000px) {
    .site-header .header-phone {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 13px;
        font-size: .82rem;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    /* Der Header wird zweizeilig: Marke + Telefon oben, Navigation darunter */
    .header-inner {
        flex-wrap: wrap;
        row-gap: 4px;
        min-height: 0;
        padding-block: 10px;
    }

    /* Handy: Nummer und E-Mail-Leiste im Kopf entfallen.
       Der Anruf steht jetzt als Knopf im Startbereich (unter den anderen Buttons). */
    .pf-header-contact,
    .pf-header-mail {
        display: none !important;
    }

    /* Navigation in der zweiten Zeile, gleiche Schrift überall */
    .site-header nav {
        order: 2;
        flex-basis: 100%;
        gap: 16px;
    }

    .site-header nav a {
        font-size: .86rem;
        font-weight: 600;
    }

    /* Anruf-Knopf: auf dem Handy volle Breite wie die anderen Buttons */
    .button-row .button-call {
        display: inline-flex;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Kontaktbereich: engere Abstände, seit die Trust-Boxen weg sind */
    .contact-card {
        margin: 22px 0 18px;
    }

    .contact-grid .muted {
        margin: 0 0 12px;
    }

    /* Menü am Handy: Anrufen + E-Mail schreiben statt Leistungen + Ablauf */
    .pf-nav-desktop {
        display: none !important;
    }

    .pf-nav-mobil {
        display: inline !important;
        font-weight: 700;
    }

    /* Navigation etwas enger, damit nichts bricht */
    nav {
        gap: 14px;
        font-size: .85rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    nav {
        gap: 11px;
    }

    nav a {
        font-size: .8rem;
    }
}

/* --------------------------------------------------------------------------
   FIX 2 (entfernt): Untere Anruf-Leiste gibt es nicht mehr.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   FIX 3: Hero – Angebot und Region klarer, Einstieg kürzer
   -------------------------------------------------------------------------- */

.pf-hero-facts {
    display: none !important;
}

.pf-hero-facts-alt {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.pf-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid #cfe0ea;
    border-radius: 100px;
    background: #fff;
    color: #234b68;
    font-size: .78rem;
    font-weight: 600;
}

.pf-hero-facts li strong {
    color: #082c5c;
}

/* --------------------------------------------------------------------------
   FIX 4: Formular – Fehlerstelle deutlicher, Absende-Button größer mobil
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
    #inquiry-form .button[type="submit"] {
        width: 100%;
        min-height: 54px;
        font-size: .95rem;
    }

    /* Auf Mobil ist "E-Mail oder Telefon" zu ungenau → klare Beschriftung */
    #inquiry-form label.full:has(input[name="kontakt"])::after {
        content: "Am schnellsten ruft Sie uns zurück.";
        display: block;
        margin-top: 5px;
        color: #5b6b78;
        font-size: .78rem;
        font-weight: 500;
    }
}

/* --------------------------------------------------------------------------
   FIX 5: Vorher/Nachher-Bild – auf Mobil weniger Höhe
   Die Sektion kostete auf dem Handy fast einen ganzen Bildschirm.
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
    #ablauf.pf-clean-section {
        padding-block: 42px;
    }

    .pf-clean-story {
        margin-bottom: 6px;
    }

    .pf-clean-hint,
    .pf-clean-pill {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   FIX 6: Vertrauen sichtbar machen (B2B-Entscheider fragen danach zuerst)
   -------------------------------------------------------------------------- */

.pf-trust {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pf-trust li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #dde8ef;
    border-radius: 12px;
    background: #f7fbfd;
    color: #234b68;
    font-size: .88rem;
    line-height: 1.45;
}

.pf-trust svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #0d7a4f;
}

.pf-trust strong {
    color: #082c5c;
}

/* --------------------------------------------------------------------------
   FIX 7: Mobil aufräumen
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    /* Handy-Menü: nur Anrufen / E-Mail schreiben / Anfrage (siehe oben). */
    nav a.pf-nav-desktop {
        display: none !important;
    }
}

@media (max-width: 760px) {
    /* Chat-Button: nur das Fuchs-Symbol, rund und klein.
       Vorher lag er als breite Pille über dem Inhalt. */
    #pf-chat-button {
        width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        right: 12px !important;
        bottom: calc(66px + env(safe-area-inset-bottom)) !important;
    }

    #pf-chat-button img {
        width: 38px !important;
        height: 38px !important;
    }

    /* Beschriftung im Button ausblenden, Bild bleibt */
    #pf-chat-button > span,
    #pf-chat-button .pf-chat-label {
        display: none !important;
    }

    /* Der E-Mail-Button wird von hero.js eingefügt.
       Auf dem Handy gibt es Telefon-Leiste, Anruf im Header und Formular –
       ein dritter Weg im Hero macht die Entscheidung nur schwerer. */
    .hero .button-row a[href^="mailto:"],
    .hero .pf-cta-email {
        display: none !important;
    }

    /* Der zugehörige Hinweistext von hero.js verschwindet mit. */
    .hero .pf-direct-note {
        display: none !important;
    }

    /* Genug Luft, damit der Chat-Button nichts verdeckt */
    .hero {
        padding-bottom: 58px;
    }
}

/* --------------------------------------------------------------------------
   FIX 8: Tastatur-Fokus und Kontrast
   -------------------------------------------------------------------------- */

.site-header .header-phone:focus-visible {
    outline: 3px solid #0d7a4f;
    outline-offset: 2px;
}

@media print {
    .pf-callbar {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-callbar a {
        transition: none !important;
    }
}
