/* ===== Vereine Uebersicht ===== */

body.ff-page-vereine {
    background: #fff !important;
}

body.ff-page-vereine .site-content,
body.ff-page-vereine .content-area,
body.ff-page-vereine .site {
    background: #fff !important;
    padding-top: 0 !important;
}

/* Gegen Abschneiden links: .ff-content-wrap ist sonst overflow-x:hidden (ff-header.css). */
body.ff-page-vereine .ff-content-wrap {
    overflow-x: visible;
}

.ff-main.ff-vereine-page {
    background: #fff !important;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    overflow-x: visible;
}

.ff-vereine-wrap {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 8px 0 60px;
    box-sizing: border-box;
    background: #fff;
    overflow-x: visible;
}

/* --- Suchleiste: ein Feld, mittig (Ecken wie Header-Suchpanel: 10px) --- */
.ff-vereine-search {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 34px;
}

.ff-vereine-search-box {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0 12px 0 14px;
    gap: 8px;
    width: min(100%, 340px);
    min-height: 40px;
    height: 40px;
    background: #fff;
    border: 1.5px solid #c8c8c8;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: none;
    overflow: visible;
}

.ff-vereine-search-box:focus-within {
    outline: none;
    border-color: #B43526;
    border-width: 1.5px;
}

.ff-vereine-search-icon {
    flex: none;
    width: 18px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

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

.ff-vereine-search-input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #000;
    height: auto;
    align-self: center;
}

.ff-vereine-search-input:focus {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.ff-vereine-search-input::-webkit-search-decoration,
.ff-vereine-search-input::-webkit-search-cancel-button,
.ff-vereine-search-input::-webkit-search-results-button,
.ff-vereine-search-input::-webkit-search-results-decoration,
.ff-vereine-search-input::-webkit-contacts-auto-fill-button {
    display: none !important;
    -webkit-appearance: none;
}

.ff-vereine-search-input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.ff-vereine-search-input::placeholder {
    color: #A2A2A2;
    font-weight: 400;
}

/* --- Grid (Standard): z. B. Mein FF (`#ff-mp-verein-grid`) — gleiche fluid-Logik wie zuvor --- */
.ff-vereine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: max(24px, calc((100% - 636px) / 2));
    row-gap: 50px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: start;
    justify-items: stretch;
    box-sizing: border-box;
}

/* --- Vereins-Übersicht (#ff-vereine-grid): 212px pro Kasten-Spalte (Frame 1176), 125px zwischen Spalten — 3×212 + 2×125 = 886px --- */
body.ff-page-vereine #ff-vereine-grid {
    grid-template-columns: repeat(3, 212px);
    column-gap: 125px;
    width: calc(3 * 212px + 2 * 125px);
    max-width: 100%;
    margin-inline: auto;
}

/* Figma Frame 1176 — Buchstaben-Spalte unter #ff-vereine-grid (Übersicht) */
body.ff-page-vereine #ff-vereine-grid > .ff-vereine-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 20px;
    width: 212px;
    min-width: 212px;
    max-width: 212px;
    box-sizing: border-box;
    flex: none;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: flex-start;
    min-height: 254px;
    height: auto;
}

body.ff-page-vereine #ff-vereine-grid > .ff-vereine-group > .ff-vereine-group-inner {
    gap: 20px;
}

/* --- Buchstaben-Gruppe --- */
.ff-vereine-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.ff-vereine-group.is-hidden {
    display: none;
}

/* --- Buchstaben-Heading + Vereinsliste Wrapper --- */
.ff-vereine-group-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.ff-vereine-letter {
    width: 100%;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 25px;
    line-height: 30px;
    letter-spacing: 0.005em;
    color: #000;
    margin: 0;
}

/* --- Vereinsliste: Figma Frame 1180 — gap 20px zwischen Vereinszeilen --- */
.ff-vereine-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

/* --- Einzelner Verein (wie Gruppenseite: Name flex, Uhr+Stern rechts in der Spalte) --- */
.ff-vereine-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* Abstand Vereinsname (Link) ↔ Uhr/Stern; ohne margin-left:auto am Trail (sonst frisst der Rand den gap-Effekt) */
.ff-vereine-page .ff-vereine-item {
    gap: 0 28px;
}

.ff-vereine-item-link {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ff-vereine-item-link:hover,
.ff-vereine-item-link:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.ff-vereine-item-link:hover .ff-vereine-name,
.ff-vereine-item-link:focus-visible .ff-vereine-name {
    color: #B43526;
}

/* Mitteilungen-Uhr + Stern: eng zusammen; Abstand Name↔Icons über .ff-vereine-item gap */
.ff-vereine-page .ff-mp-verein-trail {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px 6px;
    flex: 0 0 auto;
    margin-left: 0;
    min-width: 0;
}

.ff-vereine-page .ff-mp-verein-trail .ff-vereine-fav {
    margin-left: 0;
}

.ff-vereine-page .ff-mp-verein-mitteilungen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
    line-height: 0;
    color: #000;
    -webkit-tap-highlight-color: transparent;
    flex: none;
}

.ff-vereine-page .ff-mp-verein-mitteilungen:focus-visible {
    outline: 2px solid #b43526;
    outline-offset: 2px;
    border-radius: 2px;
}

.ff-vereine-item.is-hidden-item {
    display: none;
}

/* Logo */
.ff-vereine-logo {
    flex: none;
    width: 19px;
    height: 19px;
    margin-right: 7px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-vereine-logo img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.ff-vereine-logo-placeholder {
    width: 19px;
    height: 19px;
    background: #000;
    border-radius: 2px;
}

/* Name */
.ff-vereine-name {
    flex: 1;
    min-width: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    transition: color .15s;
}

/* Favorit-Stern: rechts in der Zeile (gleiche Spaltenbreite wie Gruppenseite) */
.ff-vereine-fav {
    flex: none;
    position: static;
    width: 20px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
    color: #000;
    opacity: 0.55;
    transition: opacity .15s;
    transform: none;
}

.ff-vereine-fav:hover {
    opacity: 1;
}

.ff-vereine-fav svg {
    width: 20px;
    height: 19px;
    display: block;
    flex-shrink: 0;
}

/* --- "mehr" (Link zur Buchstaben-Seite): kein grauer Flächen-Hover, nur roter Text --- */
body.ff-page-vereine a.ff-vereine-more,
body.ff-page-vereine button.ff-vereine-more,
.ff-vereine-more {
    width: 100%;
    max-width: 100%;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #646464;
    cursor: pointer;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0;
    margin: 0;
    text-align: left;
    box-shadow: none !important;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    display: inline-block;
}

body.ff-page-vereine a.ff-vereine-more:hover,
body.ff-page-vereine a.ff-vereine-more:focus,
body.ff-page-vereine button.ff-vereine-more:hover,
body.ff-page-vereine button.ff-vereine-more:focus,
.ff-vereine-more:hover,
.ff-vereine-more:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #B43526;
    outline: none;
}

.ff-vereine-more:focus-visible {
    outline: 2px solid #B43526;
    outline-offset: 2px;
}

.ff-vereine-more.is-hidden {
    display: none;
}

/* --- Keine Ergebnisse --- */
.ff-vereine-no-results {
    display: none;
    width: 100%;
    text-align: center;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    color: #646464;
    padding: 40px 0;
}

.ff-vereine-no-results.is-visible {
    display: block;
}

/* --- Buchstaben-Unterseite (?vereine_gruppe=): Überschrift + 3-Spalten-Grid --- */
.ff-vereine-gruppe-page .ff-vereine-search {
    margin-top: 0;
}

.ff-vereine-gruppe-title {
    margin: 0 0 10px;
    width: 100%;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 25px;
    line-height: 30px;
    letter-spacing: 0.005em;
    color: #000;
    text-align: left;
}

/* Nur Gruppenseite (?vereine_gruppe=): Buchstabe/Ziffer bündig zur linken Kante des ersten Kastens (= gleiche Rasterbreite wie `.ff-vereine-all-grid`) */
.ff-vereine-gruppe-page .ff-vereine-gruppe-title {
    width: calc(3 * 212px + 2 * 125px);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

/*
 * Buchstaben-Unterseite (?vereine_gruppe=): gleiche Spaltenmaße — 3×212px, column-gap 125px (Frame 1176 / Übersicht konsistent).
 */
.ff-vereine-all-grid {
    display: grid;
    grid-template-columns: repeat(3, 212px);
    column-gap: 125px;
    row-gap: 20px;
    width: calc(3 * 212px + 2 * 125px);
    max-width: 100%;
    margin-inline: auto;
    min-width: 0;
    box-sizing: border-box;
    align-items: start;
    justify-items: stretch;
    overflow-x: visible;
}

.ff-vereine-all-grid .ff-vereine-item--grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: static;
    overflow-x: visible;
    -webkit-tap-highlight-color: transparent;
}

.ff-vereine-all-grid .ff-vereine-item--grid .ff-vereine-logo {
    overflow: visible;
}

/* ===== Responsive ===== */
/* Tablet: 212px-Kästen, 125px Spaltenabstand (2×212 + 125 = 549px) */
@media (max-width: 1000px) {
    body.ff-page-vereine #ff-vereine-grid,
    .ff-vereine-all-grid {
        grid-template-columns: repeat(2, 212px);
        column-gap: 125px;
        width: calc(2 * 212px + 125px);
        max-width: 100%;
    }

    body.ff-page-vereine #ff-vereine-grid {
        row-gap: 50px;
    }

    .ff-vereine-all-grid {
        row-gap: 20px;
    }

    .ff-vereine-gruppe-page .ff-vereine-gruppe-title {
        width: calc(2 * 212px + 125px);
    }
}

/* Mein Profil & andere Wrapper mit .ff-vereine-grid ohne #ff-vereine-grid — fluid bis 900px zweispaltig */
@media (max-width: 900px) {
    .ff-vereine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(28px, 8vw, 116px);
        row-gap: 50px;
    }
}

@media (max-width: 700px) {
    .ff-vereine-all-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        width: 100%;
        max-width: 100%;
        row-gap: 20px;
    }

    .ff-vereine-all-grid .ff-vereine-item--grid {
        max-width: 100%;
    }

    .ff-vereine-gruppe-page .ff-vereine-gruppe-title {
        width: 100%;
        margin-inline: 0;
    }

    body.ff-page-vereine #ff-vereine-grid {
        grid-template-columns: 1fr;
        row-gap: 50px;
        column-gap: 0;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }
    body.ff-page-vereine #ff-vereine-grid > .ff-vereine-group {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 0;
        flex-shrink: 1;
    }
    .ff-vereine-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        row-gap: 50px;
    }
    .ff-vereine-search {
        justify-content: center;
    }
}

@media (max-width: 450px) {
    .ff-vereine-grid {
        row-gap: 50px;
    }
    .ff-vereine-search {
        justify-content: stretch;
    }
    .ff-vereine-search-box {
        width: 100%;
        max-width: none;
    }
}

/* ===== Verein-Detail (?verein=…&verein_tab=…) ===== */
/* Hero-Bottom (Kommentar + Lesezeichen) und Karten-Meta wie auf der Startseite sichtbar */

/*
 * Feed-Kacheln: Titel/Teaser volle Kartenbreite (kein JS-Balancing wie auf der Startseite).
 * Ohne diese Regeln bleiben ggf. max-width / Balance-Klassen von früheren Skriptläufen sichtbar.
 */
.ff-verein-detail .ff-home-card-title {
    max-width: 100% !important;
}
.ff-verein-detail .ff-home-card-title-inner,
.ff-verein-detail .ff-home-card-title-inner--balance,
.ff-verein-detail .ff-home-card-title-inner--balance-strong,
.ff-verein-detail .ff-home-card-title-inner--balance-max {
    max-width: 100% !important;
}

.ff-verein-detail-head {
    margin-bottom: clamp(24px, 4vw, 40px);
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    box-sizing: border-box;
}

.ff-verein-detail-title-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 20px;
    margin-bottom: 20px;
    width: 100%;
}

.ff-verein-detail-logo-wrap {
    flex: none;
    width: 54px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-verein-detail-logo {
    width: 54px;
    height: 51px;
    object-fit: contain;
    display: block;
}

.ff-verein-detail-title {
    margin: 0;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1;
    letter-spacing: 0;
    color: #000;
}

/* ----- Vereins-Tabs (?verein=…): wie Subnav .ff-sn-item — border-bottom 2px, ohne großes Padding / ::before ----- */
.ff-verein-detail-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px 24px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-bottom: 0;
    background: none;
}

.ff-verein-detail-nav-link {
    position: relative;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0;
    color: #000;
    text-decoration: none !important;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.ff-verein-detail-nav-link:focus {
    outline: none;
}

.ff-verein-detail-nav-link:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.ff-verein-detail-nav-link:focus-visible {
    outline: 2px solid #b43526;
    outline-offset: 2px;
    background-color: transparent !important;
}

@media (hover: hover) {
    .ff-verein-detail-nav-link:hover {
        color: #000 !important;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-bottom-color: #b43526 !important;
    }
}

.ff-verein-detail-nav-link.is-active {
    color: #000 !important;
    z-index: 2;
    background: transparent none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom-color: #b43526 !important;
}

/* GP / Theme: kein dunkles Hover-Overlay auf Vereinsseite */
html body.ff-page-vereine #ff-home-root a.ff-verein-detail-nav-link,
html body.ff-page-vereine #ff-home-root a.ff-verein-detail-nav-link:hover,
html body.ff-page-vereine #ff-home-root a.ff-verein-detail-nav-link:active,
html body.ff-page-vereine #ff-home-root a.ff-verein-detail-nav-link:visited {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

@media (max-width: 500px) {
    .ff-verein-detail-nav {
        max-width: 100%;
    }

    .ff-verein-detail-nav-link {
        white-space: normal;
    }
}

/* Fixierte Vereins-Leiste unter dem Header (Desktop), wenn Seiten-Tabs nach oben wegscrollen */
.ff-verein-sticky-nav {
    display: none;
}

@media (min-width: 1025px) {
    .ff-verein-sticky-nav {
        --ff-verein-sticky-ease: cubic-bezier(0.45, 0, 0.55, 1);
        --ff-verein-sticky-dur: 0.36s;
        /* Minimal anders als Header (#fff), gleiche horizontale Einrückung wie .ff-header (Desktop) */
        /* Fast wie Header (#fff), nur minimal abgesetzt */
        --ff-verein-sticky-bg: #fefefe;
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        z-index: 90;
        box-sizing: border-box;
        margin: 0;
        padding: 0 clamp(16px, 3vw, 40px);
        background: var(--ff-verein-sticky-bg);
        border: 0;
        box-shadow: none;
        transform: translateY(-100%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform var(--ff-verein-sticky-dur) var(--ff-verein-sticky-ease),
            visibility 0s linear var(--ff-verein-sticky-dur);
    }

    .ff-verein-sticky-nav.is-visible {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform var(--ff-verein-sticky-dur) var(--ff-verein-sticky-ease),
            visibility 0s linear 0s;
        backface-visibility: hidden;
    }

    /* Eine Zeile: kompakt, Logo + Reiter vertikal zentriert (gemeinsam mit .ff-vereine-meinff-sticky-inner) */
    .ff-verein-sticky-nav-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px 24px;
        max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
        width: 100%;
        margin: 0 auto;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 0;
        box-sizing: border-box;
    }

    .ff-verein-sticky-nav-logo-wrap {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 30px;
    }

    .ff-verein-sticky-nav-logo {
        width: 32px;
        height: 30px;
        max-width: 32px;
        max-height: 30px;
        object-fit: contain;
        display: block;
    }

    .ff-verein-sticky-nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 24px;
        min-width: 0;
        flex: 1;
        background: none;
    }

    .ff-verein-sticky-nav-link {
        position: relative;
        font-family: 'Barlow Semi Condensed', sans-serif;
        font-weight: 500;
        font-size: 15px;
        line-height: 24px;
        letter-spacing: 0;
        color: #000;
        text-decoration: none !important;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        max-width: 100%;
        flex: 0 0 auto;
        min-height: 0;
        border: 0 !important;
        border-bottom: 2px solid transparent !important;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    @media (hover: hover) {
        .ff-verein-sticky-nav-link:hover {
            color: #000 !important;
            background: transparent none !important;
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            outline: none !important;
            border-bottom-color: #b43526 !important;
        }
    }

    .ff-verein-sticky-nav-link:focus {
        outline: none;
    }

    .ff-verein-sticky-nav-link:focus:not(:focus-visible) {
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    .ff-verein-sticky-nav-link:focus-visible {
        outline: 2px solid #b43526;
        outline-offset: 2px;
        background-color: transparent !important;
    }

    .ff-verein-sticky-nav-link.is-active {
        color: #000 !important;
        z-index: 2;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        border-bottom-color: #b43526 !important;
    }

    html body.ff-page-vereine #ff-verein-sticky-nav a.ff-verein-sticky-nav-link,
    html body.ff-page-vereine #ff-verein-sticky-nav a.ff-verein-sticky-nav-link:hover,
    html body.ff-page-vereine #ff-verein-sticky-nav a.ff-verein-sticky-nav-link:active,
    html body.ff-page-vereine #ff-verein-sticky-nav a.ff-verein-sticky-nav-link:visited {
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    @media (min-width: 1025px) {
        .ff-verein-sticky-nav {
            --ff-verein-sticky-dur: 0.01s;
            transform: none;
        }

        .ff-verein-sticky-nav.is-visible {
            transform: none;
        }
    }
}

/* ----- Mein FF auf der Vereinsübersicht (Ebene 1) ----- */
body.ff-page-vereine:not(.ff-meinff-on) .ff-vereine-meinff {
    display: none !important;
}

body.ff-page-vereine.ff-meinff-on .ff-vereine-overview-panel {
    display: none !important;
}

.ff-vereine-fav.is-active {
    opacity: 1 !important;
}

.ff-vereine-fav.is-active path {
    fill: #B43526;
    stroke: #B43526;
}

body.ff-page-vereine.ff-meinff-on .ff-vereine-meinff {
    margin-top: 12px;
}

.ff-vereine-meinff {
    margin-bottom: 24px;
}

.ff-vereine-meinff-head {
    margin-bottom: 12px;
}

.ff-vereine-meinff-fav-strip,
.ff-vereine-meinff-sticky-fav {
    position: relative;
    z-index: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Firefox: Thumb rot, Laufbahn weiß */
    scrollbar-color: #b43526 #ffffff;
}

.ff-vereine-meinff-fav-strip {
    margin-bottom: 8px;
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar {
    height: 10px;
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-track,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 999px;
    border: none;
    box-sizing: border-box;
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-thumb,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-thumb {
    background: #b43526;
    border-radius: 999px;
    border: 2px solid #fff;
    background-clip: padding-box;
    min-height: 8px;
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-thumb:hover,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-thumb:hover {
    background: #942c1f;
}

/* Weiße Fläche, rote Pfeile (Klassik-Scrollbar, wo Blink sie rendert) */
.ff-vereine-meinff-fav-strip::-webkit-scrollbar-button:single-button:horizontal:decrement,
.ff-vereine-meinff-fav-strip::-webkit-scrollbar-button:single-button:horizontal:increment,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-button:single-button:horizontal:decrement,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-button:single-button:horizontal:increment {
    display: block;
    width: 14px;
    height: 10px;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
    box-sizing: border-box;
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-button:single-button:horizontal:decrement,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-button:single-button:horizontal:decrement {
    border-radius: 6px 0 0 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='8' viewBox='0 0 6 8'%3E%3Cpath fill='%23b43526' d='M4.8 0.8 L1.2 4 L4.8 7.2 Z'/%3E%3C/svg%3E");
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-button:single-button:horizontal:increment,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-button:single-button:horizontal:increment {
    border-radius: 0 6px 6px 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='8' viewBox='0 0 6 8'%3E%3Cpath fill='%23b43526' d='M1.2 0.8 L4.8 4 L1.2 7.2 Z'/%3E%3C/svg%3E");
}

.ff-vereine-meinff-fav-strip::-webkit-scrollbar-button:single-button:hover,
.ff-vereine-meinff-sticky-fav::-webkit-scrollbar-button:single-button:hover {
    background-color: rgba(180, 53, 38, 0.1);
}

.ff-vereine-meinff-fav-strip-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 44px;
    padding-bottom: 6px;
}

/* Logo links, Name + Stern rechts (eine Zeile) */
.ff-vereine-meinff-fav-item {
    flex: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    width: auto;
    max-width: min(200px, 72vw);
    min-width: 0;
    box-sizing: border-box;
}

.ff-vereine-meinff-fav-logo-link {
    display: inline-flex;
    align-items: center;
    flex: none;
    text-decoration: none;
    color: inherit;
}

.ff-vereine-meinff-fav-logo {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
}

.ff-vereine-meinff-fav-logo-ph {
    width: 19px;
    height: 19px;
    display: block;
    background: #000;
    border-radius: 50%;
    flex: none;
}

.ff-vereine-meinff-fav-logo img {
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
    object-fit: cover;
    display: block;
}

.ff-vereine-meinff-fav-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
    flex: 1;
    min-width: 0;
    min-height: 19px;
}

.ff-vereine-meinff-fav-name-link {
    flex: 1;
    min-width: 0;
    padding-inline-end: 18px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-vereine-meinff-fav-name-link:hover {
    color: #b43526;
}

.ff-vereine-meinff-fav-line .ff-vereine-fav.ff-vereine-meinff-fav-star {
    flex: none;
    width: 13.33px;
    height: 12.68px;
    /* .ff-vereine-fav hat margin-left: auto — hier keinen auto, sonst kein sichtbarer Text↔Stern-Abstand */
    margin-left: 0 !important;
    margin-right: 0;
    opacity: 1;
}

.ff-vereine-meinff-fav-line .ff-vereine-fav.ff-vereine-meinff-fav-star svg,
.ff-vereine-meinff-fav-star .ff-vereine-meinff-star-icon {
    width: 13.33px;
    height: 12.68px;
    display: block;
    flex-shrink: 0;
}

.ff-vereine-meinff-fav-empty,
.ff-vereine-meinff-guest-hint,
.ff-vereine-meinff-feed-empty {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 16px;
    color: #646464;
    margin: 12px 0;
}

/* Mein-FF /vereine/: weniger Abstand Kacheln ↔ Tab-Zeile (Standard .ff-home-feed ~20–40px) */
#ff-vereine-meinff-root.ff-vereine-meinff .ff-vereine-meinff-feed.ff-home-feed {
    margin-top: clamp(8px, 2vw, 14px);
}

/*
 * Mein-FF-Feed auf /vereine/: Karten kommen per AJAX (gleiches Markup wie Startseite).
 * Lokale/sehr spezifische Regeln können display:none der Lesezeichen-Toggle-Flächen überschreiben —
 * dann erscheinen Outline + Fill doppelt; der Button wirkt wie ein schwarzer Kasten.
 * Hier: nur eine Fläche, fester Icon-Maßstab, kein Theme-Button-Rahmen.
 */
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn {
    --ff-merk-fill-match: 1.08;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 12px;
    height: 15px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible;
    box-sizing: content-box;
    z-index: 1;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:focus:not(:focus-visible),
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:focus-visible {
    outline: 2px solid #b43526 !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-toggle-face {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-toggle-face--outline,
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-toggle-face--fill {
    display: none !important;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:not(.is-saved) .ff-merk-toggle-face--outline {
    display: inline-flex !important;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn.is-saved .ff-merk-toggle-face--outline {
    display: none !important;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn.is-saved .ff-merk-toggle-face--fill {
    display: inline-flex !important;
}

body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--outline,
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--fill {
    display: block;
    width: 12px;
    height: 15px;
    transform-origin: center center;
    transition: transform 0.2s ease;
    will-change: transform;
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--outline {
    transform: scale(1);
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--fill {
    transform: scale(var(--ff-merk-fill-match, 1.08));
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:hover:not(:disabled) .ff-merk-svg--outline {
    transform: scale(1.14);
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:hover:not(:disabled) .ff-merk-svg--fill {
    transform: scale(calc(var(--ff-merk-fill-match, 1.08) * 1.14));
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:active:not(:disabled) .ff-merk-svg--outline {
    transform: scale(1.06);
}
body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:active:not(:disabled) .ff-merk-svg--fill {
    transform: scale(calc(var(--ff-merk-fill-match, 1.08) * 1.06));
}
@media (prefers-reduced-motion: reduce) {
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--outline,
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn .ff-merk-svg--fill {
        transition: none;
    }
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:hover:not(:disabled) .ff-merk-svg--outline,
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:active:not(:disabled) .ff-merk-svg--outline {
        transform: scale(1);
    }
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:hover:not(:disabled) .ff-merk-svg--fill,
    body.ff-page-vereine .ff-home-feed-grid .ff-home-card-bookmark-btn:active:not(:disabled) .ff-merk-svg--fill {
        transform: scale(var(--ff-merk-fill-match, 1.08));
    }
}

.ff-vereine-meinff-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 24px;
    padding-bottom: 0;
    border-bottom: none;
    background: none;
}

/* Wie .ff-sn-item (Folge ich / Hub): border-bottom 2px, Linie direkt unter der Zeile */
.ff-vereine-meinff-tab {
    position: relative;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0;
    color: #000;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.ff-vereine-meinff-tab::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.ff-vereine-meinff-tab:focus {
    outline: none;
}

.ff-vereine-meinff-tab:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.ff-vereine-meinff-tab:focus-visible {
    outline: 2px solid #b43526;
    outline-offset: 2px;
    background-color: transparent !important;
}

.ff-vereine-meinff-tab:active {
    background-color: transparent !important;
    background-image: none !important;
    color: #000;
}

.ff-vereine-meinff-tab.is-active {
    color: #000 !important;
    z-index: 2;
    background: transparent none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-bottom-color: #b43526 !important;
}

@media (hover: hover) {
    .ff-vereine-meinff-tab:hover {
        color: #000 !important;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none !important;
        border-bottom-color: #b43526 !important;
    }
}

html body.ff-page-vereine #ff-vereine-meinff-root button.ff-vereine-meinff-tab,
html body.ff-page-vereine #ff-vereine-meinff-root button.ff-vereine-meinff-tab:hover,
html body.ff-page-vereine #ff-vereine-meinff-root button.ff-vereine-meinff-tab:active {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Mein-FF-Sticky: gleiches Verhalten wie .ff-verein-sticky-nav */
#ff-vereine-meinff-sticky.ff-vereine-meinff-sticky-nav {
    display: none;
}

@media (min-width: 1025px) {
    #ff-vereine-meinff-sticky.ff-vereine-meinff-sticky-nav {
        --ff-verein-sticky-ease: cubic-bezier(0.45, 0, 0.55, 1);
        --ff-verein-sticky-dur: 0.36s;
        --ff-verein-sticky-bg: #fefefe;
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        z-index: 90;
        box-sizing: border-box;
        margin: 0;
        padding: 0 clamp(16px, 3vw, 40px);
        background: var(--ff-verein-sticky-bg);
        border: 0;
        box-shadow: none;
        transform: translateY(-100%);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform var(--ff-verein-sticky-dur) var(--ff-verein-sticky-ease),
            visibility 0s linear var(--ff-verein-sticky-dur);
    }

    #ff-vereine-meinff-sticky.ff-vereine-meinff-sticky-nav.is-visible {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform var(--ff-verein-sticky-dur) var(--ff-verein-sticky-ease),
            visibility 0s linear 0s;
        backface-visibility: hidden;
    }

    /* Gleiche Maße / Ausrichtung wie .ff-verein-sticky-nav-inner */
    .ff-vereine-meinff-sticky-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 12px 24px;
        max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter)));
        width: 100%;
        margin: 0 auto;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 0;
        box-sizing: border-box;
    }

    /* Wie Logo-Spalte: vertikal zentriert, Breite = Inhalt */
    .ff-vereine-meinff-sticky-fav {
        flex: none;
        width: auto;
        max-width: 320px;
        min-width: 0;
        font-size: 0;
        scrollbar-color: #b43526 #ffffff;
        display: flex;
        align-items: center;
        align-self: center;
    }

    .ff-vereine-meinff-sticky-fav::-webkit-scrollbar-track {
        background: #ffffff;
        border: none;
    }

    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-strip-inner {
        padding-bottom: 0;
        gap: 18px;
        align-items: center;
    }

    /* Kompakte Leiste: nur Logos scrollen, ohne Name/Stern */
    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-item {
        width: auto;
        max-width: none;
        gap: 0;
        align-items: center;
    }

    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-line {
        display: none;
    }

    /* Wie .ff-verein-sticky-nav-logo: größere Kachel in der Scroll-Leiste */
    /* Wie .ff-verein-sticky-nav-logo-wrap: Bild mittig in 32×30 */
    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-logo {
        width: 32px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-logo-ph {
        width: 32px;
        height: 30px;
    }

    .ff-vereine-meinff-sticky-fav .ff-vereine-meinff-fav-logo img {
        width: 32px;
        height: 30px;
        max-width: 32px;
        max-height: 30px;
        object-fit: contain;
        display: block;
    }

    /* Wie .ff-verein-sticky-nav-links: Restbreite, Reiter immer linksbündig */
    .ff-vereine-meinff-sticky-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px 24px;
        min-width: 0;
        flex: 1;
        background: none;
    }

    .ff-vereine-meinff-sticky-tab {
        position: relative;
        font-family: 'Barlow Semi Condensed', sans-serif;
        font-weight: 500;
        font-size: 15px;
        line-height: 24px;
        letter-spacing: 0;
        color: #000;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 0 !important;
        border-bottom: 2px solid transparent !important;
        box-shadow: none !important;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        cursor: pointer;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: max-content;
        max-width: 100%;
        flex: 0 0 auto;
        min-height: 0;
        transition: color 0.2s;
    }

    .ff-vereine-meinff-sticky-tab::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

    .ff-vereine-meinff-sticky-tab:focus {
        outline: none;
    }

    .ff-vereine-meinff-sticky-tab:focus:not(:focus-visible) {
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        background-image: none !important;
    }

    .ff-vereine-meinff-sticky-tab:focus-visible {
        outline: 2px solid #b43526;
        outline-offset: 2px;
        background-color: transparent !important;
    }

    .ff-vereine-meinff-sticky-tab:active {
        background-color: transparent !important;
        background-image: none !important;
        color: #000;
    }

    .ff-vereine-meinff-sticky-tab.is-active {
        color: #000 !important;
        z-index: 2;
        background: transparent none !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border-bottom-color: #b43526 !important;
    }

    @media (hover: hover) {
        .ff-vereine-meinff-sticky-tab:hover {
            color: #000 !important;
            background: transparent none !important;
            background-color: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            outline: none !important;
            border-bottom-color: #b43526 !important;
        }
    }

    html body.ff-page-vereine #ff-vereine-meinff-sticky button.ff-vereine-meinff-sticky-tab,
    html body.ff-page-vereine #ff-vereine-meinff-sticky button.ff-vereine-meinff-sticky-tab:hover,
    html body.ff-page-vereine #ff-vereine-meinff-sticky button.ff-vereine-meinff-sticky-tab:active {
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    @media (min-width: 1025px) {
        #ff-vereine-meinff-sticky.ff-vereine-meinff-sticky-nav {
            --ff-verein-sticky-dur: 0.01s;
            transform: none;
        }

        #ff-vereine-meinff-sticky.ff-vereine-meinff-sticky-nav.is-visible {
            transform: none;
        }
    }
}
