/* ============================================================
   bereiche.css – einheitliches Aussehen der Bereiche abseits der Startseite (11/2026)
   Gleiche Bildsprache wie die Startseite (startseite.css): dunkles Band mit Laufbahn-Linien und rotem Leuchten,
   Karten mit großen Rundungen, Anheben + rotem Strich beim Darüberfahren, gestaffeltes Erscheinen.
   NUR Gestaltung - keine Logik, keine Markup-Änderung (Kennzahl im Seitenkopf: bereiche.js).
   Variablen (--sh-*) kommen aus startseite.css; Fallbacks stehen jeweils dabei.
   ============================================================ */

/* ======================= SEITENKOPF als dunkles Band ======================= */
.main-view:not(#view-home) .ci-seitenkopf {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 1.6rem 1.75rem 2.6rem; margin-bottom: 1.75rem; border-radius: 1.25rem; color: #fff;
    background:
        radial-gradient(110% 160% at 100% 0%, rgba(220, 38, 38, .5) 0%, rgba(220, 38, 38, 0) 55%),
        linear-gradient(135deg, #0c0f16 0%, #151a24 60%, #1b0f12 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.4rem), 0 100%);
    box-shadow: 0 24px 50px -30px rgba(12, 15, 22, .7);
}
.main-view:not(#view-home) .ci-seitenkopf::before { /* Laufbahn-Linien */
    content: ''; position: absolute; inset: -40% -10%; z-index: -1;
    background: repeating-linear-gradient(-62deg, transparent 0 58px, rgba(255, 255, 255, .05) 58px 60px);
}
@media (prefers-reduced-motion: no-preference) {
    .main-view:not(#view-home) .ci-seitenkopf::before { animation: bkBahnen 28s linear infinite; }
}
@keyframes bkBahnen { from { transform: translateX(0); } to { transform: translateX(-120px); } }
html .main-view:not(#view-home) .ci-seitenkopf h1 { color: #fff !important; letter-spacing: -.025em; }
html .main-view:not(#view-home) .ci-seitenkopf p { color: #cbd5e1 !important; }
.main-view:not(#view-home) .ci-seitenkopf-icon { box-shadow: 0 10px 24px -8px rgba(220, 38, 38, .8); }
/* Kennzahl rechts im Band (bereiche.js) */
.ci-seitenkopf .bk-zahl { margin-left: auto; text-align: right; flex-shrink: 0; padding-left: 1rem; }
.ci-seitenkopf .bk-zahl b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ci-seitenkopf .bk-zahl span { display: block; margin-top: .3rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fca5a5; }
@media (max-width: 640px) {
    .main-view:not(#view-home) .ci-seitenkopf { padding: 1.2rem 1.1rem 2.1rem; flex-wrap: wrap; }
    .ci-seitenkopf .bk-zahl { margin-left: 0; padding-left: 0; text-align: left; flex-basis: 100%; display: flex; align-items: baseline; gap: .5rem; }
    .ci-seitenkopf .bk-zahl b { font-size: 1.4rem; }
    .ci-seitenkopf .bk-zahl span { margin-top: 0; }
}

/* Live-Ergebnisse: Kopf ebenfalls als Band */
#live-liste-view > .max-w-3xl > div:first-child {
    position: relative; isolation: isolate; overflow: hidden; align-items: center !important;
    padding: 1.6rem 1.75rem 2.6rem; border-radius: 1.25rem; color: #fff;
    background:
        radial-gradient(110% 160% at 100% 0%, rgba(220, 38, 38, .5) 0%, rgba(220, 38, 38, 0) 55%),
        linear-gradient(135deg, #0c0f16 0%, #151a24 60%, #1b0f12 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.4rem), 0 100%);
}
#live-liste-view > .max-w-3xl > div:first-child::before {
    content: ''; position: absolute; inset: -40% -10%; z-index: -1;
    background: repeating-linear-gradient(-62deg, transparent 0 58px, rgba(255, 255, 255, .05) 58px 60px);
}
html #live-liste-view > .max-w-3xl > div:first-child :is(h1, h2, .text-gray-900, .text-gray-800, [id^="hub-uhr"]) { color: #fff !important; }
html #live-liste-view > .max-w-3xl > div:first-child :is(p, .text-gray-500, .text-gray-400, .text-gray-600) { color: #cbd5e1 !important; }

/* ======================= DETAILKÖPFE (Profil, Veranstaltung, Verein) als dunkles Band ======================= */
html #profil-inhalt > div:first-child,
html #wettkampf-detail-inhalt > div:first-child,
html #verein-detail-kontakt .vd-kopf {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    border: 0 !important; border-radius: 1.25rem !important;
    background:
        radial-gradient(110% 160% at 100% 0%, rgba(220, 38, 38, .45) 0%, rgba(220, 38, 38, 0) 55%),
        linear-gradient(135deg, #0c0f16 0%, #151a24 60%, #1b0f12 100%) !important;
    box-shadow: 0 24px 50px -30px rgba(12, 15, 22, .7) !important;
}
html #profil-inhalt > div:first-child::after,
html #wettkampf-detail-inhalt > div:first-child::after,
html #verein-detail-kontakt .vd-kopf::after {
    content: ''; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none;
    background: repeating-linear-gradient(-62deg, transparent 0 58px, rgba(255, 255, 255, .045) 58px 60px);
}
/* Schrift im dunklen Kopf hell */
html #profil-inhalt > div:first-child :is(h1, h2, h3, .text-gray-900, .text-gray-800, .text-black, strong, b),
html #wettkampf-detail-inhalt > div:first-child :is(h1, h2, h3, .text-gray-900, .text-gray-800, .text-black, strong, b),
html #verein-detail-kontakt .vd-kopf :is(h1, h2, h3, .text-gray-900, .text-gray-800, .text-black, strong, b) { color: #fff !important; }
html #profil-inhalt > div:first-child :is(p, span, dd, .text-gray-700, .text-gray-600, .text-gray-500),
html #wettkampf-detail-inhalt > div:first-child :is(p, span, .text-gray-700, .text-gray-600, .text-gray-500),
html #verein-detail-kontakt .vd-kopf :is(p, span, a, .text-gray-700, .text-gray-600, .text-gray-500) { color: #d1d5db; }
html #profil-inhalt > div:first-child :is(.text-gray-400, dt, .uppercase),
html #wettkampf-detail-inhalt > div:first-child .text-gray-400,
html #verein-detail-kontakt .vd-kopf .text-gray-400 { color: #94a3b8 !important; }
/* Trennlinien / Rahmen im Kopf dezent */
html #profil-inhalt > div:first-child :is(.border-gray-100, .border-gray-200, .border-t, .border-b),
html #wettkampf-detail-inhalt > div:first-child :is(.border-gray-100, .border-gray-200),
html #verein-detail-kontakt .vd-kopf :is(.border-gray-100, .border-gray-200) { border-color: rgba(255, 255, 255, .12) !important; }
/* Knöpfe im Kopf (Kalender, Fehlende Leistung melden, Teilen …) als Glas-Knöpfe wie auf der Startseite */
html #profil-inhalt > div:first-child :is(button, a.inline-flex),
html #wettkampf-detail-inhalt > div:first-child :is(button, a.inline-flex),
html #verein-detail-kontakt .vd-kopf button {
    background: rgba(255, 255, 255, .08) !important; color: #fff !important; border-color: rgba(255, 255, 255, .22) !important;
}
html #profil-inhalt > div:first-child :is(button, a.inline-flex):hover,
html #wettkampf-detail-inhalt > div:first-child :is(button, a.inline-flex):hover,
html #verein-detail-kontakt .vd-kopf button:hover { background: rgba(255, 255, 255, .16) !important; }
/* Kleine Schilder (AK, Status) im Kopf bleiben gut lesbar */
html #profil-inhalt > div:first-child .bg-gray-900 { background: #fff !important; color: #111827 !important; }
html #profil-inhalt > div:first-child .bg-gray-900 * { color: #111827 !important; }
/* FIX (11/2026): Kalender-Menü im Profilkopf - wurde vom Bildband abgeschnitten (overflow) bzw. von den
   nachfolgenden Karten überdeckt und übernahm die helle Schrift/Glas-Knöpfe des dunklen Kopfs (weiß auf weiß).
   Das Band braucht kein overflow: hidden - Bild und Rundung liegen auf dem Element selbst, das Streifenmuster (::after) ist aus. */
html #profil-inhalt > div:first-child { overflow: visible !important; z-index: 20; }
html #profil-inhalt > div:first-child .kal-menue { z-index: 60; color: #111827; }
html #profil-inhalt > div:first-child .kal-menue :is(.kal-titel, .kal-option-text, .kal-start-wo, .kal-hinweis) { color: #6b7280 !important; }
html #profil-inhalt > div:first-child .kal-menue :is(.kal-option-titel, .kal-start-zeit, .kal-start-was) { color: #111827 !important; }
html #profil-inhalt > div:first-child .kal-menue .kal-option { background: transparent !important; color: #111827 !important; border-color: transparent !important; }
html #profil-inhalt > div:first-child .kal-menue .kal-option:hover,
html #profil-inhalt > div:first-child .kal-menue .kal-option:focus-visible { background: #fef2f2 !important; }
html.dark #profil-inhalt > div:first-child .kal-menue :is(.kal-titel, .kal-option-text, .kal-start-wo, .kal-hinweis) { color: #a1a1aa !important; }
html.dark #profil-inhalt > div:first-child .kal-menue :is(.kal-option-titel, .kal-start-zeit, .kal-start-was),
html.dark #profil-inhalt > div:first-child .kal-menue .kal-option { color: #f4f4f5 !important; }
html.dark #profil-inhalt > div:first-child .kal-menue .kal-option:hover,
html.dark #profil-inhalt > div:first-child .kal-menue .kal-option:focus-visible { background: rgba(220, 38, 38, .14) !important; }
/* Datumskachel der Veranstaltung: Zahl dunkel auf weiß lassen */
html #wettkampf-detail-inhalt > div:first-child .bg-white { background: #fff !important; }
html #wettkampf-detail-inhalt > div:first-child .bg-white :is(.text-gray-900, .text-gray-400, span, div) { color: #111827 !important; }
html #wettkampf-detail-inhalt > div:first-child .bg-white .bg-primary, html #wettkampf-detail-inhalt > div:first-child .bg-white .bg-primary * { color: #fff !important; }
/* Statusschild (z.B. "Anmeldungen geöffnet") behält seine Farbe */
html #wettkampf-detail-inhalt > div:first-child .rounded-full[class*="bg-emerald"] , html #wettkampf-detail-inhalt > div:first-child .rounded-full[class*="bg-emerald"] * { color: #065f46 !important; }
/* "Zurück"-Link oberhalb der Detailköpfe etwas kräftiger */
#profil-view > a:first-child, #wettkampf-detail-view > a:first-child, #verein-detail-view > a:first-child, #cups-detail-view > a:first-child { font-weight: 800; }
#profil-view > a:first-child:hover, #wettkampf-detail-view > a:first-child:hover, #verein-detail-view > a:first-child:hover, #cups-detail-view > a:first-child:hover { color: var(--sh-rot, #dc2626); }

/* ======================= LISTEN-KARTEN ======================= */
#athleten-liste-container > div,
#vereine-liste-container > div,
#wettkampf-liste-container > div {
    position: relative; overflow: hidden; border-radius: 1.1rem !important;
    box-shadow: var(--sh-schatten, 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18)) !important;
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, border-color .2s ease !important;
}
#athleten-liste-container > div::before,
#vereine-liste-container > div::before,
#wettkampf-liste-container > div::before { /* roter Strich links wächst beim Darüberfahren */
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sh-rot, #dc2626);
    transform: scaleY(0); transform-origin: center; transition: transform .22s ease;
}
#athleten-liste-container > div:hover,
#vereine-liste-container > div:hover,
#wettkampf-liste-container > div:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-schatten-hoch, 0 2px 4px rgba(15, 23, 42, .08), 0 22px 40px -18px rgba(15, 23, 42, .35)) !important;
}
#athleten-liste-container > div:hover::before,
#vereine-liste-container > div:hover::before,
#wettkampf-liste-container > div:hover::before { transform: scaleY(1); }
/* Pfeil rechts rutscht beim Darüberfahren */
#athleten-liste-container > div > :last-child > svg:last-child,
#vereine-liste-container > div > svg:last-child,
#wettkampf-liste-container > div > div > svg:last-child { transition: transform .2s ease, color .2s ease; }
#athleten-liste-container > div:hover > :last-child > svg:last-child,
#vereine-liste-container > div:hover > svg:last-child,
#wettkampf-liste-container > div:hover > div > svg:last-child { transform: translateX(4px); color: var(--sh-rot, #dc2626); }
/* Vereins-Kürzel: schwarzes Kästchen -> Rot beim Darüberfahren */
#vereine-liste-container > div > div:first-child { transition: background-color .2s ease; }
#vereine-liste-container > div:hover > div:first-child { background-color: var(--sh-rot, #dc2626) !important; }

/* Gestaffeltes Erscheinen (bei jeder neuen Seite/Suche, weil die Karten neu gezeichnet werden) */
@media (prefers-reduced-motion: no-preference) {
    #athleten-liste-container > div, #vereine-liste-container > div, #wettkampf-liste-container > div,
    #hub-events > div { animation: bkEin .42s cubic-bezier(.22, 1, .36, 1) both; }
    #athleten-liste-container > div:nth-child(2), #vereine-liste-container > div:nth-child(2), #wettkampf-liste-container > div:nth-child(2) { animation-delay: .03s; }
    #athleten-liste-container > div:nth-child(3), #vereine-liste-container > div:nth-child(3), #wettkampf-liste-container > div:nth-child(3) { animation-delay: .06s; }
    #athleten-liste-container > div:nth-child(4), #vereine-liste-container > div:nth-child(4), #wettkampf-liste-container > div:nth-child(4) { animation-delay: .09s; }
    #athleten-liste-container > div:nth-child(5), #vereine-liste-container > div:nth-child(5), #wettkampf-liste-container > div:nth-child(5) { animation-delay: .12s; }
    #athleten-liste-container > div:nth-child(6), #vereine-liste-container > div:nth-child(6), #wettkampf-liste-container > div:nth-child(6) { animation-delay: .15s; }
    #athleten-liste-container > div:nth-child(7), #vereine-liste-container > div:nth-child(7), #wettkampf-liste-container > div:nth-child(7) { animation-delay: .18s; }
    #athleten-liste-container > div:nth-child(8), #vereine-liste-container > div:nth-child(8), #wettkampf-liste-container > div:nth-child(8) { animation-delay: .21s; }
    #athleten-liste-container > div:nth-child(n+9), #vereine-liste-container > div:nth-child(n+9), #wettkampf-liste-container > div:nth-child(n+9) { animation-delay: .24s; }
}
@keyframes bkEin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ======================= SUCHFELDER wie auf der Startseite ======================= */
html :is(#searchInput, #vereinSearchInput, #wettkampfSearch) {
    border-radius: 1rem !important; padding-top: .95rem !important; padding-bottom: .95rem !important; font-size: 1rem;
    border-color: var(--sh-rand, #e5e7eb) !important;
    box-shadow: 0 14px 30px -20px rgba(12, 15, 22, .45) !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
html :is(#searchInput, #vereinSearchInput, #wettkampfSearch):focus {
    border-color: var(--sh-rot, #dc2626) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .16), 0 14px 30px -20px rgba(12, 15, 22, .45) !important;
}

/* ======================= FILTER-/INHALTS-FLÄCHEN ======================= */
:is(#view-bewerbe, #view-ranking, #view-cups) > div > .bg-white.rounded-xl.shadow-sm,
#view-ranking > #bl-bereich-liste > .bg-white.rounded-xl,
#view-ranking > #bl-bereich-rekorde > .bg-white.rounded-xl,
#cups-liste-view > .bg-white.rounded-xl,
#wettkampf-detail-inhalt > .grid > .bg-white, #wettkampf-detail-inhalt > .bg-white:not(:first-child) {
    border-radius: 1.2rem !important;
    box-shadow: var(--sh-schatten, 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18)) !important;
}

/* ======================= TABELLEN (Bestenliste, Bewerbe, Ergebnisse) ======================= */
#bestenliste-container > .bg-white { border-radius: 1.2rem !important; box-shadow: var(--sh-schatten) !important; }
#bestenliste-container tbody tr, #wkReiterPane-bewerbe tbody tr, #verein-ergebnisse-container tbody tr {
    transition: background-color .15s ease, box-shadow .15s ease;
}
#bestenliste-container tbody tr:hover, #wkReiterPane-bewerbe tbody tr:hover, #verein-ergebnisse-container tbody tr:hover {
    background-color: rgba(220, 38, 38, .045) !important;
    box-shadow: inset 4px 0 0 var(--sh-rot, #dc2626);
}
html.dark #bestenliste-container tbody tr:hover, html.dark #wkReiterPane-bewerbe tbody tr:hover, html.dark #verein-ergebnisse-container tbody tr:hover {
    background-color: rgba(248, 113, 113, .07) !important;
}

/* ======================= Profil: Bestleistungs-Zeilen ======================= */
#profil-inhalt > .grid > div { border-radius: 1.2rem !important; box-shadow: var(--sh-schatten) !important; overflow: hidden; }
#profil-inhalt > .grid > div > div + div > div, #profil-inhalt > .grid > div > div:not(:first-child) { transition: background-color .15s ease, box-shadow .15s ease; }
#profil-inhalt > .grid > div > div:not(:first-child):hover { background-color: rgba(220, 38, 38, .04); box-shadow: inset 4px 0 0 var(--sh-rot, #dc2626); }

/* ======================= Schilder in dunklen Köpfen (WA-Kategorie, "Keine Bewerbe", Status) ======================= */
/* farbige Schilder behalten ihren hellen Hintergrund + kräftige Schrift, sonst wären sie hell auf hell */
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-red-50"], [class*="bg-red-100"]),
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-red-50"], [class*="bg-red-100"]) * { color: #b91c1c !important; }
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-blue-50"], [class*="bg-blue-100"]),
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-blue-50"], [class*="bg-blue-100"]) * { color: #1d4ed8 !important; }
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-amber-50"], [class*="bg-orange-50"]),
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-amber-50"], [class*="bg-orange-50"]) * { color: #92400e !important; }
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-gray-100"], [class*="bg-slate-100"]),
html #wettkampf-detail-inhalt > div:first-child :is([class*="bg-gray-100"], [class*="bg-slate-100"]) * { color: #374151 !important; }
html #live-liste-view > .max-w-3xl > div:first-child .rounded-full { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border-color: rgba(255, 255, 255, .2) !important; }
html #live-liste-view > .max-w-3xl > div:first-child .rounded-full * { color: #fff !important; }

/* ======================= CUPS: Karten wie die übrigen Listen ======================= */
#cups-liste-container [onclick] {
    position: relative; border-radius: 1.1rem !important;
    box-shadow: var(--sh-schatten, 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18)) !important;
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease !important;
}
#cups-liste-container [onclick]:hover { transform: translateY(-3px); box-shadow: var(--sh-schatten-hoch, 0 2px 4px rgba(15, 23, 42, .08), 0 22px 40px -18px rgba(15, 23, 42, .35)) !important; }
/* FIX: nur der Pfeil direkt in der Karte - vorher traf "svg:last-child" auch das Symbol im roten Kästchen (Rot auf Rot) */
#cups-liste-container [onclick] > svg:last-child { transition: transform .2s ease, color .2s ease; }
#cups-liste-container [onclick]:hover > svg:last-child { transform: translateX(4px); color: var(--sh-rot, #dc2626); }
@media (prefers-reduced-motion: no-preference) {
    #cups-liste-container [onclick] { animation: bkEin .42s cubic-bezier(.22, 1, .36, 1) both; }
}

/* Vereinskopf: Kürzel-Kästchen rot wie das Symbol im Athletenprofil (schwarz verschwand im dunklen Band) */
html #verein-detail-kontakt .vd-kopf :is(.bg-gray-900, .bg-black, [class*="vd-kuerzel"], [class*="vd-logo"]) {
    background: var(--sh-rot, #dc2626) !important; color: #fff !important; box-shadow: 0 10px 24px -8px rgba(220, 38, 38, .8);
}

/* ======================= Vereinskopf: Kontakt-Knöpfe + Verbands-Schild =======================
   FIX: "Website" (Link) und das Verbands-Schild ("WLV") hatten weißen Hintergrund, aber durch die helle
   Schrift im dunklen Kopf ging der Text unter. Jetzt alle Kontakt-Knöpfe als Glas-Knöpfe, Schild rot. */
html #verein-detail-kontakt .vd-kopf .vd-aktionen { border-top-color: rgba(255, 255, 255, .14) !important; }
html #verein-detail-kontakt .vd-kopf .vd-aktion {
    background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .22) !important; color: #fff !important;
}
html #verein-detail-kontakt .vd-kopf .vd-aktion:hover,
html #verein-detail-kontakt .vd-kopf .vd-aktion:focus-visible { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .4) !important; }
html #verein-detail-kontakt .vd-kopf .vd-aktion .vd-aktion-titel { color: #fff !important; }
html #verein-detail-kontakt .vd-kopf .vd-aktion .vd-aktion-wert { color: #cbd5e1 !important; }
html #verein-detail-kontakt .vd-kopf .vd-aktion svg { color: #f87171 !important; }
html #verein-detail-kontakt .vd-kopf .vd-verband { background: rgba(220, 38, 38, .25) !important; color: #fecaca !important; border: 1px solid rgba(248, 113, 113, .45); }
/* Aufklappmenü der E-Mail bleibt ein normales helles Menü (nicht vom dunklen Kopf umfärben) */
html #verein-detail-kontakt .vd-kopf .vd-mail-menue :is(a, span, button, p) { color: #374151 !important; }
html.dark #verein-detail-kontakt .vd-kopf .vd-mail-menue :is(a, span, button, p) { color: #e4e4e7 !important; }
/* FIX (11/2026): E-Mail-Menü wurde vom Bildband abgeschnitten (overflow) und von den Reitern/Kacheln darunter
   überdeckt; die Glas-Knopf-Regel des Kopfs machte "Adresse kopieren" durchsichtig. Wie beim Kalender im Profil. */
html #verein-detail-kontakt .vd-kopf { overflow: visible !important; z-index: 20; }
html #verein-detail-kontakt .vd-kopf .vd-mail-box { position: relative; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue { z-index: 60; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue :is(.kal-titel, .kal-option-text) { color: #6b7280 !important; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option-titel { color: #111827 !important; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option { background: transparent !important; border-color: transparent !important; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option:hover,
html #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option:focus-visible { background: #fef2f2 !important; }
html #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option svg { color: #dc2626 !important; }
html.dark #verein-detail-kontakt .vd-kopf .vd-mail-menue :is(.kal-titel, .kal-option-text) { color: #a1a1aa !important; }
html.dark #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option-titel { color: #f4f4f5 !important; }
html.dark #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option:hover,
html.dark #verein-detail-kontakt .vd-kopf .vd-mail-menue .kal-option:focus-visible { background: rgba(220, 38, 38, .14) !important; }

/* ======================= LISTEN: Filter-Leiste, A-Z, Initialen, Größenbalken (11/2026) ======================= */
/* Farben je Altersgruppe - Initialen-Kreis, Altersklassen-Schild und Filter-Chip */
:root {
    --ak-nachwuchs: #2563eb; --ak-nachwuchs-hg: #eff6ff;
    --ak-junior: #7c3aed;    --ak-junior-hg: #f5f3ff;
    --ak-allgemein: #dc2626; --ak-allgemein-hg: #fef2f2;
    --ak-masters: #b45309;   --ak-masters-hg: #fffbeb;
    --ak-sonst: #4b5563;     --ak-sonst-hg: #f3f4f6;
}
html.dark {
    --ak-nachwuchs: #60a5fa; --ak-nachwuchs-hg: rgba(96, 165, 250, .14);
    --ak-junior: #a78bfa;    --ak-junior-hg: rgba(167, 139, 250, .14);
    --ak-allgemein: #f87171; --ak-allgemein-hg: rgba(248, 113, 113, .14);
    --ak-masters: #fbbf24;   --ak-masters-hg: rgba(251, 191, 36, .14);
    --ak-sonst: #a1a1aa;     --ak-sonst-hg: rgba(161, 161, 170, .14);
}
.ci-athlet-bild.ci-initialen { border-color: transparent !important; font-weight: 900; font-size: .95rem; letter-spacing: .02em; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.ci-athlet-bild.ci-initialen.klein { font-size: .75rem; }
html .ci-athlet-bild.ci-initialen.ak-nachwuchs { color: var(--ak-nachwuchs) !important; background: var(--ak-nachwuchs-hg) !important; }
html .ci-athlet-bild.ci-initialen.ak-junior { color: var(--ak-junior) !important; background: var(--ak-junior-hg) !important; }
html .ci-athlet-bild.ci-initialen.ak-allgemein { color: var(--ak-allgemein) !important; background: var(--ak-allgemein-hg) !important; }
html .ci-athlet-bild.ci-initialen.ak-masters { color: var(--ak-masters) !important; background: var(--ak-masters-hg) !important; }
html .ci-athlet-bild.ci-initialen.ak-sonst { color: var(--ak-sonst) !important; background: var(--ak-sonst-hg) !important; }
/* GEÄNDERT (Nutzer-Wunsch): Initialen kippen beim Darüberfahren nicht mehr - nur der Farbwechsel bleibt */
html .ci-ak-schild.ak-nachwuchs { background: var(--ak-nachwuchs) !important; color: #fff !important; }
html .ci-ak-schild.ak-junior { background: var(--ak-junior) !important; color: #fff !important; }
html .ci-ak-schild.ak-allgemein { background: #111827 !important; color: #fff !important; }
html .ci-ak-schild.ak-masters { background: var(--ak-masters) !important; color: #fff !important; }
html.dark .ci-ak-schild.ak-allgemein { background: #f4f4f5 !important; color: #111827 !important; }
html.dark .ci-ak-schild.ak-nachwuchs, html.dark .ci-ak-schild.ak-junior, html.dark .ci-ak-schild.ak-masters { color: #111827 !important; }

/* Leiste über der Liste */
.bk-leiste { margin: -1rem 0 1.5rem; }
.bk-leiste-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.bk-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .15rem; }
.bk-chips::-webkit-scrollbar { display: none; }
.bk-chip {
    display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; cursor: pointer;
    padding: .45rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 800;
    background: var(--sh-flaeche, #fff); color: var(--sh-text-2, #4b5563); border: 1px solid var(--sh-rand, #e5e7eb);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease;
}
.bk-chip span { font-size: .7rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; background: var(--sh-flaeche-2, #f3f4f6); color: var(--sh-text-3, #9ca3af); }
.bk-chip::before { content: ''; width: .5rem; height: .5rem; border-radius: 999px; background: var(--ak-sonst); }
.bk-chip.ak-alle::before { background: linear-gradient(90deg, var(--ak-nachwuchs) 0 25%, var(--ak-junior) 25% 50%, var(--ak-allgemein) 50% 75%, var(--ak-masters) 75%); }
.bk-chip.ak-nachwuchs::before { background: var(--ak-nachwuchs); }
.bk-chip.ak-junior::before { background: var(--ak-junior); }
.bk-chip.ak-allgemein::before { background: var(--ak-allgemein); }
.bk-chip.ak-masters::before { background: var(--ak-masters); }
.bk-chip:hover { transform: translateY(-1px); border-color: var(--sh-text-3, #9ca3af); color: var(--sh-text, #111827); }
.bk-chip[aria-pressed="true"] { background: var(--sh-text, #111827); border-color: var(--sh-text, #111827); color: var(--sh-flaeche, #fff); }
.bk-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); color: inherit; }
.bk-umschalter { display: inline-flex; padding: .2rem; border-radius: 999px; background: var(--sh-flaeche-2, #f3f4f6); border: 1px solid var(--sh-rand, #e5e7eb); flex-shrink: 0; }
.bk-umschalter button { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--sh-text-2, #4b5563); transition: background-color .15s ease, color .15s ease; }
.bk-umschalter button span { font-size: .68rem; opacity: .65; }
.bk-umschalter button:hover { color: var(--sh-text, #111827); }
.bk-umschalter button[aria-pressed="true"] { background: var(--sh-rot, #dc2626); color: #fff; box-shadow: 0 6px 14px -8px rgba(220, 38, 38, .9); }
/* A-Z */
.bk-az { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .85rem; }
.bk-az button {
    width: 1.9rem; height: 1.9rem; border-radius: .5rem; font-size: .78rem; font-weight: 900;
    color: var(--sh-text-2, #4b5563); background: var(--sh-flaeche, #fff); border: 1px solid var(--sh-rand, #e5e7eb);
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bk-az button:hover:not(:disabled) { background: var(--sh-rot, #dc2626); border-color: var(--sh-rot, #dc2626); color: #fff; transform: translateY(-2px); }
.bk-az button:disabled { opacity: .3; cursor: default; }
@media (max-width: 640px) {
    .bk-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .bk-az::-webkit-scrollbar { display: none; }
    .bk-az button { flex-shrink: 0; }
}
/* Sprung per A-Z: Karte leuchtet kurz auf */
@keyframes bkAufleuchten { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
#athleten-liste-container > div.bk-aufleuchten { animation: bkAufleuchten 1.1s ease-out 2 !important; border-color: var(--sh-rot, #dc2626) !important; }

/* Vereine: Verbands-Chips + Sortierung in einer Zeile, Größenbalken in der Karte */
.bk-vereine-zeile { margin-bottom: 1.5rem; }
.bk-vereine-verband { margin-bottom: 0 !important; flex: 1 1 auto; min-width: 0; }
.vl-balken { margin-top: .5rem; height: 4px; border-radius: 999px; background: var(--sh-flaeche-2, #f3f4f6); overflow: hidden; max-width: 14rem; }
.vl-balken span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f87171, var(--sh-rot, #dc2626)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .vl-balken span { animation: vlBalken .8s cubic-bezier(.22, 1, .36, 1) both .15s; } }
@keyframes vlBalken { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ======================= GEÄNDERT (Nutzer-Wunsch "zu bunt"): Listen wieder einfarbig =======================
   Gruppenfarben aus: Initialen neutral grau (beim Darüberfahren rot wie die übrige Karte), Altersklassen-Schilder
   einheitlich dunkel wie vorher, Filter-Chips ohne Farbpunkt. Filter/A-Z/Sortierung bleiben unverändert. */
html .ci-athlet-bild.ci-initialen[class*="ak-"] { color: #4b5563 !important; background: #f3f4f6 !important; }
html.dark .ci-athlet-bild.ci-initialen[class*="ak-"] { color: #d4d4d8 !important; background: #27272a !important; }
html .group:hover > .ci-athlet-bild.ci-initialen[class*="ak-"] { color: #fff !important; background: var(--sh-rot, #dc2626) !important; }
html .ci-ak-schild[class*="ak-"] { background: #111827 !important; color: #fff !important; }
html.dark .ci-ak-schild[class*="ak-"] { background: #f4f4f5 !important; color: #111827 !important; }
.bk-chip::before { display: none; }

/* ======================= Profil, Reiter "Saison": Wettkämpfe auf-/zuklappen (11/2026) ======================= */
.ps-wk-kopf { cursor: pointer; align-items: center !important; padding-bottom: .75rem !important; transition: background-color .15s ease; user-select: none; }
.ps-wk-kopf:hover { background: #f3f4f6 !important; }
html.dark .ps-wk-kopf:hover { background: #27272a !important; }
.ps-wk-kopf:focus-visible { outline: 2px solid var(--sh-rot, #dc2626); outline-offset: -2px; }
.ps-wk-rechts { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; }
.ps-wk-anzahl { font-size: .75rem; font-weight: 700; color: #6b7280; white-space: nowrap; }
.ps-wk-pfeil { width: 1.1rem; height: 1.1rem; color: #9ca3af; transition: transform .25s ease, color .15s ease; }
.ps-wk-kopf:hover .ps-wk-pfeil { color: var(--sh-rot, #dc2626); }
.ps-wk:not(.zu) .ps-wk-pfeil { transform: rotate(180deg); }
/* weiches Auf-/Zuklappen über die Grid-Zeilenhöhe */
.ps-wk-inhalt { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s ease; }
.ps-wk-inhalt > div { overflow: hidden; min-height: 0; }
.ps-wk.zu .ps-wk-inhalt { grid-template-rows: 0fr; }
@media (prefers-reduced-motion: reduce) { .ps-wk-inhalt, .ps-wk-pfeil { transition: none; } }
/* Knopf "Alle aufklappen / zuklappen" rechts in der Zusammenfassung */
.ps-alle-knopf {
    margin-left: auto; display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
    color: #374151; background: #fff; border: 1px solid #e5e7eb; transition: border-color .15s ease, color .15s ease;
}
.ps-alle-knopf:hover { border-color: var(--sh-rot, #dc2626); color: var(--sh-rot, #dc2626); }
.ps-alle-knopf svg { width: .95rem; height: .95rem; }
html.dark .ps-alle-knopf { background: #18181b; border-color: #3f3f46; color: #e4e4e7; }
@media (max-width: 640px) { .ps-wk-anzahl { display: none; } }

/* ======================= Athleten-/Vereinskacheln kräftiger (11/2026) - einfarbig: Schwarz/Weiß/Rot =======================
   Initialen als dunkler Block (wie die Datums-Blöcke der Startseite), beim Darüberfahren rot; dazu erscheinen feine
   Laufbahn-Linien in der Kachel. Name etwas größer, Jahrgang + Altersklasse als zusammengehöriges Paar. */
#athleten-liste-container > div, #vereine-liste-container > div { padding: 1rem 1.1rem !important; gap: 1rem !important; }
#athleten-liste-container > div::after, #vereine-liste-container > div::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; pointer-events: none;
    background: repeating-linear-gradient(-62deg, transparent 0 14px, rgba(17, 24, 39, .045) 14px 16px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
    opacity: 0; transform: translateX(16px); transition: opacity .3s ease, transform .4s ease;
}
html.dark #athleten-liste-container > div::after, html.dark #vereine-liste-container > div::after {
    background: repeating-linear-gradient(-62deg, transparent 0 14px, rgba(255, 255, 255, .05) 14px 16px);
}
#athleten-liste-container > div:hover::after, #vereine-liste-container > div:hover::after { opacity: 1; transform: none; }
#athleten-liste-container > div > *, #vereine-liste-container > div > * { position: relative; z-index: 1; }

/* Initialen-Block */
html #athleten-liste-container .ci-athlet-bild.ci-initialen[class*="ak-"] {
    width: 3.25rem; height: 3.25rem; border-radius: .9rem; font-size: 1.05rem; letter-spacing: .03em;
    background: #111827 !important; color: #fff !important;
    box-shadow: 0 8px 18px -10px rgba(17, 24, 39, .7);
    transition: background-color .2s ease, box-shadow .2s ease;
}
html.dark #athleten-liste-container .ci-athlet-bild.ci-initialen[class*="ak-"] { background: #27272a !important; color: #fff !important; }
html #athleten-liste-container > div:hover .ci-athlet-bild.ci-initialen[class*="ak-"] {
    background: var(--sh-rot, #dc2626) !important; color: #fff !important; box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .85);
}
/* Fotos gleich groß wie der Initialen-Block */
#athleten-liste-container .ci-athlet-bild:has(img) { width: 3.25rem; height: 3.25rem; border-radius: .9rem; }
/* Vereins-Kürzel gleich groß, gleich gerundet */
#vereine-liste-container > div > div:first-child { width: 3.25rem !important; height: 3.25rem !important; border-radius: .9rem !important; box-shadow: 0 8px 18px -10px rgba(17, 24, 39, .7); }

/* Name */
#athleten-liste-container > div p:first-of-type { font-size: 1.05rem; }
#athleten-liste-container > div p:first-of-type .uppercase { letter-spacing: .03em; }

/* Jahrgang + Altersklasse als Paar */
#athleten-liste-container > div > div:last-child { gap: 0 !important; }
#athleten-liste-container > div > div:last-child > span:first-child:not(.ci-ak-schild) {
    border-radius: 999px 0 0 999px !important; padding-right: .55rem !important; background: #f3f4f6 !important; color: #4b5563 !important;
}
#athleten-liste-container > div > div:last-child > span:first-child:not(.ci-ak-schild) + .ci-ak-schild { border-radius: 0 999px 999px 0 !important; }
#athleten-liste-container > div > div:last-child > svg { margin-left: .6rem; }
html.dark #athleten-liste-container > div > div:last-child > span:first-child:not(.ci-ak-schild) { background: #27272a !important; color: #d4d4d8 !important; }
@media (max-width: 639px) { #athleten-liste-container > div > div:last-child > span:first-child:not(.ci-ak-schild) + .ci-ak-schild { border-radius: 999px !important; } }

/* ======================= Vereinskacheln wie Athleten-Kacheln (11/2026) =======================
   Größenbalken entfernt (Nutzer-Wunsch). Kürzel-Block dunkel, beim Darüberfahren rot; Name größer;
   rechts ein Schild "Verband | Anzahl Athlet:innen" (wie "Jahrgang | Altersklasse" bei den Athlet:innen). */
.vl-balken { display: none !important; }
html #vereine-liste-container > div > div:first-child:not(:has(img)) {
    background: #111827 !important; color: #fff !important; font-size: 1rem;
    transition: background-color .2s ease, box-shadow .2s ease;
}
html.dark #vereine-liste-container > div > div:first-child:not(:has(img)) { background: #27272a !important; }
html #vereine-liste-container > div:hover > div:first-child:not(:has(img)) {
    background: var(--sh-rot, #dc2626) !important; box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .85) !important;
}
#vereine-liste-container .vl-name { font-size: 1.05rem; font-weight: 800; }
.vl-schild { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; font-size: 11px; font-weight: 800; line-height: 1; }
.vl-schild-verband { display: inline-flex; align-items: center; padding: .3rem .55rem; background: #f3f4f6; color: #4b5563; }
.vl-schild-anzahl { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; background: #111827; color: #fff; font-variant-numeric: tabular-nums; }
.vl-schild-anzahl svg { width: .8rem; height: .8rem; }
.vl-schild:not(:has(.vl-schild-verband)) .vl-schild-anzahl { border-radius: 999px; }
html.dark .vl-schild-verband { background: #27272a; color: #d4d4d8; }
html.dark .vl-schild-anzahl { background: #f4f4f5; color: #111827; }

/* ======================= Übrige Bereiche im selben Stil (11/2026) - Schwarz/Weiß/Rot ======================= */
/* 1) Tabellenköpfe (Bestenliste, Rekorde, Cup-Wertungen …): dunkel mit weißer Schrift statt hellrot */
html .main-view:not(#view-home) thead.bg-red-50 { background: #111827 !important; border-color: #111827 !important; }
html .main-view:not(#view-home) thead.bg-red-50 th { color: #fff !important; }
html.dark .main-view:not(#view-home) thead.bg-red-50 { background: #27272a !important; border-color: #27272a !important; }
/* Bewerbe einer Veranstaltung: Kopfzeile ebenfalls als dunkles Band */
html #wkReiterPane-bewerbe thead tr { background: #111827; }
html #wkReiterPane-bewerbe thead th { color: #fff !important; font-size: .72rem !important; text-transform: uppercase; letter-spacing: .08em; padding-top: .8rem !important; padding-bottom: .8rem !important; }
html #wkReiterPane-bewerbe thead th:first-child { border-radius: .9rem 0 0 .9rem; }
html #wkReiterPane-bewerbe thead th:last-child { border-radius: 0 .9rem .9rem 0; }
html.dark #wkReiterPane-bewerbe thead tr { background: #27272a; }
#wkReiterPane-bewerbe tbody td:first-child { font-weight: 800; }
#wkReiterPane-bewerbe tbody button { transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
#wkReiterPane-bewerbe tbody button:hover { border-color: var(--sh-rot, #dc2626) !important; color: var(--sh-rot, #dc2626) !important; }

/* 2) Profil: Köpfe "Freiluft" / "Halle" dunkel */
html #profil-inhalt [data-pb-spalte] > div:first-child { background: #111827 !important; border-color: #111827 !important; }
html #profil-inhalt [data-pb-spalte] > div:first-child span { color: #fff !important; }
html #profil-inhalt [data-pb-spalte] > div:first-child span.bg-primary { background: var(--sh-rot, #dc2626) !important; }
html #profil-inhalt [data-pb-spalte] > div:first-child span.ml-auto { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .2) !important; }
html.dark #profil-inhalt [data-pb-spalte] > div:first-child { background: #27272a !important; border-color: #27272a !important; }
#profil-inhalt [data-pb-spalte] [data-pb-such] .text-base { font-size: 1.05rem; font-weight: 900; }

/* 3) Wettkampf-Liste: Datumskachel - GEÄNDERT (11/2026, Nutzer-Wunsch): wieder WEISS mit rotem Monatsstreifen
   (vorher dunkler Block); beim Darüberfahren roter Rand + leichtes Anheben statt roter Fläche */
html #wettkampf-liste-container > div .w-14.shrink-0 {
    background: #fff !important; border-color: #e5e7eb !important; box-shadow: 0 6px 14px -10px rgba(17, 24, 39, .35) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html #wettkampf-liste-container > div .w-14.shrink-0 :is(.text-gray-900, div:not(.bg-primary):not(.text-gray-400)) { color: #111827 !important; }
html #wettkampf-liste-container > div .w-14.shrink-0 .text-gray-400 { color: #9ca3af !important; }
html #wettkampf-liste-container > div:hover .w-14.shrink-0 { border-color: var(--sh-rot, #dc2626) !important; box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .55) !important; transform: translateY(-2px); }
html.dark #wettkampf-liste-container > div .w-14.shrink-0 :is(.text-gray-900, div:not(.bg-primary):not(.text-gray-400)) { color: #fafafa !important; }
html.dark #wettkampf-liste-container > div .w-14.shrink-0 { background: #27272a !important; border-color: #27272a !important; }
#wettkampf-liste-container > div::after, #cups-liste-container [onclick]::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; pointer-events: none;
    background: repeating-linear-gradient(-62deg, transparent 0 14px, rgba(17, 24, 39, .045) 14px 16px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
    opacity: 0; transform: translateX(16px); transition: opacity .3s ease, transform .4s ease;
}
html.dark #wettkampf-liste-container > div::after, html.dark #cups-liste-container [onclick]::after {
    background: repeating-linear-gradient(-62deg, transparent 0 14px, rgba(255, 255, 255, .05) 14px 16px);
}
#wettkampf-liste-container > div:hover::after, #cups-liste-container [onclick]:hover::after { opacity: 1; transform: none; }
#wettkampf-liste-container > div > *, #cups-liste-container [onclick] > *:not(.absolute) { position: relative; z-index: 1; }

/* 4) Cups: Symbol-Block dunkel, beim Darüberfahren rot (Symbol bleibt weiß) */
html #cups-liste-container [onclick] span.rounded-xl { background: #111827 !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(17, 24, 39, .7); transition: background-color .2s ease, box-shadow .2s ease; }
html #cups-liste-container [onclick] span.rounded-xl svg { color: #fff !important; }
html #cups-liste-container [onclick]:hover span.rounded-xl { background: var(--sh-rot, #dc2626) !important; box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .85); }
html.dark #cups-liste-container [onclick] span.rounded-xl { background: #27272a !important; }
#cups-liste-container [onclick] { overflow: hidden; }

/* 5) Bestenliste: Podium (Plätze 1-3) dezent hervorgehoben */
#bestenliste-container tbody tr:nth-child(-n+3) { background: linear-gradient(90deg, rgba(220, 38, 38, .05), transparent 60%); }
#bestenliste-container tbody tr:nth-child(-n+3) td { font-weight: 700; }
html.dark #bestenliste-container tbody tr:nth-child(-n+3) { background: linear-gradient(90deg, rgba(248, 113, 113, .08), transparent 60%); }


/* ======================= NEU (18.11.2026, V2): Veranstaltung kompakt + Bewerbe-Liste =======================
   Kopf mit Info-Chips (Termine/Kontakt/Dokumente), klebende Filterleiste, Zeitleiste mit flachen Karten
   (farbiger Streifen statt Symbol), Tage einklappbar, "Als Nächstes". Logik: baueBewerbeKartenHTML in script.js */

/* Kopf: Info-Chips (im dunklen Band) */
.wk-infozeile { display: flex; flex-wrap: wrap; gap: .35rem .4rem; margin-top: .6rem; }
.wk-infozeile:empty { display: none; }
.wk-info { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.wk-info svg { width: .8rem; height: .8rem; color: #fca5a5; flex-shrink: 0; }
.wk-doks { display: contents; }
a.wk-dok { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; background: var(--sh-rot, #dc2626); color: #fff !important; font-size: .74rem; font-weight: 800; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
a.wk-dok:hover { background: #ef4444; transform: translateY(-1px); }
a.wk-dok svg { width: .8rem; height: .8rem; }
html #wettkampf-detail-inhalt > .wk-kopf-kompakt .wk-kopf-aktion { padding-top: .35rem; padding-bottom: .35rem; }

/* Klebende Filterleiste */
.bw-filterleiste { position: sticky; top: var(--bw-oben, 64px); z-index: 20; margin: 0 -.6rem .8rem; padding: .55rem .6rem .6rem; background: rgba(249, 250, 251, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(229, 231, 235, .8); }
.bw-filterleiste > div { margin-bottom: .45rem !important; gap: .35rem !important; }
.bw-filterleiste > div:last-child, .bw-filterleiste > .bw-werkzeuge { margin-bottom: 0 !important; }
.bw-filterleiste [id^="tag-tabs-"] button, .bw-filterleiste [id^="kategorie-filter-"] button { padding: .28rem .75rem !important; font-size: .74rem !important; border-radius: 999px !important; }
.bw-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bw-suche { flex: 1 1 220px; max-width: 24rem; display: flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 999px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.bw-suche:focus-within { border-color: var(--sh-rot, #dc2626); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.bw-suche svg { width: .95rem; height: .95rem; color: #9ca3af; flex-shrink: 0; }
.bw-suche input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .85rem; font-weight: 600; color: #111827; }
.bw-segment { display: inline-flex; padding: .18rem; gap: .12rem; border-radius: 999px; background: #eceef1; }
.bw-segment.hidden { display: none; }
.bw-seg { padding: .3rem .75rem; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #6b7280; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.bw-seg:hover { color: #111827; }
.bw-seg.aktiv { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(15, 23, 42, .16); }
.bw-seg-w.aktiv { color: #be185d; }
.bw-seg-m.aktiv { color: #1d4ed8; }
.bw-anzahl { margin-left: auto; font-size: .74rem; font-weight: 700; color: #9ca3af; }

/* Tage (einklappbar) */
.bw-liste { display: flex; flex-direction: column; }
.bw-tagblock + .bw-tagblock { margin-top: .9rem; }
.bw-tag { width: 100%; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; padding: .5rem .85rem; border: 0; border-left: 4px solid var(--sh-rot, #dc2626); border-radius: .75rem; background: #111827; color: #fff; font-size: .85rem; font-weight: 800; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.bw-tag:hover { background: #1f2937; }
.bw-tag-pfeil { width: 1rem; height: 1rem; color: #fca5a5; transition: transform .2s ease; flex-shrink: 0; }
.bw-tag-info { margin-left: auto; font-size: .72rem; font-weight: 700; color: #9ca3af; }
.bw-tagblock.zu .bw-tag { margin-bottom: 0; }
.bw-tagblock.zu .bw-tag-pfeil { transform: rotate(-90deg); }
.bw-tagblock.zu .bw-tag-inhalt { display: none; }

/* Zeitleiste */
.bw-slot { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); column-gap: .7rem; }
.bw-zeit { padding-top: .72rem; text-align: right; font-size: .95rem; font-weight: 900; color: #111827; font-variant-numeric: tabular-nums; }
.bw-karten { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: .3rem 0 .3rem .9rem; border-left: 2px solid #f3cfd2; }
.bw-karten::before { content: ''; position: absolute; left: -6px; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--sh-rot, #dc2626); box-shadow: 0 0 0 3px var(--bw-grund, #f9fafb); }

/* Karte */
.bw-karte { --bw-farbe: #d1d5db; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem .9rem; padding: .55rem .7rem .55rem 1rem; overflow: hidden;
    background: #fff; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: .8rem; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; animation: bwEin .3s ease both; animation-delay: calc(var(--bw-i, 0) * 20ms); }
.bw-karte::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bw-farbe); transition: width .15s ease; }
.bw-karte:hover { transform: translateY(-1px); border-color: #fca5a5; box-shadow: 0 10px 22px -16px rgba(15, 23, 42, .45); }
.bw-karte:hover::before { width: 6px; }
.bw-karte:focus-visible { outline: 3px solid rgba(220, 38, 38, .35); outline-offset: 2px; }
@keyframes bwEin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bw-karte, .bw-puls { animation: none !important; } .bw-karte { transition: none; } .bw-karte:hover { transform: none; } }
.bw-karte[data-kat="Sprint"] { --bw-farbe: #ef4444; }
.bw-karte[data-kat="Lauf"] { --bw-farbe: #f59e0b; }
.bw-karte[data-kat="Hürden"] { --bw-farbe: #f97316; }
.bw-karte[data-kat="Sprung"] { --bw-farbe: #0ea5e9; }
.bw-karte[data-kat="Wurf"] { --bw-farbe: #22c55e; }
.bw-karte[data-kat="Gehen"] { --bw-farbe: #14b8a6; }
.bw-karte[data-kat="Mehrkampf"] { --bw-farbe: #8b5cf6; }
.bw-haupt { min-width: 0; }
.bw-titelzeile { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.bw-titel { font-size: .95rem; font-weight: 900; color: #111827; }
.bw-ak { padding: .08rem .55rem; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.bw-ak-w { background: #fce7f3; color: #be185d; }
.bw-ak-m { background: #dbeafe; color: #1d4ed8; }
.bw-ak-x { background: #ede9fe; color: #6d28d9; }
.bw-fertig { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .5rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .68rem; font-weight: 800; }
.bw-fertig svg { width: .75rem; height: .75rem; }
.bw-naechste-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .08rem .55rem; border-radius: 999px; background: var(--sh-rot, #dc2626); color: #fff; font-size: .68rem; font-weight: 800; }
.bw-puls { width: .45rem; height: .45rem; border-radius: 50%; background: #fff; animation: bwPuls 1.4s ease-in-out infinite; }
@keyframes bwPuls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.bw-naechste { border-color: #fca5a5; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.bw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; margin-top: .2rem; font-size: .74rem; font-weight: 600; color: #6b7280; }
.bw-kat { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-farbe); filter: saturate(1.2) brightness(.85); }
.bw-meta-teil { display: inline-flex; align-items: center; gap: .28rem; }
.bw-meta-teil svg { width: .8rem; height: .8rem; color: #9ca3af; }
.bw-verschoben, .bw-verschoben svg { color: #b45309; }

/* Aktionen: zusammenhängende Knopfpaare */
.bw-aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem; }
.bw-paar { display: inline-flex; align-items: stretch; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: .65rem; overflow: hidden; background: #fff; }
.bw-paar > * + * { border-left: 1px solid var(--sh-rand, #e5e7eb); }
.bw-knopf { display: inline-flex; align-items: center; gap: .3rem; padding: .36rem .7rem; background: transparent; color: #374151; font-size: .74rem; font-weight: 800; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.bw-knopf svg { width: .85rem; height: .85rem; }
.bw-knopf:hover { background: #fef2f2; color: var(--sh-rot, #dc2626); }
.bw-knopf.haupt { background: #111827; color: #fff; }
.bw-knopf.haupt:hover { background: var(--sh-rot, #dc2626); color: #fff; }
.bw-paar-label { display: inline-flex; align-items: center; padding: 0 .45rem; background: #f9fafb; color: #9ca3af; }
.bw-paar-label svg { width: .85rem; height: .85rem; }
.bw-chip { min-width: 2.1rem; padding: .36rem .45rem; background: transparent; color: #374151; font-size: .72rem; font-weight: 800; transition: background-color .15s ease, color .15s ease; }
.bw-chip:hover { background: #fef2f2; color: var(--sh-rot, #dc2626); }
.bw-chip-fertig { background: #dcfce7; color: #15803d; }
.bw-pfeil { width: 1rem; height: 1rem; color: #d1d5db; transition: transform .15s ease, color .15s ease; }
.bw-karte:hover .bw-pfeil { transform: translateX(3px); color: var(--sh-rot, #dc2626); }
.bw-leer { padding: 2rem; border: 2px dashed #e5e7eb; border-radius: 1rem; text-align: center; color: #9ca3af; font-weight: 700; }

@media (max-width: 760px) {
    .bw-slot { grid-template-columns: 2.9rem minmax(0, 1fr); column-gap: .5rem; }
    .bw-zeit { font-size: .85rem; }
    .bw-karten { padding-left: .75rem; }
    .bw-karte { grid-template-columns: minmax(0, 1fr); padding: .6rem .7rem .6rem .95rem; }
    .bw-aktionen { justify-content: flex-start; }
    .bw-pfeil { display: none; }
    .bw-anzahl { margin-left: 0; }
    .bw-suche { max-width: none; }
}

/* Dunkel */
html.dark { --bw-grund: #09090b; }
html.dark .bw-filterleiste { background: rgba(9, 9, 11, .88); border-bottom-color: #27272a; }
html.dark .bw-suche, html.dark .bw-karte, html.dark .bw-paar { background: #18181b; border-color: #3f3f46; }
html.dark .bw-paar > * + * { border-left-color: #3f3f46; }
html.dark .bw-suche input, html.dark .bw-titel, html.dark .bw-zeit { color: #f4f4f5; }
html.dark .bw-meta { color: #a1a1aa; }
html.dark .bw-kat { filter: none; }
html.dark .bw-knopf, html.dark .bw-chip { color: #e4e4e7; }
html.dark .bw-knopf:hover, html.dark .bw-chip:hover { background: rgba(248, 113, 113, .12); color: #fca5a5; }
html.dark .bw-knopf.haupt { background: #f4f4f5; color: #111827; }
html.dark .bw-paar-label { background: #27272a; color: #71717a; }
html.dark .bw-segment { background: #27272a; }
html.dark .bw-seg.aktiv { background: #3f3f46; color: #fff; }
html.dark .bw-karte:hover, html.dark .bw-naechste { border-color: #f87171; }
html.dark .bw-karten { border-left-color: #5b2126; }
html.dark .bw-tag { background: #27272a; }
html.dark .bw-tag:hover { background: #303036; }
html.dark .bw-ak { background: #27272a; color: #e4e4e7; }
html.dark .bw-ak-w { background: rgba(236, 72, 153, .18); color: #f9a8d4; }
html.dark .bw-ak-m { background: rgba(59, 130, 246, .2); color: #93c5fd; }
html.dark .bw-fertig, html.dark .bw-chip-fertig { background: rgba(34, 197, 94, .16); color: #86efac; }
html.dark .bw-leer { border-color: #3f3f46; color: #71717a; }

/* NEU (18.11.2026): Ansprechpersonen als ein aufklappbarer Chip im Veranstaltungskopf */
.wk-kontakt { display: inline-block; }
.wk-kontakt[open] { flex-basis: 100%; }
.wk-kontakt > summary { list-style: none; cursor: pointer; user-select: none; transition: background-color .15s ease, border-color .15s ease; }
.wk-kontakt > summary::-webkit-details-marker { display: none; }
.wk-kontakt > summary:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.wk-kontakt > summary:focus-visible { outline: 2px solid #fca5a5; outline-offset: 2px; }
.wk-kontakt-pfeil { transition: transform .2s ease; }
.wk-kontakt[open] .wk-kontakt-pfeil { transform: rotate(180deg); }
.wk-kontakt-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .4rem; margin-top: .45rem; animation: bwEin .2s ease both; }
.wk-kontakt-person { padding: .45rem .75rem; border-radius: .7rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.wk-kontakt-person b { display: block; font-size: .85rem; font-weight: 800; }
.wk-kontakt-person span { display: block; margin-top: .1rem; font-size: .72rem; line-height: 1.35; }

/* ======================= NEU (18.11.2026): Bewerb-Detail (Meldeliste / Startliste / Ergebnisse) =======================
   dunkler Kopf wie bei der Veranstaltung, Pill-Reiter, Tabellen als Karte, Podest für Platz 1-3 */
.bd-kopf { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1rem !important; padding: 1.1rem 1.3rem; border-radius: 1.2rem; color: #fff;
    background: radial-gradient(110% 160% at 100% 0%, rgba(220, 38, 38, .45) 0%, rgba(220, 38, 38, 0) 55%), linear-gradient(135deg, #0c0f16 0%, #151a24 60%, #1b0f12 100%);
    box-shadow: 0 24px 50px -30px rgba(12, 15, 22, .7); }
.bd-kopf::after { content: ''; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none; background: repeating-linear-gradient(-62deg, transparent 0 58px, rgba(255, 255, 255, .045) 58px 60px); }
.bd-kopf h1 { color: #fff !important; font-size: clamp(1.4rem, 3vw, 1.9rem) !important; }
.bd-ak { display: inline-block; margin-top: .45rem !important; padding: .15rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #f3f4f6 !important; font-size: .8rem; font-weight: 800; }
.bd-ak-w { background: rgba(236, 72, 153, .22); color: #fbcfe8 !important; }
.bd-ak-m { background: rgba(59, 130, 246, .25); color: #bfdbfe !important; }
.bd-kopf #bewerbDetailSpezifikaBadges span { background: rgba(255, 255, 255, .12) !important; color: #fecaca !important; }
.bd-kopf #bewerbDetailLiveBadge { background: var(--sh-rot, #dc2626) !important; color: #fff !important; }
.bd-kopf #bewerbDetailLiveBadge span { background: #fff !important; }

#bewerbDetailRundenTabs { gap: .35rem !important; margin-bottom: .75rem !important; }
.bd-runde { padding: .35rem .9rem; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 999px; background: #fff; color: #4b5563; font-size: .8rem; font-weight: 800; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.bd-runde:hover { border-color: #fca5a5; color: var(--sh-rot, #dc2626); }
.bd-runde.aktiv { border-color: #111827; background: #111827; color: #fff; }

.bd-tabs { display: inline-flex !important; gap: .15rem; margin-bottom: 1rem !important; padding: .2rem; border: 0 !important; border-radius: 999px; background: #eceef1; }
.bd-tab { padding: .45rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 800; color: #6b7280; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.bd-tab:hover { color: #111827; }
.bd-tab.aktiv { background: #fff; color: var(--sh-rot, #dc2626); box-shadow: 0 1px 3px rgba(15, 23, 42, .16); }
.bd-tab.hidden { display: none; }

/* Tabellen als Karte */
table.bd-tabelle { border-collapse: separate !important; border-spacing: 0; overflow: hidden; background: #fff; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
table.bd-tabelle thead tr { background: #f9fafb !important; }
table.bd-tabelle thead th { padding: .7rem .8rem !important; border-bottom: 1px solid var(--sh-rand, #e5e7eb) !important; color: #9ca3af; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
table.bd-tabelle tbody td { padding: .7rem .8rem !important; border-top: 1px solid #f3f4f6; border-bottom: 0 !important; vertical-align: middle; }
table.bd-tabelle tbody tr:first-child td { border-top: 0; }
table.bd-tabelle tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
table.bd-tabelle tbody tr:hover { background: rgba(220, 38, 38, .04); box-shadow: inset 3px 0 0 var(--sh-rot, #dc2626); }
table.bd-tabelle .font-mono { font-variant-numeric: tabular-nums; }
.bd-lauf { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .5rem; padding: .45rem .85rem; border-left: 4px solid var(--sh-rot, #dc2626); border-radius: .7rem; background: #111827; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bd-lauf-info { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; letter-spacing: 0; }
.bd-bahn { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .35rem; border-radius: .5rem; background: #111827; color: #fff; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Ergebnisse */
.bd-podest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .7rem; margin: 0 0 1.1rem; }
.bd-podest-karte { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem .8rem .9rem; overflow: hidden; text-align: center;
    background: #fff; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: transform .15s ease, box-shadow .15s ease; }
.bd-podest-karte[role="button"] { cursor: pointer; }
.bd-podest-karte[role="button"]:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(15, 23, 42, .5); }
.bd-podest-karte::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.bd-podest-1 { order: 2; padding-top: 1.4rem; padding-bottom: 1.2rem; background: linear-gradient(180deg, #fffbeb 0%, #fff 70%); border-color: #fde68a; }
.bd-podest-1::before { background: #e9c65a; }
.bd-podest-2 { order: 1; }
.bd-podest-2::before { background: #b8bec6; }
.bd-podest-3 { order: 3; }
.bd-podest-3::before { background: #d39a6a; }
.bd-podest-name { max-width: 100%; margin-top: .3rem; font-size: .92rem; font-weight: 900; color: #111827; overflow-wrap: anywhere; }
.bd-podest-1 .bd-podest-name { font-size: 1.02rem; }
.bd-podest-verein { font-size: .74rem; font-weight: 600; color: #6b7280; }
.bd-podest-leistung { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; font-size: 1.15rem; font-weight: 900; color: #111827; font-variant-numeric: tabular-nums; }
.bd-podest-1 .bd-podest-leistung { font-size: 1.35rem; }
.bd-medaille { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; font-size: .85rem; font-weight: 900; color: #1f2937; }
.bd-podest-karte .bd-medaille { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
.bd-medaille-1 { background: #f2d675; box-shadow: inset 0 0 0 2px #c9a227; }
.bd-medaille-2 { background: #dfe3e8; box-shadow: inset 0 0 0 2px #a9aeb4; }
.bd-medaille-3 { background: #e8b78f; box-shadow: inset 0 0 0 2px #b97a4c; }
.bd-platz { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; font-weight: 800; color: #374151; }
table.bd-ergebnisse tbody tr.bd-zeile-podest { background: #fffdf5; }
.bd-leistung-zelle { white-space: nowrap; }
.bd-leistung { font-size: 1rem; font-weight: 900; color: #111827; font-variant-numeric: tabular-nums; }
.bd-status { color: #9ca3af; font-size: .85rem; }
.bd-pb { display: inline-block; margin-left: .35rem; padding: .05rem .4rem; border-radius: .35rem; background: var(--sh-rot, #dc2626); color: #fff; font-size: .62rem; font-weight: 900; letter-spacing: .04em; vertical-align: .15rem; }
.bd-q { display: inline-block; margin-left: .3rem; padding: .05rem .4rem; border-radius: .35rem; background: #dcfce7; color: #15803d; font-size: .62rem; font-weight: 900; vertical-align: .15rem; }
.bd-story { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 999px; background: #fff; color: #9ca3af; transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease; }
.bd-story svg { width: 1rem; height: 1rem; }
.bd-story:hover { border-color: var(--sh-rot, #dc2626); color: var(--sh-rot, #dc2626); transform: scale(1.06); }
.bd-story-pb { border-color: #fca5a5; color: var(--sh-rot, #dc2626); background: #fef2f2; }

@media (max-width: 640px) {
    .bd-podest { gap: .4rem; }
    .bd-podest-karte { padding: .8rem .4rem .7rem; }
    .bd-podest-name { font-size: .8rem; }
    .bd-podest-1 .bd-podest-name { font-size: .86rem; }
    .bd-podest-verein { display: none; }
    .bd-podest-leistung, .bd-podest-1 .bd-podest-leistung { font-size: .95rem; }
    .bd-tabs { display: flex !important; overflow-x: auto; }
}

/* Dunkel */
html.dark .bd-runde, html.dark table.bd-tabelle, html.dark .bd-podest-karte, html.dark .bd-story { background: #18181b; border-color: #3f3f46; }
html.dark .bd-runde { color: #d4d4d8; }
html.dark .bd-runde.aktiv { background: #f4f4f5; border-color: #f4f4f5; color: #111827; }
html.dark .bd-tabs { background: #27272a; }
html.dark .bd-tab.aktiv { background: #3f3f46; color: #fca5a5; }
html.dark table.bd-tabelle thead tr { background: #1f1f23 !important; }
html.dark table.bd-tabelle thead th { border-bottom-color: #3f3f46 !important; color: #71717a; }
html.dark table.bd-tabelle tbody td { border-top-color: #27272a; }
html.dark table.bd-tabelle tbody tr:hover { background: rgba(248, 113, 113, .07); }
html.dark table.bd-ergebnisse tbody tr.bd-zeile-podest { background: rgba(234, 179, 8, .05); }
html.dark .bd-leistung, html.dark .bd-podest-name, html.dark .bd-podest-leistung, html.dark .bd-platz { color: #f4f4f5; }
html.dark .bd-podest-1 { background: linear-gradient(180deg, rgba(234, 179, 8, .12) 0%, #18181b 70%); border-color: rgba(234, 179, 8, .35); }
html.dark .bd-bahn, html.dark .bd-lauf { background: #27272a; }
html.dark .bd-story-pb { background: rgba(248, 113, 113, .1); border-color: #f87171; color: #fca5a5; }
html.dark .bd-q { background: rgba(34, 197, 94, .16); color: #86efac; }
html.dark .bd-status { color: #71717a; }

/* GEÄNDERT (Nutzer-Wunsch 18.11.2026): Ergebnisse dezenter - flache Medaillen, keine goldenen Zeilen, PB als Umriss */
table.bd-ergebnisse tbody tr.bd-zeile-podest, html.dark table.bd-ergebnisse tbody tr.bd-zeile-podest { background: transparent; }
.bd-medaille { width: 1.6rem; height: 1.6rem; font-size: .78rem; font-weight: 800; box-shadow: none !important; }
.bd-medaille-1 { background: #f6e7b0; color: #7a5b00; }
.bd-medaille-2 { background: #e5e7eb; color: #4b5563; }
.bd-medaille-3 { background: #f1d5bf; color: #8a4b1f; }
.bd-platz { width: 1.6rem; font-weight: 700; color: #6b7280; }
.bd-leistung { font-size: .95rem; font-weight: 800; }
.bd-pb { padding: 0 .35rem; border: 1px solid #fca5a5; background: transparent; color: var(--sh-rot, #dc2626); font-size: .6rem; font-weight: 800; }
.bd-q { border: 1px solid #86efac; background: transparent; }
.bd-story, .bd-story-pb { width: 1.8rem; height: 1.8rem; border-color: transparent; background: transparent; color: #9ca3af; }
.bd-story:hover { border-color: var(--sh-rand, #e5e7eb); background: #f9fafb; transform: none; }
html.dark .bd-medaille-1 { background: rgba(234, 179, 8, .2); color: #fde68a; }
html.dark .bd-medaille-2 { background: #3f3f46; color: #e4e4e7; }
html.dark .bd-medaille-3 { background: rgba(194, 120, 70, .25); color: #f5c9a8; }
html.dark .bd-pb { border-color: #f87171; color: #fca5a5; background: transparent; }
html.dark .bd-q { border-color: rgba(134, 239, 172, .5); background: transparent; }
html.dark .bd-story, html.dark .bd-story-pb { background: transparent; border-color: transparent; color: #71717a; }
html.dark .bd-story:hover { background: #27272a; border-color: #3f3f46; color: #fca5a5; }

/* ======================= GEÄNDERT (Nutzer-Wunsch 18.11.2026): Veranstaltung "auf einen Blick" + weniger bunt ======================= */
.wk-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .9rem 1.6rem; margin: -.25rem 0 1.25rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.wk-fakten:empty { display: none; }
.wk-fakt { min-width: 0; }
.wk-fakt:has(.wk-doks:empty) { display: none; }
.wk-fakt-personen { grid-column: span 2; }
.wk-fakt-label { display: flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.wk-fakt-label svg { width: .8rem; height: .8rem; }
.wk-fakt-wert { margin-top: .3rem; font-size: .92rem; font-weight: 700; color: #111827; }
.wk-fakten .wk-doks { display: flex; flex-direction: column; align-items: stretch; gap: .2rem; }
/* GEÄNDERT (22.11.2026): jedes Dokument eine eigene Zeile mit eigener Hover-Fläche, ohne Dauer-Unterstreichung
   (vorher wirkten beim Hovern alle Einträge "markiert") */
.wk-fakten a.wk-dok { position: relative; display: flex; align-items: center; gap: .4rem; margin: 0 -.45rem; padding: .3rem .45rem; border-radius: 4px; background: none; color: #111827 !important; font-size: .88rem; font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; isolation: isolate; }
.wk-fakten a.wk-dok:hover { background: #fef2f2; color: var(--sh-rot, #dc2626) !important; transform: none; }
.wk-fakten a.wk-dok:hover svg { color: currentColor; }
.wk-fakten a.wk-dok svg { width: .9rem; height: .9rem; color: #9ca3af; flex-shrink: 0; }
.wk-personen { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.wk-person b { display: block; font-size: .92rem; font-weight: 800; color: #111827; }
.wk-person span { display: block; margin-top: .05rem; font-size: .74rem; font-weight: 500; line-height: 1.35; color: #6b7280; }
@media (max-width: 640px) { .wk-fakt-personen { grid-column: 1 / -1; } }
html.dark .wk-fakten { background: #18181b; border-color: #3f3f46; }
html.dark .wk-fakt-wert, html.dark .wk-person b, html.dark .wk-fakten a.wk-dok { color: #f4f4f5 !important; }
html.dark .wk-person span { color: #a1a1aa; }
html.dark .wk-fakten a.wk-dok:hover { background: rgba(202, 6, 28, .14); color: #fca5a5 !important; }

/* Weniger bunt: Kategorie-Farben, Altersklassen- und Status-Schilder neutral grau - Rot nur noch als Akzent */
.bw-karte[data-kat], .bw-karte { --bw-farbe: #e5e7eb; }
.bw-karte[data-kat]:hover { --bw-farbe: var(--sh-rot, #dc2626); }
.bw-kat { color: #9ca3af !important; filter: none !important; }
.bw-ak, .bw-ak-w, .bw-ak-m, .bw-ak-x { background: #f3f4f6; color: #4b5563; }
.bw-fertig { background: #f3f4f6; color: #4b5563; }
.bw-chip-fertig { background: #f3f4f6; color: #111827; }
.bw-seg-w.aktiv, .bw-seg-m.aktiv { color: #111827; }
.bd-ak-w, .bd-ak-m { background: rgba(255, 255, 255, .12); color: #f3f4f6 !important; }
.bd-q { border-color: #d1d5db; color: #374151; }
html.dark .bw-karte[data-kat], html.dark .bw-karte { --bw-farbe: #3f3f46; }
html.dark .bw-karte[data-kat]:hover { --bw-farbe: #f87171; }
html.dark .bw-kat { color: #71717a !important; }
html.dark .bw-ak, html.dark .bw-ak-w, html.dark .bw-ak-m, html.dark .bw-ak-x, html.dark .bw-fertig, html.dark .bw-chip-fertig { background: #27272a; color: #d4d4d8; }
html.dark .bd-q { border-color: #52525b; color: #d4d4d8; }

/* ======================= NEU (Nutzer-Wunsch 18.11.2026): einheitlicher, knapper Abstand oben =======================
   Vorher begannen die Seiten unterschiedlich weit unten (32 px bzw. 72 px unter der Kopfzeile, weil manche Ansichten
   zusätzlich py-10 hatten). Jetzt überall 16 px; die Startseite (Hero unter der Kopfzeile) bleibt unverändert. */
.main-view:not(#view-home) { margin-top: -1rem; }
.main-view.py-10:not(#view-home) { padding-top: 0 !important; }
:is(#profil-view, #wettkampf-detail-view, #verein-detail-view, #cups-detail-view, #view-bewerb-detail) > a:first-child {
    margin-bottom: .75rem !important; font-size: .95rem !important;
}

/* ======================= VEREIN: Saison-Übersicht im Stil der Startseite (11/2026) =======================
   Große Zahlen in der Titelschrift (zählen beim Laden hoch, script.js vereinBilanzHochzaehlen), Symbol als
   Wasserzeichen, roter Strich oben wächst beim Darüberfahren, Medaillen-Balken, Highlights mit rotem Akzent. */
#verein-detail-bilanz .vb-kopf { margin-bottom: 1.1rem; }
#verein-detail-bilanz .vb-titel {
    position: relative; display: flex; align-items: center; gap: .65rem; margin: 0;
    font-family: var(--ci-titel, inherit); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    text-transform: uppercase; letter-spacing: .04em; line-height: 1; color: var(--sh-text, #111827);
}
#verein-detail-bilanz .vb-titel::before { content: ''; width: .45rem; height: 1.5rem; background: var(--sh-rot, #dc2626); transform: skewX(-14deg); }
#verein-detail-bilanz .vb-kacheln { gap: 1rem; margin-bottom: 1.25rem; }
#verein-detail-bilanz .vb-kachel {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 1.15rem 1.2rem 1.1rem; border-radius: var(--ci-r, .9rem);
    border: 1px solid var(--sh-rand, #e5e7eb); box-shadow: var(--sh-schatten, 0 1px 2px rgba(0,0,0,.05));
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, border-color .2s ease;
}
#verein-detail-bilanz .vb-kachel::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sh-rot, #dc2626);
    transform: scaleX(.22); transform-origin: left; transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
#verein-detail-bilanz .vb-kachel:hover { transform: translateY(-3px); box-shadow: var(--sh-schatten-hoch, 0 18px 36px -18px rgba(15, 23, 42, .35)); border-color: rgba(220, 38, 38, .35); }
#verein-detail-bilanz .vb-kachel:hover::before { transform: scaleX(1); }
#verein-detail-bilanz .vb-wasserzeichen {
    position: absolute; right: -.9rem; bottom: -1.1rem; z-index: -1; width: 6.5rem; height: 6.5rem;
    color: var(--sh-rot, #dc2626); opacity: .07; transform: rotate(-12deg); transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
    pointer-events: none;
}
#verein-detail-bilanz .vb-kachel:hover .vb-wasserzeichen { transform: rotate(-4deg) scale(1.08); opacity: .12; }
#verein-detail-bilanz .vb-label { font-family: var(--ci-titel, inherit); font-size: .8rem; font-weight: 600; letter-spacing: .08em; }
#verein-detail-bilanz .vb-wert {
    font-family: var(--ci-titel, inherit); font-weight: 600; font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1;
    margin-top: .5rem; letter-spacing: 0; font-variant-numeric: tabular-nums; transition: color .2s ease;
}
#verein-detail-bilanz .vb-kachel:hover .vb-wert { color: var(--sh-rot, #dc2626); }
#verein-detail-bilanz .vb-unter { margin-top: .4rem; font-weight: 600; }
/* Medaillen: Anteil Gold/Silber/Bronze */
#verein-detail-bilanz .vb-balken { display: flex; gap: 2px; height: 5px; margin-top: .7rem; border-radius: 999px; overflow: hidden; }
#verein-detail-bilanz .vb-balken span { flex-basis: 0; min-width: 6px; }
#verein-detail-bilanz .vb-balken-1 { background: linear-gradient(90deg, #e9b949, #f6d365); }
#verein-detail-bilanz .vb-balken-2 { background: linear-gradient(90deg, #9ca3af, #d1d5db); }
#verein-detail-bilanz .vb-balken-3 { background: linear-gradient(90deg, #b8754a, #e0a57c); }
@media (prefers-reduced-motion: no-preference) {
    #verein-detail-bilanz .vb-kachel { animation: bkEin .5s cubic-bezier(.22, 1, .36, 1) both; }
    #verein-detail-bilanz .vb-kachel:nth-child(2) { animation-delay: .06s; }
    #verein-detail-bilanz .vb-kachel:nth-child(3) { animation-delay: .12s; }
    #verein-detail-bilanz .vb-kachel:nth-child(4) { animation-delay: .18s; }
    #verein-detail-bilanz .vb-balken span { animation: vbBalken .9s cubic-bezier(.22, 1, .36, 1) .25s both; transform-origin: left; }
}
@keyframes vbBalken { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Highlights: Reiter mit rotem Unterstrich statt grauer Pille, Zeilen mit rotem Akzent */
#verein-detail-bilanz .vb-highlights { padding: .4rem 1.1rem .6rem; border-radius: var(--ci-r, .9rem); box-shadow: var(--sh-schatten, 0 1px 2px rgba(0,0,0,.05)); }
#verein-detail-bilanz .vb-seg { background: transparent; padding: 0; gap: 0; border-radius: 0; border-bottom: 1px solid var(--sh-rand, #e5e7eb); margin: 0 -1.1rem .35rem; padding: 0 .6rem; }
#verein-detail-bilanz .vb-seg button {
    position: relative; flex: 0 1 auto; border-radius: 0; padding: .85rem .8rem .75rem; background: transparent !important; box-shadow: none !important;
    font-family: var(--ci-titel, inherit); font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
#verein-detail-bilanz .vb-seg button::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: -1px; height: 3px; background: var(--sh-rot, #dc2626);
    transform: scaleX(0); transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
#verein-detail-bilanz .vb-seg button[aria-selected="true"] { color: var(--sh-text, #111827); }
#verein-detail-bilanz .vb-seg button[aria-selected="true"]::after, #verein-detail-bilanz .vb-seg button:hover::after { transform: scaleX(1); }
#verein-detail-bilanz .vb-seg button:hover:not([aria-selected="true"])::after { opacity: .35; }
#verein-detail-bilanz .vb-zeile { position: relative; margin: 0 -1.1rem; padding-left: 1.1rem; padding-right: 1.1rem; transition: background-color .15s ease, box-shadow .15s ease; }
#verein-detail-bilanz .vb-zeile:hover { background: rgba(220, 38, 38, .04); box-shadow: inset 3px 0 0 var(--sh-rot, #dc2626); }
#verein-detail-bilanz .vb-zeile .vb-medaille { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
#verein-detail-bilanz .vb-rang { font-family: var(--ci-titel, inherit); font-size: 1.15rem; font-weight: 700; min-width: 2.2rem; }
#verein-detail-bilanz .vb-rechts { font-family: var(--ci-titel, inherit); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; }
/* Dunkelmodus */
html.dark #verein-detail-bilanz .vb-kachel { border-color: #3f3f46 !important; }
html.dark #verein-detail-bilanz .vb-kachel:hover { border-color: rgba(248, 113, 113, .45) !important; }
html.dark #verein-detail-bilanz .vb-wasserzeichen { color: #f87171; opacity: .09; }
html.dark #verein-detail-bilanz .vb-kachel:hover .vb-wert { color: #f87171 !important; }
html.dark #verein-detail-bilanz .vb-titel { color: #fafafa; }
html.dark #verein-detail-bilanz .vb-seg { background: transparent !important; border-color: #3f3f46 !important; }
html.dark #verein-detail-bilanz .vb-seg button[aria-selected="true"] { background: transparent !important; color: #fafafa !important; }
html.dark #verein-detail-bilanz .vb-zeile:hover { background: rgba(248, 113, 113, .07); }
/* ======================= WETTKÄMPFE: Veranstaltungs-Badge (11/2026, script.js wkBadge) ======================= */
.wk-badge { width: 9.75rem; flex-shrink: 0; align-self: center; line-height: 0; filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .22));
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), filter .25s ease; transform-origin: 50% 60%; }
.wk-badge svg { display: block; width: 100%; height: auto; }
#wettkampf-liste-container > div:hover .wk-badge { transform: rotate(-3deg) scale(1.07); filter: drop-shadow(0 16px 22px rgba(15, 23, 42, .34)); }
/* NEU (22.11.2026): Kalender-Menü der Veranstaltung - hängt am <body>, Lage setzt script.js (wkKalenderMenuePositionieren) */
.kal-menue.wk-kal-menue { position: fixed; right: auto; top: 0; left: 0; z-index: 90; }
/* NEU (22.11.2026): Glanzstreifen läuft beim Hovern einmal quer über das Schild */
.wk-badge-glanz { transform: translateX(0); }
#wettkampf-liste-container > div:hover .wk-badge-glanz { transform: translateX(360px); transition: transform .9s cubic-bezier(.3, .7, .3, 1); }
@media (max-width: 640px) { .wk-badge { width: 7rem; } }
html.dark .wk-badge { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { #wettkampf-liste-container > div:hover .wk-badge { transform: none; } #wettkampf-liste-container > div:hover .wk-badge-glanz { transform: none; transition: none; } }
/* NEU (Nutzer-Wunsch 20.11.2026): Dokumente im Veranstaltungskopf ab 2 Stück als aufklappbare Liste */
.wk-dok-menue { position: relative; }
.wk-dok-menue > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; user-select: none; padding: .3rem .65rem; border: 1px solid var(--sh-rand, #e5e7eb); border-radius: 4px; background: #fff; color: #111827; font-size: .88rem; font-weight: 700; transition: border-color .15s ease, color .15s ease; }
.wk-dok-menue > summary::-webkit-details-marker { display: none; }
.wk-dok-menue > summary:hover, .wk-dok-menue[open] > summary { border-color: var(--sh-rot, #ca061c); color: var(--sh-rot, #ca061c); }
.wk-dok-menue > summary svg { width: .95rem; height: .95rem; flex-shrink: 0; }
.wk-dok-menue .wk-dok-pfeil { transition: transform .2s ease; color: #9ca3af; }
.wk-dok-menue[open] .wk-dok-pfeil { transform: rotate(180deg); color: currentColor; }
.wk-dok-liste { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 40; display: flex; flex-direction: column; gap: .1rem; width: max-content; min-width: 15rem; max-width: min(24rem, 80vw); max-height: 18rem; overflow-y: auto; padding: .35rem; background: #fff; border: 1px solid var(--sh-rand, #e5e7eb); border-top: 3px solid var(--sh-rot, #ca061c); border-radius: 4px; box-shadow: 0 12px 28px -12px rgba(17, 24, 39, .35); }
.wk-fakten .wk-dok-liste a.wk-dok { margin: 0; padding: .45rem .55rem; border-radius: 3px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.wk-fakten .wk-dok-liste a.wk-dok:hover { background: #fef2f2; }
html.dark .wk-dok-menue > summary { background: #18181b; border-color: #3f3f46; color: #f4f4f5; }
html.dark .wk-dok-liste { background: #18181b; border-color: #3f3f46; border-top-color: var(--sh-rot, #ca061c); }
html.dark .wk-fakten .wk-dok-liste a.wk-dok:hover { background: rgba(202, 6, 28, .14); }
@media (max-width: 640px) { .wk-dok-liste { max-width: calc(100vw - 3rem); } }

/* =====================================================================================================
   NEU (Nutzer-Wunsch 20.11.2026): Bewerb-Tabellen am Handy ohne seitliches Scrollen
   Meldeliste / Startliste / Ergebnisse / Mehrkampf: jede Zeile kompakt -
   [Platz bzw. Bahn] [Name + kleine Zeile "Verein · Jahrgang · Nation …"] [Ergebnis bzw. PB rechts] [Aktion]
   Die Zusatzzeile (.bd-m-meta) und der Wind unter dem Ergebnis (.bd-m-wind) gibt es nur am Handy;
   am Computer bleibt die Tabelle mit allen Spalten unverändert.
   ===================================================================================================== */
.bd-m-meta, .bd-m-wind { display: none; }
@media (max-width: 640px) {
    :is(table.bd-tabelle, table.bd-mk-tabelle) { display: block; width: 100%; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) thead { display: none; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) tbody { display: block; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) tbody tr {
        display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto auto; align-items: center; column-gap: .65rem;
        padding: .65rem .75rem; border-top: 1px solid #f3f4f6;
    }
    :is(table.bd-tabelle, table.bd-mk-tabelle) tbody tr:first-child { border-top: 0; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) tbody tr > td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-aus { display: none !important; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-platz { grid-column: 1; text-align: center; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-name { grid-column: 2; line-height: 1.25; overflow-wrap: anywhere; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-wert { grid-column: 3; display: flex !important; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; white-space: nowrap; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-aktion { grid-column: 4; }
    :is(table.bd-tabelle, table.bd-mk-tabelle) .bd-m-aktion:empty { display: none; }
    /* Meldeliste: ohne Platz-Spalte */
    table.bd-tabelle tbody tr.bd-m-ohne-platz { grid-template-columns: minmax(0, 1fr) auto auto; }
    table.bd-tabelle tr.bd-m-ohne-platz .bd-m-name { grid-column: 1; }
    table.bd-tabelle tr.bd-m-ohne-platz .bd-m-wert { grid-column: 2; }
    table.bd-tabelle tr.bd-m-ohne-platz .bd-m-aktion { grid-column: 3; }
    /* Staffel in der Startliste: Teamname + Läufer:innen über die volle Breite */
    table.bd-tabelle tr.bd-m-staffel .bd-m-name { grid-column: 2 / -1; }
    /* Mehrkampf: Disziplinen-Chips in eigener Zeile darunter */
    table.bd-mk-tabelle tbody tr { align-items: start; }
    table.bd-mk-tabelle .bd-m-voll { grid-column: 1 / -1; max-width: none !important; margin-top: .45rem; }
    /* Zusatzzeile unter dem Namen, Wind unter dem Ergebnis, Beschriftung der PB-Spalte */
    .bd-m-meta { display: block; margin-top: .15rem; font-size: .74rem; font-weight: 500; color: #6b7280; }
    .bd-m-wind { display: block; font-size: .68rem; font-weight: 600; color: #6b7280; font-variant-numeric: tabular-nums; }
    .bd-m-wert .bd-leistung { font-size: 1.05rem; }
    .bd-m-pb { font-weight: 700; color: #111827; }
    .bd-m-pb::before { content: 'PB'; display: block; font-family: var(--ci-schrift, inherit); font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: #9ca3af; }
    html.dark :is(table.bd-tabelle, table.bd-mk-tabelle) tbody tr { border-top-color: #27272a; }
    html.dark .bd-m-meta, html.dark .bd-m-wind { color: #a1a1aa; }
    html.dark .bd-m-pb { color: #f4f4f5; }
}
/* NEU (20.11.2026): Reiterleisten (Athletenprofil, Verein) am Handy - dritter Reiter war abgeschnitten.
   Jetzt kompakter und notfalls seitlich wischbar (ohne sichtbaren Balken). */
@media (max-width: 640px) {
    :is(.ps-reiter, #verein-reiter) { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    :is(.ps-reiter, #verein-reiter)::-webkit-scrollbar { display: none; }
    :is(.ps-reiter, #verein-reiter) > button { flex: 0 0 auto; white-space: nowrap; padding-left: .65rem !important; padding-right: .65rem !important; font-size: .82rem !important; gap: .35rem !important; }
    :is(.ps-reiter, #verein-reiter) > button > span { min-width: 1.4rem !important; height: 1.1rem !important; font-size: .66rem !important; }
}

/* NEU (22.11.2026): Flagge zusätzlich zum Länderkürzel (apNationHtml / apFlaggeBild in script.js) */
.ap-nation { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; vertical-align: middle; }
.ap-flagge { display: inline-block; flex: 0 0 auto; width: 1.2rem; height: .8rem; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(17, 24, 39, .14); }
.ap-flagge-vorne { margin-right: .4rem; vertical-align: -.08rem; }
.ci-athlet-nation .ap-nation { gap: .25rem; }
.ci-athlet-nation .ap-flagge { width: 1rem; height: .66rem; }
.bd-m-meta .ap-nation { gap: .25rem; vertical-align: baseline; }
.bd-m-meta .ap-flagge { width: 1rem; height: .66rem; vertical-align: -.05rem; }
html.dark .ap-flagge { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
