/* ═══════════════════════════════════════════════════════════════════
 *
 *   assets/css/frontend.css
 *   Torrausch Liga-Seite
 *
 *   ─────────────────────────────────────────────────────────────────
 *
 *   Ersteller:  Wasserlasser
 *   Stand:      April 2026
 *
 *   ─────────────────────────────────────────────────────────────────
 *
 *   Inhalt dieser Datei:
 *     - CSS-Reset
 *     - CSS-Variablen (Farben, Schatten)
 *     - Basis-Typografie
 *     - Meta-Bar
 *     - Header (Logo, Brand, Top-Navigation)
 *     - Hero (Eyebrow, Titel, Untertitel, ZAT-Karte)
 *     - Section-Head (universeller Sektions-Header)
 *     - Match-Rail (horizontale Card-Liste, ueberlappt den Hero)
 *     - Match-Card
 *     - Main-Grid (Tabellen links, Sidebar rechts)
 *     - Table-Top (Top-5-Tabelle)
 *     - Full-Table (volle Tabelle, klassisch)
 *     - Aside-Card (Sidebar-Kacheln)
 *     - News-Item (Sidebar-Newseintrag)
 *     - My-Team (Mein-Verein-Card)
 *     - Stats-Strip (dunkle Sektion mit vier Rekord-Kacheln)
 *     - Footer (vier Spalten + Copyright)
 *     - Accessibility (prefers-reduced-motion)
 *
 * ═══════════════════════════════════════════════════════════════════
 */


/* ═══ RESET ═════════════════════════════════════════════════════════ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ═══ VARIABLEN ═════════════════════════════════════════════════════ */
/*
 * Zwei Gruppen:
 *
 *  1) LIGA-SPEZIFISCH (--c-primaer, --c-sekundaer, --c-tertiaer, --c-bg-dark)
 *     Diese Farben sollen spaeter vom Ligaleiter ueber das Backend gepflegt
 *     werden koennen. Die Defaults hier sind die MLS-Werte. Sobald in
 *     Schritt 1 das header.php aus $LC einen Inline-<style>-Block rendert,
 *     ueberschreibt der diese Defaults pro Liga.
 *
 *  2) NEUTRALE DEFAULTS (--c-bg, --c-text, --c-text-mut, --c-border, --c-card)
 *     Gelten fuer alle Ligen einheitlich, sind (vorerst) nicht ueber $LC
 *     ueberschreibbar. Architektur ist offen dafuer, falls spaeter doch
 *     ein Slot dazukommen soll.
 *
 * Beispiel: Umstellung auf eine Bundesliga-aehnliche Liga (Schwarz/Rot/Gold)
 * In config/league.php waere zu setzen:
 *
 *     $LC['farbe_primaer']   = '#1A1A1A';   // Schwarz
 *     $LC['farbe_sekundaer'] = '#DD0000';   // Rot
 *     $LC['farbe_tertiaer']  = '#FFCE00';   // Gold
 *     $LC['farbe_dunkel']    = '#000000';   // tiefer als primaer
 *
 * Das header.php greift in Schritt 1 auf diese Felder zu und schreibt
 * im <head>:
 *
 *     <style>
 *       :root {
 *         --c-primaer:   #1A1A1A;
 *         --c-sekundaer: #DD0000;
 *         --c-tertiaer:  #FFCE00;
 *         --c-bg-dark:   #000000;
 *       }
 *     </style>
 *
 * Mehr ist fuer einen Liga-Wechsel nicht noetig — alle anderen Tokens
 * (--c-bg, Schatten, etc.) bleiben unveraendert.
 */
:root {
    /* Liga-spezifisch — werden ab Schritt 1 von $LC ueberschrieben */
    --c-primaer:   #1B2D5C;     /* MLS Navy */
    --c-sekundaer: #C4262E;     /* MLS Rot */
    --c-tertiaer:  #FFFFFF;     /* MLS Weiss */
    --c-bg-dark:   #0E1632;     /* dunkler als primaer, Endpunkt im Hero-Verlauf */

    /* Neutrale Defaults — gelten fuer alle Ligen */
    --c-bg:        #F4F5F8;     /* Seitenhintergrund */
    --c-text:      #1A1F2E;     /* Haupt-Textfarbe */
    --c-text-mut:  #6B7280;     /* sekundaerer Text, Meta-Infos */
    --c-border:    #E5E7EB;     /* Trennlinien */
    --c-card:      #FFFFFF;     /* Karten-Hintergrund */

    /* Schatten
     * Hinweis: --shadow-lg enthaelt aktuell einen MLS-Navy-Tint
     * (rgba(27,45,92,.15) == #1B2D5C bei 15%). Bei einer anderen Liga
     * faerbt das den grossen Schatten leicht in die MLS-Farbe ein.
     * Wir lassen das vorerst so — wenn das beim Bauen stoert, koennen
     * wir es auf rgba(0,0,0,.15) neutralisieren oder ueber eine eigene
     * --c-primaer-rgb-Variable an die Liga koppeln.
     */
    --shadow-sm:   0 1px 2px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
    --shadow-md:   0 4px 8px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:   0 12px 40px rgba(27,45,92,.15);
}


/* ═══ BASIS-TYPOGRAFIE ══════════════════════════════════════════════ */
/*
 * Inter ist die UI-Schrift fuer Lauftext, Navigation, Tabellen.
 * Bebas Neue wird komponentenseitig per font-family gesetzt
 * (Hero-Titel, Section-Heads, grosse Zahlen).
 *
 * Beide Schriften werden ueber Google Fonts in layout/header.php
 * eingebunden.
 */
html,
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


/* ═══ META-BAR (schwarz, schmal — ganz oben) ════════════════════════ */
.metabar {
    background: #000;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    padding: 8px 0;
}
.metabar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.metabar__league-switch {
    display: flex;
    gap: 8px;
}
.metabar__league-switch a {
    padding: 4px 10px;
    border-radius: 4px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s;
}
.metabar__league-switch a:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.metabar__league-switch a.active {
    background: var(--c-sekundaer);
    color: #fff;
}
.metabar__user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.metabar__user a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
}
.metabar__user a:hover {
    color: #fff;
}


/* ═══ HEADER (weiss, sticky) ════════════════════════════════════════ */
.header {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}
.header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--c-text);
}
.header__logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--c-primaer), var(--c-sekundaer));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.header__brand-text {
    display: flex;
    flex-direction: column;
}
.header__brand-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.3px;
}
.header__brand-sub {
    font-size: 11px;
    color: var(--c-text-mut);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header__nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    align-items: center;
}
.header__nav a {
    padding: 10px 14px;
    text-decoration: none;
    color: var(--c-text);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all .2s;
    position: relative;
}
.header__nav a:hover {
    background: var(--c-bg);
}
.header__nav a.active {
    color: var(--c-primaer);
    font-weight: 700;
}
.header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--c-sekundaer);
    border-radius: 2px;
}


/* ═══ HERO (dunkler Verlauf, voller Breite) ═════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-primaer) 100%);
    color: #fff;
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196,38,46,.4) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ADE80;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .6; transform: scale(.85); }
}
.hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .9;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.hero__title em {
    font-style: normal;
    color: var(--c-sekundaer);
    text-shadow: 0 0 40px rgba(196,38,46,.5);
}
.hero__subtitle {
    font-size: 18px;
    opacity: .85;
    max-width: 540px;
    margin-bottom: 32px;
}
.hero__zat {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 280px;
}
.hero__zat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .7;
    margin-bottom: 8px;
}
.hero__zat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    line-height: 1;
    color: var(--c-sekundaer);
    margin-bottom: 4px;
}
.hero__zat-date {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero__zat-meta {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero__zat-meta-item {
    font-size: 13px;
}
.hero__zat-meta-num {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}
.hero__zat-meta-label {
    opacity: .6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ═══ SECTION-HEAD (universell — Match-Rail, Top-5, Stats-Strip) ════ */
/*
 * Universeller Sektions-Header mit Titel + optionalem Subtitle links
 * und optionalem Link rechts. Erbt die Textfarbe vom Container, damit
 * er auf hellem (Main-Grid) und auf dunklem Hintergrund (Match-Rail
 * auf dem Hero) gleichermassen funktioniert.
 */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
    color: inherit;
}
.section-head__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    line-height: 1;
}
.section-head__sub {
    font-size: 13px;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.section-head__link {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
    transition: opacity .2s;
}
.section-head__link:hover {
    opacity: 1;
}


/* ═══ MATCH-RAIL (horizontale Card-Liste) ═══════════════════════════ */
/*
 * Sitzt direkt unter dem Hero und ueberlappt ihn um 60px nach oben.
 * Die Cards werden horizontal scrollbar gemacht (Scroll-Snap), damit
 * sich auch zehn Begegnungen sauber unter dem Hero zeigen lassen.
 *
 * Da die Rail visuell auf dem Hero sitzt, setzen wir hier die Textfarbe
 * fuer den Section-Head explizit auf Weiss (gegen den dunklen Hintergrund).
 */

.match-rail {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}
.match-rail__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.match-rail .section-head {
    color: #fff;
}
.match-rail__scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.match-rail__scroll::-webkit-scrollbar {
    height: 6px;
}
.match-rail__scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 3px;
}


/* ═══ MATCH-CARD ════════════════════════════════════════════════════ */
/*
 * Fixe Breite 280px, weisser Card-Hintergrund, 3px Top-Border in der
 * Wettbewerbs-Farbe (Liga = sekundaer, Pokal = Gold, kommt in Schritt 4
 * dazu). Die Wappen werden als 56px-Kreise mit object-fit: cover maskiert
 * — wenn ein Wappen quadratisch und randvoll ist, wird leicht beschnitten,
 * was uns laut Spec (5.1) so recht ist.
 */
.match-card {
    flex: 0 0 280px;
    background: var(--c-card);
    border-radius: 12px;
    padding: 20px;
    scroll-snap-align: start;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all .25s;
    border-top: 3px solid var(--c-sekundaer);
}
.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.match-card__competition {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-sekundaer);
    margin-bottom: 14px;
}
.match-card__competition--cup {
    color: #B8860B;
}
.match-card__matchday {
    font-size: 11px;
    color: var(--c-text-mut);
    margin-bottom: 12px;
}
.match-card__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.match-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.match-card__crest {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.match-card__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.match-card__vs {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--c-text-mut);
}
.match-card__score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--c-text);
    line-height: 1;
}
.match-card__time {
    background: var(--c-bg);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-mut);
}
.match-card__time strong {
    color: var(--c-text);
    display: block;
}


/* ═══ MAIN-GRID (Tabellen links, Sidebar rechts) ════════════════════ */
/*
 * Zwei Spalten: 2/3 fuer die Tabellen, 1/3 fuer die Sidebar.
 * Section-Heads in diesem Block stehen auf hellem Hintergrund — daher
 * Textfarbe explizit auf --c-text (im Match-Rail war's #fff).
 */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.main .section-head {
    color: var(--c-text);
    margin-bottom: 20px;
}


/* ═══ TABLE-TOP (Top-5-Tabelle, dunkler Liga-farbiger Card-Block) ═══ */
.table-top {
    background: linear-gradient(135deg, var(--c-primaer) 0%, var(--c-bg-dark) 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.table-top::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    background: radial-gradient(ellipse at right, rgba(196,38,46,.2), transparent 70%);
    pointer-events: none;
}
.table-top__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
    position: relative;
}
.table-top__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
}
.table-top__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.table-top__row {
    display: grid;
    grid-template-columns: 32px 60px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255,255,255,.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.05);
    transition: all .2s;
}
.table-top__row:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
    transform: translateX(4px);
}
.table-top__rank {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    line-height: 1;
}
.table-top__row--top .table-top__rank {
    color: var(--c-sekundaer);
}
.table-top__row--first .table-top__rank {
    color: #FFD700;
}
.table-top__crest {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.table-top__team-name {
    font-size: 15px;
    font-weight: 600;
}
.table-top__team-record {
    font-size: 11px;
    opacity: .6;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.table-top__points {
    text-align: right;
}
.table-top__points-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
}
.table-top__points-label {
    font-size: 10px;
    opacity: .6;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ═══ FULL-TABLE (volle Tabelle, klassische HTML-Tabelle) ═══════════ */
.full-table-wrap {
    background: var(--c-card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.full-table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-mut);
    font-weight: 600;
    padding: 8px 8px 16px;
    border-bottom: 2px solid var(--c-border);
}
.full-table th.num,
.full-table td.num {
    text-align: center;
}
.full-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--c-border);
}
.full-table tbody tr {
    transition: background .15s;
}
.full-table tbody tr:hover {
    background: var(--c-bg);
}
.full-table__pos {
    font-weight: 700;
    width: 32px;
    text-align: center;
    position: relative;
}
.full-table__pos--cl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px; bottom: 8px;
    width: 3px;
    background: var(--c-sekundaer);
    border-radius: 2px;
}
.full-table__pos--rel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px; bottom: 8px;
    width: 3px;
    background: #DC2626;
    border-radius: 2px;
}
.full-table__team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.full-table__team img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.full-table__pts {
    font-weight: 800;
    font-size: 16px;
    color: var(--c-primaer);
}
.full-table__legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    font-size: 11px;
    color: var(--c-text-mut);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.full-table__legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.full-table__legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}


/* ═══ ASIDE-CARD (Sidebar-Container) ════════════════════════════════ */
.aside-card {
    background: var(--c-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.aside-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-border);
}
.aside-card__hint {
    font-size: 13px;
    color: var(--c-text-mut);
    margin-bottom: 16px;
}
.aside-card__cta {
    display: block;
    background: var(--c-primaer);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity .2s;
}
.aside-card__cta:hover {
    opacity: .9;
}


/* ═══ NEWS-ITEM (Eintrag in der News-Sidebar) ═══════════════════════ */
.news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    transition: padding .2s;
}
.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news-item:hover {
    padding-left: 6px;
}
.news-item__date {
    font-size: 11px;
    color: var(--c-sekundaer);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}
.news-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}
.news-item__excerpt {
    font-size: 12px;
    color: var(--c-text-mut);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ═══ MY-TEAM (Mein-Verein-Card, eingeloggter State) ════════════════ */
/*
 * Im Mockup ist nur der Logout-State ausgemockt. Diesen Login-State
 * haben wir hier in BEM-Manier ergaenzt — Wappen zentriert oben, Name
 * darunter, drei Mini-Stats nebeneinander, Link zur Team-Seite am Fuss.
 */
.my-team {
    text-align: center;
}
.my-team__crest {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    box-shadow: var(--shadow-md);
}
.my-team__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: .5px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.my-team__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 16px;
}
.my-team__stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    line-height: 1;
    color: var(--c-primaer);
    margin-bottom: 4px;
}
.my-team__stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-mut);
}
.my-team__link {
    display: block;
    color: var(--c-sekundaer);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity .2s;
}
.my-team__link:hover {
    opacity: .7;
}


/* ═══ STATS-STRIP (dunkle Sektion mit vier Rekord-Kacheln) ══════════ */
/*
 * Voller Breite, dunkler Hintergrund (--c-bg-dark, gleiche Farbe wie
 * Hero-Verlauf-Startpunkt). Vier Kacheln im Grid mit grossen Bebas-
 * Zahlen, Vereins-Wappen + Text als Sub-Zeile.
 *
 * Section-Head erbt Textfarbe ueber color: inherit aus .stats-strip
 * (= weiss). Kein eigener Modifier noetig.
 */
.stats-strip {
    background: var(--c-bg-dark);
    color: #fff;
    padding: 60px 0;
}
.stats-strip__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-tile {
    background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 24px;
    transition: all .25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.stat-tile:hover {
    border-color: var(--c-sekundaer);
    transform: translateY(-2px);
}
.stat-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--c-sekundaer);
    opacity: 0;
    transition: opacity .25s;
}
.stat-tile:hover::before {
    opacity: 1;
}
.stat-tile__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .6;
    margin-bottom: 12px;
}
.stat-tile__value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-tile__sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.stat-tile__sub-crest {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}


/* ═══ FOOTER (schwarz, vier Spalten + Copyright) ═══════════════════ */
.footer {
    background: #000;
    color: rgba(255,255,255,.5);
    padding: 60px 0 20px;
    margin-top: 40px;
}
.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.footer__brand-text {
    font-size: 13px;
    max-width: 320px;
}
.footer__col-title {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer__col a {
    display: block;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    padding: 4px 0;
    font-size: 13px;
    transition: color .2s;
}
.footer__col a:hover {
    color: #fff;
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* ═══ PAGE-HERO (kompakter innerer Seitenheader — Liga, Pokal, etc.) ═══════ */
.page-hero {
    background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-primaer) 100%);
    color: #fff;
    padding: 40px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196,38,46,.3) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.page-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.page-hero__subtitle {
    font-size: 15px;
    opacity: .75;
}

/* ═══ PAGE-CONTENT (Fehler-/Leerseiten-Container) ═══════════════════ */
.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ═══ LIGA-SUBNAV (Tab-Leiste unter dem Page-Hero) ══════════════════ */
/*
 * Sticky unter dem Header (top: 72px = Höhe des .header).
 * Horizontal scrollbar auf kleinen Viewports — Scrollbar ausgeblendet.
 * Aktiver Tab: Primärfarbe + 3px Unterstrich in Sekundärfarbe.
 */
.liga-subnav {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 72px;
    z-index: 90;
}
.liga-subnav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.liga-subnav__inner::-webkit-scrollbar {
    display: none;
}
.liga-subnav__tab {
    padding: 16px 14px;
    text-decoration: none;
    color: var(--c-text-mut);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    position: relative;
    top: 1px;
}
.liga-subnav__tab:hover {
    color: var(--c-text);
}
.liga-subnav__tab--active {
    color: var(--c-primaer);
    font-weight: 700;
    border-bottom-color: var(--c-sekundaer);
}

/* ═══ LIGA-SECTION (Content-Wrapper für Liga-Unterseiten) ═══════════ */
.liga-section {
    padding: 40px 0 60px;
}
.liga-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══ TABELLE (Adapter-Styling für printTable()-Output) ═════════════ */
/*
 * printTable() gibt <table class="tabelle"> aus. Diese Klasse wird hier
 * so gestylt, dass sie visuell zu .full-table-wrap passt. Der Funktions-
 * umfang (Sortierung, Vergleich, TK-Spalte, Int-Icons) bleibt über
 * printTable() erhalten.
 */
.tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tabelle thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-text-mut);
    font-weight: 600;
    padding: 8px 8px 16px;
    border-bottom: 2px solid var(--c-border);
}
.tabelle tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--c-border);
}
.tabelle tr.odd,
.tabelle tr.even {
    transition: background .15s;
}
.tabelle tr.odd:hover,
.tabelle tr.even:hover {
    background: var(--c-bg);
}
.tabelle tr.loginTeam {
    background: rgba(196, 38, 46, .06);
}
.tabelle tr.loginTeam:hover {
    background: rgba(196, 38, 46, .10);
}
/* Platz-Spalte */
.tabelle td:nth-child(1) {
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
/* Vorher-Spalte */
.tabelle td:nth-child(2) {
    color: var(--c-text-mut);
    font-size: 12px;
    text-align: center;
}
/* Mannschaft-Spalte — getTeamLink() gibt <a> mit <img> aus */
.tabelle td:nth-child(3) a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.tabelle td:nth-child(3) a:hover { text-decoration: underline; }
.tabelle td:nth-child(3) img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
/* Numerische Spalten: Sp, G, U, N, Pkt, T+, T-, TV, TK, Int */
.tabelle td:nth-child(n+4) { text-align: center; }
/* Punkte-Spalte (immer td:nth-child(8)) */
.tabelle td:nth-child(8) strong {
    font-weight: 800;
    font-size: 15px;
    color: var(--c-primaer);
}
/* Tabellenplatz-Pfeile */
.arrow       { font-size: 1rem; }
.arrow--up   { color: #16a34a; }
.arrow--down { color: #dc2626; }
.arrow--same {
    color: #9ca3af;
    font-size: 1.4rem;
    line-height: 1;
    position: relative;
    top: 1px;
}

/* ═══ ZAT-FILTER (ZAT-Auswahl-Formular) ════════════════════════════ */
.zat-filter {
    background: var(--c-card);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    margin-top: 16px;
}
.zat-filter__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-border);
}
.zat-filter__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}
.zat-filter select {
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-bg);
    cursor: pointer;
    transition: border-color .2s;
}
.zat-filter select:hover,
.zat-filter select:focus {
    border-color: var(--c-primaer);
    outline: none;
}
.zat-filter input[type="submit"] {
    padding: 8px 20px;
    background: var(--c-primaer);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
.zat-filter input[type="submit"]:hover { opacity: .85; }

/* ═══ LIGA-PLAN-CARD (Container für Spielplan-Fixture-Liste) ════════ */
/*
 * Kein Padding, overflow: hidden — damit der navy ZAT-Header sauber
 * an die 16px-Rundungen des .full-table-wrap clippt.
 */
.liga-plan-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--c-border);
}

/* ═══ LIGA-SPIELPLAN (Fixture-Liste) ════════════════════════════════ */
.liga-spielplan__zat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-primaer);
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.liga-spielplan__zat-status {
    opacity: .7;
    font-weight: 500;
}
.liga-spielplan__setzen {
    margin-left: auto;
    font-size: 15px;
    opacity: .8;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}
.liga-spielplan__setzen:hover { opacity: 1; }

.liga-spielplan__spieltag-head {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-mut);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.liga-spielplan__game {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border);
    transition: background .15s;
}
.liga-spielplan__game:last-child { border-bottom: none; }
.liga-spielplan__game:hover { background: var(--c-bg); }
.liga-spielplan__game--me { background: rgba(196, 38, 46, .04); }
.liga-spielplan__game--me:hover { background: rgba(196, 38, 46, .07); }

/* getTeamLink() gibt <a><img>Name</a> aus — hier per CSS gestylt */
.liga-spielplan__team a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}
.liga-spielplan__team a:hover { opacity: .75; }
.liga-spielplan__team a img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
/* Auswärtsteam: rechtsbündig, Reihenfolge umgekehrt (Name | Crest) */
.liga-spielplan__team--away {
    display: flex;
    justify-content: flex-end;
}
.liga-spielplan__team--away a {
    flex-direction: row-reverse;
}
.liga-spielplan__team--me a { color: var(--c-sekundaer); }

.liga-spielplan__score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    padding: 0 24px;
    text-align: center;
    white-space: nowrap;
}
.liga-spielplan__score--pending { color: var(--c-text-mut); }

/* Intro-Text + NMR-Markierung */
.liga-plan__intro {
    font-size: 14px;
    color: var(--c-text-mut);
    margin-bottom: 24px;
}
.nmr {
    color: var(--c-sekundaer);
    font-weight: 700;
}

/* ═══ SETZEN (Setz-Seite) ═══════════════════════════════════════════ */
.setzen-text {
    font-size: 14px;
    color: var(--c-text-mut);
    margin-bottom: 20px;
    line-height: 1.6;
}
/* Trainer / Verein Info-Block */
.setzen-info {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--c-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.setzen-info__row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.setzen-info__label { font-weight: 700; min-width: 80px; color: var(--c-text-mut); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.setzen-info__value { font-weight: 600; }
/* ZAT-Chooser */
.zat-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.zat-chooser__head { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--c-border); }
.zat-chooser__item { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.zat-chooser__item input[type="radio"] { margin: 0; cursor: pointer; }
.zat-chooser__label { cursor: pointer; }
.zat-chooser__label--disabled { color: var(--c-text-mut); cursor: default; }
/* Aktionszeile */
.setzen-actions { margin-top: 8px; }
/* Setzen-Tabelle (Spieltag | Heim | Gast | Einsatz) */
.setzen-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.setzen-table thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--c-text-mut); font-weight: 600; padding: 8px 12px 16px; border-bottom: 2px solid var(--c-border); }
.setzen-table tbody td { padding: 12px; border-bottom: 1px solid var(--c-border); }
.setzen-table tr.odd:hover,
.setzen-table tr.even:hover { background: var(--c-bg); }
.setzen-table td.loginTeam { background: rgba(196,38,46,.06); }
.setzen-table__foot td { padding: 12px; font-weight: 600; font-size: 13px; color: var(--c-text-mut); border-top: 2px solid var(--c-border); }
/* Team-Meta (TK, Platz, Randomizer) */
.setzen-team-meta { font-size: 11px; color: var(--c-text-mut); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
/* Einsatz-Input */
.setzen-input { padding: 6px 10px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 14px; font-family: inherit; width: 60px; text-align: center; transition: border-color .2s; }
.setzen-input:focus { border-color: var(--c-primaer); outline: none; }
.setzen-input--disabled { background: var(--c-bg); color: var(--c-text-mut); cursor: default; }
/* Abschicken-Button */
.setzen-btn { padding: 10px 24px; background: var(--c-primaer); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: opacity .2s; }
.setzen-btn:hover { opacity: .85; }
/* E-Mail-Bestätigungsblock */
.setzen-email { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: 20px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; color: var(--c-text); margin-top: 8px; }
/* Randomizer-Badges */
.rand-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; vertical-align: middle; }
.rand-icon--def { background: var(--c-primaer); }
.rand-icon--nor { background: var(--c-text-mut); }
.rand-icon--off { background: var(--c-sekundaer); }
.rand-legend { display: flex; gap: 24px; font-size: 14px; font-weight: 600; align-items: center; }
.rand-legend span { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════════
 *
 *   POKAL/PLAN.PHP — Schritt 4b
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* ── Runden-Container ─────────────────────────────────────────────── */
.pokal-runde {
    margin-bottom: 48px;
}

.pokal-runde:last-child {
    margin-bottom: 0;
}

/* ── Runden-Kopfzeile (Titel links, Setzen-Button rechts) ─────────── */
.pokal-runde__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pokal-runde__title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--c-text);
    text-transform: uppercase;
}

/* ── Setzen-Button ────────────────────────────────────────────────── */
.pokal-setzen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--c-primaer);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.pokal-setzen-btn:hover {
    background: var(--c-bg-dark);
    color: #fff;
    transform: translateX(2px);
}

.pokal-setzen-btn__arrow {
    font-size: 16px;
    line-height: 1;
}

/* ── Empty-State (Runde wartet) ───────────────────────────────────── */
.pokal-empty {
    padding: 32px;
    background: var(--c-card);
    border: 1px dashed var(--c-border);
    border-radius: 8px;
    text-align: center;
}

.pokal-empty p {
    margin: 0;
    color: var(--c-text-mut);
    font-style: italic;
}

/* ── Hilfsklasse für rechtsbündige Zahl-Zellen ────────────────────── */
.tabelle th.num,
.tabelle td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Gruppen-Grid (auto-fit, mind. 300px je Karte) ────────────────── */
.pokal-gruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Gruppen-Tabelle ──────────────────────────────────────────────── */
.pokal-gruppen-tabelle {
    margin: 0;
}

/* KO-Platz: roter Linksbalken + leichte Tint */
.pokal-gruppen-tabelle tbody tr.is-ko-platz {
    background: rgba(196, 38, 46, 0.06);
}

.pokal-gruppen-tabelle tbody tr.is-ko-platz td:first-child {
    border-left: 3px solid var(--c-tertiaer);
    padding-left: 9px;
}

/* Login-Team-Markierung in der Gruppentabelle */
.pokal-gruppen-tabelle tbody tr.is-loginteam {
    background: rgba(27, 45, 92, 0.08);
    font-weight: 600;
}

.pokal-gruppen-tabelle tbody tr.is-loginteam.is-ko-platz {
    background: linear-gradient(
        to right,
        rgba(27, 45, 92, 0.10),
        rgba(196, 38, 46, 0.08)
    );
}

/* ── Footer-Leiste der Tabelle (Link „Zur Gruppenseite") ──────────── */
.full-table-wrap__foot {
    padding: 12px 16px;
    text-align: right;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
}

.full-table-wrap__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primaer);
    text-decoration: none;
}

.full-table-wrap__more:hover {
    color: var(--c-bg-dark);
    text-decoration: underline;
}

/* ── KO-Runden-Tabelle ────────────────────────────────────────────── */
.pokal-ko-table th,
.pokal-ko-table td {
    vertical-align: middle;
}

/* Container für Heim+Ausw-Paar in einer Zelle */
.pokal-ko-pair {
    padding: 0 !important;
}

/* Eine Mannschaft (Heim oder Ausw) */
.pokal-ko-team {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 11px;
    border-left: 3px solid transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pokal-ko-team + .pokal-ko-team {
    border-top: 1px solid var(--c-border);
}

.pokal-ko-team a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
}

.pokal-ko-team a:hover {
    color: var(--c-primaer);
}

.pokal-ko-team img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pokal-ko-team__tk {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-mut);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    white-space: nowrap;
}

/* Sieger der Begegnung */
.pokal-ko-team.is-winner {
    border-left-color: var(--c-primaer);
}

.pokal-ko-team.is-winner a {
    font-weight: 700;
}

/* Login-Team in der KO-Tabelle */
.pokal-ko-team.is-loginteam {
    background: rgba(27, 45, 92, 0.05);
}

.pokal-ko-team.is-winner.is-loginteam {
    background: rgba(27, 45, 92, 0.09);
}

/* Score-Zellen */
.pokal-ko-table td.num {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    padding: 12px 16px;
}

/* Pending: Spiel noch nicht ausgewertet */
.pokal-ko-pending {
    color: var(--c-text-mut) !important;
    font-weight: 500 !important;
}

/* Empty: kein Wert (z.B. Finale ohne Rückspiel) */
.pokal-ko-empty {
    color: var(--c-text-mut);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   POKAL/ZEITUNG.PHP — Schritt 4c
 *   (Klassen sind generisch genug, dass die Liga-Zeitung in Schritt 6
 *    sie ebenfalls verwenden kann.)
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* ── Intro-Hinweis-Box ────────────────────────────────────────────── */
.zeitung-intro {
    padding: 16px 20px;
    margin-bottom: 24px;
    background: var(--c-card);
    border-left: 4px solid var(--c-sekundaer);
    border-radius: 4px;
    color: var(--c-text-mut);
    font-size: 14px;
    line-height: 1.5;
}

.zeitung-intro p {
    margin: 0;
}

/* ── Empty-State ─────────────────────────────────────────────────── */
.zeitung-empty {
    padding: 64px 32px;
    background: var(--c-card);
    border: 1px dashed var(--c-border);
    border-radius: 8px;
    text-align: center;
}

.zeitung-empty h3 {
    margin: 0 0 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: var(--c-text);
    text-transform: uppercase;
}

.zeitung-empty p {
    margin: 0;
    color: var(--c-text-mut);
}

/* ── Article-Card ────────────────────────────────────────────────── */
.zeitung-article {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.zeitung-article__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

.zeitung-article__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
}

.zeitung-article__meta {
    font-size: 13px;
    color: var(--c-text-mut);
}

.zeitung-article__meta a {
    color: var(--c-primaer);
    text-decoration: none;
    font-weight: 500;
}

.zeitung-article__meta a:hover {
    text-decoration: underline;
}

.zeitung-article__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.zeitung-article__publish-form {
    margin: 0;
}

.zeitung-article__body {
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.zeitung-article__wappen {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-bg);
}

.zeitung-article__text {
    flex: 1;
    min-width: 0; /* verhindert Overflow bei langen Wörtern */
    line-height: 1.6;
    color: var(--c-text);
}

.zeitung-article__text p {
    margin: 0 0 12px;
}

.zeitung-article__text p:last-child {
    margin-bottom: 0;
}

.zeitung-article__text img {
    max-width: 100%;
    height: auto;
}

.zeitung-article__footer {
    padding: 12px 24px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    font-size: 13px;
    color: var(--c-text-mut);
}

.zeitung-article__tk--yes {
    color: var(--c-primaer);
    font-weight: 600;
}

.zeitung-article__tk--none {
    color: var(--c-text-mut);
}

/* ── Pagination ──────────────────────────────────────────────────── */
.zeitung-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.zeitung-nav__spacer {
    /* leerer Spacer, damit space-between auch ohne Schreiben-Button greift */
    width: 0;
}

.zeitung-nav__pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.zeitung-nav__pages a,
.zeitung-nav__pages > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: var(--c-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.zeitung-nav__pages a:hover {
    background: var(--c-bg);
    color: var(--c-primaer);
    border-color: var(--c-primaer);
}

.zeitung-nav__current {
    background: var(--c-primaer) !important;
    color: #fff !important;
    border-color: var(--c-primaer) !important;
}

.zeitung-nav__disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   GENERISCHE BUTTONS (.btn, .btn--sm, .btn--active)
 *   Wird auch von späteren Schritten genutzt — falls schon definiert,
 *   diesen Block überspringen oder mergen.
 *
 * ═══════════════════════════════════════════════════════════════════
 */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--c-primaer);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    border: 1px solid var(--c-primaer);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--c-bg-dark);
    border-color: var(--c-bg-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn--sm {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
}

.btn--active {
    background: var(--c-sekundaer);
    border-color: var(--c-sekundaer);
}

.btn--active:hover {
    background: var(--c-sekundaer);
    border-color: var(--c-sekundaer);
    opacity: 0.9;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   POKAL/GRUPPE.PHP — Schritt 4d
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* ── Pfeil-Indikator in der Platz-Spalte ──────────────────────────── */
.arrow {
    display: inline-block;
    margin-right: 4px;
    font-size: 11px;
    line-height: 1;
    width: 1em;
    text-align: center;
}

.arrow--up {
    color: #2a9d3a;
}

.arrow--down {
    color: var(--c-tertiaer);
}

.arrow--same {
    color: var(--c-text-mut);
    opacity: 0.6;
}

/* ── Gruppen-Tabelle: KO-Plätze und Login-Team ────────────────────── */
.pokal-gruppe-tabelle tbody tr.is-ko-platz {
    background: rgba(196, 38, 46, 0.06);
}

.pokal-gruppe-tabelle tbody tr.is-ko-platz td:first-child {
    border-left: 3px solid var(--c-tertiaer);
    padding-left: 9px;
}

.pokal-gruppe-tabelle tbody tr.is-loginteam {
    background: rgba(27, 45, 92, 0.08);
    font-weight: 600;
}

.pokal-gruppe-tabelle tbody tr.is-loginteam.is-ko-platz {
    background: linear-gradient(
        to right,
        rgba(27, 45, 92, 0.10),
        rgba(196, 38, 46, 0.08)
    );
}

/* ── ZAT-Filter-Toolbar (Filter-Form + Legende nebeneinander) ─────── */
.pokal-tabellen-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 32px;
    flex-wrap: wrap;
}

/* ZAT-Filter mit zwei Selects (Vergleich) */
.zat-filter--compare {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.zat-filter__group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zat-filter__group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-mut);
    white-space: nowrap;
}

.zat-filter__group select {
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 4px;
}

/* ── Legende ──────────────────────────────────────────────────────── */
.pokal-legende {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--c-text-mut);
}

.pokal-legende__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pokal-legende__indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: rgba(196, 38, 46, 0.06);
    border-left: 3px solid var(--c-tertiaer);
}

.pokal-legende__indicator--ko {
    /* gleicher Stil wie tr.is-ko-platz td:first-child */
}

/* ── Standalone Section-Head (zwischen Toolbar und Spielplan) ─────── */
.section-head--standalone {
    background: transparent;
    padding: 0;
    margin: 32px 0 16px;
    border: none;
}

.section-head--standalone .section-head__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c-text);
    margin: 0;
}

/* ── Pro-ZAT-Block (Header + Spielplan-Tabelle) ──────────────────── */
.pokal-zat-block {
    margin-bottom: 24px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
}

.pokal-zat-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.pokal-zat-block__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
}

.pokal-zat-block__date {
    margin-left: 4px;
    font-weight: 400;
    color: var(--c-text-mut);
}

/* ── Spielplan-Tabelle ────────────────────────────────────────────── */
.pokal-spielplan {
    margin: 0;
}

.pokal-spielplan__day {
    width: 1%;
    background: var(--c-bg);
    color: var(--c-text-mut);
    font-weight: 500;
    border-right: 1px solid var(--c-border);
    vertical-align: middle;
}

.pokal-spielplan__heim,
.pokal-spielplan__ausw {
    vertical-align: middle;
}

.pokal-spielplan__heim {
    text-align: right;
}

.pokal-spielplan__heim a {
    flex-direction: row-reverse;
}

.pokal-spielplan__ausw {
    text-align: left;
}

.pokal-spielplan__score {
    width: 120px;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--c-text);
    vertical-align: middle;
}

.pokal-spielplan__win {
    color: var(--c-primaer);
    font-size: 11px;
}

.pokal-spielplan__win-empty {
    display: inline-block;
    width: 1em;
}

/* Login-Team-Markierung in einzelnen Zellen des Spielplans */
.pokal-spielplan td.is-loginteam {
    background: rgba(27, 45, 92, 0.08);
    font-weight: 600;
}

/* Trennlinie zwischen Spieltagen einer ZAT */
.pokal-spielplan tbody tr.separator td {
    border-top: 2px solid var(--c-border);
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   TOP-NAV DROPDOWN — Schritt 4e
 *   Erweitert .header__nav um Sub-Menüs (aktuell: Pokale).
 *   Bestehende .header__nav a-Styles bleiben unangetastet — sie
 *   greifen weiter via descendant-selector.
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* Item-Wrapper (jedes Top-Nav-Item ist jetzt ein Div, damit Dropdowns
   einen relativen Anker bekommen) */
.header__nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Caret neben "Pokale" */
.header__nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header__nav-caret {
    font-size: 10px;
    line-height: 1;
    color: var(--c-text-mut);
    transition: transform 0.15s ease, color 0.15s ease;
}

.header__nav-item.has-dropdown:hover .header__nav-caret,
.header__nav-item.has-dropdown:focus-within .header__nav-caret {
    transform: rotate(180deg);
    color: var(--c-primaer);
}

/* Dropdown-Container */
.header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 2px 6px  rgba(0, 0, 0, 0.05);
    padding: 6px 0;

    /* Default versteckt mit weichem Übergang */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;

    z-index: 100;
}

/* Hover-Bridge: unsichtbares Pseudo-Element schließt die Lücke
   zwischen Nav-Link und Dropdown, damit der Hover beim Übergang
   nicht abreißt */
.header__dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
}

/* Dropdown sichtbar bei Hover oder Tastatur-Fokus innerhalb des Items */
.header__nav-item.has-dropdown:hover .header__dropdown,
.header__nav-item.has-dropdown:focus-within .header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown-Links */
.header__dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.header__dropdown a:hover {
    background: var(--c-bg);
    color: var(--c-primaer);
}

.header__dropdown a.active {
    color: var(--c-primaer);
    font-weight: 600;
    background: rgba(27, 45, 92, 0.06);
    border-left-color: var(--c-primaer);
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   POKAL/SETZEN.PHP — Schritt 4f
 *   Erweitert die Liga-setzen-Klassen um Pokal-Spezifika.
 *
 * ═══════════════════════════════════════════════════════════════════
 */

/* ZAT-Chooser: auto-fit-Variante für 1–N Runden statt fester 2-Spalten */
.zat-chooser--auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Sub-Heading innerhalb einer Card (zwischen Setz- und Elfmeter-Tabelle) */
.setzen-subhead {
    margin: 28px 0 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c-text);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--c-tertiaer);
}

/* ═══════════════════════════════════════════════════════════════════
 *
 *   POKAL/ZEITUNG_WRITE.PHP — Schritt 4g
 *   Form-Komponenten für den Artikel-Editor.
 *   Klassen sind generisch — werden in Schritt 6 (Liga-Zeitung)
 *   wiederverwendbar sein.
 *
 * ═══════════════════════════════════════════════════════════════════
 */

.zeitung-write {
    margin: 0;
}

.zeitung-write__field {
    margin-bottom: 20px;
}

.zeitung-write__field:last-of-type {
    margin-bottom: 24px;
}

.zeitung-write__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-mut);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zeitung-write__input,
.zeitung-write__textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zeitung-write__input:focus,
.zeitung-write__textarea:focus {
    outline: none;
    border-color: var(--c-primaer);
    box-shadow: 0 0 0 3px rgba(27, 45, 92, 0.10);
}

.zeitung-write__textarea {
    min-height: 380px;
    resize: vertical;
}

/* ═══ TEAMS-GRID (Vereinsübersicht) ════════════════════════════════ */
/*
 * Drei-Spalten-Kachel-Grid. Kacheln mit Homepage sind als <a> gebaut
 * und vollständig klickbar (öffnet neuen Tab). Kacheln ohne Homepage
 * sind <div> und nicht klickbar.
 *
 * Eigener Verein (eingeloggt) bekommt einen Sekundärfarben-Rahmen.
 */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    text-decoration: none;
    color: var(--c-text);
    transition: all .25s;
}
.team-card--linked {
    cursor: pointer;
}
.team-card--linked:hover {
    border-color: var(--c-sekundaer);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.team-card--me {
    border-color: var(--c-sekundaer);
    box-shadow: 0 0 0 2px var(--c-sekundaer);
}
.team-card__crest {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}
.team-card__crest--placeholder {
    background: var(--c-bg);
    border: 2px dashed var(--c-border);
}
.team-card__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: .5px;
    line-height: 1.1;
}
.team-card__trainer {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-mut);
}
.team-card__trainer--empty {
    font-style: italic;
}
.team-card__status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 4px;
}
.team-card__status--ok {
    background: rgba(22, 163, 74, .1);
    color: #15803d;
}
.team-card__status--risk {
    background: rgba(220, 38, 38, .1);
    color: #dc2626;
}

/* ═══ STATS-SEITEN ══════════════════════════════════════════════════ */
/*
 * Scoped auf .liga-section--stats für Formulare und Überschriften.
 * Tabellen nutzen jetzt .full-table-wrap + .full-table wie die
 * Liga-Seiten — kein .tabelle mehr in den Stats.
 */

/* ── Abschnittsüberschriften (außerhalb der Cards) ───────────────── */
.liga-section--stats h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: .5px;
    margin: 40px 0 0;
    color: var(--c-text);
}
.liga-section--stats h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: .5px;
    margin: 0 0 12px;
    color: var(--c-text);
}

/* ── Filter-Formular ─────────────────────────────────────────────── */
.liga-section--stats form {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.liga-section--stats form h3 {
    margin-bottom: 12px;
}
.liga-section--stats form p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--c-text);
}
.liga-section--stats form label {
    cursor: pointer;
}
.liga-section--stats form select {
    padding: 6px 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    cursor: pointer;
}
.liga-section--stats form input[type="submit"] {
    padding: 6px 16px;
    background: var(--c-primaer);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.liga-section--stats form input[type="submit"]:hover {
    opacity: .85;
}

/* ── loginTeam-Markierung in .full-table (fehlte bisher) ─────────── */
.full-table tbody tr.loginTeam {
    background: rgba(196, 38, 46, .06);
}
.full-table tbody tr.loginTeam:hover {
    background: rgba(196, 38, 46, .10);
}

/* ── Sortier-Links in Tabellen-Köpfen ────────────────────────────── */
.full-table thead th a {
    color: inherit;
    text-decoration: none;
}
.full-table thead th a:hover {
    color: var(--c-primaer);
    text-decoration: underline;
}
/* Kaputte GIF-Icons aus printTableHead() ausblenden */
.full-table thead img {
    display: none;
}

/* ── Inaktiv-Indikator ───────────────────────────────────────────── */
.stats-inactive {
    color: var(--c-text-mut);
    font-size: 14px;
}

/* ── Zwei-Spalten-Layout (Rekorde) ───────────────────────────────── */
.stats-records-layout {
    width: 100%;
    border-collapse: collapse;
}
.stats-records-layout > tbody > tr > td,
.stats-records-layout > tr > td {
    width: 50%;
    vertical-align: top;
    padding: 0 16px 32px 0;
}
.stats-records-layout > tbody > tr > td:last-child,
.stats-records-layout > tr > td:last-child {
    padding-right: 0;
    padding-left: 16px;
}

/* ═══ ACCESSIBILITY ═════════════════════════════════════════════════ */
/* Respektiere die Systemeinstellung "Bewegungen reduzieren". */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}