/*
 * FVF-Mannschaften -- eigenstaendiges CSS (laeuft auf jedem Design),
 * nutzt die Theme-Akzentfarbe (--color-primary) mit FVF-rotem Fallback.
 * Bewegung ausschliesslich ueber transform/opacity, eigene Kurven.
 */
.widget-fvf-mannschaften {
    --fvfm-red: var(--color-primary, #C8102E);
    --fvfm-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 76rem;
    margin: 0 auto;
    padding: var(--wl-section-spacing, 4rem) 1.5rem;
}

.fvf-mannschaften__head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }

.fvf-mannschaften__eyebrow {
    display: block;
    color: var(--fvfm-red);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.75rem;
}

.fvf-mannschaften__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
}

.fvf-mannschaften__subtitle { margin: 0.75rem 0 0; opacity: 0.7; line-height: 1.6; }

.fvf-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.fvf-team-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--wl-radius, 1rem);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 240ms var(--fvfm-ease-out), box-shadow 240ms var(--fvfm-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    a.fvf-team-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.35);
    }
}

a.fvf-team-card:active { transform: scale(0.98); }

.fvf-team-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fvf-team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    display: block;
    transition: transform 320ms var(--fvfm-ease-out);
}

@media (hover: hover) and (pointer: fine) {
    a.fvf-team-card:hover .fvf-team-card__photo { transform: scale(1.06); }
}

/* Foto-Karten: Verlauf am unteren Rand des Bildes, falls spaeter Text
   direkt darauf landen soll -- aktuell steht der Text unter dem Bild
   (siehe .fvf-team-card__body), der Verlauf ist bewusste Reserve fuer
   ein kuenftiges "Text auf Foto"-Layout und kostet im Ruhezustand nichts. */

/* Kein Foto hinterlegt: Trikot-Streifen statt leerem grauen Feld --
   markentypisch statt wie ein fehlendes Bild. */
.fvf-team-card--stripes .fvf-team-card__media {
    background: repeating-linear-gradient(125deg, var(--fvfm-red) 0 22px, #fff 22px 44px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fvf-team-card--stripes .fvf-team-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(20, 18, 16, 0.3), rgba(20, 18, 16, 0.55));
}

.fvf-team-card__initial {
    position: relative;
    z-index: 1;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.fvf-team-card__body {
    padding: 1.25rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fvf-team-card__liga {
    display: inline-block;
    align-self: flex-start;
    background: var(--fvfm-red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.fvf-team-card__name { margin: 0.1rem 0 0; font-size: 1.2rem; font-weight: 800; }
.fvf-team-card__text { margin: 0; font-size: 0.9rem; line-height: 1.55; opacity: 0.75; }

.fvf-team-card__link {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fvfm-red);
}

/* ── Scroll-Einblenden: gestaffelt, nur wenn Design > Feinschliff aktiv ── */

html.wl-animate .fvf-team-grid > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms var(--fvfm-ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 420ms var(--fvfm-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

html.wl-animate .widget.wl-in-view .fvf-team-grid > * { opacity: 1; transform: none; }

html.wl-animate .widget.wl-in-view .fvf-team-grid > *:nth-child(1) { transition-delay: 0ms; }
html.wl-animate .widget.wl-in-view .fvf-team-grid > *:nth-child(2) { transition-delay: 60ms; }
html.wl-animate .widget.wl-in-view .fvf-team-grid > *:nth-child(3) { transition-delay: 120ms; }
html.wl-animate .widget.wl-in-view .fvf-team-grid > *:nth-child(4) { transition-delay: 180ms; }
html.wl-animate .widget.wl-in-view .fvf-team-grid > *:nth-child(n+5) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    html.wl-animate .fvf-team-grid > * {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    a.fvf-team-card:hover,
    a.fvf-team-card:hover .fvf-team-card__photo { transform: none; }
}

@media (max-width: 420px) {
    .fvf-team-card__initial { font-size: 3.6rem; }
}
