/* 02-lesbarkeit-dunkelmodus.css — Teil der Aufteilung von style.css (2026-08-10).
   Urspruenglich Zeilen 1226-2454 der einen Datei. Diverse Lesbarkeits-/Dunkelmodus-Fixes, Mobil-Karten, Dialoge.
   Diese und alle anderen css/*.css-Dateien werden auf JEDER Seite
   gemeinsam geladen, in fester Reihenfolge - die Kaskade ist exakt
   dieselbe wie vorher, nur auf mehrere Dateien verteilt. */
/* 2026-08-23: Diese Datei ist dunkel-only geschrieben, wird aber ohne
   Theme-Bedingung geladen - im Hellmodus stand hier weisse Schrift auf
   heller Flaeche. Die Regeln in den INHALTSbereichen laufen deshalb jetzt
   ueber --ink (dunkel im Hellmodus, weiss im Dunkelmodus). Die Fusszeile
   weiter unten bleibt bei festem Weiss: sie ist in beiden Themes dunkel. */


/* =========================
   Mobil-Karten in den dunklen Bereichen (Glass-Look)
   Die generische Transformation direkt darueber macht aus Tabellenzeilen WEISSE
   Karten (var(--background-color)). In den dunklen Bereichen steht dort helle
   Schrift -> Kontrast 1:1, unlesbar. Gleiche Loesung wie im .aw-Scope.
   Betrifft: Abrechnung (.abr-glass), Formulare/Uebersicht/Upload (.seite-glass),
   Personen (.ad), Halle (.hb).
   ========================= */
@media (max-width: 1024px) {
    .content.abr-glass tr,
    .content.seite-glass tr,
    .content.ad tr,
    .content.hb tr {
        background-color: rgba(var(--ink) / 0.06);
        border: 1px solid rgba(var(--ink) / 0.18);
    }

    .content.abr-glass td,
    .content.seite-glass td,
    .content.ad td,
    .content.hb td {
        color: rgba(var(--ink) / 0.92);
    }

    .content.abr-glass td[data-label]::before,
    .content.seite-glass td[data-label]::before,
    .content.ad td[data-label]::before,
    .content.hb td[data-label]::before {
        color: rgba(var(--ink) / 0.72);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

/* =========================
   Abrechnung mobil: Tageszeile = Karte.
   Die Feldbeschriftung liefert data-label (setzt footer.php aus der Kopfzeile),
   hier steht nur das Layout. !important, weil die .fk2-/.sn2-Regeln als
   <style> in der Seite stehen und damit nach dieser Datei geladen werden.
   ========================= */
@media (max-width: 1024px) {
    .fk2-table, .sn2-table { min-width: 0 !important; }
    /* tbody bleibt sonst table-row-group: die Karten erben dann die festen
       Spaltenbreiten der Kopfzeile und werden zu schmal (wie im .aw-Scope). */
    .fk2-table tbody, .sn2-table tbody,
    .content.seite-glass tbody { display: block; }
    .fk2-table tr.fk2-row,
    .sn2-table tr.sn2-row { position: relative; padding: 12px 44px 12px 14px !important; }

    /* Tag als Kartenkopf statt schmaler Spalte */
    .fk2-daycell, .sn2-daycell {
        text-align: left !important;
        display: flex !important;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 8px;
        padding-bottom: 8px !important;
        /* Bis 2026-08-26 fest rgba(255,255,255,0.14): eine weisse Linie,
           obwohl dieser Block NICHT an das dunkle Thema gebunden ist. Im
           Hellmodus lag sie mit #f3f3f3 auf #f1f1f1 - Kontrast 1,02, also
           unsichtbar. Genau auf dem Handy, wo der Trainer die Fahrtkosten
           ausfuellt. --glass-16 dreht sich mit dem Thema: 1,44 hell,
           1,67 dunkel (vorher 1,56). */
        border-bottom: 1px solid var(--glass-16) !important;
    }
    .fk2-dnum, .sn2-dnum, .fk2-wd, .sn2-wd { display: inline !important; }

    /* Beschriftung kommt aus data-label (footer.php, aus der Kopfzeile).
       Bei Tag-Zelle und Loeschknopf waere sie ueberfluessig. */
    .fk2-daycell::before, .sn2-daycell::before,
    .fk2-tdx::before, .sn2-tdx::before { display: none !important; }

    /* km-Feld linksbuendig, sonst klebt es am rechten Kartenrand */
    .fk2-tdkm .km-auto-wrap { justify-content: flex-start !important; }
    .fk2-km, .sn2-std { text-align: left !important; }

    /* Zeile-leeren-Knopf in die Kartenecke */
    .fk2-tdx, .sn2-tdx {
        position: absolute !important;
        top: 10px; right: 10px;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Summenleiste unter die Tabelle */
    .fk2-split, .sn2-split { grid-template-columns: 1fr !important; }
    .fk2-aside, .sn2-aside {
        border-left: 0 !important;
        /* Gleiche Ursache wie oben: im Hellmodus unsichtbar. */
        border-top: 1px solid var(--glass-16) !important;
    }
    .fk2-aside-inner, .sn2-aside-inner { position: static !important; }
    /* Summenzeilen sind divs, keine Tabellenzeilen - nicht als Karte rendern */
    .fk2-sumline, .sn2-sumline, .fk2-total, .sn2-total { background: none; border-radius: 0; }
    .fk2-total, .sn2-total { background: rgba(0, 0, 0, 0.35); border-radius: 12px; }
}

/* =========================
   Mehrfach-Eintraege pro Tag (Fahrtkosten + Stundennachweis).
   Ein Tag = weiterhin eine Zeile; ein "+"-Knopf oeffnet darunter eine
   Aufklapp-Zeile mit den zusaetzlichen Eintraegen (max. 4, siehe fk2AddAccEntry
   / sn2AddAccEntry). Faerbung/Layout bewusst identisch zu .fk-clear-btn.
   ========================= */
.fk2-btncell, .sn2-btncell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.fk2-plusbtn, .sn2-plusbtn {
    background: rgba(var(--ink) / 0.08);
    border: 1px solid rgba(var(--ink) / 0.22);
    border-radius: 4px;
    color: rgba(var(--ink) / 0.70);
    cursor: pointer;
    padding: 2px 6px;
    min-width: 22px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: inherit;
}
.fk2-plusbtn:hover, .sn2-plusbtn:hover {
    border-color: var(--tigers-yellow);
    color: var(--tigers-yellow);
}
.fk2-plusbtn-filled, .sn2-plusbtn-filled {
    background: var(--tigers-yellow-16);
    border-color: var(--tigers-yellow-40);
    color: var(--tigers-yellow);
}
.fk2-acc-row, .sn2-acc-row { display: none; }
.fk2-acc-row.fk2-acc-open, .sn2-acc-row.sn2-acc-open { display: table-row; }
.fk2-acc-row > td, .sn2-acc-row > td {
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.fk2-acc-inner, .sn2-acc-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px 68px;
    background: rgba(0, 0, 0, 0.16);
}
.fk2-acc-entry {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 34%) 84px 30px;
    gap: 8px;
    align-items: center;
}
.sn2-acc-entry {
    display: grid;
    grid-template-columns: 1fr 110px 30px;
    gap: 8px;
    align-items: center;
}
.fk2-addbtn, .sn2-addbtn {
    align-self: flex-start;
    background: transparent;
    border: 1px dashed rgba(var(--ink) / 0.30);
    color: rgba(var(--ink) / 0.70);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.fk2-addbtn:hover, .sn2-addbtn:hover {
    border-color: var(--tigers-yellow);
    color: var(--tigers-yellow);
}
@media (max-width: 1024px) {
    .fk2-acc-inner, .sn2-acc-inner { padding-left: 14px; }
    .fk2-acc-entry, .sn2-acc-entry { grid-template-columns: 1fr; }
}

/* =========================
   Fahrtkosten-Eingabe: Tag-Karten (Paket B, nur <=1024px)
   Struktur/Namen/JS unveraendert, nur Darstellung als Karte je Tag.
   ========================= */
@media (max-width: 1024px) {
    .content table.fk-tage {
        border: 0;
        background: transparent;
    }

    /* Kopfzeile (ohne data-row) ausblenden */
    .content .fk-tage tr:not([data-row]) {
        display: none;
    }

    /* Jede Tageszeile = Karte */
    .content .fk-tage tr[data-row] {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 8px 10px;
        position: relative;
        padding: 14px 34px 14px 12px;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        background-color: var(--background-color);
        margin-bottom: 12px;
    }

    .content .fk-tage td {
        width: auto;
        padding: 0;
        border: 0;
    }

    /* Zellenbreiten im Karten-Layout */
    .content .fk-tage td:nth-child(1) { flex: 0 0 auto; }        /* Wochentag */
    .content .fk-tage td:nth-child(2) { flex: 1 1 auto; }        /* Datum */
    .content .fk-tage td:nth-child(3) { flex: 1 1 100%; }        /* Ziel */
    .content .fk-tage td:nth-child(4) { flex: 1 1 55%; }         /* Grund */
    .content .fk-tage td:nth-child(5) { flex: 1 1 30%; }         /* Entfernung */

    /* Wochentag + Datum als Karten-Ueberschrift (ohne Label, wie Text) */
    .content .fk-tage td:nth-child(1)::before,
    .content .fk-tage td:nth-child(2)::before,
    .content .fk-tage td:nth-child(6)::before {
        display: none;
    }

    .content .fk-tage td:nth-child(1) input,
    .content .fk-tage td:nth-child(2) input {
        width: auto;
        border: 0;
        background: transparent;
        color: var(--text-color);
        font-weight: 600;
        font-size: 1.02rem;
        padding: 0;
    }

    /* Eingaben fuellen ihre Zelle */
    .content .fk-tage td:nth-child(3) input,
    .content .fk-tage td select {
        width: 100%;
    }

    .content .fk-tage .km-auto-wrap {
        width: 100%;
    }

    /* Zeile-leeren-Button oben rechts in der Karte */
    .content .fk-tage td:nth-child(6) {
        position: absolute;
        top: 10px;
        right: 8px;
        flex: 0 0 auto;
    }
}


/* =========================
   Signature Pad
   ========================= */
.wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    user-select: none;
}

.signature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
}

#signature-pad {
    width: 70%;
    max-width: 300px;
    max-height: 200px;
    aspect-ratio: auto;
    height: 100%;
    border: 2px solid var(--border-color);
    background: var(--bg-signature);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Body braucht eine eigene Hoehe, sonst wird height:100% des Canvas zu 0 und
   das Feld kollabiert (Fahrtkosten/Stundennachweis geben dem Canvas die Hoehe
   per Inline-Style, diese Seite nutzt den .m-signature-pad--body-Wrapper). */
.m-signature-pad--body {
    position: relative;
    width: 100%;
    height: 150px;
}

.m-signature-pad--body canvas {
    width: 100%;
    height: 100%;
    max-height: 150px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-signature);
    border-radius: 8px;
    box-sizing: border-box;
}

#clear-button {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--danger-red);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

#clear-button:hover {
    background: var(--danger-red-hover);
}

/* =========================
   Footer
   ========================= */
footer {
    background: #111111;
    /* 1fr auto 1fr haelt den Impressum-Link exakt in der Footer-Mitte, unabhaengig
       davon wie breit Copyright-Zeile und "Nach oben"-Button sind. Mit
       space-between wanderte er um die Differenz der beiden aus der Mitte. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 16px 24px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    border-top: 3px solid var(--tigers-yellow);
}

footer h3 { justify-self: start; }
footer .back-to-top { justify-self: end; }

footer h3 {
    font-size: 0.82rem;
    font-weight: 500;
    /* 0,4 ergab 3,82:1 auf #111111 (2026-08-23 gemessen), gefordert sind 4,5. */
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.03em;
}

footer h3 i {
    color: rgba(255,255,255,0.6);
}

footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

footer a i {
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
}

/* Impressum/Datenschutz ist ein Pflichtlink und muss auffindbar sein: mittige
   Spalte, heller Text und dezenter Rahmen statt des ausgegrauten Fliesstextes. */
footer a:not(.back-to-top) {
    justify-self: center;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    padding: .3rem .8rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: .5rem;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

footer a:not(.back-to-top):hover {
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
    border-color: var(--tigers-yellow);
    background: rgba(255,255,255,0.05);
}

footer .back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tigers-black);
    background: var(--tigers-yellow);
    border: none;
    border-radius: .5rem;
    padding: .3rem .8rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

footer .back-to-top i {
    color: var(--tigers-black);
}

footer .back-to-top:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: var(--tigers-black);
}

/* Die drei Footer-Spalten brauchen zusammen gut 620px. Darunter untereinander
   stapeln statt quetschen (das Grid ignoriert das frühere flex-wrap). */
@media (max-width: 640px) {
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer h3,
    footer .back-to-top,
    footer a:not(.back-to-top) {
        justify-self: center;
    }
}

/* =========================
   Filterbar (Alte Version, User bestätigt Nutzung)
   ========================= */
.filterbar {
    position: relative;
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin: .25rem 0 1rem 0;
    background: var(--background-color);
    border-radius: .75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.filterbar .filter-item {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    min-width: 160px;
    flex: 1 1 160px;
}

.filterbar .filter-item span {
    font-size: .9rem;
    opacity: .85;
    color: var(--text-placeholder);
}

.filterbar select {
    appearance: none;
    background: var(--bg-flaeche);
    color: var(--text-input);
    border: 1px solid var(--border-light);
    border-radius: .6rem;
    padding: .6rem .8rem;
    min-height: 44px;
}

.btn-reset {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: .6rem;
    padding: .6rem .9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-reset:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--border-color);
    font-weight: bold;
}

.section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.datei-eintrag {
    transition: opacity .15s ease, transform .15s ease;
    will-change: transform;
}

.datei-eintrag[style*="display: none"] {
    opacity: 0;
}

@media (hover:hover) {
    .datei-eintrag:hover {
        transform: translateY(-1px);
    }
}

.datei-eintrag a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem 0;
    text-decoration: none;
    color: var(--text-color);
}



/* =========================
   Ausgelagerte Styles für Stundennachweis.php
   ========================= */
.sn-details {
    margin-top: 20px;
}

.sn-summary {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background: var(--bg-summary);
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    color: var(--text-color);
}

.sn-summary-panel {
    padding: 15px;
    border: 1px solid var(--border-gray);
    border-top: none;
    border-radius: 0 0 5px 5px;
    background: var(--background-color);
}

.sn-table-full {
    width: 100%;
    border-collapse: collapse;
}

.stunden-tabelle th {
    text-align: left;
    padding: 8px;
    background: var(--tigers-yellow);
    color: var(--tigers-black);
}

.stunden-tabelle th:nth-child(1) { width: 20%; }
.stunden-tabelle th:nth-child(2) { width: 20%; }
.stunden-tabelle th:nth-child(4) { width: 10%; }

.stunden-tabelle td {
    padding: 5px;
    border-bottom: 1px solid var(--border-light);
}

.sn-w95 { width: 95%; }
.sn-w100 { width: 100%; }
.sn-table-actions { width: 100%; margin-top: 20px; }
.sn-text-right { text-align: right; }
.sn-mt30 { margin-top: 30px; }
.sn-mt20 { margin-top: 20px; }
.sn-h1-small { font-size: 1.5em; color: var(--border-color); }
.sn-h2-small { font-size: 1.2em; color: var(--text-color); }

.sn-summary-table {
    width: 50%;
    border-collapse: collapse;
    border: 1px solid var(--border-gray);
}

.sn-summary-table td {
    border: 1px solid var(--border-gray);
    padding: 5px;
}

.sn-canvas-dashed {
    border: 1px dashed var(--border-gray);
}

.fahrtkosten-tabelle th {
    text-align: left;
    padding: 8px;
    background: var(--tigers-yellow);
    color: var(--tigers-black);
}

.fahrtkosten-tabelle th:nth-child(1) { width: 20%; }
.fahrtkosten-tabelle th:nth-child(2) { width: 20%; }
.fahrtkosten-tabelle th:nth-child(4) { width: 25%; }
.fahrtkosten-tabelle th:nth-child(5) { width: 7%; }

.fahrtkosten-tabelle td {
    padding: 5px;
    border-bottom: 1px solid var(--border-light);
}


/* =========================
   Auswertungs-Tabellen & Matrix-View
   ========================= */

/* Filter Formular Styling (Flex-Row) */
.filter-container {
    margin-bottom: 1.5rem;
    background-color: var(--bg-table-row-dark);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    width: 100%;
}

.filter-row {
    display: flex;
    flex-direction: row;      /* Alles in einer Zeile */
    flex-wrap: wrap;          /* Umbruch erlaubt bei kleinen Screens */
    gap: 1rem;                /* Abstand zwischen den Gruppen */
    align-items: flex-end;    /* Ausrichtung unten */
}

.filter-group {
    display: flex;
    flex-direction: column;   /* Label über dem Input */
    gap: 0.25rem;
}

.filter-group-horizontal {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-placeholder);
}

/* Inputs im Filter */
.filter-row select, 
.filter-row button, 
.filter-row a.btn-reset {
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Scroll Wrapper - Wichtig: max-width 100% damit er nicht rausragt */
.table-scroll-wrapper {
    display: block;
    width: 100%;           
    max-width: 100%;       
    overflow-x: auto;      
    overflow-y: hidden;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--background-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Matrix Tabelle Layout */
.evaluation-table {
    border-collapse: separate; /* Nötig für sticky */
    border-spacing: 0;
    width: 100%; 
    white-space: nowrap;
    margin-bottom: 0;
}

/* Sticky Spalte (Namen) */
.evaluation-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: var(--background-color);
    border-right: 2px solid var(--border-color);
    min-width: 160px;
    max-width: 200px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

/* Sticky Header oben links (Ecke) */
.evaluation-table thead th.sticky-col {
    z-index: 30;
    background-color: var(--tigers-yellow);
    top: 0;
}

/* Monat Header */
.evaluation-table th.month-header {
    background: var(--bg-table-header);
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    padding: 10px;
}

.evaluation-table th.month-col {
    background: var(--bg-table-header);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-light);
    text-align: center;
    padding: 8px 4px;
    min-width: 90px; /* Erzwingt Breite */
}

/* Datenzellen */
.evaluation-table td {
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    padding: 8px;
    white-space: nowrap;
}

.evaluation-table td.cell-amount {
    text-align: right;
    min-width: 90px;
}

.evaluation-table td.cell-empty {
    text-align: center;
    color: var(--text-placeholder);
    min-width: 90px;
}

.evaluation-table .amount {
    text-align: right;
    font-weight: bold;
}

/* Summenzeile Sticky unten */
.evaluation-table tr.sum-row .sticky-col {
    z-index: 25;
    background-color: var(--bg-table-header);
    bottom: 0; 
    border-top: 2px solid var(--border-color);
}

.evaluation-table tr.sum-row td {
    background-color: var(--bg-table-header);
    font-weight: bold;
    border-top: 2px solid var(--border-color);
    text-align: right;
}

/* =========================
   Home-Page
   ========================= */

.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--tigers-yellow);
    box-shadow: var(--card-shadow);
}

.hero-text h2 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--text-dark);
    border: none !important;
    padding: 0 !important;
    margin-bottom: 6px;
}

.hero-text .hero-date {
    color: var(--text-placeholder);
    font-size: 0.9rem;
}

.hero-text .hero-date i {
    color: var(--text-placeholder);
}

.hero-badge {
    background: var(--tigers-yellow);
    color: var(--tigers-black);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.hero-badge:hover { opacity: 0.85; }

.hero-badge i {
    color: var(--tigers-black);
}

.hero-badge.hero-badge-ghost {
    background: transparent;
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
    border: 1.5px solid var(--tigers-yellow);
}

.hero-badge.hero-badge-ghost i { color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline); }
.hero-badge.hero-badge-ghost:hover { background: color-mix(in srgb, var(--tigers-yellow) 10%, transparent); opacity: 1; }

.home-section {
    margin-bottom: 20px;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    /* War var(--tigers-black) - das ist eine MARKENKONSTANTE (#1a1a1a in
       beiden Themes), keine Textfarbe. Auf home.php faellt es nicht auf, weil
       .page-home .home-section-title in 03-diverses.css mit rgb(var(--ink))
       ueberschreibt. AlleNews.php hat diese Body-Klasse nicht - dort stand im
       Dunkelmodus dunkle Schrift auf dunklem Grund, 1,08:1 (2026-08-23). */
    color: rgb(var(--ink));
    margin-bottom: 12px;
}

.home-section-title i {
    color: rgb(var(--ink));
    font-size: 1rem;
}

.news-card {
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:last-child {
    margin-bottom: 0;
}

.news-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.news-date-badge {
    background: var(--tigers-yellow);
    color: var(--tigers-black);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.news-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.news-empty {
    color: var(--text-placeholder);
    font-size: 0.9rem;
    font-style: italic;
    padding: 8px 0;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-card {
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--tigers-yellow);
    border-radius: var(--radius-small);
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
}

.changelog-card .cl-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-placeholder);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.changelog-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.5;
}

.changelog-card p:last-child {
    margin-bottom: 0;
}

.feedback-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    margin-top: 4px;
}

.feedback-link i {
    color: var(--primary-blue);
}

.feedback-link:hover {
    text-decoration: underline;
}

.info-box {
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    padding: 16px;
    box-shadow: var(--card-shadow);
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-box p:last-of-type {
    margin-bottom: 0;
}

/* === Modern Web Guidance 2026: HTML5 <dialog> API & Top-Layer Modals === */
dialog, .modern-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    background: transparent;
    color: var(--text-color);
    max-width: min(90vw, 900px);
    margin: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
}

dialog::backdrop, .modern-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: dialog-backdrop-fade 0.2s ease-out;
}

dialog[open], .modern-dialog[open] {
    animation: dialog-content-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialog-backdrop-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialog-content-pop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hinweis-Popup der Anmeldung (index.html)
   Ersetzt die frueheren weissen Fehlerseiten: das Formular schickt sich per
   fetch() ab, die Meldung erscheint hier ueber der Anmeldekarte.
   Wiederhergestellt 2026-08-10: stand nur noch im Git-Repo, auf Live fehlte
   die CSS komplett, obwohl index.html die Klassen weiter benutzt – das
   Anmeldefehler-Popup und der Demo-Kasten liefen seither ungestylt. */
.login-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.55);
}

.login-popup.is-open {
    display: flex;
}

.login-popup-card {
    width: min(100%, 400px);
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--tigers-yellow);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
    padding: 28px 26px 24px;
    text-align: center;
    animation: login-popup-auf 0.16s ease-out;
}

@keyframes login-popup-auf {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.login-popup-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--tigers-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #111111;
}

.login-popup-icon i {
    color: #111111;
}

.login-popup-titel {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tigers-black);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.login-popup-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-placeholder);
    margin: 0 0 20px;
}

.login-popup-ok {
    width: 100%;
    height: 44px;
    background: #111111;
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
    border: none;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-popup-ok:hover {
    background: #1a1a1a;
}

/* Demo-Kasten auf der Anmeldeseite (nur unter der demo.-Subdomain)
   Zugang anfordern: Name, Verein, E-Mail. Die Farben stehen hier bewusst fest
   und nicht auf den Theme-Variablen — der Kasten ist immer gelb. */
.demo-box {
    width: 100%;
    background: var(--tigers-yellow);
    color: #111111;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 18px;
    text-align: left;
}

.demo-box-titel {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 6px;
}

.demo-box-text {
    font-size: 0.87rem;
    line-height: 1.5;
    color: #111111;
    margin: 0 0 12px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-form input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.75);
    color: #111111;
    font-size: 0.9rem;
}

.demo-form input::placeholder {
    color: rgba(0,0,0,0.45);
}

.demo-form input:focus {
    outline: none;
    border-color: #111111;
    background: #ffffff;
}

.demo-btn {
    height: 42px;
    background: #111111;
    color: var(--tigers-yellow-text); -webkit-text-stroke: 0.4px var(--tigers-yellow-outline); text-shadow: 0 0 1px var(--tigers-yellow-outline);
    border: none;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.demo-btn:hover:not(:disabled) {
    background: #1a1a1a;
}

.demo-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.demo-box-fuss {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(0,0,0,0.72);
    margin: 11px 0 0;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    padding: 12px 14px;
    text-decoration: none !important;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.doc-item i {
    font-size: 1.4rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.doc-item span {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}


