/*
Theme Name:   SSV Meschede
Theme URI:    https://git.klauke-enterprises.com/KLE101/kle101_produktion/c10900_ssv_meschede_e_v/ssv-meschede-theme
Author:       Klauke Enterprises
Description:  Theme für die Haupt- und Abteilungsseiten des SSV Meschede e.V. Konfigurierbar über WP-Admin, Custom Post Types für News, Team, Downloads, Termine und Fotos.
Version:      0.1.0
Requires at least: 6.4
Requires PHP: 8.1
License:      Proprietary
Text Domain:  ssv-meschede
*/

:root {
    /* Farben 1:1 aus dem freigegebenen Mockup (.m2{...}-Block in
       ssv-mockups-final.html) übernommen, nicht mehr eigenständig an
       ssv-meschede.de orientiert – das Mockup ist seit dessen Freigabe die
       verbindliche Quelle für Farb-/Schriftwerte. */
    --color-primary: #1a1d22;
    --color-secondary: #ffffff;
    --color-accent: #e60000;

    --color-text: #1a1d22;
    --color-text-muted: #5a5a5a;
    --color-border: #e0e0e0;
    --color-surface: #f4f3f1;

    /* Feste Werte statt Deckkraft-Stufen, exakt wie im Mockup (dort
       literale Hex-Randfarben, keine rgba-Mischung). */
    --border-faint: #e3e1dd;
    --border-soft: #d8d6d2;

    --content-width: 1220px;

    /* Spacing-Skala (4px-Basis) statt freihändiger rem-Werte – jede
       Abstandsentscheidung im Theme greift auf eine dieser Stufen zurück. */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;
    --section-y: var(--s-20);

    --radius-sm: 6px;
    --radius-lg: 12px;

    /* --shadow-soft / --shadow-lift aus dem Mockup – zweischichtige
       Schatten (enger, dunkler Kontaktschatten + weicher, weiter Streuschatten)
       statt einer einzelnen Schicht wie zuvor. */
    --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.08), 0 10px 24px -8px rgba(0, 0, 0, 0.12);
    --shadow-2: 0 6px 14px rgba(0, 0, 0, 0.14), 0 22px 40px -14px rgba(0, 0, 0, 0.28);

    --dur-fast: 120ms;
    --dur-base: 240ms;
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

    /* Reiner System-Font-Stack wie im Mockup (--sys-sans) statt Montserrat:
       das Theme lud bisher per @font-face eine selbst gehostete
       Montserrat-Variable-Font, das freigegebene Mockup nutzt an dieser
       Stelle aber bewusst die System-Schrift des Betriebssystems. Die
       @font-face-Deklaration (und das Laden der Schriftdatei) wurde
       entfernt, da nichts mehr "Montserrat" referenziert. */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-display: var(--font-sans);
    /* Zweite, bewusst laute Display-Schrift (Anton) aus dem freigegebenen
       Mockup – absichtlich NICHT an --font-display gebunden: das würde
       sofort jede h1–h4 im Theme umstellen (Rechtstexte, Team-Namen,
       Stat-Zahlen), bevor diese Stellen einzeln geprüft wurden. --font-accent
       wird stattdessen gezielt dort eingesetzt, wo der Mockup-Vergleich es
       vorsieht (Hero, Stat-Zahlen, Abteilungs-/Sektionstitel) – Schritt für
       Schritt in den folgenden Umbau-Etappen. */
    --font-accent: "Anton", var(--font-sans);

    /* Rot als Verlauf statt Flächenfarbe plus weicher Leuchtschatten – macht
       Buttons/Badges "gedruckt" statt wie eine flache CSS-Demo, siehe
       Mockup-Feedback vom Vorstand. */
    --color-accent-grad: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 82%, black));
    --glow-accent: 0 6px 16px -4px color-mix(in srgb, var(--color-accent) 45%, transparent);
    /* Durchscheinende Varianten der Akzentfarbe. Vorher standen hier feste
       rgba(230,0,0,...)-Werte, die beim Umstellen der Akzentfarbe im Admin
       rot geblieben waeren und die Seite zweifarbig gemacht haetten. */
    --accent-veil-strong: color-mix(in srgb, var(--color-accent) 55%, transparent);
    --accent-veil-soft: color-mix(in srgb, var(--color-accent) 35%, transparent);
    --accent-veil-mid: color-mix(in srgb, var(--color-accent) 50%, transparent);

    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.1875rem;
    --fs-xl: 1.375rem;
    --fs-h4: 1.375rem;
    --fs-h3: clamp(1.625rem, 2.6vw, 2rem);
    --fs-h2: clamp(2rem, 4vw, 2.75rem);
    --fs-h1: clamp(2.5rem, 5.6vw, 4rem);

    --fw-body: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.15;
    --lh-normal: 1.6;
    --ls-tight: -0.02em;
}

@font-face {
    font-family: "Anton";
    src: url("assets/fonts/anton.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------- */
/* Reset & Grundlagen                                  */
/* -------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-secondary);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
}

/* Feines Korn über der gesamten Seite (SVG-Rauschen als Overlay geblendet) –
   ohne das wirkt selbst ein durchdachtes Farbschema schnell wie ein flaches
   CSS-Demo statt wie ein fertig produziertes Stück Design. position:fixed
   auf body::after statt eines Wrapper-Divs: deckt den Viewport unabhängig
   vom Scroll ab, ohne das Markup anfassen zu müssen. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--color-accent);
    color: var(--color-secondary);
}

:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    letter-spacing: var(--ls-tight);
    text-wrap: balance;
    margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: 1.25; }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: 1.3; }

.eyebrow {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--s-2);
}

.section-heading {
    margin-bottom: var(--s-8);
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 0;
}

/* Bewusst KEIN max-width/padding hier: Hero, Ticker, dunkle Sektionen und
   Final-CTA sollen randlos über die volle Viewport-Breite gehen (wie im
   Mockup) – jede Sektion zentriert ihren eigenen Inhalt selbst, statt dass
   <main> schon die ganze Seite auf 1220px einengt. */
.site-main {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* -------------------------------------------------- */
/* Buttons                                             */
/* -------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-6);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-secondary);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--color-accent) 85%, black);
    box-shadow: var(--shadow-2);
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: inherit;
}

.btn-secondary:hover {
    border-color: var(--color-secondary);
}

/* -------------------------------------------------- */
/* Util-Bar (Social Links)                             */
/* -------------------------------------------------- */

/* Schmaler Streifen oberhalb des eigentlichen Headers, eigenständig fixiert
   statt Teil von .site-header – dadurch bleibt .site-header__spacer separat
   berechenbar und die Bar kann auf schmalen Viewports einfach wegfallen,
   ohne die Header-Logik anzufassen. */
.util-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: 51;
    background: var(--color-accent);
    color: var(--color-secondary);
}

.util-bar__inner {
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 7px 28px;
    display: flex;
    justify-content: flex-end;
    gap: var(--s-4);
}

.util-bar__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: inherit;
    opacity: 0.85;
}

.util-bar__social svg {
    width: 100%;
    height: 100%;
}

.util-bar__social:hover {
    opacity: 1;
}

/* -------------------------------------------------- */
/* Header & Navigation                                 */
/* -------------------------------------------------- */

.site-header {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 28px;
    z-index: 50;
    background: var(--color-secondary);
    color: var(--color-text);
    border-bottom: 1px solid var(--border-faint);
    transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}

.site-header[data-scrolled="true"] {
    box-shadow: var(--shadow-2);
    border-bottom-color: transparent;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    max-width: var(--content-width);
    margin-inline: auto;
    padding: var(--s-4) 28px;
}

.site-header__brand {
    flex-shrink: 0;
}

/* Header ist hell (wie die Navigation der echten ssv-meschede.de), daher
   braucht das Logo – ein flaches PNG mit weißem statt transparentem
   Hintergrund – keinen Kaschier-Trick mehr, es sitzt einfach auf der
   gleichen Fläche. */
.site-header__brand .custom-logo {
    display: block;
    height: 44px;
    width: auto;
    /* Das Logo ist ein sehr breites Wortmarken-Querformat (2376x241px). Ohne
       diese Bremse sprengt es bei fixer Höhe auf schmalen Viewports den
       gesamten Header und schiebt Nav/Button unsichtbar aus dem Bild. */
    max-width: 45vw;
}

/* Platzhalter, damit Inhalt nicht hinter dem fixierten Header verschwindet.
   100px = 28px Util-Bar + 72px Header; beide sind unabhängig fixiert. */
.site-header__spacer {
    height: 100px;
}

.site-title {
    color: var(--color-text);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
}

.site-header__nav {
    flex: 1;
}

.site-header__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
}

.site-header__nav > ul > li > a {
    position: relative;
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

/* Gleitender Unterstrich bei Hover statt reinem Farbwechsel – läuft von
   links nach rechts ein, exakt wie im Mockup. ::before statt ::after, weil
   ::after beim Dropdown-Auslöser schon für den Pfeil (Caret) reserviert ist. */
.site-header__nav > ul > li > a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 100%;
    inset-block-end: -4px;
    height: 2px;
    background: var(--color-accent);
    transition: inset-inline-end var(--dur-base) var(--ease);
}

.site-header__nav > ul > li > a:hover::before,
/* Aktive Seite bleibt dauerhaft unterstrichen statt nur bei Hover – WP setzt
   "current-menu-item" automatisch auf den passenden Menüpunkt. */
.site-header__nav > ul > li.current-menu-item > a::before,
.site-header__nav > ul > li.current_page_parent > a::before {
    inset-inline-end: 0;
}

.site-header__nav > ul > li.current-menu-item > a {
    color: var(--color-accent);
}

.site-header__nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Dropdowns ("Verein", "Abteilungen") entstehen allein durch verschachtelte
   Menüpunkte in WP-Admin (Appearance > Menüs) – WordPress rendert dafür
   automatisch li.menu-item-has-children > ul.sub-menu, ohne dass dieses
   Theme die Einträge selbst kennen oder hart verdrahten muss. */
.site-header__nav li {
    position: relative;
}

.site-header__nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-inline-start: var(--s-1);
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.site-header__nav .sub-menu {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    /* Direkt bündig unter dem Link (kein Abstand) – dadurch gibt es gar
       keine Lücke, über die die Maus den :hover-Zustand verlieren könnte.
       Ein zusätzlicher optischer Abstand würde hier nur unnötig das
       "Bridge-Trick"-Problem einführen, das er eigentlich lösen soll. */
    inset-block-start: 100%;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
    z-index: 60;
}

.site-header__nav .sub-menu a {
    display: block;
    padding: var(--s-2) var(--s-4);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    /* Ohne das greift die globale a{color:var(--color-accent)}-Regel – im
       Dropdown sollen die Einträge wie im Mockup schwarz/dunkel sein, nicht
       rot, Rot bleibt dem aktiven/Hover-Zustand vorbehalten. */
    color: var(--color-text);
}

.site-header__nav .sub-menu a:hover {
    background: var(--color-surface);
}

.site-header__nav .menu-item-has-children:hover > .sub-menu,
.site-header__nav .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}

/* Breite Variante für lange Listen (z.B. alle Abteilungen): in WP-Admin beim
   Menüpunkt unter "CSS-Klassen (optional)" die Klasse "wide-dropdown"
   eintragen (Screen Options > CSS-Klassen muss dafür aktiviert sein). */
.site-header__nav .wide-dropdown > .sub-menu {
    min-width: 420px;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-1) var(--s-4);
}

.site-header__nav .wide-dropdown:hover > .sub-menu,
.site-header__nav .wide-dropdown:focus-within > .sub-menu {
    display: grid;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.site-header__actions .btn {
    padding: var(--s-2) var(--s-5);
    font-size: var(--fs-sm);
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.site-header__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
}

.site-header__nav-mobile {
    display: none;
}

@media (max-width: 860px) {
    /* Util-Bar fällt auf schmalen Viewports weg statt mitzulaufen – spart die
       28px senkrecht, die dort eher fehlen als auf Desktop. */
    .util-bar {
        display: none;
    }

    .site-header {
        inset-block-start: 0;
    }

    .site-header__spacer {
        height: 72px;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__toggle {
        display: flex;
    }

    /* CTA-Button und Hamburger quetschen sich auf schmalen Screens
       gegenseitig – Mitgliedsantrag bleibt über das Menü erreichbar, der
       Button selbst weicht dem Hamburger, genau wie im Mockup.
       Spezifität .site-header__actions .site-header__cta (zwei Klassen)
       statt nur .site-header__cta: sonst gewinnt .skew{display:inline-flex}
       bei gleicher Spezifität allein durch spätere Position im Stylesheet. */
    .site-header__actions .site-header__cta {
        display: none;
    }

    .site-header__inner {
        gap: var(--s-3);
    }

    .site-header__actions {
        gap: var(--s-2);
    }

    .site-header__actions .btn {
        padding-inline: var(--s-3);
    }

    /* height:auto überschreibt die feste Höhe der Desktop-Regel bewusst:
       zusammen mit max-width sonst ohne Seitenverhältnis gequetscht statt
       verkleinert (Logo ist ein sehr breites Querformat, 1280×130px) – bei
       der letzten Vergrößerung (26px → 44px) ist das erst aufgefallen, weil
       32vw vorher zufällig nah genug an der alten, kleineren Breite lag. */
    .site-header__brand .custom-logo {
        height: auto;
        max-width: min(70vw, 320px);
    }

    /* Fixiertes Panel, das von rechts hereinfährt, statt eines Akkordeons
       unterhalb des Headers – exakt wie im Mockup. */
    .site-header__nav-mobile {
        position: fixed;
        inset-block-start: 72px;
        inset-inline: 0;
        inset-block-end: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: var(--color-secondary);
        padding: var(--s-3) var(--s-5) var(--s-8);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--dur-base) var(--ease);
        z-index: 39;
    }

    .site-header.is-nav-open .site-header__nav-mobile {
        transform: translateX(0);
    }

    .site-header__nav-mobile ul {
        display: flex;
        flex-direction: column;
    }

    .site-header__nav-mobile > ul > li {
        border-bottom: 1px solid var(--border-faint);
    }

    .site-header__nav-mobile a {
        display: block;
        padding-block: var(--s-4);
        font-size: var(--fs-lg);
        color: var(--color-text);
    }

    /* Mobil gibt es keinen Hover – der Pfeil-Button wird per JS neben jeden
       "menu-item-has-children"-Link gesetzt und klappt dessen .sub-menu auf. */
    .site-header__nav-mobile .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .site-header__nav-mobile .sub-menu-toggle {
        width: 2rem;
        height: 2rem;
        background: transparent;
        border: 0;
        color: var(--color-text);
        cursor: pointer;
    }

    .site-header__nav-mobile .sub-menu-toggle::after {
        content: "";
        display: block;
        margin: 0 auto;
        width: 8px;
        height: 8px;
        border-inline-end: 2px solid currentColor;
        border-block-end: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform var(--dur-fast) var(--ease);
    }

    .site-header__nav-mobile .is-submenu-open > .sub-menu-toggle::after {
        transform: rotate(225deg);
    }

    .site-header__nav-mobile .sub-menu {
        display: none;
        flex-direction: column;
        gap: var(--s-2);
        width: 100%;
        padding-inline-start: var(--s-4);
        margin-block-start: var(--s-2);
    }

    .site-header__nav-mobile .is-submenu-open > .sub-menu {
        display: flex;
    }
}

/* -------------------------------------------------- */
/* Hero (Startseite)                                   */
/* -------------------------------------------------- */

/* "Skew"-Motiv aus dem freigegebenen Mockup: ein leicht schräg gestelltes
   Parallelogramm statt braver Rechtecke für Badges/Buttons/Tags – Inhalt
   wird gegen-geneigt, damit Text/Icons selbst aufrecht bleiben. Bewusst als
   eigene, additive Utility statt .btn-primary/.btn-secondary zu verändern:
   die laufen an vielen Stellen im Theme (Formulare, Header), die bewusst
   ruhiger bleiben als der Startseiten-Auftritt. */
.skew {
    display: inline-flex;
    transform: skewX(-9deg);
    border-radius: 7px;
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.skew__face {
    transform: skewX(9deg);
    display: flex;
    align-items: center;
}

.btn-solid {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
}

.btn-solid .skew__face {
    padding: 15px 28px;
    color: var(--color-secondary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
}

.btn-solid:hover {
    transform: skewX(-9deg) translateY(-2px);
    box-shadow: 0 10px 24px -4px var(--accent-veil-strong);
}

/* Kompaktere Variante für den Header – .btn-solid ist sonst für große
   Flächen (Hero, Final-CTA) bemessen und würde die Kopfzeile sprengen. */
.site-header__cta .skew__face {
    padding: 11px 24px;
}

.btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
}

.btn-ghost .skew__face {
    padding: 13px 26px;
    color: var(--color-secondary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    transform: none;
}

.btn-ghost:hover {
    border-color: var(--color-secondary);
    transform: skewX(-9deg) translateY(-2px);
}

/* Helle Variante von .btn-ghost für Formulare auf normalen (hellen)
   Seiten statt dem dunklen Hero – .btn-ghost selbst ist mit weißem Rand/
   Text fest auf dunklen Hintergrund ausgelegt und dort unsichtbar. */
.btn-ghost-light {
    border: 2px solid var(--border-soft);
    border-radius: 7px;
    background: var(--color-secondary);
}

.btn-ghost-light .skew__face {
    padding: 13px 26px;
    color: var(--color-text);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    transform: none;
}

.btn-ghost-light:hover {
    border-color: var(--color-accent);
    transform: skewX(-9deg) translateY(-2px);
}

.display {
    font-family: var(--font-accent);
    text-transform: uppercase;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 72vh;
    overflow: hidden;
    background: linear-gradient(165deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 75%, black));
    color: var(--color-secondary);
}

/* Diagonaler Lichtstreifen als wiederkehrendes Markenelement (auch im
   Final-CTA weiter unten) – reines Lichtspiel, kein Foto nötig. */
.hero::after {
    content: "";
    position: absolute;
    inset-block-start: -40%;
    inset-inline-end: 8%;
    width: 260px;
    height: 220%;
    background: linear-gradient(100deg, transparent 40%, var(--accent-veil-mid) 48%, var(--accent-veil-mid) 54%, transparent 62%);
    transform: rotate(12deg);
    pointer-events: none;
}

/* Variante B: echtes Foto über den Customizer gesetzt – sehr verblasste,
   entsättigte Textur statt scharfem Bild (via <img>+Filter, nicht per
   CSS-background), damit das Foto Atmosphäre gibt ohne mit der
   Icon-Komposition oder dem Text zu konkurrieren. */
.hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: grayscale(1) contrast(1.3) brightness(1.02);
    opacity: 0.4;
    z-index: 0;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--color-primary) 25%, color-mix(in srgb, var(--color-primary) 75%, black) 100%);
    opacity: 0.68;
    z-index: 0;
}

.hero__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Läuft nach links zum Textbereich hin aus, statt hart abzuschneiden. */
.hero--pattern .hero__pattern {
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

/* Jedes Icon schwebt leicht auf und ab, Verzögerung/Dauer kommen pro Icon
   aus PHP (ssv_hero_pattern_svg) – dadurch nie synchron, wirkt organisch. */
.hero__icon {
    animation-name: ssv-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transform-origin: center;
}

@keyframes ssv-float {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(calc(var(--hero-icon-drift, 8px) * -1)) rotate(2deg); }
}

@keyframes ssv-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__icon {
        animation: none;
    }

    .hero__content {
        animation: none;
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin-inline: auto;
    width: 100%;
    padding: var(--s-20) 28px var(--s-16);
    box-sizing: border-box;
    animation: ssv-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-tag {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    margin-bottom: var(--s-6);
}

.hero-tag .skew__face {
    padding: 7px 16px;
    color: var(--color-secondary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
}

.hero__content .eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.hero__content h1 {
    color: var(--color-secondary);
    font-size: clamp(2.75rem, 8vw, 6.5rem);
    /* 0.9 ließ bei dieser Displayschrift (hohe x-Höhe, breite Versalien)
       "SSV" und "Meschede" in den zwei Zeilen ineinander laufen. */
    line-height: 1.05;
    letter-spacing: 0.005em;
    margin-bottom: var(--s-5);
}

.hero__content h1 .hl {
    color: var(--color-accent);
}

.hero__lead {
    font-size: var(--fs-lg);
    max-width: 38em;
    margin: 0 0 var(--s-8);
    color: rgba(255, 255, 255, 0.82);
    font-weight: var(--fw-medium);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
}

/* -------------------------------------------------- */
/* Ticker                                              */
/* -------------------------------------------------- */

/* Scoreboard-artiges Laufband direkt unter dem Hero. Inhalt im Markup
   bewusst verdoppelt (siehe front-page.php) – die Animation schiebt um
   exakt die halbe Breite, am Nahtpunkt ist kein Sprung erkennbar. */
.ticker {
    position: relative;
    z-index: 1;
    background: #000;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__track {
    display: inline-flex;
    align-items: center;
    animation: ssv-ticker 26s linear infinite;
}

.ticker__track span {
    display: inline-flex;
    align-items: center;
    padding-block: var(--s-2);
    font-size: 0.78rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.82);
}

.ticker__track span.hl {
    color: var(--color-accent);
    font-weight: var(--fw-bold);
}

.ticker__track span::after {
    content: "●";
    margin-inline: var(--s-6);
    font-size: 6px;
    color: rgba(255, 255, 255, 0.3);
    vertical-align: middle;
}

@keyframes ssv-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
}

/* -------------------------------------------------- */
/* Startseiten-Abschnitt (generisch)                   */
/* -------------------------------------------------- */

/* Eigene, additive Klasse statt die sitenweit geteilte .section-heading
   umzustellen: auf Team-/Downloads-/Kalenderseite ist eine linksbündige
   Überschrift richtig, auf der Startseite (Mockup-Vorgabe) eine zentrierte. */
.section {
    position: relative;
    /* z-index:0 (nicht nur position:relative) macht die Sektion zu ihrem
       EIGENEN Stapelkontext – sonst rutscht z-index:-1 der .bg-icons weiter
       unten bis in den Stapelkontext der ganzen Seite durch und landet
       hinter dem Hintergrund JEDER Sektion statt nur hinter dem eigenen
       Inhalt (die Icons wären dadurch unsichtbar). */
    z-index: 0;
    padding: var(--section-y) 28px;
}

/* Die Sektion selbst bleibt randlos (volle Viewport-Breite) – erst ihre
   direkten Kinder zentrieren sich auf 1220px. .bg-icons klinkt sich bewusst
   aus (siehe dort), damit die schwebenden Icons über die ganze Breite
   verteilt bleiben statt nur im 1220px-Streifen. */
.section > *,
.newsfeed > * {
    max-width: var(--content-width);
    margin-inline: auto;
}

/* Mockup gibt Unterseiten-Sektionen durchgehend einen leicht abgesetzten
   Papierton (--paper/--color-surface), die Startseite dagegen nicht –
   .section wird aber auf beiden geteilt (z.B. page-fotos.php,
   taxonomy-ssv_abteilung.php), daher die Eingrenzung über body.home. */
body:not(.home) .section {
    background: var(--color-surface);
}

.section .section-heading {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
}

.section .section-heading p {
    color: var(--color-text-muted);
    margin: 0;
}

.section-dark .section-heading {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
}

/* Dieselben Abteilungs-Icons wie im Hero, hier als sehr leise
   Hintergrundtextur in einzelnen Sektionen. */
.bg-icons {
    position: absolute;
    inset: 0;
    /* Überschreibt bewusst die generische ".section > *"-Regel: die Icons
       sollen bis an den echten Sektionsrand bluten, nicht nur bis zum
       1220px-Inhaltsstreifen. */
    max-width: none;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-icons svg {
    position: absolute;
    opacity: 0.09;
    transform: rotate(var(--rot, 0deg));
    animation: ssv-sway var(--dur, 17s) ease-in-out infinite;
}

@keyframes ssv-sway {
    0%   { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
    50%  { transform: translate(var(--dx, 22px), var(--dy, -16px)) rotate(calc(var(--rot, 0deg) + 5deg)); }
    100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
}

.section .bg-icons svg {
    color: var(--color-primary);
}

.section-dark .bg-icons svg {
    color: var(--color-secondary);
}

@media (prefers-reduced-motion: reduce) {
    .bg-icons svg {
        animation: none;
    }
}

/* -------------------------------------------------- */
/* Abteilungen-Raster (Funnelhub, Startseite)           */
/* -------------------------------------------------- */

/* Karten statt Kreis: ein Kreis mit genug Radius für alle Abteilungs-Chips
   nimmt auf Desktop eine riesige, zum großen Teil leere Fläche ein (die
   Chips sitzen nur am Rand, die Kreismitte bleibt weiß). Die
   Auflöse-Klick-Animation (main.js) rechnet beim Klick live mit
   getBoundingClientRect() und ist damit layout-unabhängig – sie läuft auf
   diesem Raster unverändert weiter.
   Flex statt Grid: bei 11 Abteilungen passt die letzte Zeile nie exakt voll
   (z.B. 7 + 4) – mit grid-template-columns bleiben die restlichen Spalten
   der letzten Zeile leer und die Karten kleben links, mit Flex +
   justify-content:center zentriert sich jede (auch unvollständige) Zeile
   für sich. Feste Breite statt 1fr, damit alle Karten gleich groß bleiben.
   Skew-Motiv (wie .skew bei Buttons/Tags) statt gerader Kästen, damit die
   Karten dieselbe "Bold Sport Energy"-Sprache sprechen wie der Rest der
   Seite: äußere Karte schräg gestellt, .dept-card__face gegen-geneigt,
   damit Icon und Text selbst aufrecht bleiben. */
/* Nach Kategorie gruppiert (Ballsport / Kampf & Fitness / Wassersport),
   alle drei Gruppen gleichzeitig sichtbar statt per Tab umschaltbar –
   Kategorien sind echte Eltern-Terms derselben Taxonomie. */
.dept-category {
    margin-bottom: var(--s-10);
}

.dept-category:last-child {
    margin-bottom: 0;
}

/* position:relative als Anker für .dept-category__label/__sublabel – beide
   werden per JS horizontal positioniert (main.js, positionDeptSublabels):
   .dept-grid zentriert alle seine Karten als EINE Zeile, hat eine Kategorie
   aber eine abgegrenzte Untergruppe (z.B. "Wassersport"/Schwimmen), soll die
   Haupt-Überschrift nur über ihren EIGENEN Karten mittig stehen, nicht über
   der ganzen Zeile inklusive Untergruppe. Reines text-align:center auf
   voller Breite würde das nicht abbilden. min-height reserviert die Zeile
   für den Text, da beide Labels aus dem normalen Textfluss genommen sind. */
.dept-category__header {
    position: relative;
    min-height: 1.4em;
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--border-faint);
}

.dept-category__label,
.dept-category__sublabel {
    position: absolute;
    top: 0;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    white-space: nowrap;
    transform: translateX(-50%);
}

/* Fallback, wenn main.js erkennt, dass die Karten dieser Kategorie in
   mehrere Zeilen umgebrochen sind (is-wrapped, siehe positionDeptSublabels):
   Labels normal im Textfluss statt absolut positioniert, dadurch kann
   nichts mehr übereinander landen. */
.dept-category__header.is-wrapped {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-1);
}

.dept-category__header.is-wrapped .dept-category__label,
.dept-category__header.is-wrapped .dept-category__sublabel {
    position: static;
    transform: none;
}

.dept-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-6);
}

/* Abteilung mit eigener Untergruppen-Bezeichnung (Term-Meta
   ssv_untergruppe) bekommt etwas mehr Abstand zur vorherigen Karte, damit
   sie sich sichtbar von der Hauptgruppe abhebt – das zugehörige Label sitzt
   in der Kopfzeile (.dept-category__sublabel), nicht direkt an der Karte. */
.dept-card[data-subgroup] {
    margin-inline-start: var(--s-8);
}

.dept-card {
    display: flex;
    /* 150px statt z.B. 180px, damit die größte Kategorie (Ballsport, 7
       Abteilungen) komplett in eine Zeile passt: 7×150px + 6×Gap bleibt
       unter der 1220px-Breite. Ein Zeilenumbruch mitten in einer Kategorie
       kostet unnötig Höhe, seit jede Kategorie ohnehin ihre eigene,
       kurze Zeile bekommt. */
    flex: 0 1 150px;
    background: var(--color-secondary);
    border: 1px solid var(--border-faint);
    border-radius: 7px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transform: skewX(-9deg);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.dept-card:hover {
    transform: skewX(-9deg) translateY(-4px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
}

.dept-card__face {
    transform: skewX(9deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    width: 100%;
    padding: var(--s-6) var(--s-4);
    color: var(--color-text);
    text-align: center;
}

.dept-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dept-card__icon svg,
.dept-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    color: var(--color-secondary);
}

.dept-card__name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    color: var(--color-text);
}

/* -------------------------------------------------- */
/* Newsfeed (Startseite)                               */
/* -------------------------------------------------- */

.newsfeed {
    padding: var(--section-y) 28px;
}

.news-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--s-6);
}

.team-member {
    background: var(--color-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding-bottom: var(--s-4);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.team-member img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-member h2 {
    font-size: var(--fs-lg);
    margin: var(--s-4) var(--s-4) var(--s-1);
}

.team-member .entry-content {
    margin: 0 var(--s-4);
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

/* News-Wall: großer Aufmacher (1.5fr) + zwei kleinere Meldungen daneben,
   wie im Mockup. Eigene Klassen statt der alten .news-layout/.news-feature –
   .news-list/.news-list__item direkt darunter bleiben unverändert bestehen,
   das Abteilungs-Archiv (taxonomy-ssv_abteilung.php) nutzt sie weiterhin. */
.news-wall {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--s-5);
}

/* Gleichmäßiges Raster für Listenseiten (Beitragsseite, Archive, Suche).
   Die Startseite hebt bewusst den ersten Beitrag hervor und nutzt deshalb
   die ungleichen Spalten oben; auf einer reinen Liste wäre das willkürlich. */
.news-wall--gleichmaessig {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.team-card__meta {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--s-2);
}

/* Blättern. WordPress erzeugt das Markup selbst (the_posts_pagination),
   die Klassennamen sind daher vorgegeben und nicht frei wählbar. */
.pagination {
    margin-top: var(--s-10);
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--s-3);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pagination .page-numbers:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination .page-numbers.current {
    background: var(--color-accent-grad);
    border-color: transparent;
    color: var(--color-secondary);
    box-shadow: var(--glow-accent);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* Vor- und Zurück-Blättern am Ende eines Beitrags. */
.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-4);
    margin-top: var(--s-10);
    padding-top: var(--s-6);
    border-top: 1px solid var(--border-faint);
}

.post-nav__link {
    max-width: 48%;
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--fw-semibold);
}

.post-nav__link:hover {
    color: var(--color-accent);
}

/* Mehrseitige Beiträge (wp_link_pages). */
.page-links {
    margin-top: var(--s-6);
    font-weight: var(--fw-semibold);
}

.page-links a {
    margin: 0 var(--s-2);
}

/* Kommentare. Auf Vereinsseiten meist abgeschaltet, auf Abteilungsseiten
   aber möglich – ohne diese Regeln sähe der Bereich ungestaltet aus. */
.comments {
    max-width: 63rem;
    margin: var(--s-12) auto 0;
    padding-top: var(--s-8);
    border-top: 1px solid var(--border-faint);
}

.comments__title {
    font-size: var(--fs-h4);
    margin-bottom: var(--s-6);
}

.comment-list {
    list-style: none;
    margin: 0 0 var(--s-8);
    padding: 0;
}

.comment-list li {
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--border-faint);
}

.comment-list .children {
    list-style: none;
    margin: var(--s-4) 0 0 var(--s-8);
    padding: 0;
}

.comments__closed {
    color: var(--color-text-muted);
}

@media (max-width: 860px) {
    .post-nav__link {
        max-width: 100%;
    }
}

.news-feat {
    /* Fallback, falls der Artikel kein Beitragsbild hat – die Inline-Style
       aus front-page.php überschreibt background-image dann mit dem echten
       Foto, color bleibt in beiden Fällen Weiß. */
    background: linear-gradient(160deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 75%, black));
    background-size: cover;
    background-position: center;
    color: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--s-8);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.news-feat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
}

.news-feat .tag {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    margin-bottom: var(--s-4);
    align-self: flex-start;
}

.news-feat .tag .skew__face {
    padding: 5px 12px;
    color: var(--color-secondary);
    font-weight: var(--fw-bold);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-feat h3 {
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: var(--fs-h3);
    margin: 0 0 var(--s-2);
    line-height: 1.05;
    color: var(--color-secondary);
}

.news-feat p {
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--fs-sm);
    margin: 0;
}

.news-sm {
    background: var(--color-secondary);
    border: 1px solid var(--border-faint);
    /* Ohne Schatten im Ruhezustand verschwimmt eine weiße Karte mit dünnem
       hellgrauen Rand komplett im weißen Seitenhintergrund – alle anderen
       Karten im Theme (.team-card, .download-card, .info-card, ...) haben
       deshalb schon bisher einen Ruhe-Schatten, nur .news-sm nicht. */
    box-shadow: var(--shadow-1);
    border-radius: var(--radius-lg);
    /* Ohne das ragte .news-sm__img (bleedet per Negativ-Margin bis an den
       Kartenrand) über die abgerundeten Ecken hinaus – die Karte wirkte
       dadurch eckig, obwohl border-radius längst gesetzt war. */
    overflow: hidden;
    padding: var(--s-4) var(--s-5) var(--s-5);
    display: flex;
    flex-direction: column;
    /* justify-content:space-between zusammen mit align-items:stretch aus dem
       umgebenden Grid (alle Karten so hoch wie die höchste) hat Bild und
       Text auseinandergezogen, sobald .news-feat daneben mehr Höhe vorgab
       als der eigene Inhalt brauchte – dadurch die große Lücke dazwischen. */
    justify-content: flex-start;
    color: var(--color-text);
    transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.news-sm:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
}

.news-sm__img {
    width: calc(100% + var(--s-10));
    margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-5)) var(--s-4);
    /* 120px schnitt bei den eher quadratischen/hochformatigen Vereinsfotos
       einen Großteil des Bildes weg – wirkte wie ein schmaler, willkürlich
       abgeschnittener Streifen statt eines Fotos. */
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-sm h4 {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin: 0 0 var(--s-2);
    color: var(--color-text);
}

.news-sm p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 860px) {
    .news-wall {
        grid-template-columns: 1fr;
    }
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-list__item {
    padding-block: var(--s-5);
    border-top: 1px solid var(--border-faint);
}

.news-list__item:first-child {
    padding-top: 0;
    border-top: none;
}

.news-list__item h4 {
    font-size: var(--fs-base);
    margin: 0 0 var(--s-1);
}

.news-list__item h4 a {
    color: var(--color-text);
}

.news-list__item h4 a:hover {
    color: var(--color-accent);
}

.news-list__item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

/* -------------------------------------------------- */
/* Mannschaften (Startseite)                           */
/* -------------------------------------------------- */

/* Eigene Kacheloptik statt .team-member (das ist für den Personen-Raster auf
   der Teamseite reserviert) – Vereinsrotes Liga-Tag als Wiedererkennung,
   dunkler Kartenkopf mit echtem Mannschaftsfoto statt Stockfoto. */
.team-card {
    display: block;
    background: var(--color-secondary);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    color: var(--color-text);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.team-card__top {
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    padding: var(--s-6) var(--s-5) var(--s-4);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.team-card__top .skew {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    margin-bottom: var(--s-2);
}

.team-card__top .skew__face {
    padding: 5px 12px;
    color: var(--color-secondary);
    font-size: 0.68rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.team-card__top h4 {
    font-family: var(--font-accent);
    color: var(--color-secondary);
    font-size: var(--fs-xl);
    margin: 0;
}

.team-card__body {
    padding: var(--s-5);
}

.team-card__body p {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--s-3);
}

.team-card__link {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-accent);
}

.team-card:hover .team-card__link {
    text-decoration: underline;
}

.team-card__body a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------- */
/* Sponsoren (Startseite)                              */
/* -------------------------------------------------- */

.section.sponsors {
    padding-block: var(--s-10);
}

.sponsor-eyebrow {
    text-align: center;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 auto var(--s-6);
}

/* Dieselbe Endlos-Lauftechnik wie der Ticker: Inhalt doppelt im Track,
   Animation schiebt um exakt die halbe Breite. Die Logo-Chips (134-150px)
   sind breiter als die vorher genutzte 10%-Masken-Ausblendzone (bei 1220px
   Breite nur 122px) – ein Chip konnte damit nie innerhalb der eigenen
   Breite sauber ausfaden und wirkte am Rand hart abgeschnitten. Ein
   Verlaufs-Overlay in der echten Hintergrundfarbe (statt Opacity-Maskierung)
   blendet die Logos stattdessen sichtbar ins Weiß über, unabhängig von der
   Chip-Breite. */
.sponsor-strip {
    position: relative;
    overflow: hidden;
}

.sponsor-strip::before,
.sponsor-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    /* Breiter als ein einzelner Logo-Chip (134-150px) – sonst reicht die
       Ausblendzone nicht, um ein kräftig eingefärbtes Logo (z.B. ein rotes
       Sparkassen-Logo) vollständig auszufaden, bevor der harte
       overflow:hidden-Rand greift. */
    width: 170px;
    z-index: 1;
    pointer-events: none;
}

.sponsor-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--color-secondary), transparent);
}

.sponsor-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--color-secondary), transparent);
}

.sponsor-track {
    display: inline-flex;
    align-items: center;
    gap: var(--s-10);
    animation: ssv-sponsor-scroll 34s linear infinite;
}

.sponsor-track .logo-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
    padding: var(--s-3) var(--s-6);
}

.sponsor-track .logo-chip img {
    display: block;
    height: 2rem;
    width: auto;
}

@keyframes ssv-sponsor-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-track {
        animation: none;
    }
}

/* -------------------------------------------------- */
/* Termine (Startseite, dunkler Abschnitt)             */
/* -------------------------------------------------- */

.section-dark {
    position: relative;
    z-index: 0;
    background: color-mix(in srgb, var(--color-primary) 92%, black);
    color: var(--color-secondary);
    padding: var(--section-y) 28px;
}

.section-dark > * {
    max-width: var(--content-width);
    margin-inline: auto;
}

.section-dark .section-heading h2,
.section-dark .section-heading .eyebrow {
    color: var(--color-secondary);
}

.section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.6);
}

.termine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-4);
}

.termine-grid .termin-card {
    display: flex;
    gap: var(--s-4);
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--s-5);
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}

.termine-grid .termin-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.termine-grid .termin-datum-badge {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
}

/* Trainingszeiten (wiederkehrend) bekommen hier ein neutrales Dunkelgrau
   statt der roten Akzentfarbe – die ist festen Terminen mit echtem Datum
   vorbehalten, sonst ließe sich auf den ersten Blick nicht unterscheiden,
   was ein einmaliger Termin und was ein fester Wochentag ist. */
.termine-grid .termin-datum-badge--recurring {
    background: linear-gradient(145deg, #3a3a3e, #1f1f22);
    box-shadow: none;
}

.termine-grid .termin-titel {
    color: var(--color-secondary);
    font-weight: var(--fw-bold);
}

.termine-grid .termin-meta {
    color: rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------- */
/* Foto-Teaser (Startseite)                            */
/* -------------------------------------------------- */

.photo-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
}

.photo-teaser-grid__tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform var(--dur-base) var(--ease);
}

.photo-teaser-grid__tile:hover {
    transform: scale(1.04);
}

@media (max-width: 640px) {
    .photo-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------------------- */
/* Downloads-Teaser (Startseite)                       */
/* -------------------------------------------------- */

/* Eigene Karten-Optik statt der .downloads-list/.download-item von der
   echten Downloadseite – dort passt eine kompakte Liste besser (potenziell
   viele Einträge), hier auf der Startseite sind es bewusst nur vier
   Türöffner-Kacheln zu den wichtigsten Dokumenten. */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--s-4);
}

.download-card {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    background: var(--color-secondary);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    padding: var(--s-4) var(--s-5);
    box-shadow: var(--shadow-1);
    color: var(--color-text);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    text-decoration: none;
}

.download-card .ic-wrap {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card .ic-wrap svg {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--color-secondary);
}

.download-card .meta strong {
    display: block;
    font-size: var(--fs-base);
}

.download-card .meta span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------- */
/* Final-CTA (Startseite)                              */
/* -------------------------------------------------- */

/* Einzige bewusste Ausnahme von der sonstigen Regel "Rot/Orange bleibt
   Buttons und Akzenten vorbehalten, nie Flächenfarbe" (siehe .util-bar,
   .site-footer): der letzte Moment vor dem Footer, auf ausdrücklichen
   Wunsch 1:1 nach dem freigegebenen "Bold Sport Energy"-Mockup. */
.final-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--color-primary), #3a0808 165%);
    padding: var(--s-20) 28px;
    text-align: center;
}

.final-cta::after {
    content: "";
    position: absolute;
    inset-block-start: -30%;
    inset-inline-start: -5%;
    width: 220px;
    height: 200%;
    background: linear-gradient(100deg, transparent 40%, var(--accent-veil-soft) 48%, var(--accent-veil-soft) 54%, transparent 62%);
    transform: rotate(-14deg);
    pointer-events: none;
}

.final-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin-inline: auto;
}

.final-cta h2 {
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.375rem);
    color: var(--color-secondary);
    margin: 0 0 var(--s-3);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-base);
    margin: 0 0 var(--s-8);
}

.team-member-position {
    margin: 0 var(--s-4);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    color: var(--color-accent);
}

/* -------------------------------------------------- */
/* Seiten-Grundgerüst (Team/Kalender/Downloads/Fotos)  */
/* -------------------------------------------------- */

/* Dunkles Intro-Banner für jede Unterseite (siehe template-parts/page-intro),
   einheitlich statt der früheren, je Seite leicht unterschiedlichen
   linksbündigen .section-heading-Köpfe. */
.page-intro {
    background: var(--color-primary);
    color: var(--color-secondary);
    /* var(--s-14) existiert nicht in der Spacing-Skala (sie springt von
       --s-12 auf --s-16) – ein var(), das auf eine nicht existierende Custom
       Property zeigt und keinen Fallback hat, macht die GESAMTE
       padding-Deklaration ungültig, nicht nur den einen Wert. Dadurch hatte
       .page-intro zuletzt gar kein Padding, die Überschrift klebte am
       oberen Rand (sichtbar z.B. auf der Fotoseite). */
    padding: var(--s-16) 28px 56px;
    text-align: center;
}

.page-intro .eyebrow {
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 auto var(--s-3);
}

.page-intro h1 {
    /* Muss explizit gesetzt werden: die globale h1-Regel (color:
       var(--color-text)) zielt direkt auf das Element und schlägt damit
       immer die reine Vererbung von .page-intro, egal wie hoch dessen
       Spezifität ist. */
    color: var(--color-secondary);
    font-size: clamp(2.1rem, 5vw, 3.375rem);
    margin: 0 auto var(--s-3);
}

.page-intro p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-base);
    max-width: 38em;
    margin: 0 auto;
}

/* Wie .section: randlos (volle Breite) für die Flächenfarbe, erst die
   direkten Kinder zentrieren sich auf var(--content-width). */
.page-section {
    padding: var(--section-y) 28px;
    box-sizing: border-box;
    background: var(--color-surface);
}

.page-section > * {
    max-width: var(--content-width);
    margin-inline: auto;
}

/* Lesetypografie für lange Fließtext-Seiten (Impressum, Datenschutz). */
.prose {
    max-width: 42rem;
    /* Fehlte bisher: .prose liegt in .page-section (1220px breit), ohne
       eigenes margin-inline:auto klebte der schmalere Textblock links an
       dessen Rand, statt sich wie das Bild darüber (.article-figure) zu
       zentrieren. */
    margin-inline: auto;
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
}

/* Für kurze, profilartige Texte (z.B. Mannschafts-Einzelseite) – fließender
   Lauftext (Impressum, Satzung, ...) bleibt bewusst linksbündig, da
   zentrierter Fließtext ab mehr als 2-3 Zeilen schwerer lesbar wird.
   63rem (= 42rem × 1,5) statt der sonstigen Leseweite: bei zentriertem Text
   unter einem Bild wirkt dieselbe Breite wie das Bild schnell gequetscht,
   das Bild selbst bleibt bewusst bei 42rem. */
.prose--centered {
    max-width: 63rem;
    text-align: center;
}

/* Für News-Artikel – gleiche verbreiterte Lesespalte wie bei
   .prose--centered (63rem = 42rem × 1,5), aber linksbündig: Fließtext über
   mehrere Absätze bleibt links besser lesbar, nur die Breite wirkte neben
   dem vollbreiten .page-section zu schmal/gequetscht. */
.prose--wide {
    max-width: 63rem;
}

/* Breite und randlose Blöcke aus dem Block-Editor. .prose ist bewusst auf
   Lesebreite begrenzt; diese beiden Ausrichtungen sollen genau da ausbrechen.
   Umgesetzt über negative Ränder statt über eine andere Breite, weil der Block
   dadurch unabhängig davon funktioniert, wie breit sein Elternteil gerade ist. */
.prose .alignwide {
    max-width: 63rem;
    width: calc(100vw - 56px);
    margin-inline: calc(50% - min(31.5rem, 50vw - 28px));
}

.prose .alignfull {
    width: 100vw;
    max-width: 100vw;
    /* Zieht den Block aus dem Innenabstand von .page-section heraus bis an die
       Fensterkante. */
    margin-inline: calc(50% - 50vw);
}

.prose .alignfull img,
.prose .alignwide img {
    width: 100%;
    height: auto;
}

/* Linksbündig und rechtsbündig umflossene Blöcke. Gehören zum Standard-Umfang
   des Block-Editors und fehlten bisher ebenfalls. */
.prose .alignleft {
    float: left;
    margin: 0 var(--s-6) var(--s-4) 0;
    max-width: 50%;
}

.prose .alignright {
    float: right;
    margin: 0 0 var(--s-4) var(--s-6);
    max-width: 50%;
}

.prose .aligncenter {
    margin-inline: auto;
    text-align: center;
}

@media (max-width: 680px) {
    /* Auf schmalen Bildschirmen ist Umfließen unlesbar – dort untereinander. */
    .prose .alignleft,
    .prose .alignright {
        float: none;
        max-width: 100%;
        margin-inline: 0;
    }
}

/* Inhalte, die mit Elementor gebaut wurden. Elementor bringt eigene Spalten,
   Abstände und Breiten mit; die Lesebreite von .prose würde diese Layouts
   zusammenstauchen. Deshalb hier die Begrenzung aufheben und die typografischen
   Vorgaben zurücknehmen, damit Elementor seine eigenen Werte durchsetzen kann.
   Gesetzt wird die Klasse automatisch, siehe ssv_inhalt_klasse(). */
.prose--full {
    max-width: none;
}

/* Elementors äußere Container bringen ihre eigene Zentrierung mit – ohne das
   Zurücksetzen käme die von .prose geerbte noch einmal obendrauf. */
.prose--full > .elementor,
.prose--full > .elementor-element {
    margin-inline: 0;
}

/* .prose setzt für Fließtext bewusst enge Abstände und eine feste Schriftgröße.
   Innerhalb eines Elementor-Layouts sind das Fremdkörper: Dort bestimmt der
   Baukasten, wie groß eine Überschrift ist und wieviel Luft darunter liegt. */
.prose--full h1,
.prose--full h2,
.prose--full h3,
.prose--full h4,
.prose--full p,
.prose--full ul,
.prose--full ol {
    max-width: none;
    margin-inline: 0;
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 var(--s-5);
}

.prose ul,
.prose ol {
    padding-inline-start: var(--s-6);
}

.prose li {
    list-style: revert;
    margin-bottom: var(--s-2);
}

.prose h2,
.prose h3 {
    margin-top: var(--s-10);
}

.prose a {
    text-decoration: underline;
}

.prose img {
    cursor: zoom-in;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------- */
/* Downloads & Termine                                 */
/* -------------------------------------------------- */

/* Deutlich abgesetzte Zwischenüberschrift samt Kurzbeschreibung statt
   zweier gleich aussehender <h2> direkt übereinander – auf der
   Kalenderseite soll sofort auffallen, dass "Kommende Termine" (festes
   Datum) und "Trainingszeiten" (wiederkehrend) zwei verschiedene Dinge
   sind, nicht nur zwei Listen im selben Stil. */
.calendar-section-heading {
    margin-top: var(--s-12);
    margin-bottom: var(--s-8);
    padding-bottom: var(--s-3);
    border-bottom: 2px solid var(--border-faint);
}

.calendar-section-heading:first-child {
    margin-top: 0;
}

.calendar-section-heading h2 {
    margin: 0 0 var(--s-1);
}

.calendar-section-heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.calendar-section-heading--recurring {
    border-bottom-color: var(--color-accent);
}

/* Kalenderseite liegt komplett in .section-dark (wie der Termine-Teaser der
   Startseite) – die sonst dunkle Standardschrift/der helle Trennstrich der
   Zwischenüberschrift müssen hier auf Hell gedreht werden. */
.section-dark .calendar-section-heading {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.section-dark .calendar-section-heading h2 {
    color: var(--color-secondary);
}

.section-dark .calendar-section-heading p {
    color: rgba(255, 255, 255, 0.6);
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-top: var(--s-8);
}

.download-item {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4);
    background: var(--color-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-sm);
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
}

.download-title {
    font-weight: var(--fw-semibold);
}

.termin-datum-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
}

/* Trainingszeiten (wiederkehrend) bekommen die Akzentfarbe statt des
   dunklen Kalender-Datums – macht auf einen Blick klar, dass hier kein
   festes Datum, sondern ein fester Wochentag gemeint ist. */
.termin-datum-badge--recurring {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
}

.termin-datum-badge__tag {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.termin-datum-badge__monat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.termin-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.termin-titel {
    font-weight: var(--fw-semibold);
}

.termin-meta {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

/* -------------------------------------------------- */
/* Artikel-Hero (einzelner News-Beitrag)                */
/* -------------------------------------------------- */

.article-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center 25%;
    color: var(--color-secondary);
    overflow: hidden;
}

.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.9), rgba(10, 10, 12, 0.15) 65%);
    z-index: 0;
}

/* Reines Text-Banner ohne Foto-Hintergrund: die vorhandenen Beitragsbilder
   sind oft nur 640–680px breit und wirkten als full-bleed-Hintergrund über
   1200px+ sichtbar verpixelt. Das Foto zeigt stattdessen .article-figure
   weiter unten, nah an seiner echten Auflösung. */
.article-hero--text-only {
    min-height: 0;
    align-items: stretch;
    background-image: none;
}

.article-hero--text-only::before {
    display: none;
}

.article-hero--text-only .article-hero__inner {
    padding-block: var(--s-16) var(--s-10);
}

.article-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin-inline: auto;
    padding: var(--s-10) var(--s-5) var(--s-8);
    width: 100%;
}

.article-hero .tag {
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    margin-bottom: var(--s-4);
}

.article-hero .tag .skew__face {
    padding: 5px 12px;
    color: var(--color-secondary);
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-hero h1 {
    color: var(--color-secondary);
    font-size: clamp(1.75rem, 4.4vw, 2.75rem);
    line-height: 1.05;
    margin: 0 0 var(--s-3);
}

.article-hero .meta {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

@media (max-width: 640px) {
    .article-hero:not(.article-hero--text-only) {
        min-height: 260px;
    }
}

/* Beitragsbild in der Inhaltsspalte statt als hochskalierter Hintergrund –
   gleiche Breite wie der Fließtext (.prose), Höhe ergibt sich aus dem
   eigenen Seitenverhältnis des Fotos statt eines erzwungenen Zuschnitts. */
.article-figure {
    max-width: 42rem;
    margin: 0 auto var(--s-8);
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* -------------------------------------------------- */
/* Abteilungs-Einzelseite                              */
/* -------------------------------------------------- */

.abteilung-badge {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--s-5);
}

.abteilung-badge svg,
.abteilung-badge img {
    width: 44px;
    height: 44px;
    color: var(--color-secondary);
}

.abteilung-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    box-shadow: var(--shadow-1);
}

.info-card h4 {
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 var(--s-2);
}

.info-card p {
    font-size: var(--fs-base);
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.info-card a {
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
}

.info-card a:hover {
    text-decoration: underline;
}

.venue-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-accent);
}

.venue-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.abteilung-news-heading {
    text-align: center;
    font-size: var(--fs-h3);
    margin: var(--s-10) 0 var(--s-6);
}

.abteilung-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--s-4);
}

.abteilung-news-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding-block: var(--s-3);
}

@media (max-width: 860px) {
    .abteilung-info-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------- */
/* Fotoseite: Suche, Alben-Filter, Foto-Gitter          */
/* -------------------------------------------------- */

.gallery-search {
    max-width: 30rem;
    margin: 0 auto var(--s-8);
    position: relative;
}

.gallery-search svg {
    position: absolute;
    inset-inline-start: var(--s-4);
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.gallery-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: var(--s-3) var(--s-5) var(--s-3) calc(var(--s-5) + var(--s-5));
    font: inherit;
    font-size: var(--fs-sm);
    color: var(--color-secondary);
}

.gallery-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gallery-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

/* Alben als runde Cover-Buttons statt eckiger Karten – macht "Sammlung"
   gegenüber "Einzelfoto" im .photo-grid darunter auf den ersten Blick
   unterscheidbar, ohne ein zweites Karten-Muster einzuführen. */
.album-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-6);
    margin-bottom: var(--s-10);
}

.album-card {
    background: none;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    width: 110px;
    cursor: pointer;
    font: inherit;
}

.album-cover {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
    transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.album-card:hover .album-cover {
    transform: scale(1.05);
}

.album-card.is-active .album-cover {
    box-shadow: 0 0 0 3px var(--color-accent);
}

.album-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-secondary);
}

.album-count {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
}

.photo-tile {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: zoom-in;
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.photo-tile:hover {
    box-shadow: var(--shadow-2);
    transform: scale(1.04);
}

.photo-tile[hidden] {
    display: none;
}

.gallery-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    padding-block: var(--s-10);
}

@media (max-width: 860px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-grid {
        gap: var(--s-4) var(--s-3);
    }

    .album-card {
        width: 84px;
    }

    .album-cover {
        width: 72px;
        height: 72px;
    }
}

/* -------------------------------------------------- */
/* Lightbox (Fotoseite)                                */
/* -------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 9, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s-10);
    z-index: 300;
}

.lightbox.is-active {
    display: flex;
}

.lightbox img {
    width: min(92vw, 1400px);
    height: min(88vh, 1400px);
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    inset-block-start: var(--s-6);
    inset-inline-end: var(--s-6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------- */
/* Vereinsheim-Galerie                                 */
/* -------------------------------------------------- */

.vereinsheim-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-3);
    margin-top: var(--s-8);
}

.vereinsheim-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
    .vereinsheim-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------------------- */
/* Verein-Inhalte (Vorstand, Mitgliedschaft, Formulare) */
/* -------------------------------------------------- */

/* 3 feste Spalten statt auto-fill/minmax: bei 220px-Mindestbreite passten
   auf typischen Desktop-Breiten 4-5 Karten in eine Zeile statt der im
   Mockup vorgesehenen 3 – bei 6 Personen ergab das eine andere Zeilen-
   aufteilung (4+2 statt 3+3) als im Mockup. */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}

@media (max-width: 640px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
}

.board-card {
    padding: var(--s-6) var(--s-5);
    background: var(--color-secondary);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    text-align: center;
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.board-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--s-3);
    background: var(--color-accent-grad);
    box-shadow: var(--glow-accent);
    color: var(--color-secondary);
    border-radius: 50%;
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
}

.board-card__role {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 var(--s-2);
}

.board-card__name {
    margin: 0 0 var(--s-2);
}

.board-card__contact {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.fee-table {
    display: flex;
    flex-direction: column;
    margin-block: var(--s-5);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
}

.fee-row + .fee-row {
    border-top: 1px solid var(--border-faint);
}

.fee-row strong {
    font-family: var(--font-accent);
    font-size: var(--fs-base);
    color: var(--color-accent);
    white-space: nowrap;
}

/* Echte Formulare (Mitgliedschaft, Kontakt) – POSTen an admin-post.php,
   kein Mock mehr wie im Entwurfs-Mockup. */
.ssv-form {
    margin-block: var(--s-6);
}

.ssv-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
}

.ssv-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
    font-size: 0.78rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.ssv-form__field--wide {
    grid-column: 1 / -1;
}

.ssv-form__field input,
.ssv-form__field textarea {
    font: inherit;
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: var(--color-text);
}

.ssv-form__field input:focus,
.ssv-form__field textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

/* Spam-Falle für Bots: visuell und für Screenreader unsichtbar, aber im DOM
   vorhanden – ein ausgefülltes Feld verrät ein Skript statt eines Menschen. */
.ssv-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ssv-form__notice {
    padding: var(--s-4) var(--s-5);
    margin-bottom: var(--s-6);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

.ssv-form__notice--success {
    background: color-mix(in srgb, #1a8a4a 12%, transparent);
    color: #0f5c30;
    border: 1px solid color-mix(in srgb, #1a8a4a 30%, transparent);
}

.ssv-form__notice--error {
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    color: color-mix(in srgb, var(--color-accent) 70%, black);
    border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
}

@media (max-width: 640px) {
    .ssv-form__grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */

.site-footer {
    margin-top: var(--section-y);
    background: var(--color-accent);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--s-8) 28px;
}

.site-footer__inner {
    max-width: var(--content-width);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    font-size: var(--fs-sm);
}

.site-footer__inner a {
    color: var(--color-secondary);
}

.site-footer__inner a:hover {
    text-decoration: underline;
}
