/* Header: fester Stack, Scroll-Kompakt; --ff-layout-* in style.css */

html {
    --ff-header-stack-h: 200px;
    --ff-h-ease: cubic-bezier(0.33, 0.82, 0.32, 1);
    --ff-h-dur: 0.5s;
    /* Kompakt-Nav ein-/aus: symmetrische Kurve → kein „Ruck“ am Ende (kein starkes ease-out) */
    --ff-nav-reveal-dur: 0.78s;
    --ff-nav-reveal-ease: cubic-bezier(0.45, 0, 0.55, 1);
    --ff-search-dur: 0.5s;
    --ff-search-ease: cubic-bezier(0.33, 0.82, 0.32, 1);
    scrollbar-gutter: stable;
}

/* ─── Body ────────────────────────────────────────────── */
body {
    margin: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

/* ─── Fixierter Bereich oben ──────────────────────────── */
.ff-header-stack {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9500;
    background: #fff;
    /* visible: Such-Overlay im kompakten Modus darf über die Zeile hinaus */
    overflow: visible;
    transition: box-shadow var(--ff-h-dur) var(--ff-h-ease);
}

body.admin-bar .ff-header-stack {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ff-header-stack {
        top: 46px;
    }
}

.ff-header-stack.ff-header--compact {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.035);
}

/* Graue Linie unter der kompakten Logo-Zeile (volle Breite, kein Overlay über Rot) */
.ff-header-stack.ff-header--compact .ff-header {
    border-bottom: 2px solid #C3C3C3;
}

/* ─── Content: Abstand = Stack-Höhe (ohne Transition → kein Doppel-Scroll) ─ */
.ff-content-wrap {
    min-height: 0;
    overflow-x: hidden;
    background: #fff;
    padding-top: var(--ff-header-stack-h);
}

/* Mobil: Header ist sticky im Fluss → kein festes Stack-Padding; Unterseiten: etwas Luft unter dem Header.
 * Gleiches wie Startseite: ff-hub-feed (Fotos & Video, Interview, Archiv, …) – nicht body.home allein. */
@media (max-width: 1024px) {
    .ff-content-wrap {
        padding-top: 0 !important;
    }

    body:not(.home):not(.ff-hub-feed) .ff-content-wrap {
        padding-top: 24px !important;
    }
}

/* ─── Header: normaler Fluss ──────────────────────────── */
.ff-header {
    position: relative !important;
    background: #fff;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: 2;
    transition: border-color var(--ff-h-dur) var(--ff-h-ease);
}

/* Zeile mit Burger | Logo | Icons (Desktop: unsichtbarer Wrapper via display:contents) */
.ff-header-row {
    display: contents;
}

/* ─── Header-Inner (Logo-Zeile) ───────────────────────── */
.ff-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    margin: 0 auto;
    /* Longhand: links/rechts in beiden Zuständen gleich → keine seitliche Drift beim Einklappen */
    --ff-header-inner-pad-x: clamp(12px, 2vw, 24px);
    /* etwas weniger Hoch als zuvor: nur max-Werte in clamp() kleiner */
    padding-top: clamp(16px, 4vw, 42px);
    padding-right: var(--ff-header-inner-pad-x);
    padding-bottom: clamp(20px, 4vw, 46px);
    padding-left: var(--ff-header-inner-pad-x);
    min-height: clamp(70px, 12vw, 158px);
    /* Sanft: nur vertikal + min-height. Kein padding-left/right in der Transition → Icons bleiben horizontal stabil */
    transition:
        padding-top var(--ff-h-dur) var(--ff-h-ease),
        padding-bottom var(--ff-h-dur) var(--ff-h-ease),
        min-height var(--ff-h-dur) var(--ff-h-ease);
    transform: translateZ(0);
}

.ff-header-stack.ff-header--compact .ff-header-inner {
    padding-top: 10px;
    padding-bottom: 14px;
    min-height: 0;
}

/* ─── Header Left ─────────────────────────────────────── */
/* SVG + Text: gleiche optische Höhe, keine Baseline-Sprünge bei min-height/padding-Transition */
.ff-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.ff-plus-box {
    display: inline-grid;
    place-items: center;
    justify-content: center;
    align-items: center;
    padding: 2px;
    border: none;
    background: transparent;
    text-decoration: none;
    flex: 0 0 auto;
    line-height: 0;
    /* Höhe angepasst an neues Badge (intrinsisch höher als früheres Outline-SVG) */
    height: 35px;
    box-sizing: border-box;
    overflow: visible;
    transition: none;
}
.ff-plus-mark {
    display: block;
    grid-area: 1 / 1;
    width: auto;
    max-width: min(54px, 100%);
    height: auto;
    max-height: 29px;
    flex-shrink: 0;
    object-fit: contain;
    overflow: visible;
}

/* Zweites Badge nur bei Mein FF (rotem Kopfbereich) */
.ff-plus-mark--meinff {
    display: none !important;
}
body.ff-meinff-on .ff-plus-mark--default {
    display: none !important;
}
body.ff-meinff-on .ff-plus-mark--meinff {
    display: block !important;
}
.ff-plus-box:focus-visible {
    outline: 2px solid #B43526;
    outline-offset: 2px;
}

.ff-shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: #000;
    text-decoration: none;
    flex: 0 0 auto;
    min-height: 33px;
    padding: 0 2px;
    box-sizing: border-box;
    transition: color 0.2s;
    -webkit-font-smoothing: antialiased;
}
.ff-shop-link:hover { color: #B43526; }

/* ─── Header Center (Logo) – mittig ─ */
/* Horizontal: margin auto (Breiten-Animation ohne Drift). Nicht translateX(-50%): das koppelt Zentrum an animierte Breite. */
.ff-header-center {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    line-height: 0;
    width: min(600px, calc(100vw - 128px));
    max-width: min(600px, calc(100vw - 128px));
    box-sizing: border-box;
    transition:
        width var(--ff-h-dur) var(--ff-h-ease),
        max-width var(--ff-h-dur) var(--ff-h-ease);
}

.ff-logo-link {
    display: block;
    line-height: 0;
    max-width: 100%;
}

/* Nur ein Logo sichtbar: .ff-logo-img allein würde durch Spezifität beide einblenden */
.ff-header-inner .ff-logo-img.ff-logo-img--desktop {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
.ff-header-inner .ff-logo-img.ff-logo-img--mobile {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1025px) {
    /*
     * Gleiche horizontale Referenz wie .ff-main-nav + ul.ff-menu:
     * Außenpadding am .ff-header (wie Nav), innen KEIN extra pad-x — dann ist die Grid-Zeile
     * exakt so breit und zentriert wie ul.ff-menu → FF+/Shop starten wie „News“,
     * Lupe/Profil enden wie „Vereine“ (space-between in der Nav).
     */
    .ff-header {
        padding-left: clamp(16px, 3vw, 40px);
        padding-right: clamp(16px, 3vw, 40px);
        box-sizing: border-box;
    }

    .ff-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        /* Oben: FF+/Lupe bleiben oben; nur Logo-Spalte wird vertikal mittig (align-self) */
        align-items: start;
        column-gap: clamp(6px, 1vw, 14px);
        width: 100%;
        max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        /* Niedrigerer Header: weniger vertikaler Rand, niedrigere Mindesthöhe */
        padding-top: clamp(8px, 1.8vw, 22px);
        padding-bottom: clamp(6px, 1.5vw, 16px);
        min-height: clamp(52px, 8vw, 108px);
        transition:
            padding-top var(--ff-h-dur) var(--ff-h-ease),
            padding-bottom var(--ff-h-dur) var(--ff-h-ease),
            min-height var(--ff-h-dur) var(--ff-h-ease);
    }

    .ff-header-left {
        grid-column: 1;
        justify-self: start;
        flex: 0 0 auto !important;
        width: auto;
        min-width: 0;
        align-items: flex-start;
        /* Container = Logo-Höhe + mittig in der Cell → Oberkante FF+/Shop = Logo-Oberkante */
        align-self: center;
        min-height: 30px;
        /* Feintuning: ein paar px nach oben, damit visuell exakt auf Logo-Oberkante */
        margin-top: -3px;
        /* optisch bündig mit „News“ */
        margin-left: -4px;
        /* Shop näher an FF+ */
        gap: 7px;
    }

    .ff-header-center {
        grid-column: 2;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* Horizontal mittig; vertikal in der Zeile mittig zur FF+/Lupe-Höhe */
        justify-self: center;
        align-self: center;
        /* Figma / BPS: Logo-Breite 368px */
        width: min(368px, calc(100vw - 128px));
        max-width: min(368px, calc(100vw - 128px));
        transform: none;
        flex-shrink: 0;
    }

    .ff-header-right {
        grid-column: 3;
        justify-self: end;
        flex: 0 0 auto !important;
        width: auto;
        min-width: 0;
        /* optisch bündig mit „Vereine“ */
        margin-right: -4px;
        gap: 0;
        align-items: flex-start;
        /* Container = Logo-Höhe + mittig in der Cell → Oberkante Lupe/Profil = Logo-Oberkante */
        align-self: center;
        min-height: 30px;
        /* Feintuning: ein paar px nach oben, damit visuell exakt auf Logo-Oberkante */
        margin-top: -3px;
    }

    /* Logo: Figma/BPS ~368×29,43; volle Mittelspaltenbreite, max. 368px */
    .ff-header-inner .ff-logo-img.ff-logo-img--desktop {
        display: block !important;
        width: 100% !important;
        max-width: 368px !important;
        height: 29.42677116394043px !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
    .ff-header-inner .ff-logo-img.ff-logo-img--mobile {
        display: none !important;
    }
    /* FF+ — Badge ff-plus-2 / ff-plus-2rot gestapelt */
    .ff-header-desktop-only.ff-plus-box {
        display: inline-grid;
        place-items: center;
        width: 62px;
        height: 38px;
        padding: 2px 5px;
        gap: 0;
        box-sizing: border-box;
        overflow: visible;
    }
    .ff-header-desktop-only .ff-plus-mark {
        max-width: 56px;
        max-height: 30px;
    }

    .ff-shop-link.ff-header-desktop-only {
        padding-left: 0;
        padding-right: 2px;
    }

    /* Shop: Markenrot + etwas größer */
    .ff-shop-link {
        color: #B43526;
        font-size: 1.25rem;
        min-height: 36px;
    }
    .ff-shop-link:hover {
        color: #8b231a;
    }
    /* Schmaler geschlossener Slot (Lupe rechts, Profil daneben); keine fixe Breite während Transition */
    #ff-header-search.ff-header-search-wrap:not(.is-open) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 32px !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Lupe und Profil: gleiche Außenhöhe 40px wie Suchleiste, Icons jeweils mittig */
    .ff-header-right .ff-header-profile-link.ff-header-icon.ff-profile-dual {
        padding: 0 !important;
        margin: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        line-height: 0;
    }
    .ff-header-right .ff-profile-dual {
        position: relative;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        display: grid;
        place-items: center;
        margin: 0;
        padding: 0;
    }
    .ff-header-right .ff-profile-dual .ff-icon-profile {
        grid-area: 1 / 1;
        width: 20px;
        max-width: 20px;
        height: 20px;
        max-height: 20px;
        display: block;
        object-fit: contain;
        object-position: center;
        position: relative;
        left: auto;
        top: auto;
        transform: translateZ(0);
        margin: 0;
        flex-shrink: 0;
        backface-visibility: hidden;
    }
    .ff-header-right .ff-profile-dual .ff-icon-profile--meinff {
        display: none;
    }
}

/*
 * Mein FF aktiv: nur die Logo-Zeile (.ff-header) in FF-Rot, Hauptnav (.ff-main-nav) bleibt weiß (Figma).
 * Nur Desktop ≥1025px.
 */
@media (min-width: 1025px) {
    body.ff-meinff-on .ff-header-stack .ff-header {
        background: #b43526 !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    body.ff-meinff-on .ff-header-stack.ff-header--compact .ff-header {
        border-bottom: none !important;
    }

    body.ff-meinff-on .ff-header-stack .ff-main-nav,
    body.ff-meinff-on .ff-header-stack nav.ff-main-nav,
    body.ff-meinff-on .ff-header-stack nav#ff-main-nav {
        background: linear-gradient(to top, #c3c3c3 2px, #fff 2px) !important;
    }

    /* Logo (SVG rot) → weiß auf rotem Grund */
    body.ff-meinff-on .ff-header .ff-logo-img {
        filter: brightness(0) invert(1);
    }

    body.ff-meinff-on .ff-header .ff-shop-link {
        color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-shop-link:hover {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    body.ff-meinff-on .ff-header .ff-header-search-trigger,
    body.ff-meinff-on .ff-header .ff-header-search-icon {
        color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-icon path {
        stroke: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-wrap .ff-header-icon.ff-header-search-trigger,
    body.ff-meinff-on .ff-header .ff-header-search-wrap .ff-header-icon.ff-header-search-trigger:hover {
        color: #fff !important;
    }

    body.ff-meinff-on .ff-header .ff-header-search-wrap.is-open .ff-header-search-panel {
        background-color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-input {
        color: #000 !important;
    }

    /* Profil: Standard-Icon aus, Mein-FF-Variante (weiß) an */
    body.ff-meinff-on .ff-header .ff-profile-dual .ff-icon-profile--default {
        display: none !important;
    }
    body.ff-meinff-on .ff-header .ff-profile-dual .ff-icon-profile--meinff {
        display: block !important;
    }
}

/* Kompakt: gleiche Logo-Referenzbreite wie Desktop-Figma */
.ff-header-stack.ff-header--compact .ff-header-center {
    width: min(368px, calc(100vw - 128px));
    max-width: min(368px, calc(100vw - 128px));
}

/* ─── Header Right ────────────────────────────────────── */
.ff-header-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.ff-search-icon svg { display: block; width: 20px; height: 20px; }

/* ─── Expandierbares Suchfeld (Header + Nav) ─────────────
   Neu: Panel links (weiß + roter Rand) klappt auf; Lupe rechts außerhalb → kein Rahmen um die Lupe, kein SVG-Sprung.
   Wrap: flex-end = rechte Kante stabil neben Profil, Feld wächst nach links.
   ───────────────────────────────────────────────────── */

.ff-header-search-wrap {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    vertical-align: middle;
    height: 40px;
    min-height: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    cursor: default;
}

/* Shell: ein flex-Zeile (Panel + Lupe), sonst können sich Höhen/Alignment zur Profil-Spalte verschieben */
.ff-header-search-shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
}

.ff-header-search-wrap.is-open {
    gap: 4px;
    padding: 0;
    cursor: default;
}

/* Nur das Eingabefeld: Kasten – nicht der gesamte Wrap (Lupe bleibt rahmenlos) */
.ff-header-search-panel {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    width: 0;
    min-width: 0;
    max-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 0 solid transparent;
    border-radius: 10px;
    background-color: transparent !important;
    box-shadow: none !important;
    transition:
        width var(--ff-search-dur) var(--ff-search-ease),
        max-width var(--ff-search-dur) var(--ff-search-ease),
        background-color var(--ff-search-dur) var(--ff-search-ease),
        border-color var(--ff-search-dur) var(--ff-search-ease),
        border-width var(--ff-search-dur) var(--ff-search-ease),
        padding var(--ff-search-dur) var(--ff-search-ease),
        border-radius var(--ff-search-dur) var(--ff-search-ease),
        box-shadow var(--ff-search-dur) var(--ff-search-ease);
}

.ff-header-search-wrap.is-open .ff-header-search-panel {
    width: 184px;
    max-width: 184px;
    border: 1.5px solid #B43526 !important;
    border-radius: 10px;
    background-color: #fff !important;
    padding: 0 10px 0 12px;
    overflow: hidden;
}

/* Header-Lupe: geschlossen nur Trigger-Breite + seitliches Padding (keine harte max-width → kein Zucken beim Zuklappen) */
#ff-header-search.ff-header-search-wrap:not(.is-open) {
    flex: 0 0 auto;
    width: auto;
    min-width: 48px;
    max-width: none;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    overflow: visible;
}

/* Kompakt: keine absolute Positionierung der Suche — gleicher Flex-Flow wie oben,
 * sonst weicht „right: 52px“ von der geschlossenen Lupe ab (40px Profil) → Lupe springt nach links. */

/* Lupe-Button: immer nur Icon, nie Kasten */
.ff-header-search-trigger,
button.ff-header-search-trigger {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    cursor: pointer;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: opacity 0.2s ease;
}

.ff-header-search-trigger:hover,
.ff-header-search-trigger:focus,
.ff-header-search-trigger:active,
button.ff-header-search-trigger:hover,
button.ff-header-search-trigger:focus,
button.ff-header-search-trigger:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #000 !important;
}

/* Lupe bleibt sichtbar (schwarz), kein Weiss/Ausblenden beim Hover */
.ff-header-search-trigger:hover,
.ff-header-search-trigger:hover .ff-header-search-icon {
    opacity: 1;
}
.ff-header-search-icon,
.ff-header-search-trigger:hover .ff-header-search-icon {
    color: #000;
}
.ff-header-search-icon path {
    stroke: currentColor;
}

.ff-header-search-trigger:focus-visible {
    outline: 2px solid #B43526;
    outline-offset: 2px;
}

.ff-header-search-wrap.is-open .ff-header-search-trigger {
    margin-right: 0;
}

.ff-header-search-icon {
    display: block;
    width: 20px;
    height: 20px;
}

/* Form: Breite folgt Panel (kein zweites max-width/opacity-Spiel) */
.ff-header-search-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1;
}

/* Input: kein eigener Kasten (Border/Outline/Shadow weg) */
.ff-header-search-input {
    width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 6px 0 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.95rem;
    color: #000;
    caret-color: #B43526;
    appearance: none;
    -webkit-appearance: none;
}

.ff-header-search-input::placeholder {
    color: #999;
}

.ff-header-search-input::-webkit-search-cancel-button,
.ff-header-search-input::-webkit-search-decoration {
    appearance: none;
    -webkit-appearance: none;
}

/* Nav (kompakt) */
.ff-nav-search-wrap .ff-header-search-trigger {
    width: 28px;
    height: 28px;
}

.ff-nav-search-wrap .ff-header-search-icon {
    width: 18px;
    height: 18px;
}

.ff-nav-search-wrap {
    height: 36px;
}

.ff-nav-search-wrap .ff-header-search-panel {
    height: 36px;
}

.ff-nav-search-wrap.is-open {
    gap: 4px;
}

/* 200px Gesamt: Panel + gap + Trigger (28px Icon-Slot) */
.ff-nav-search-wrap.is-open .ff-header-search-panel {
    width: 168px;
    max-width: 168px;
}

.ff-nav-search-wrap .ff-header-search-input {
    height: 32px;
    font-size: 0.9rem;
}

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

.ff-header-icon {
    display: flex; align-items: center; justify-content: center;
    color: #000; text-decoration: none; padding: 6px;
    transition: opacity 0.2s; background: none; border: none; cursor: pointer;
}
.ff-header-icon:hover { opacity: 0.65; }
button.ff-header-icon { font: inherit; }
.ff-header-icon img { display: block; }

/* Such-Trigger: nie Kasten, Lupe nie weiss/unsichtbar */
.ff-header-search-wrap .ff-header-icon.ff-header-search-trigger,
.ff-header-search-wrap .ff-header-icon.ff-header-search-trigger:hover {
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    opacity: 1;
}
/* Profil-Icons: 20×20 (Figma), zentriert im Klick-Slot */
.ff-icon-profile {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/*
 * Parent-Themes: fill/stroke nicht durch currentColor überschreiben.
 * Standard-Icon: beide Zustände schwarz + weißer Rand; Mein-FF: weiß/rot (Session-Form).
 */
.ff-profile-dual .ff-icon-profile--default.ff-icon-profile--guest path,
.ff-profile-dual .ff-icon-profile--default.ff-icon-profile--session path {
    fill: #000 !important;
    stroke: #fff !important;
    stroke-width: 0.5px !important;
}

.ff-profile-dual .ff-icon-profile--meinff path {
    fill: #fff !important;
    stroke: #b43526 !important;
    stroke-width: 0.5px !important;
}
@supports (-moz-appearance: none) {
    .ff-header .ff-profile-dual .ff-icon-profile,
    .ff-nav-mini-icon.ff-profile-dual .ff-icon-profile {
        image-rendering: auto;
    }
}

/* ─── Haupt-Navigation: im Stack; nur max-height/Padding (kein Opacity/Transform) ─ */
.ff-main-nav,
html body nav.ff-main-nav,
html body nav#ff-main-nav {
    position: relative !important;
    top: auto;
    z-index: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    width: 100% !important;
    /* Graue Basislinie + weiß – roter Aktiv-Strich der Links liegt darüber (siehe #ff-active-nav) */
    background: linear-gradient(to top, #C3C3C3 2px, #fff 2px) !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 14px clamp(16px, 3vw, 40px) 2px !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 420px;
    box-shadow: none !important;
    overflow: hidden !important;
    clip: auto !important;
    clip-path: none !important;
    transition:
        max-height var(--ff-h-dur) var(--ff-h-ease),
        padding var(--ff-h-dur) var(--ff-h-ease),
        background var(--ff-h-dur) var(--ff-h-ease);
}

/* Kompakt: Nav-Höhe mit eigener Kurve (nur max-height/padding, kein Opacity am Menütext) */
.ff-header-stack.ff-header--compact .ff-main-nav,
.ff-header-stack.ff-header--compact nav.ff-main-nav,
.ff-header-stack.ff-header--compact nav#ff-main-nav {
    transition:
        max-height var(--ff-nav-reveal-dur) var(--ff-nav-reveal-ease),
        padding var(--ff-nav-reveal-dur) var(--ff-nav-reveal-ease),
        background var(--ff-nav-reveal-dur) var(--ff-nav-reveal-ease);
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    pointer-events: none;
}

/* Kompakt + Hochscroll: Hauptnav sichtbar, kleines Logo unverändert */
.ff-header-stack.ff-header--compact.ff-header--compact-show-nav .ff-main-nav,
.ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav.ff-main-nav,
.ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav#ff-main-nav {
    max-height: 420px !important;
    padding: 14px clamp(16px, 3vw, 40px) 2px !important;
    margin: 0 !important;
    background: linear-gradient(to top, #C3C3C3 2px, #fff 2px) !important;
    pointer-events: auto;
    overflow: visible !important;
    clip: auto !important;
}

/* ─── Menü – volle Breite, kein Scroll-Zustand ─────────── */
.ff-main-nav .ff-menu,
.ff-main-nav ul.ff-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    list-style: none !important;
    margin: 0 auto -2px !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter))) !important;
    min-width: 0 !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
}

.ff-main-nav .ff-menu li,
.ff-main-nav ul.ff-menu > li {
    border: none !important;
    border-left: none !important;
    flex-shrink: 1 !important;
}

.ff-main-nav .ff-menu a,
.ff-main-nav ul.ff-menu > li > a {
    display: block !important;
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    line-height: 24px !important;
    padding: 0 0 10px !important;
    border-bottom: none !important;
    transition: color 0.2s !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap;
    background-image: none !important;
}

/*
 * SemiBold-Reserve Top-Level: ::after attr(data-text), 600 — kein Sprung 400→600 (gleiche line-height wie Link).
 * Dropdown-Untermenüs: eigene Regeln weiter unten.
 */
.ff-main-nav ul.ff-menu > li > a::after {
    content: attr(data-text) !important;
    display: block !important;
    font-weight: 600 !important;
    font-size: inherit !important;
    line-height: 24px !important;
    letter-spacing: inherit !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

.ff-main-nav .ff-menu a:hover,
.ff-main-nav ul.ff-menu > li > a:hover { color: #000 !important; }

/* Nur Top-Level current-menu-item: roter Strich (nicht Dropdown-Zeilen) */
.ff-main-nav ul.ff-menu > li.current-menu-item > a {
    color: #000 !important;
    font-weight: 600 !important;
    position: relative;
    z-index: 2;
    background-image: linear-gradient(#B43526, #B43526) !important;
    background-size: 100% 2px !important;
    background-position: bottom center !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.ff-main-nav ul.ff-menu > li.current-menu-ancestor:not(.current-menu-item) > a {
    font-weight: 400 !important;
    background-image: none !important;
}

/* ─── Desktop: Untermenü per Klick + Chevron (wie Subnav) ─────────────────── */
.ff-main-nav .ff-nav-dropdown-toggle {
    display: none;
}

@media (min-width: 1025px) {
    /* Untermenü nach unten: sonst clippt overflow:hidden der Nav-Leiste das Panel weg */
    .ff-main-nav,
    html body nav.ff-main-nav,
    html body nav#ff-main-nav {
        overflow: visible !important;
    }

    .ff-main-nav ul.ff-menu,
    .ff-main-nav .ff-menu {
        overflow: visible !important;
    }

    /*
     * Kompakt (Scroll): Nav ist max-height:0 – overflow:visible würde den roten Aktiv-Strich
     * der Top-Level-Links trotzdem anzeigen. Wieder verstecken wie im eingeklappten Zustand.
     */
    .ff-header-stack.ff-header--compact .ff-main-nav,
    .ff-header-stack.ff-header--compact nav.ff-main-nav,
    .ff-header-stack.ff-header--compact nav#ff-main-nav {
        overflow: hidden !important;
    }

    .ff-header-stack.ff-header--compact .ff-main-nav ul.ff-menu,
    .ff-header-stack.ff-header--compact .ff-main-nav .ff-menu {
        overflow: hidden !important;
    }

    .ff-header-stack.ff-header--compact.ff-header--compact-show-nav .ff-main-nav,
    .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav.ff-main-nav,
    .ff-header-stack.ff-header--compact.ff-header--compact-show-nav nav#ff-main-nav {
        overflow: visible !important;
    }

    .ff-header-stack.ff-header--compact.ff-header--compact-show-nav .ff-main-nav ul.ff-menu,
    .ff-header-stack.ff-header--compact.ff-header--compact-show-nav .ff-main-nav .ff-menu {
        overflow: visible !important;
    }

    /* Kein Hover-Öffnen; Klick-Öffnung mit .is-open (Animation siehe .ff-nav-has-dropdown) */
    .ff-main-nav ul.ff-menu > li:not(.is-open):hover > ul.sub-menu {
        display: none !important;
    }

    .ff-main-nav ul.ff-menu > li.is-open:not(.ff-nav-has-dropdown) > ul.sub-menu {
        display: block !important;
    }

    /*
     * Frame 1125 (Figma): flex row, align-items flex-start, gap 6px, 54×24 Rahmen.
     * Link + Button je 24px hoch, Inhalt jeweils vertikal zentriert → optisch eine Zeile wie Figma.
     */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown {
        display: inline-flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
        padding: 0;
        margin: 0;
        flex: none;
        flex-grow: 0;
        width: max-content;
        min-width: 54px;
        max-height: none;
        min-height: 24px;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
    }

    /* Top-Level: inline-block + keine fit-content-Breite → Ghost ::after bestimmt stabile Textbreite, Gradient = nur Text */
    .ff-main-nav ul.ff-menu > li > a {
        display: inline-block !important;
        vertical-align: bottom !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Dropdown: padding-bottom am Link (li hat gap 6px zum Chevron unverändert) */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > a {
        flex: none;
        flex-grow: 0;
        order: 0;
        align-self: flex-start;
        line-height: 24px !important;
        min-height: 24px;
        padding: 0 0 10px 0 !important;
        margin: 0 !important;
    }

    /* Desktop: roter Strich + fett beim Hovern (wie aktiv); nur Top-Level (nicht Dropdown-Popover) */
    @media (hover: hover) {
        .ff-main-nav ul.ff-menu > li:hover > a {
            color: #000 !important;
            font-weight: 600 !important;
            background-image: linear-gradient(#B43526, #B43526) !important;
            background-size: 100% 2px !important;
            background-position: bottom center !important;
            background-repeat: no-repeat !important;
        }
    }

    .ff-main-nav .ff-nav-dropdown-toggle {
        flex: none;
        flex-grow: 0;
        order: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        flex-shrink: 0;
        width: 12px;
        min-width: 12px;
        height: 24px;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        line-height: 0;
        color: #000;
        box-sizing: border-box;
    }

    .ff-main-nav .ff-nav-dropdown-toggle:hover,
    .ff-main-nav .ff-nav-dropdown-toggle:focus-visible {
        color: #b43526;
        outline: none;
    }

    .ff-main-nav .ff-nav-dropdown-toggle:focus-visible {
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b43526;
        border-radius: 2px;
    }

    /* News-Dropdown: zu = unten; offen = −180deg; Chevron leicht nach unten = optisch mittiger zum Text */
    .ff-main-nav .ff-nav-dropdown-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        line-height: 0;
        transition: transform 0.2s ease;
        transform: translateY(2px);
        transform-origin: 50% 50%;
    }

    .ff-main-nav .ff-nav-dropdown-chevron img,
    .ff-main-nav .ff-nav-dropdown-chevron svg {
        display: block;
        width: 12px;
        height: 7px;
        flex-shrink: 0;
    }

    .ff-main-nav .ff-menu > li.is-open .ff-nav-dropdown-chevron {
        transform: translateY(2px) rotate(-180deg);
    }

    /*
     * Popover: 159×… px (Figma-Basis, leicht gekürzt — unten nicht zu luftig).
     * 2→76 | 3→106 | 4+→148  (Figma wäre 83 / 110 / 156)
     */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu {
        position: absolute !important;
        top: 100%;
        left: 0;
        margin-top: 0;
        box-sizing: border-box;
        list-style: none !important;
        margin-left: 0 !important;
        padding: 8px 14px 7px;
        background: #fff !important;
        border-radius: 2px;
        border: none;
        filter: drop-shadow(0 2px 5.9px rgba(0, 0, 0, 0.1));
        z-index: 10000;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 7px;
        width: 159px;
        min-width: 159px;
        max-width: 159px;
        height: auto;
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;
    }

    /* 2 Einträge */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu:has(> li:nth-child(2):last-child) {
        height: 76px;
    }

    /* 3 Einträge */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu:has(> li:nth-child(3):last-child) {
        height: 106px;
    }

    /* 4+ Einträge (News) */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu:has(> li:nth-child(4)) {
        height: 148px;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown.is-open > ul.sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu {
            transition: opacity 0.15s ease, visibility 0.15s ease;
            transform: none;
        }

        .ff-main-nav .ff-menu > li.ff-nav-has-dropdown.is-open > ul.sub-menu {
            transform: none !important;
        }
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li {
        margin: 0;
        padding: 0;
        border: none;
        position: relative;
        flex: 0 0 auto;
        min-height: 0;
        min-width: 0;
        width: 100%;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 7px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-indent: 0 !important;
        box-sizing: border-box;
    }

    /* Trennlinie unter dem Text (7px gap); rechts kürzer wie Mockup */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li:not(:last-child)::after {
        content: '';
        display: block;
        position: static;
        align-self: flex-start;
        width: calc(100% - 14px);
        height: 1px;
        margin: 0;
        background: #eeeeee;
        pointer-events: none;
        flex: 0 0 auto;
    }

    /* „Podcasts“ als WP-Unterpunkt: gleiche Zeile wie die anderen, kein Einzug */
    /* „Podcasts“: Zeile wirkt wie die anderen; keine volle Rasterbreite erzwingen */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.menu-item-has-children {
        align-items: flex-start !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.menu-item-has-children > ul.sub-menu {
        display: none !important;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li > a {
        display: inline-block !important;
        vertical-align: middle;
        box-sizing: border-box;
        width: auto !important;
        max-width: none;
        min-height: 20px;
        font-family: 'Barlow Semi Condensed', sans-serif !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        line-height: 20px !important;
        color: #000 !important;
        text-align: left !important;
        text-indent: 0 !important;
        padding: 0 2px !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        background-image: none !important;
        white-space: nowrap !important;
        overflow: visible;
        text-overflow: clip;
        transition: font-weight 0.12s ease;
    }

    /* Medium-Reserve — gleiche wie Hover (500), kein Layout-Sprung */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li > a::after {
        content: attr(data-text) !important;
        display: block !important;
        font-weight: 500 !important;
        font-size: inherit !important;
        line-height: 20px !important;
        letter-spacing: inherit !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
        white-space: nowrap !important;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.ff-nav-dd-inactive > a {
        opacity: 0.42;
        cursor: default;
        pointer-events: none;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.ff-nav-dd-inactive > a:hover,
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.ff-nav-dd-inactive > a:focus-visible {
        font-weight: 400 !important;
        opacity: 0.42;
    }

    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.menu-item-has-children > a {
        width: auto !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Hover/Untermenü: Medium (500), 17px (Desktop-Dropdown) */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li > a:hover,
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li > a:focus-visible {
        background: transparent !important;
        background-image: none !important;
        color: #000 !important;
        font-weight: 500 !important;
    }

    /* Aktiver Eintrag im Dropdown: Medium wie „fett“-Vorgabe Untermenü */
    .ff-main-nav .ff-menu > li.ff-nav-has-dropdown > ul.sub-menu > li.current-menu-item > a {
        font-weight: 500 !important;
        color: #000 !important;
        background-image: none !important;
    }
}

/* ─── Doppelte Leiste in der Nav (Mini-Logo / FF+ / Shop / Lupe): nicht nutzen ─ */
.ff-nav-reveal-left,
.ff-nav-reveal-right {
    display: none !important;
}

/* ─── Subnav (Details in ff-subnav.css; letztere lädt danach) ─── */
.ff-subnav-wrap {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.ff-subnav-inner {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    margin: 0 auto;
    padding: 22px 0 12px;
    box-sizing: border-box;
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Einmalige Wrapper (z. B. Vereine-Leerzustand), gleiche Spalte wie Header */
.ff-layout-inner {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Mein FF rechts: global sichtbar (nicht nur in .ff-home-inner) */
.ff-subnav-wrap .ff-home-subnav-right,
.ff-home-subnav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ─── Startseite Subnav-Fallback ──────────────────────── */
body.home .ff-home-inner .ff-home-subnav {
    display: flex; flex-direction: row; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding: 12px 0 20px; margin: 0; border: none; width: 100%; box-sizing: border-box;
}
body.home .ff-home-inner .ff-home-subnav-left {
    display: flex; flex-direction: row; align-items: center; gap: 25px; min-height: 24px;
}
body.home .ff-home-inner .ff-home-subnav-right {
    display: flex; flex-direction: row; align-items: center; gap: 6px; min-height: 24px;
}
body.home .ff-home-inner .ff-home-subnav-item {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 0; min-height: 24px; line-height: 24px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 15px; font-weight: 400;
    color: #000; text-decoration: none; background: none; border: none;
    cursor: pointer; box-sizing: border-box;
}
body.home .ff-home-inner .ff-home-subnav-item:hover { color: #B43526; }
body.home .ff-home-inner .ff-home-subnav-item.is-active {
    color: #000; font-weight: 700; position: relative;
    border-bottom: none !important; padding-bottom: 0 !important; text-decoration: none !important;
}
body.home .ff-home-inner .ff-home-subnav-item.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #B43526;
}
body.home .ff-home-inner .ff-home-subnav-chevron {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 0;
    transform: rotate(-90deg);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
body.home .ff-home-inner .ff-home-subnav-chevron svg { display: block; width: 10.5px; height: 5px; }
body.home .ff-home-inner .ff-home-subnav-dropdown { position: relative; display: inline-flex; }
body.home .ff-home-inner .ff-home-subnav-menu {
    position: absolute; top: 100%; left: 0; min-width: 180px; margin: 4px 0 0; padding: 8px 0;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12); list-style: none; z-index: 50; display: none;
}
body.home .ff-home-inner .ff-home-subnav-dropdown.is-open .ff-home-subnav-menu { display: block; }
body.home .ff-home-inner .ff-home-subnav-dropdown.is-open .ff-home-subnav-chevron { transform: rotate(0deg); }
body.home .ff-home-inner .ff-home-subnav-menu a {
    display: block; padding: 8px 16px; font-size: 15px; color: #333; text-decoration: none;
}
body.home .ff-home-inner .ff-home-subnav-menu a:hover { background: #f5f5f5; color: #B43526; }
body.home .ff-home-inner .ff-home-subnav-meinff-label {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 15px; font-weight: 500; line-height: 24px; color: #000;
}
body.home .ff-home-inner .ff-home-subnav-toggle-wrap { display: inline-flex; align-items: center; cursor: pointer; }
body.home .ff-home-inner .ff-home-subnav-toggle {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
body.home .ff-home-inner .ff-home-subnav-toggle-slider {
    display: block; width: 38px; height: 18px; background: #E0E0E3;
    border-radius: 9px; position: relative; transition: background 0.2s ease;
}
body.home .ff-home-inner .ff-home-subnav-toggle-slider::after {
    content: ''; position: absolute; top: 0; right: 0; width: 18px; height: 18px;
    background: #2B2B2B; border-radius: 50%; transition: transform 0.2s ease, background 0.2s ease;
}
body.home .ff-home-inner .ff-home-subnav-toggle:checked + .ff-home-subnav-toggle-slider { background: #EBD4D4; }
body.home .ff-home-inner .ff-home-subnav-toggle:checked + .ff-home-subnav-toggle-slider::after { background: #B43526; transform: translateX(-20px); }
body.home .ff-home-inner .ff-home-subnav-toggle:focus-visible + .ff-home-subnav-toggle-slider {
    outline: 2px solid #B43526; outline-offset: 2px;
}

.ff-mobile-nav-toggle {
    display: none;
}

/* Panel-Root: nur ≤1024 sichtbar (siehe Media Query unten) */
.ff-mobile-nav-root {
    display: none;
}

/* ─── Mobile / Tablet ≤1024: Burger, Logo mobile, Nav horizontal scroll, Panel ─ */
@media (max-width: 1024px) {
    html {
        touch-action: pan-y;
        overflow: auto !important;
        height: auto !important;
    }
    body {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh;
    }

    .ff-mobile-nav-toggle {
        display: inline-flex;
        align-items: flex-end;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border: none;
        background: transparent !important;
        cursor: pointer;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
        tap-highlight-color: transparent;
        color: inherit;
    }
    .ff-mobile-nav-toggle:hover,
    .ff-mobile-nav-toggle:active,
    .ff-mobile-nav-toggle:focus,
    .ff-mobile-nav-toggle:focus-visible,
    .ff-mobile-nav-toggle:focus-within {
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    }
    .ff-mobile-nav-toggle::-moz-focus-inner {
        border: 0;
        padding: 0;
    }
    .ff-mobile-nav-toggle-img {
        display: block;
        width: 24px !important;
        height: auto !important;
        max-height: 15px !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
        pointer-events: none;
        user-select: none;
    }

    .ff-header-desktop-only {
        display: none !important;
    }

    .ff-logo-img--desktop {
        display: none !important;
    }
    .ff-logo-img--mobile {
        display: block !important;
        width: auto !important;
        max-width: min(176px, 54vw) !important;
        max-height: 46px !important;
        height: auto !important;
    }
    .ff-header-center .ff-logo-link {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    /* Mobil: Logo nicht mehr absolut, sondern normaler Flex-Child */
    .ff-header-center {
        position: static !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto;
        transition: none !important;
    }
    .ff-header-stack.ff-header--compact .ff-header-center {
        width: auto !important;
        max-width: none !important;
    }

    /* Sticky statt fixed: bleibt oben zuverlässig (kein Mitscrollen durch Grid/Overflow-Bugs) */
    .ff-header-stack {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 9500 !important;
        border-bottom: 1px solid #ECECEC !important;
        transform: none !important;
        will-change: auto !important;
        background: #fff !important;
    }

    /*
     * Figma Property1=Variant4 (390×120): column, justify flex-end, align center,
     * padding 12px 25px 20px, gap 10px, border-bottom #ECECEC am Stack.
     */
    .ff-header-inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 12px 25px 20px !important;
        gap: 10px !important;
        min-height: 120px !important;
        height: 120px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
        transition: none !important;
    }
    .ff-header-stack.ff-header--compact .ff-header-inner {
        padding: 12px 25px 20px !important;
        gap: 10px !important;
        min-height: 120px !important;
        height: 120px !important;
    }

    /*
     * Unterkante ausrichten: zweizeiliges Logo sitzt optisch „unten“ — Lupe/Burger nicht mittig
     * zur Logo-Höhe (wirkt zu hoch), sondern flex-end wie im Screenshot/Figma.
     */
    .ff-header-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        width: 100% !important;
        flex: 0 0 auto;
        min-height: 0 !important;
        margin-top: 0;
    }

    .ff-header-left {
        flex: 1 1 0% !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        min-width: 0;
        transform: none !important;
    }

    .ff-header-center {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .ff-header-right {
        flex: 1 1 0% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        flex-grow: 0;
        flex-shrink: 1;
        gap: 0 !important;
        column-gap: 6px !important;
        min-width: 0;
    }

    /* Figma Group 9: eine Zeile ~23px, enger Abstand, gleiche Icon-Größe (Lupe + Profil) */
    body:not(.single) .ff-header-right .ff-header-profile-link.ff-header-icon.ff-profile-dual {
        display: grid !important;
        place-items: center center !important;
        width: 23px !important;
        min-width: 23px !important;
        height: 23px !important;
        min-height: 23px !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    body:not(.single) .ff-header-right .ff-profile-dual .ff-icon-profile {
        width: 19px !important;
        max-width: 19px !important;
        height: 19px !important;
        max-height: 19px !important;
    }
    /* Figma Group 9: Lupe + Profil, ~23px Zeile */
    body:not(.single) #ff-header-search.ff-header-search-wrap:not(.is-open) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 23px !important;
        max-width: none !important;
        height: 23px !important;
        min-height: 23px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    body:not(.single) #ff-header-search.ff-header-search-wrap:not(.is-open) .ff-header-search-panel {
        width: 0 !important;
        max-width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }
    body:not(.single) #ff-header-search.ff-header-search-wrap:not(.is-open) .ff-header-search-trigger {
        margin: 0 !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 23px !important;
        height: 23px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body:not(.single) #ff-header-search.ff-header-search-wrap:not(.is-open) .ff-header-search-icon {
        display: block !important;
        width: 19px !important;
        height: 19px !important;
        margin-bottom: 0 !important;
    }

    /* Single-Artikel: kein Logo in der Mitte (nur Pfeil links, Aktionen rechts) */
    body.single .ff-header-center {
        display: none !important;
    }
    body.single .ff-header-row {
        justify-content: space-between !important;
        align-items: center !important;
    }

    body.single .ff-header-left,
    body.single .ff-header-right {
        align-items: center !important;
    }

    .ff-header-icon,
    .ff-header-search-wrap {
        flex-shrink: 0;
    }

    .ff-header-right .ff-header-icon {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Profil-SVG: Platzierung; Maße nur body:not(.single) — Group 9 */
    .ff-header-right .ff-profile-dual .ff-icon-profile {
        grid-area: 1 / 1;
        display: block !important;
        margin-bottom: 0 !important;
        object-fit: contain;
        object-position: center;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    .ff-header-right .ff-profile-dual .ff-icon-profile--meinff {
        display: none !important;
    }

    /* Mein FF (Mobil): wie Desktop — roter Header, ein Profil-Icon (Mein-FF-SVG) */
    body.ff-meinff-on .ff-header-stack {
        background: #b43526 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    }
    body.ff-meinff-on .ff-header-stack .ff-header {
        background: transparent !important;
    }
    body.ff-meinff-on .ff-header .ff-logo-img {
        filter: brightness(0) invert(1);
    }
    body.ff-meinff-on .ff-header .ff-header-search-trigger,
    body.ff-meinff-on .ff-header .ff-header-search-icon {
        color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-icon path {
        stroke: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-wrap .ff-header-icon.ff-header-search-trigger,
    body.ff-meinff-on .ff-header .ff-header-search-wrap .ff-header-icon.ff-header-search-trigger:hover {
        color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-wrap.is-open .ff-header-search-panel {
        background-color: #fff !important;
    }
    body.ff-meinff-on .ff-header .ff-header-search-input {
        color: #000 !important;
    }
    body.ff-meinff-on .ff-header .ff-profile-dual .ff-icon-profile--default {
        display: none !important;
    }
    body.ff-meinff-on .ff-header .ff-profile-dual .ff-icon-profile--meinff {
        display: block !important;
    }
    body.ff-meinff-on .ff-header .ff-mobile-nav-toggle-img {
        filter: brightness(0) invert(1);
    }

    .ff-header-stack .ff-header,
    header.ff-header {
        box-shadow: none !important;
        border-bottom: none !important;
    }

    /* Hauptnavigation nur Desktop; Mobil: Burger-Panel */
    .ff-main-nav,
    html body nav.ff-main-nav,
    html body nav#ff-main-nav {
        display: none !important;
    }

    .ff-mobile-nav-root {
        display: block;
    }

    /* === Single-Seiten: gleicher Header, nur andere Icons === */
    .ff-single-back-arrow {
        display: none;
    }
    .ff-single-header-actions {
        display: none;
    }

    body.single .ff-mobile-nav-toggle {
        display: none !important;
    }
    /* Single: Group 9 — eine Zeile ~23px, gleiche Slot-/SVG-Maße wie rechte Icons */
    body.single .ff-single-back-arrow {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        min-width: 23px;
        min-height: 23px;
        margin: 0;
        padding: 0;
        text-decoration: none;
        color: #1D1B20;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    body.single .ff-single-back-arrow svg {
        display: block;
        width: 19px;
        height: 19px;
    }

    /* Höhere Spezifität als #ff-header-search… und .ff-header-profile-link.ff-header-icon (Mobile ≤1024) */
    body.single #ff-header-search.ff-header-search-wrap,
    body.single #ff-header-search.ff-header-search-wrap:not(.is-open),
    body.single #ff-header-search.ff-header-search-wrap.is-open {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    body.single .ff-header-right .ff-header-profile-link.ff-header-icon,
    body.single a.ff-header-profile-link {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    body.single .ff-single-header-actions {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        flex-grow: 0;
        gap: 6px;
        min-height: 26px;
        height: auto;
    }
    body.single .ff-single-header-action-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        min-width: 23px;
        min-height: 23px;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        color: #000;
        box-sizing: border-box;
        flex: 0 0 auto;
    }
    body.single .ff-single-header-action-icon svg {
        display: block;
        width: 19px;
        height: 19px;
        flex-shrink: 0;
    }

    /* „AA“-Icon größer + leicht tiefer (optisch bündig zu Lupe/Rest) */
    body.single .ff-single-header-action-icon[aria-label="Textgröße"] svg {
        width: 22px !important;
        height: 27px !important;
        transform: translateY(2px);
    }

    /* Lesezeichen optisch etwas nach unten */
    body.single .ff-single-header-action-icon[aria-label="Speichern"] svg {
        transform: translateY(4px);
    }
}

@media (min-width: 1025px) {
    .ff-mobile-nav-root {
        display: none !important;
    }
    .ff-single-back-arrow {
        display: none !important;
    }
    .ff-single-header-actions {
        display: none !important;
    }
}

/* Off-Canvas hell (Figma) */
.ff-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.ff-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10060;
    width: min(100vw, 390px);
    max-width: 100%;
    background: #fff;
    color: #000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.33, 0.82, 0.32, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    outline: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.ff-mobile-panel-header {
    flex-shrink: 0;
    width: 100%;
    padding: 12px 12px 8px;
    box-sizing: border-box;
}

.ff-mobile-panel-header-inner {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.ff-mobile-panel-header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.ff-mobile-panel-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    max-width: 100%;
}

.ff-mobile-panel-header .ff-logo-img--panel {
    display: block !important;
    width: auto !important;
    max-width: min(176px, 52vw) !important;
    max-height: 46px !important;
    height: auto !important;
}

.ff-mobile-panel-header-spacer {
    display: block;
    width: 48px;
    height: 1px;
}

.ff-mobile-panel-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    color: #1d1b20;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    tap-highlight-color: transparent;
}

.ff-mobile-panel-back img,
.ff-mobile-panel-back-img {
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.ff-mobile-panel-back:hover,
.ff-mobile-panel-back:active,
.ff-mobile-panel-back:focus,
.ff-mobile-panel-back:focus-visible,
.ff-mobile-panel-back:focus-within {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.ff-mobile-panel-back::-moz-focus-inner {
    border: 0;
    padding: 0;
}

body.admin-bar .ff-mobile-panel {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ff-mobile-panel {
        top: 46px;
    }
}

.ff-mobile-nav-root.is-open .ff-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ff-mobile-nav-root.is-open .ff-mobile-panel {
    transform: translateX(0);
}

body.ff-mobile-nav-open,
html.ff-mobile-nav-open {
    overflow: hidden;
}

/* ─── Panel-Scroll (Figma Frame 944: gap 46px) ──────── */
.ff-mobile-panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 40px;
    gap: 46px;
}

/* Figma Frame 964: Search + Brand + Menu, gap 52px */
.ff-mobile-panel-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 52px;
    width: 100%;
}

/* Figma Frame 942: Social + Legal, gap 23px */
.ff-mobile-panel-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
    width: 100%;
}

/* ─── Suchfeld (Figma: Lupe links, 1px #939393 unten, kein Kasten — kein type=search wegen WebKit-Kasten) ─── */
.ff-mobile-panel-search {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 33px;
    box-sizing: border-box;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ff-mobile-panel-search-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 20px;
    padding: 0 0 5px;
    margin: 0;
    border: none !important;
    border-bottom: 1px solid #939393 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.ff-mobile-panel-search:focus-within .ff-mobile-panel-search-inner {
    border-bottom-color: #939393 !important;
    outline: none !important;
    box-shadow: none !important;
}

.ff-mobile-panel-search-lupe {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
    align-items: center;
    align-self: center;
}

.ff-mobile-panel-search-lupe img {
    display: block;
}

.ff-mobile-panel-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    border-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 20px;
    min-height: 20px;
    color: #000;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    resize: none;
}

.ff-mobile-panel-search-input:focus,
.ff-mobile-panel-search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

/* Android/Chrome: kein grüner Autofill-/Focus-Kasten */
.ff-mobile-panel-search-input:-webkit-autofill,
.ff-mobile-panel-search-input:-webkit-autofill:hover,
.ff-mobile-panel-search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 99999s ease-out 0s;
}
.ff-mobile-panel-search-input::placeholder {
    color: #939393;
    opacity: 1;
    font-weight: 300;
}

/* ─── FF+ / Shop (Figma: gap 11px, font-size 20px, font-weight 700) ─── */
.ff-mobile-panel-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 0 33px;
    width: 100%;
    box-sizing: border-box;
}

.ff-mobile-panel-ffplus {
    display: inline-grid;
    place-items: center;
    line-height: 0;
}

.ff-mobile-panel-shop {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #B43526;
    text-decoration: none;
}
.ff-mobile-panel-shop:hover {
    text-decoration: underline;
}

/* ─── Hauptliste: Typo 17px/500; kompakteres gap zwischen Hauptpunkten ─── */
.ff-mobile-menu,
.ff-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ff-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 33px;
    width: 100%;
    box-sizing: border-box;
}

/* Einheitliche Erstzeile wie Toggle-Zeile (40px) */
.ff-mobile-menu > li:not(.menu-item-has-children) {
    min-height: 40px;
}

/* Top-Level: [ Titel | 48px ]; Mit Untermenü min. Zeilenhöhe für Toggle */
.ff-mobile-menu > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.ff-mobile-menu > li.menu-item-has-children {
    grid-template-rows: auto auto;
    min-height: 40px;
}

.ff-mobile-menu > li > a {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    display: block;
    padding: 4px 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 22px;
    color: #313131;
    text-decoration: none;
    min-width: 0;
    text-align: left;
}

/* Ohne Untermenü: ganze Zeile inkl. Chevron = ein Link (Klick rechts leitet weiter) */
.ff-mobile-menu > li:not(.menu-item-has-children) > a {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    min-width: 0;
}

.ff-mobile-menu > li:not(.menu-item-has-children) > a::after {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    content: "";
    display: block;
    width: 12px;
    height: 7px;
    box-sizing: border-box;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%227%22%20viewBox%3D%220%200%2012%207%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M0.353516%200.370117L5.35352%205.37012L10.8535%200.370117%22%20stroke%3D%22%234C4C4C%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E")
        no-repeat center;
    background-size: contain;
}

/* Unterpunkte: kleiner Abstand Text↔Chevron (nicht wie Hauptzeile mit 48px-Spur); Zeilen enger */
.ff-mobile-menu .sub-menu > li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 6px;
    row-gap: 2px;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

/* Blatt: Figma-Chevron rechts 7×12, kleiner skaliert (15px-Text) */
.ff-mobile-menu .sub-menu > li:not(.menu-item-has-children)::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 5px;
    height: 8.5714286px;
    box-sizing: border-box;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%227%22%20height%3D%2212%22%20viewBox%3D%220%200%207%2012%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M0.370117%2010.8359L5.37012%205.83594L0.370117%200.335938%22%20stroke%3D%22%234C4C4C%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E")
        no-repeat center;
    background-size: contain;
    transform: translateY(1.5px);
}

.ff-mobile-menu .sub-menu li.menu-item-has-children > a {
    flex: 0 1 auto;
    min-width: 0;
    display: block;
    text-align: left;
}

.ff-mobile-menu .sub-menu li:not(.menu-item-has-children) > a {
    flex: 0 1 auto;
    min-width: 0;
}

.ff-mobile-menu .sub-menu li {
    justify-content: flex-start;
}

.ff-mobile-menu .sub-menu li > a {
    flex: 0 1 auto;
    min-width: 0;
    padding-right: 0;
}

.ff-mobile-menu-toggle {
    flex: 0 0 auto;
    order: unset;
    width: 48px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    tap-highlight-color: transparent;
    color: inherit;
}

.ff-mobile-menu-toggle:hover,
.ff-mobile-menu-toggle:active,
.ff-mobile-menu-toggle:focus,
.ff-mobile-menu-toggle:focus-visible,
.ff-mobile-menu-toggle:focus-within {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

.ff-mobile-menu-toggle::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Kein schwarzer Tap-/Focus-Kasten auf Menü-Links (Touch) */
.ff-mobile-panel .ff-mobile-menu a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    tap-highlight-color: transparent;
}

.ff-mobile-panel .ff-mobile-menu a:active,
.ff-mobile-panel .ff-mobile-menu a:focus {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.ff-mobile-menu > li.menu-item-has-children > .ff-mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.ff-mobile-menu .sub-menu li.menu-item-has-children > .ff-mobile-menu-toggle {
    flex: 0 0 auto;
    width: auto;
    min-width: 44px;
    padding: 0 4px;
}

.ff-mobile-menu-chevron-img,
.ff-mobile-menu-chevron-svg {
    display: block;
    flex-shrink: 0;
}

/* Toggle Hauptebene: 12×7 */
.ff-mobile-menu-toggle .ff-mobile-menu-chevron-svg {
    width: 12px;
    height: 7px;
}

/* Untermenü-Toggles: etwas kleiner; Chevron leicht nach unten = optisch mittig zur Zeile */
.ff-mobile-menu .sub-menu .ff-mobile-menu-toggle .ff-mobile-menu-chevron-svg {
    width: 10px;
    height: 5.8333333px;
    transform: translateY(1.5px);
}
.ff-mobile-menu-chevron-img {
    width: 10.5px;
    height: 5px;
}

.ff-mobile-panel-social-link--ig {
    color: #000;
}

.ff-mobile-panel-social-link--ig svg {
    display: block;
    width: 20px;
    height: 20px;
}

.ff-mobile-menu li.menu-item-has-children > .sub-menu {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
    background: transparent;
    margin: 0;
    border: none;
    border-radius: 0;
    max-height: 0;
    opacity: 0;
    padding: 0 0 0 14px;
    /* Kurz & knackig (kein „klebriges“ max-height-Gefühl) */
    transition: max-height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.14s ease-out, padding 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hauptpunkte: Untermenü in Grid-Zeile 2 (Wechselwirkung mit .ff-mobile-menu > li) */
.ff-mobile-menu > li.menu-item-has-children > .sub-menu {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Unterpunkt mit eigenem Sub: in Flex-Zeile unter Titel + Toggle */
.ff-mobile-menu .sub-menu li.menu-item-has-children > .sub-menu {
    flex: 1 0 100%;
    max-width: 100%;
}

.ff-mobile-menu li.menu-item-has-children.is-open > .sub-menu {
    max-height: min(120rem, 4000px);
    opacity: 1;
    padding: 4px 0 2px 14px;
}

@media (prefers-reduced-motion: reduce) {
    .ff-mobile-menu li.menu-item-has-children > .sub-menu {
        transition: none;
    }
}

.ff-mobile-menu .sub-menu a {
    display: block;
    padding: 4px 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    color: #313131;
    text-decoration: none;
}

.ff-mobile-menu .sub-menu a:hover {
    color: #313131;
    font-weight: 500;
}

.ff-mobile-menu .sub-menu a:focus-visible {
    color: #313131;
    font-weight: 500;
}

.ff-mobile-menu .sub-menu li.ff-nav-dd-inactive > a {
    opacity: 0.42;
    pointer-events: none;
}

.ff-mobile-menu .sub-menu li.ff-nav-dd-inactive > a:hover {
    color: #313131;
    opacity: 0.42;
    font-weight: 400;
}

.ff-mobile-menu .current-menu-item > a,
.ff-mobile-menu .current-menu-ancestor > a {
    color: #B43526;
    font-weight: 500;
}

/* ─── Divider (Figma: 1px #E8E8E8) ─── */
.ff-mobile-panel-divider {
    width: 324px;
    max-width: calc(100% - 66px);
    height: 0;
    margin: 0 auto;
    border: none;
    border-bottom: 1px solid #E8E8E8;
}
.ff-mobile-panel-divider--tight {
    margin-top: 0;
    margin-bottom: 0;
}

/* ─── Social (Figma Frame 941: gap 14px) ─── */
.ff-mobile-panel-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0 33px;
    width: 100%;
    box-sizing: border-box;
}

.ff-mobile-panel-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* ─── Legal (Figma: gap 10px, font 15px/400) ─── */
.ff-mobile-panel-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 33px;
    width: 100%;
    box-sizing: border-box;
}

.ff-mobile-panel-legal-texts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ff-mobile-panel-legal-text {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    color: #000;
    text-decoration: none;
}

.ff-mobile-panel-legal-text:hover {
    color: #B43526;
}

@media (prefers-reduced-motion: reduce) {
    .ff-header-stack {
        transition: none !important;
    }
    .ff-header-inner,
    .ff-header-center,
    .ff-header-inner .ff-logo-img,
    .ff-main-nav,
    .ff-mobile-panel,
    .ff-mobile-nav-backdrop,
    .ff-header-search-wrap,
    .ff-header-search-panel,
    .ff-header-search-form {
        transition: none !important;
    }
}
