/* =====================================================================================================
   ÖLV-CI-SCHICHT für das PACE (Nutzer-Wunsch 18.11.2026: "weniger nach KI/Vibecode")
   - wird in index.html als LETZTES Stylesheet geladen und überschreibt nur das Aussehen.
   - Zurücksetzen auf das vorherige Design: die <link>-Zeile zu oelv-ci.css in index.html entfernen.
   Leitlinien (angelehnt an Verbandsseiten wie USATF / RFEA / CADA, aber in ÖLV-Farben):
   - Farben aus dem ÖLV-Logo: Rot #CA061C, Schiefergrau #5C6971 (daraus abgeleitet: Anthrazit für Bänder)
   - Schrift: Barlow (Text) + Barlow Condensed (Überschriften, Großbuchstaben) - lokal eingebunden (DSGVO,
     kein Abruf bei Google), Open Font License
   - flache Flächen statt Verläufe/Glühen/Schrägstreifen, kleine Ecken (4-6 px), kaum Schatten
   ===================================================================================================== */

/* ---------- Schriften (lokal, /fonts) ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/Barlow-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/Barlow-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/BarlowCondensed-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/BarlowCondensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(fonts/BarlowCondensed-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben & Grundwerte ---------- */
:root {
    --sh-rot: #ca061c;          /* ÖLV-Rot (Logo) */
    --sh-rot-dunkel: #a50517;
    --sh-rot-hell: #e5485a;
    --oelv-grau: #5c6971;       /* ÖLV-Schiefergrau (Logo) */
    --sh-nacht: #262c31;        /* Anthrazit, aus dem ÖLV-Grau abgedunkelt */
    --sh-nacht-2: #2e353b;
    --sh-nacht-3: #3a4249;
    --sh-schatten: 0 1px 2px rgba(17, 24, 39, .06);
    --sh-schatten-hoch: 0 4px 14px -8px rgba(17, 24, 39, .35);
    --ci-r: 6px;
    --ci-r-klein: 4px;
    --ci-schrift: 'Barlow', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
    --ci-titel: 'Barlow Condensed', 'Barlow', ui-sans-serif, system-ui, sans-serif;
}
html.dark {
    --sh-schatten: 0 1px 2px rgba(0, 0, 0, .5);
    --sh-schatten-hoch: 0 4px 14px -8px rgba(0, 0, 0, .8);
}

/* ---------- Schrift ---------- */
body { font-family: var(--ci-schrift) !important; -webkit-font-smoothing: antialiased; }
/* die überall verwendete Stärke 900 wirkte plump - Barlow 700 ist kräftig genug */
.font-black, .font-extrabold { font-weight: 700 !important; }
main h1, main h2, .sh-titel, .sh-h2, .bw-tag, .bd-lauf, #bewerbDetailTitel {
    font-family: var(--ci-titel) !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: .01em !important;
}
main h3 { font-family: var(--ci-titel); font-weight: 700; letter-spacing: .01em; }
main h1 { line-height: 1.02 !important; }
.sh-titel { font-size: clamp(2.2rem, 5vw, 3.6rem) !important; line-height: .98 !important; }
/* kleine Überschriften-Etiketten (Großbuchstaben + Sperrung) ruhiger */
.tracking-wider, .tracking-widest { letter-spacing: .06em !important; }

/* ---------- Farb-Klassen (Tailwind ist mit #dc2626 vorkompiliert) ---------- */
.bg-primary, .bg-red-600 { background-color: var(--sh-rot) !important; }
.hover\:bg-red-700:hover, .hover\:bg-primary:hover, .hover\:bg-red-600:hover { background-color: var(--sh-rot-dunkel) !important; }
.text-primary, .text-red-600 { color: var(--sh-rot) !important; }
.hover\:text-primary:hover, .hover\:text-red-600:hover { color: var(--sh-rot) !important; }
.border-primary, .border-red-600 { border-color: var(--sh-rot) !important; }
.accent-primary { accent-color: var(--sh-rot); }

/* ---------- Kopfzeile: aktiver Menüpunkt als roter Unterstrich statt roter Pille ---------- */
header .nav-link { border-radius: 0 !important; font-family: var(--ci-titel); font-weight: 600 !important; font-size: 1.02rem !important; letter-spacing: .03em; text-transform: uppercase; box-shadow: none !important; }
header .nav-link.bg-primary { background: transparent !important; color: var(--sh-rot) !important; box-shadow: inset 0 -3px 0 var(--sh-rot) !important; }
html.dark header .nav-link.bg-primary { color: #f4f4f5 !important; }
header .nav-link:not(.bg-primary):hover { background: transparent !important; color: var(--sh-rot) !important; }

/* ---------- Formen: kleine Ecken, kaum Schatten ---------- */
main :is(.rounded-xl, .rounded-2xl, .rounded-3xl) { border-radius: var(--ci-r) !important; }
main .rounded-lg { border-radius: var(--ci-r-klein) !important; }
main .shadow-sm, main .shadow, main .shadow-md, main .shadow-lg { box-shadow: var(--sh-schatten) !important; }

/* ---------- Dunkle Bänder (Seitenköpfe, Veranstaltung, Profil, Verein, Bewerb): flach statt Verlauf ---------- */
.main-view:not(#view-home) .ci-seitenkopf,
html #profil-inhalt > div:first-child,
html #wettkampf-detail-inhalt > div:first-child,
html #verein-detail-kontakt .vd-kopf,
.bd-kopf {
    background: var(--sh-nacht) !important;
    border-radius: var(--ci-r) !important;
    box-shadow: none !important;
    clip-path: none !important;
}
.main-view:not(#view-home) .ci-seitenkopf { padding: 1.35rem 1.6rem !important; border-left: 5px solid var(--sh-rot); }
.main-view:not(#view-home) .ci-seitenkopf::before,
html #profil-inhalt > div:first-child::after,
html #wettkampf-detail-inhalt > div:first-child::after,
html #verein-detail-kontakt .vd-kopf::after,
.bd-kopf::after { display: none !important; animation: none !important; }
/* Icon-Kacheln mit Glühen in den Seitenköpfen braucht es nicht - der Titel trägt */
.main-view:not(#view-home) .ci-seitenkopf-icon { display: none !important; }
.ci-seitenkopf .bk-zahl b { font-family: var(--ci-titel); font-weight: 700 !important; font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }
.ci-seitenkopf .bk-zahl span { color: #e5e7eb !important; letter-spacing: .1em !important; }
/* Statusschild & Datumskachel im Band */
html #wettkampf-detail-inhalt > div:first-child .rounded-full { border-radius: var(--ci-r-klein) !important; }

/* ---------- Startseite ---------- */
.sh-buehne-bg { background: var(--sh-nacht) !important; border-radius: var(--ci-r) !important; box-shadow: none !important; clip-path: none !important; border-left: 6px solid var(--sh-rot); }
.sh-bahnen, .sh-glow { display: none !important; }
.sh-kicker { border-radius: var(--ci-r-klein) !important; background: var(--sh-rot) !important; border: 0 !important; color: #fff !important; }
.sh-kicker-punkt { background: #fff !important; box-shadow: none !important; animation: none !important; }
.sh-cd-feld, .sh-heute, .sh-heute-zeile { border-radius: var(--ci-r-klein) !important; box-shadow: none !important; }
.sh-cd-zahl { font-family: var(--ci-titel); font-weight: 700 !important; }
.sh-btn { border-radius: var(--ci-r-klein) !important; box-shadow: none !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em; font-family: var(--ci-titel); font-size: 1rem !important; }
.sh-suche-input, .sh-suche-btn { border-radius: var(--ci-r-klein) !important; }
.sh-suche-input { box-shadow: var(--sh-schatten-hoch) !important; }
.sh-zahl, .sh-schnell a, .sh-schnell > *, .sh-kachel { border-radius: var(--ci-r) !important; }
.sh-zahl-wert { font-family: var(--ci-titel); font-weight: 700 !important; font-size: clamp(1.9rem, 3.2vw, 2.5rem) !important; }
.sh-h2::before { border-radius: 0 !important; width: .3rem !important; }
.sh-pille { border-radius: var(--ci-r-klein) !important; }

/* ---------- Suchfelder & Filter ---------- */
html :is(#searchInput, #vereinSearchInput, #wettkampfSearch) { border-radius: var(--ci-r-klein) !important; box-shadow: none !important; }
:is(#view-bewerbe, #view-ranking, #view-cups) > div > .bg-white.rounded-xl.shadow-sm { box-shadow: none !important; }

/* ---------- Eigene Komponenten (Bewerbe-Liste, Bewerb-Detail, Fakten) ---------- */
.bw-karte, .bw-tag, .wk-fakten, table.bd-tabelle { border-radius: var(--ci-r) !important; }
.bw-suche, .bw-paar, .bw-segment, .bw-seg, .bd-tabs, .bd-tab, .bd-runde, .bd-lauf, .bd-bahn,
.bw-ak, .bw-fertig, .bw-naechste-badge, .bd-ak, .bd-pb, .bd-q,
.bw-filterleiste [id^="tag-tabs-"] button, .bw-filterleiste [id^="kategorie-filter-"] button { border-radius: var(--ci-r-klein) !important; }
.bw-karte { box-shadow: none !important; }
.bw-karte:hover { transform: none !important; box-shadow: var(--sh-schatten-hoch) !important; }
.bw-titel { font-weight: 700 !important; font-size: 1rem !important; }
.bw-zeit { font-family: var(--ci-titel); font-weight: 700 !important; font-size: 1.15rem !important; }
.bw-tag { font-size: 1rem !important; letter-spacing: .03em !important; }
.bd-tab, .bd-runde { text-transform: uppercase; font-family: var(--ci-titel); font-weight: 600 !important; font-size: .95rem !important; letter-spacing: .03em; }
.bd-leistung { font-weight: 700 !important; }
.wk-fakt-label { letter-spacing: .06em !important; }
table.bd-tabelle thead th { letter-spacing: .06em !important; }

/* ---------- Ergänzungen nach Sichtprüfung ---------- */
/* Live-Ergebnisse: Kopf ebenfalls flach */
html #live-liste-view > .max-w-3xl > div:first-child {
    background: var(--sh-nacht) !important; border-radius: var(--ci-r) !important; box-shadow: none !important; clip-path: none !important; border-left: 5px solid var(--sh-rot);
}
html #live-liste-view > .max-w-3xl > div:first-child::before,
html #live-liste-view > .max-w-3xl > div:first-child::after { display: none !important; }
/* Listen- und Profilkarten: kleine Ecken, flach */
:is(#athleten-liste-container, #vereine-liste-container, #wettkampf-liste-container, #cups-liste-container) > div,
#profil-inhalt > .grid > div, #bestenliste-container > .bg-white, #wettkampf-detail-inhalt > .grid > .bg-white {
    border-radius: var(--ci-r) !important; box-shadow: none !important;
}
:is(#athleten-liste-container, #vereine-liste-container, #wettkampf-liste-container, #cups-liste-container) > div:hover {
    transform: none !important; box-shadow: var(--sh-schatten-hoch) !important;
}
/* Pillen-Knöpfe und Text-Schilder: kleine Ecken (runde Punkte/Avatare bleiben rund) */
main button.rounded-full, main a.rounded-full, main span.rounded-full:not(:empty), .vg-chip { border-radius: var(--ci-r-klein) !important; }
/* Namen: "NACHNAME Vorname" bleibt wie geschrieben */
#profil-inhalt h1, #profil-inhalt h2 { text-transform: none !important; }
/* Filter-Chips, Umschalter und Schilder aus bereiche.css/index.html (dort 999px) */
.bk-chip, .bk-umschalter, .bk-umschalter button, .ps-alle-knopf, .vl-schild, .vl-schild-anzahl, .vd-verband, .vb-seg-anzahl,
.bk-chip span, .wk-info, a.wk-dok, .hub-b-chip, .hub-b-vchip, .hub-r-badge { border-radius: var(--ci-r-klein) !important; }
#athleten-liste-container > div > div:last-child > span:first-child:not(.ci-ak-schild) { border-radius: var(--ci-r-klein) 0 0 var(--ci-r-klein) !important; }

/* =====================================================================================================
   STUFE 2 (Nutzer-Wunsch 18.11.2026): "cooler, interaktiver, trotzdem simpel" - angelehnt an usatf.org,
   in ÖLV-Farben: zweistufiger Kopf mit roter Service-Leiste, Bänder über die volle Breite, schräge Knöpfe
   mit Schrägstrich-Akzent, Abschnittstitel mittig mit Linien, Schnellzugriff als schräge Chips,
   runde Avatare mit Ring, Menü-Unterstrich der beim Überfahren hereinläuft.
   ===================================================================================================== */
html, body { overflow-x: clip; } /* Bänder über die volle Breite dürfen nicht seitlich scrollen lassen */

/* ---------- Kopf: rote Service-Leiste oben, darunter Logo + Menü (ab Tablet) ---------- */
@media (min-width: 768px) {
    header.sticky { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 0 !important; box-shadow: 0 1px 0 var(--sh-rand), 0 6px 18px -16px rgba(17, 24, 39, .5) !important; }
    header.sticky > div:first-child > div.h-16 {
        display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "util util" "logo nav";
        height: auto !important; align-items: stretch; column-gap: 1.5rem;
    }
    header.sticky > div:first-child > div.h-16 > div:first-child { grid-area: logo; padding: .6rem 0; align-self: center; }
    header.sticky > div:first-child > div.h-16 > nav { grid-area: nav; justify-content: flex-end; align-items: stretch; gap: 0 !important; }
    /* Service-Leiste: Hintergrund über die volle Kopfbreite (box-shadow + clip-path statt zusätzlicher Elemente) */
    header.sticky > div:first-child > div.h-16 > div:last-child {
        grid-area: util; justify-content: flex-end; gap: .15rem !important; padding: .2rem 0;
        background: var(--sh-rot); box-shadow: 0 0 0 100vmax var(--sh-rot); clip-path: inset(0 -100vmax);
    }
    header.sticky > div:first-child > div.h-16 > div:last-child :is(button, a):not(#trainerAccountMenu *, #sprachWahlListe *) {
        background: transparent !important; border-color: transparent !important; box-shadow: none !important;
        color: #fff !important; padding: .2rem .5rem !important; border-radius: 0 !important;
        font-family: var(--ci-titel); font-weight: 600 !important; font-size: .82rem !important; letter-spacing: .06em; text-transform: uppercase;
    }
    header.sticky > div:first-child > div.h-16 > div:last-child :is(button, a):not(#trainerAccountMenu *, #sprachWahlListe *):hover { background: rgba(255, 255, 255, .14) !important; }
    header.sticky > div:first-child > div.h-16 > div:last-child :is(button, a):not(#trainerAccountMenu *, #sprachWahlListe *) svg:not(.sprach-flagge) { width: 1rem !important; height: 1rem !important; color: #fff !important; }
    /* Sprachauswahl (Dropdown): Flagge mit hellem Rand auf der roten Leiste */
    header.sticky #sprachWahlBtn .sprach-flagge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
    /* Menü: große Großbuchstaben, Unterstrich läuft beim Überfahren herein */
    header .nav-link {
        display: flex; align-items: center; padding: 0 .95rem !important; font-size: 1.08rem !important; font-weight: 600 !important; color: #374151 !important;
        background: linear-gradient(var(--sh-rot), var(--sh-rot)) left bottom / 0 4px no-repeat !important;
        transition: background-size .22s ease, color .15s ease !important;
    }
    header .nav-link:hover { background-size: 100% 4px !important; color: var(--sh-rot) !important; }
    header .nav-link.bg-primary { background: linear-gradient(var(--sh-rot), var(--sh-rot)) left bottom / 100% 4px no-repeat !important; box-shadow: none !important; color: #111827 !important; }
    html.dark header.sticky { background: #111113 !important; box-shadow: 0 1px 0 #27272a !important; }
    html.dark header .nav-link { color: #d4d4d8 !important; }
    html.dark header .nav-link.bg-primary { color: #fff !important; }
}

/* ---------- Bänder über die volle Breite ---------- */
.main-view:not(#view-home) .ci-seitenkopf,
html #live-liste-view > .max-w-3xl > div:first-child {
    border-radius: 0 !important; border-left: 0 !important;
    box-shadow: 0 0 0 100vmax var(--sh-nacht) !important; clip-path: inset(0 -100vmax) !important;
    margin-top: -1rem !important; padding: 2rem 0 !important;
}
.main-view:not(#view-home) .ci-seitenkopf h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important; font-weight: 600 !important; letter-spacing: .02em !important; }
.main-view:not(#view-home) .ci-seitenkopf p { font-size: 1rem !important; }
/* roter Schrägstrich als Akzent vor dem Titel */
.main-view:not(#view-home) .ci-seitenkopf > div:not(.ci-seitenkopf-icon):not(.bk-zahl) { position: relative; padding-left: 1.4rem; }
.main-view:not(#view-home) .ci-seitenkopf > div:not(.ci-seitenkopf-icon):not(.bk-zahl)::before {
    content: ''; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 7px; background: var(--sh-rot); transform: skewX(-14deg);
}
.ci-seitenkopf .bk-zahl b { font-weight: 600 !important; font-size: clamp(2.4rem, 4.5vw, 3.2rem) !important; }

/* Startseite: Bühne über die volle Breite, bündig unter dem Kopf, schräge Fläche rechts */
#view-home .sh-buehne { margin-top: -2rem; }
.sh-buehne-bg { border-radius: 0 !important; border-left: 0 !important; box-shadow: 0 0 0 100vmax var(--sh-nacht) !important; clip-path: inset(0 -100vmax) !important; overflow: visible !important; }
.sh-buehne-bg::after {
    content: ''; position: absolute; top: 0; bottom: 0; right: -100vmax; width: calc(100vmax + 32%);
    background: var(--sh-nacht-2); transform: skewX(-14deg); transform-origin: bottom; border-left: 8px solid var(--sh-rot);
}
@media (max-width: 1023px) { .sh-buehne-bg::after { display: none; } }
.sh-titel { font-weight: 600 !important; font-size: clamp(2.4rem, 5.5vw, 4rem) !important; }

/* ---------- Abschnittstitel mittig mit Linien ---------- */
.sh-sektion-kopf { align-items: center !important; }
.sh-h2 { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 1.25rem; font-weight: 600 !important; font-size: 1.6rem !important; letter-spacing: .06em !important; }
.sh-h2::before, .sh-h2::after { content: '' !important; flex: 1; height: 1px !important; width: auto !important; background: var(--sh-rand) !important; border-radius: 0 !important; transform: none !important; }

/* ---------- Schräge Knöpfe mit Schrägstrich-Akzent ---------- */
.sh-btn { position: relative; transform: skewX(-14deg); border-radius: 0 !important; margin-right: 14px; transition: background-color .15s ease, transform .15s ease !important; }
.sh-btn > * { transform: skewX(14deg); }
.sh-btn::after { content: ''; position: absolute; top: 0; bottom: 0; right: -12px; width: 5px; background: var(--sh-rot); transition: right .15s ease; }
.sh-btn:hover::after { right: -16px; }
.sh-btn-glas::after, .sh-heute-fuss .sh-btn::after { background: rgba(255, 255, 255, .55); }
.sh-heute-fuss .sh-btn { margin-right: 0; width: calc(100% - 14px) !important; }

/* ---------- Schnellzugriff als schräge Chips (wie die Schnelllinks unter dem USATF-Bild) ---------- */
.sh-schnell { display: flex !important; flex-wrap: wrap; justify-content: center; gap: .8rem 1.4rem !important; }
.sh-kachel {
    display: inline-flex !important; align-items: center; gap: .7rem; padding: .7rem 1.3rem !important; min-height: 0 !important;
    transform: skewX(-14deg); border-radius: 0 !important; border: 1px solid var(--sh-rand) !important; box-shadow: none !important; background: #fff !important;
}
.sh-kachel > * { transform: skewX(14deg); }
.sh-kachel::before { display: none !important; }
.sh-kachel-icon { width: auto !important; height: auto !important; background: none !important; color: var(--sh-rot) !important; padding-right: .7rem; border-right: 1px solid var(--sh-rand); border-radius: 0 !important; }
.sh-kachel-titel { margin: 0 !important; font-family: var(--ci-titel); font-weight: 600 !important; font-size: 1.05rem !important; text-transform: uppercase; letter-spacing: .05em; color: #111827; }
.sh-kachel-text, .sh-kachel-pfeil { display: none !important; }
.sh-kachel:hover, .sh-kachel:focus-visible { transform: skewX(-14deg) !important; background: var(--sh-rot) !important; border-color: var(--sh-rot) !important; }
.sh-kachel:hover :is(.sh-kachel-icon, .sh-kachel-titel), .sh-kachel:focus-visible :is(.sh-kachel-icon, .sh-kachel-titel) { color: #fff !important; border-color: rgba(255, 255, 255, .4); }
html.dark .sh-kachel { background: #18181b !important; border-color: #3f3f46 !important; }
html.dark .sh-kachel-titel { color: #f4f4f5; }

/* ---------- Kennzahlen als ruhige Leiste mit Trennlinien ---------- */
.sh-zahl { background: transparent !important; border: 0 !important; border-left: 1px solid var(--sh-rand) !important; box-shadow: none !important; border-radius: 0 !important; }
.sh-zahl:first-child { border-left: 0 !important; }
.sh-zahl::before { display: none !important; }
.sh-zahl:hover { transform: none !important; background: transparent !important; }
.sh-zahl:hover .sh-zahl-wert { color: var(--sh-rot); }
.sh-zahl-wert { font-weight: 600 !important; font-size: clamp(2.3rem, 4vw, 3rem) !important; }
.sh-zahl-icon { display: none !important; }
/* GEÄNDERT (11/2026): nur noch 3 Kennzahlen, zentriert - die 4. Kachel ("Bewerbe heute" / Nennschluss / nächster
   Wettkampf) ist ausgeblendet (Markup + shRenderZahlDyn bleiben, zum Zurückholen diese Regel entfernen) */
#sh-zahl-dyn { display: none !important; }
.sh-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sh-zahl { text-align: center !important; }
@media (max-width: 640px) { .sh-zahl { padding-left: .4rem !important; padding-right: .4rem !important; } .sh-zahl-wert { font-size: 1.9rem !important; } }

/* ---------- Runde Avatare mit Ring (Athlet:innen, Vereine) ---------- */
.ci-athlet-bild, #vereine-liste-container > div > div:first-child {
    border-radius: 50% !important; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sh-rand) !important;
}
html.dark .ci-athlet-bild, html.dark #vereine-liste-container > div > div:first-child { box-shadow: 0 0 0 3px #18181b, 0 0 0 4px #3f3f46 !important; }
.ci-athlet-bild.ci-initialen, html #vereine-liste-container > div > div:first-child:not(:has(img)) { background: var(--sh-nacht) !important; font-family: var(--ci-titel); font-weight: 600 !important; letter-spacing: .04em; }

/* ---------- Listen-Karten: roter Strich läuft beim Überfahren herein ---------- */
:is(#athleten-liste-container, #vereine-liste-container, #wettkampf-liste-container, #cups-liste-container) > div { position: relative; overflow: hidden; }
:is(#athleten-liste-container, #vereine-liste-container, #wettkampf-liste-container, #cups-liste-container) > div::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sh-rot); transition: width .25s ease;
}
:is(#athleten-liste-container, #vereine-liste-container, #wettkampf-liste-container, #cups-liste-container) > div:hover::after { width: 100%; }
/* Demnächst-Box fest hinterlegt, damit die schräge Fläche sauber dahinter liegt */
.sh-heute { background: #1d2226 !important; border-color: #3a4249 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.sh-heute-zeile { background: #262c31 !important; }
/* Filterkarten (Wettkämpfe, Bestenliste, Cups): kleine Ecken */
:is(#view-bewerbe, #view-ranking, #view-cups) > div > .bg-white, #wettkampf-liste-view > div > .bg-white { border-radius: var(--ci-r) !important; }

/* =====================================================================================================
   STUFE 3 (Nutzer-Wunsch 18.11.2026): "moderner & interaktiver" + Bildsprache
   - Fotos (lokal in /bilder, Quellen siehe bilder/QUELLEN.md) in den Bändern, abgedunkelt mit ÖLV-Anthrazit
   - ruhigerer Kopf: Service-Leiste anthrazit statt rot, Wortmarke in Condensed-Großbuchstaben
   - Listen (Athlet:innen, Vereine) als Verzeichnis-Zeilen statt Karten
   - dezente Bewegung: Bild zoomt beim Öffnen langsam ein, Pfeile/Striche reagieren beim Überfahren
   ===================================================================================================== */
:root { --ci-bild-verlauf: linear-gradient(100deg, rgba(29, 34, 38, .97) 0%, rgba(29, 34, 38, .9) 38%, rgba(29, 34, 38, .62) 72%, rgba(29, 34, 38, .45) 100%); }

/* ---------- Kopf ruhiger ---------- */
@media (min-width: 768px) {
    header.sticky > div:first-child > div.h-16 > div:last-child { background: #1d2226 !important; box-shadow: 0 0 0 100vmax #1d2226 !important; }
    header.sticky #sprachWahlBtn[aria-expanded="true"] { background: rgba(255, 255, 255, .14) !important; }
    /* (früherer DE|EN-Rahmen entfällt - Sprachauswahl ist jetzt ein Dropdown) */
    header.sticky { box-shadow: 0 1px 0 var(--sh-rand), inset 0 -3px 0 var(--sh-rot) !important; }
}
/* Wortmarke "ATHLETEN.PORTAL" */
header .oelv-logo + span { font-family: var(--ci-titel) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Fotobänder: Bild über die volle Breite hinter dem Band ---------- */
.main-view:not(#view-home) .ci-seitenkopf,
html #live-liste-view > .max-w-3xl > div:first-child { overflow: visible !important; isolation: isolate; padding: 2.9rem 0 !important; }
.main-view:not(#view-home) .ci-seitenkopf::after,
html body #live-liste-view > .max-w-3xl > div:first-child::after {
    content: '' !important; display: block !important; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; z-index: -1;
    transform: translateX(-50%); background: var(--ci-bild-verlauf), var(--ci-bild, none) center / cover no-repeat, var(--sh-nacht);
    animation: ciBildZoom 1.4s ease-out both;
}
#view-athletes .ci-seitenkopf { --ci-bild: url(bilder/athleten.jpg); }
#view-vereine .ci-seitenkopf { --ci-bild: url(bilder/vereine.jpg); }
#view-bewerbe .ci-seitenkopf { --ci-bild: url(bilder/wettkaempfe.jpg); }
#view-ranking .ci-seitenkopf { --ci-bild: url(bilder/bestenliste.jpg); }
#view-cups .ci-seitenkopf { --ci-bild: url(bilder/cups.jpg); }
html #live-liste-view > .max-w-3xl > div:first-child { --ci-bild: url(bilder/ergebnisse.jpg); }
@keyframes ciBildZoom { from { opacity: .35; } to { opacity: 1; } }

/* Detail-Köpfe (Veranstaltung, Bewerb, Profil, Verein) mit Bild im Kärtchen */
html #wettkampf-detail-inhalt > div:first-child, .bd-kopf { background: var(--ci-bild-verlauf), url(bilder/veranstaltung.jpg) center / cover no-repeat, var(--sh-nacht) !important; }
html #profil-inhalt > div:first-child { background: var(--ci-bild-verlauf), url(bilder/athleten.jpg) center / cover no-repeat, var(--sh-nacht) !important; }
html #verein-detail-kontakt .vd-kopf { background: var(--ci-bild-verlauf), url(bilder/vereine.jpg) center / cover no-repeat, var(--sh-nacht) !important; }

/* ---------- Startseite: Foto im Hero, schräger roter Streifen statt Fläche ---------- */
.sh-buehne-bg::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
    background: linear-gradient(100deg, rgba(29, 34, 38, .97) 0%, rgba(29, 34, 38, .88) 42%, rgba(29, 34, 38, .55) 75%, rgba(29, 34, 38, .4) 100%), url(bilder/start.jpg) center 60% / cover no-repeat;
    animation: ciBildZoom 1.6s ease-out both;
}
.sh-buehne-bg::after { background: transparent !important; border-left-width: 10px !important; width: calc(100vmax + 30%) !important; }
.sh-heute { background: rgba(29, 34, 38, .92) !important; }
.sh-buehne { padding-top: clamp(2.5rem, 5vw, 4rem) !important; padding-bottom: clamp(4.75rem, 7vw, 6rem) !important; }

/* ---------- Listen als Verzeichnis-Zeilen (Athlet:innen, Vereine) ---------- */
#athleten-liste-container, #vereine-liste-container { column-gap: 2.5rem !important; row-gap: 0 !important; }
:is(#athleten-liste-container, #vereine-liste-container) > div {
    border: 0 !important; border-bottom: 1px solid var(--sh-rand) !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; padding-left: .35rem !important; padding-right: .35rem !important;
    transition: background-color .15s ease, padding-left .2s ease !important;
}
:is(#athleten-liste-container, #vereine-liste-container) > div:hover { background: var(--sh-flaeche, #fff) !important; padding-left: .85rem !important; box-shadow: none !important; }
:is(#athleten-liste-container, #vereine-liste-container) > div > svg:last-child,
:is(#athleten-liste-container, #vereine-liste-container) > div > div:last-child > svg:last-child { transition: transform .2s ease, color .2s ease; }
:is(#athleten-liste-container, #vereine-liste-container) > div:hover svg:last-child { transform: translateX(4px); color: var(--sh-rot) !important; }

/* Wettkampf-Liste: Datum größer und ruhiger, Karte flach mit rotem Strich beim Überfahren */
#wettkampf-liste-container > div { border-color: var(--sh-rand) !important; }
#wettkampf-liste-container > div:hover { border-color: #d1d5db !important; }

@media (prefers-reduced-motion: reduce) {
    .main-view:not(#view-home) .ci-seitenkopf::after, html body #live-liste-view > .max-w-3xl > div:first-child::after, .sh-buehne-bg::before { animation: none !important; }
}

/* ---------- Korrekturen 18.11.2026 (Nutzer-Rückmeldung) ---------- */
/* FIX: Konto-Menü (Mein Profil / Verein verwalten / Logout) war nach dem Login unsichtbar - die Service-Leiste
   schnitt per clip-path alles unterhalb ab. Jetzt verlängert border-image den Hintergrund nur seitlich,
   ohne Kinder (das aufklappende Menü) zu beschneiden. */
@media (min-width: 768px) {
    header.sticky > div:first-child > div.h-16 > div:last-child {
        clip-path: none !important; box-shadow: none !important;
        background: #1d2226 !important;
        border-image: linear-gradient(#1d2226, #1d2226) fill 0 / 0 / 0 100vmax;
        position: relative; z-index: 60;
    }
    header.sticky #trainerAccountMenu { z-index: 70 !important; }
    header.sticky #trainerAccountMenu button { text-transform: none; font-family: var(--ci-schrift); }
}

/* Schnell zu: alle sechs in einer Reihe (Tablet 3, Handy 2 je Zeile) */
.sh-schnell { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem !important; padding: 0 8px; }
.sh-kachel { justify-content: center; padding: .7rem .6rem !important; gap: .55rem; min-width: 0; }
.sh-kachel-icon { padding-right: .55rem !important; }
.sh-kachel-titel { font-size: .98rem !important; letter-spacing: .03em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1023px) { .sh-schnell { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sh-schnell { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sh-kachel-titel { font-size: .88rem !important; } }

/* Bevorstehende Wettkämpfe: "HEUTE"/"IN 3 TAGEN" nicht mehr über "bis 22. Nov." legen + CI-Look */
.sh-wk { border-radius: var(--ci-r) !important; box-shadow: none !important; }
.sh-wk:hover, .sh-wk:focus-visible { transform: none !important; box-shadow: var(--sh-schatten-hoch) !important; border-color: #d1d5db !important; }
.sh-wk-kopf { height: auto !important; min-height: 7.5rem; padding: 1rem 1rem 1.9rem !important; background: var(--sh-nacht) !important; }
.sh-wk-kopf::before { display: none !important; }
.sh-wk-tag { font-family: var(--ci-titel); font-weight: 700 !important; font-size: 2.9rem !important; letter-spacing: 0 !important; }
.sh-wk-monat { font-family: var(--ci-titel); font-weight: 600 !important; font-size: 1rem !important; letter-spacing: .08em !important; }
.sh-wk-bis { margin-top: .15rem !important; }
.sh-wk-countdown { position: relative !important; left: auto !important; bottom: auto !important; display: inline-block; margin-top: .55rem; border-radius: var(--ci-r-klein) !important; background: rgba(255, 255, 255, .14) !important; }
.sh-wk-countdown.heute { background: var(--sh-rot) !important; }
.sh-wk-symbol { border-radius: var(--ci-r-klein) !important; }
.sh-wk-name { font-family: var(--ci-titel); font-weight: 700 !important; font-size: 1.12rem !important; }
.sh-wk:hover .sh-wk-name { color: var(--sh-rot); }
/* Schnell zu: kompakter, damit auch 'LIVE & ERGEBNISSE' bei 1280 px ungekürzt passt */
.sh-kachel { gap: .4rem !important; padding: .65rem .45rem !important; }
.sh-kachel-icon { padding-right: .4rem !important; }
.sh-kachel-icon svg { width: 1.1rem !important; height: 1.1rem !important; }
.sh-kachel-titel { font-size: .9rem !important; letter-spacing: .01em !important; }

/* =====================================================================================================
   STUFE 4 (Nutzer 18.11.2026): echte ÖLV-Fotos aus dem Flickr-Album "ÖLV Nationalteam"
   (https://www.flickr.com/photos/austrianathletics/albums/72177720331970344/) - laut ÖLV honorarfrei
   verwendbar bei Nennung des im Bildtitel angegebenen Copyrights -> Copyright-Zeile unten rechts im Band.
   Profil-/Vereins-/Veranstaltungs-Köpfe behalten bewusst neutrale Bahnbilder (sonst stünde z.B. ein
   bestimmter Athlet über dem Profil einer anderen Person). Quellen: bilder/QUELLEN.md
   ===================================================================================================== */
#view-athletes .ci-seitenkopf { --ci-bild: url(bilder/oelv-athleten.jpg); --ci-pos: 50% 40%; /* GEÄNDERT 11/2026: weiter unten - Gesicht + Trikot statt Tribüne */ --ci-credit: "Foto © Soňa Maléterová | ÖLV"; }
#view-vereine .ci-seitenkopf { --ci-bild: url(bilder/oelv-vereine.jpg); --ci-pos: 50% 45%; --ci-credit: "Foto © @wolfamri | ÖLV"; }
#view-bewerbe .ci-seitenkopf { --ci-bild: url(bilder/oelv-wettkaempfe.jpg); --ci-pos: 50% 55%; --ci-credit: "Foto © Soňa Maléterová | ÖLV"; }
#view-ranking .ci-seitenkopf { --ci-bild: url(bilder/oelv-bestenliste.jpg); --ci-pos: 50% 30%; --ci-credit: "Foto © Soňa Maléterová | ÖLV"; }
#view-cups .ci-seitenkopf { --ci-bild: url(bilder/oelv-cups.jpg); --ci-pos: 50% 50%; --ci-credit: "Foto © Soňa Maléterová | ÖLV"; }
html #live-liste-view > .max-w-3xl > div:first-child { --ci-bild: url(bilder/oelv-ergebnisse.jpg); --ci-pos: 50% 45%; --ci-credit: "Foto © @amri.sports | ÖLV"; }
.main-view:not(#view-home) .ci-seitenkopf::after,
html body #live-liste-view > .max-w-3xl > div:first-child::after { background-position: 0 0, var(--ci-pos, center), 0 0 !important; }

/* Copyright-Zeile (Pflicht laut ÖLV) */
.main-view:not(#view-home) .ci-seitenkopf::before,
html body #live-liste-view > .max-w-3xl > div:first-child::before {
    content: var(--ci-credit, '') !important; display: block !important; position: absolute !important;
    inset: auto 0 .45rem auto !important; z-index: 1; background: none !important; animation: none !important; transform: none !important;
    font-family: var(--ci-schrift); font-size: .66rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: rgba(255, 255, 255, .72); pointer-events: none;
}

/* Startseite: Hochsprung-Foto (Athletin rechts oben im Bild) + Copyright */
.sh-buehne-bg::before {
    /* GEÄNDERT (11/2026): Bild des Tages - startseite.js (shStartbildSetzen) setzt --sh-start-bild/-pos/-credit;
       ohne JS bzw. ohne weitere Bilder bleibt oelv-start.jpg */
    background: linear-gradient(100deg, rgba(29, 34, 38, .96) 0%, rgba(29, 34, 38, .85) 40%, rgba(29, 34, 38, .4) 72%, rgba(29, 34, 38, .15) 100%), var(--sh-start-bild, url(bilder/oelv-start.jpg)) var(--sh-start-pos, 72% 30%) / cover no-repeat !important;
}
/* Desktop: einzelne Bilder vergrößert + rechtsbündig, damit das Gesicht nicht unter der "Heute"-Box liegt
   (Werte aus SH_STARTBILDER[].breit in startseite.js; ohne Angabe wie bisher cover) */
@media (min-width: 1024px) {
    .sh-buehne-bg::before {
        background-size: auto, var(--sh-start-groesse-breit, cover) !important;
        background-position: 0 0, var(--sh-start-pos-breit, var(--sh-start-pos, 72% 30%)) !important;
    }
}
#view-home .sh-buehne-inhalt::after {
    content: var(--sh-start-credit, 'Foto © Soňa Maléterová | ÖLV'); position: absolute; right: 0; bottom: .55rem; z-index: 1;
    font-size: .66rem; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .72); pointer-events: none;
}
@media (max-width: 767px) { #view-home .sh-buehne-inhalt::after { bottom: auto; top: .4rem; } }
/* Bänder: Foto rechts, Größe an der Bandhöhe ausgerichtet (nicht an der Breite) - so bleibt immer
   ca. 40 % der Bildhöhe sichtbar; --ci-y wählt pro Foto den Ausschnitt, damit Kopf + Oberkörper im Bild sind */
.main-view:not(#view-home) .ci-seitenkopf::after, html body #live-liste-view > .max-w-3xl > div:first-child::after {
    /* Band ca. 165-175 px hoch -> Foto ca. 730-780 px breit; weicher Übergang über den linken Fotorand (540-800 px von rechts) */
    /* GEÄNDERT (22.11.2026): Fotobreite (--ci-foto-b) und Zoom (--ci-zoom) je Band einstellbar; Standard wie bisher 780px / 300% */
    background: linear-gradient(90deg, var(--sh-nacht) 0%, var(--sh-nacht) 12%, rgba(38, 44, 49, .6) 45%, rgba(38, 44, 49, 0) 100%) right calc(var(--ci-foto-b, 780px) - 240px) top 0 / 260px 100% no-repeat,
        linear-gradient(var(--sh-nacht), var(--sh-nacht)) 0 0 / calc(100% - var(--ci-foto-b, 780px)) 100% no-repeat,
        linear-gradient(90deg, rgba(38, 44, 49, .35), rgba(38, 44, 49, .1) 40%, rgba(38, 44, 49, .2)),
        var(--ci-bild, none) 100% var(--ci-y, 50%) / auto var(--ci-zoom, 300%) no-repeat, var(--sh-nacht) !important;
}
/* GEÄNDERT (22.11.2026): Athleten-Foto weniger vergrößert -> Hände, Gesicht und "AUSTRIA"-Trikot statt nur Fingerspitzen bis Kinn */
#view-athletes .ci-seitenkopf { --ci-y: 43%; --ci-zoom: 200%; --ci-foto-b: 500px; --ci-tablet-x: 40px; }
#view-vereine .ci-seitenkopf { --ci-y: 11%; }
#view-bewerbe .ci-seitenkopf { --ci-y: 35%; }
#view-ranking .ci-seitenkopf { --ci-y: 4%; }
#view-cups .ci-seitenkopf { --ci-y: 21%; }
html #live-liste-view > .max-w-3xl > div:first-child { --ci-y: 27%; }
/* Kennzahl (z.B. 547 Athlet:innen) ab 1440 px direkt neben dem Titel statt rechts über dem Foto - so bleibt das Motiv frei */
@media (min-width: 1440px) { .main-view:not(#view-home) .ci-seitenkopf .bk-zahl { margin-left: 2.5rem !important; padding-left: 1.5rem !important; border-left: 1px solid rgba(255, 255, 255, .22); text-align: left !important; } }
/* 768-1199 px: Foto gleich groß wie am Desktop, aber 200 px nach rechts geschoben (rechter Bildrand abgeschnitten),
   damit das Motiv rechts neben dem Text steht und nicht darunter */
@media (min-width: 768px) and (max-width: 1199px) { .main-view:not(#view-home) .ci-seitenkopf::after, html body #live-liste-view > .max-w-3xl > div:first-child::after {
    background: linear-gradient(90deg, var(--sh-nacht) 0%, var(--sh-nacht) 12%, rgba(38, 44, 49, .6) 45%, rgba(38, 44, 49, 0) 100%) right calc(var(--ci-foto-b, 780px) - var(--ci-tablet-x, 200px) - 240px) top 0 / 260px 100% no-repeat,
        linear-gradient(var(--sh-nacht), var(--sh-nacht)) 0 0 / calc(100% - var(--ci-foto-b, 780px) + var(--ci-tablet-x, 200px)) 100% no-repeat,
        linear-gradient(90deg, rgba(38, 44, 49, .35), rgba(38, 44, 49, .1) 40%, rgba(38, 44, 49, .2)),
        var(--ci-bild, none) calc(100% + var(--ci-tablet-x, 200px)) var(--ci-y, 50%) / auto var(--ci-zoom, 300%) no-repeat, var(--sh-nacht) !important; } }
/* Handy: Foto füllt das Band, kräftiger Verlauf hinter dem Text */
@media (max-width: 767px) { .main-view:not(#view-home) .ci-seitenkopf::after, html body #live-liste-view > .max-w-3xl > div:first-child::after { background: linear-gradient(90deg, rgba(38, 44, 49, .92) 0%, rgba(38, 44, 49, .7) 55%, rgba(38, 44, 49, .35) 100%), var(--ci-bild, none) 70% var(--ci-y, 50%) / cover no-repeat, var(--sh-nacht) !important; } }
/* Live-Ergebnisse: Uhr ebenfalls neben den Titel statt über das Foto */
@media (min-width: 1440px) {
    html #live-liste-view > .max-w-3xl > div:first-child { justify-content: flex-start !important; }
    html #live-liste-view > .max-w-3xl > div:first-child > .text-right { margin-left: 2.5rem; padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .22); text-align: left !important; }
}
/* 641-1439 px: dort reicht der Platz neben dem Titel nicht -> Kennzahl bzw. Uhr klein unter den Untertitel */
@media (min-width: 641px) and (max-width: 1439px) {
    .main-view:not(#view-home) .ci-seitenkopf { flex-wrap: wrap; }
    .main-view:not(#view-home) .ci-seitenkopf .bk-zahl { margin: .55rem 0 0 1.4rem !important; padding-left: 0 !important; text-align: left !important; flex-basis: 100%; display: flex; align-items: baseline; gap: .5rem; }
    .main-view:not(#view-home) .ci-seitenkopf .bk-zahl b { font-size: 1.45rem !important; }
    .main-view:not(#view-home) .ci-seitenkopf .bk-zahl span { margin-top: 0; }
    html #live-liste-view > .max-w-3xl > div:first-child { flex-wrap: wrap; justify-content: flex-start !important; }
    html #live-liste-view > .max-w-3xl > div:first-child > .text-right { flex-basis: 100%; display: flex; align-items: baseline; gap: .5rem; text-align: left !important; margin-top: -.6rem; }
    html #live-liste-view #hub-uhr { font-size: 1.3rem !important; }
}

/* =====================================================================================================
   NEU (Nutzer-Wunsch 20.11.2026): Kopf am Handy - Menü-Knopf war abgeschnitten (lag bei 390 px Breite
   außerhalb des Bildschirms). Jetzt: Menü-Knopf fest, groß und umrandet; Logo/PACE/Knöpfe etwas kompakter.
   ===================================================================================================== */
#nav-ton-mobile { display: none; }
@media (max-width: 639px) {
    header.sticky > div:first-child { padding-left: .75rem !important; padding-right: .75rem !important; }
    header.sticky > div:first-child > div.h-16 { gap: .5rem; }
    header.sticky > div:first-child > div.h-16 > div:first-child { min-width: 0; flex-shrink: 1; gap: .35rem !important; }
    header.sticky > div:first-child > div.h-16 > div:last-child { flex-shrink: 0; gap: .3rem !important; }
    header.sticky .oelv-logo { height: 1.6rem !important; }
    .pace-marke svg { height: 1.05rem !important; }
    :is(#darkModeToggleBtn, #audioMuteBtn, #trainerLoggedOutBox > button, #trainerAccountMenuBtn) { padding: .45rem !important; }
    :is(#darkModeToggleBtn, #audioMuteBtn, #trainerLoggedOutBox > button, #trainerAccountMenuBtn) svg { width: 1.1rem !important; height: 1.1rem !important; }
    #mobileMenuBtn {
        display: inline-flex !important; align-items: center; justify-content: center; flex-shrink: 0;
        width: 2.65rem; height: 2.65rem; padding: 0 !important; border: 1px solid #d1d5db; border-radius: 4px;
        background: #fff; color: #111827 !important;
    }
    #mobileMenuBtn svg { width: 1.5rem !important; height: 1.5rem !important; }
    html.dark #mobileMenuBtn { background: #18181b; border-color: #3f3f46; color: #f4f4f5 !important; }
}
/* sehr schmale Handys: Ton-Knopf wandert ins Menü */
@media (max-width: 379px) {
    #audioMuteBtn { display: none !important; }
    #nav-ton-mobile { display: flex; }
    .pace-marke svg { height: .95rem !important; }
}
