/* Optik „Rennstrecke“ (Entwurf B, ab 0.8.3) – Festlegungen F1–F15 und Quervergleich zur Discord-Optik in
   docs/OPTIK-RENNSTRECKE.md. Wird nur geladen, wenn jemand sie unter Mein Konto gewählt hat; alles hängt an
   body.optik-rennstrecke, die Discord-Optik (app.css) bleibt unverändert. */

/* ---------- 1 Tokens (F2, F3, F4, F15) ---------- */
:root:has(body.optik-rennstrecke) { color-scheme: dark; }          /* F15: vorerst nur dunkel */
body.app.optik-rennstrecke {
  --rs-head-h: 64px;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --border: #262626;
  --border-strong: #333;
  --accent: var(--rs-accent, #5865F2);                              /* F3: Liga → Community → Grundfarbe */
  --accent-text: var(--rs-on, #fff);                                /* F4: Schrift auf Farbe automatisch hell/dunkel */
  --league: var(--accent);
  --league-text: var(--accent-text);
  --accent-ink: var(--rs-ink, #8790F6);                             /* Akzent als Schrift: ≥ 4,5:1 auf dunklem Grund */
  --league-ink: var(--accent-ink);
  --community-1: var(--accent);
  --r: 0; --r-lg: 0;                                                /* eckig */
  --shadow: none;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Tomorrow", "Overpass", system-ui, sans-serif;

  display: block;                                                    /* kein Raster mit Seitenleiste mehr */
  --side-w: 0px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
/* Ligaseiten setzen --league per league_vars – dann gilt die Ligafarbe auch innen (F3) */

/* ---------- 2 Schrift und Überschriften (F2) ---------- */
.optik-rennstrecke h1, .optik-rennstrecke h2, .optik-rennstrecke h3,
.optik-rennstrecke .page-title, .optik-rennstrecke .card h1, .optik-rennstrecke .card h2 {
  font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.optik-rennstrecke h1 { font-size: 2.1rem; }
.optik-rennstrecke :is(h1, h2, h3) { overflow-wrap: break-word; }
.optik-rennstrecke h1 { hyphens: manual; overflow-wrap: break-word; }   /* Namen nie automatisch trennen (Nordschlei-fen, 17.10.2026); lange feste Titel per Filter „trennbar“ */
.optik-rennstrecke .card h3 { font-size: 1.05rem; }
.optik-rennstrecke .eyebrow { font-family: var(--font); font-weight: 700; letter-spacing: .24em; color: var(--league-ink); }
.optik-rennstrecke a:not(.button) { color: color-mix(in srgb, var(--league-ink) 70%, var(--text)); }

/* ---------- 3 Hover und Fokus (F8): 2 px Umrandung in Ligafarbe, 3 px Abstand, kein Gelb ---------- */
.optik-rennstrecke :focus-visible,
.optik-rennstrecke a:hover, .optik-rennstrecke button:hover, .optik-rennstrecke summary:hover {
  outline: 2px solid var(--league); outline-offset: 3px; text-decoration: none;
}
.optik-rennstrecke button:focus:not(:focus-visible) { outline: none; }
.optik-rennstrecke .ticker a:hover, .optik-rennstrecke table.data a:hover { outline-offset: 1px; }

/* ---------- 4 Knöpfe genau wie Entwurf B (F7) ---------- */
.optik-rennstrecke .button {
  border-radius: 0; border: 0; transform: skewX(-14deg);
  font-family: var(--font-head); font-style: italic; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 22px; transition: outline-color .15s;
}
.optik-rennstrecke .button:hover { filter: none; }
/* „→“ nur bei Aktionen, die weiterführen (Anmelden, Zur Anmeldung …): Klasse .button-go (Thomas 10.10.2026) */
.optik-rennstrecke .button-go::after { content: " →"; white-space: pre; }
.optik-rennstrecke .button-secondary, .optik-rennstrecke .season-links .button {
  background: transparent; color: var(--text); border: 2px solid var(--text);
}
.optik-rennstrecke .button-secondary:hover { border-color: var(--text); }
.optik-rennstrecke .button-ghost { background: transparent; color: var(--text); }
.optik-rennstrecke .button-ghost:hover { background: transparent; }
.optik-rennstrecke .button-small { padding: 0 14px; }
.optik-rennstrecke .button-block { transform: none; }               /* volle Breite: schräg würde über den Rand ragen */
.optik-rennstrecke .link-button { border-radius: 0; }

/* ---------- 5 Bausteine: Karten, Reiter, Tabellen, Felder ---------- */
.optik-rennstrecke .card { border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
.optik-rennstrecke .tabs { gap: 0; border-bottom: 1px solid var(--border); }
.optik-rennstrecke .tabs a {
  height: 46px; border-radius: 0; color: var(--muted);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.optik-rennstrecke .tabs a:hover { background: transparent; color: var(--text); outline-offset: -2px; }
.optik-rennstrecke .tabs a[aria-current="page"] { background: transparent; color: var(--text); box-shadow: inset 0 -3px 0 var(--league); }
/* Ticket-Arbeitsplatz der Rennleitung: Reiter wie überall unterstrichen statt Farbfläche (gelbe Schrift auf Gelb, 13.10.2026) */
.optik-rennstrecke .queue-tabs a { color: var(--muted); }
.optik-rennstrecke .queue-tabs a[aria-current="page"] { background: transparent; color: var(--text); box-shadow: inset 0 -3px 0 var(--league); }
.optik-rennstrecke table.data th { font-family: var(--font-head); letter-spacing: .1em; }
.optik-rennstrecke table.data th, .optik-rennstrecke table.data td { border-bottom-color: #222; }
.optik-rennstrecke input, .optik-rennstrecke select, .optik-rennstrecke textarea { border-radius: 0; }
.optik-rennstrecke .nav-count { border-radius: 0; }

/* ---------- 6 Kopf mit Navigation oben (F5, F6) ---------- */
.optik-rennstrecke .mobile-bar { display: none; }
.rs-head {
  position: sticky; top: 0; z-index: 45; height: var(--rs-head-h);
  display: flex; align-items: center; gap: 14px 28px; padding: 0 24px;
  background: #000; border-bottom: 1px solid #1f1f1f;
}
.rs-logo {
  flex: none; font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 21px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text) !important; text-decoration: none;
}
.rs-logo span { color: var(--league); }                            /* F9: „Liga“ in Ligafarbe */
.rs-nav { display: flex; align-items: center; gap: 4px 24px; flex: 1 1 auto; min-width: 0;
          font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.rs-nav a, .rs-nav-button { color: var(--text) !important; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.rs-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--league); }
.rs-nav-button { background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.rs-nav-button[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--league); }
.rs-right { flex: none; display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Burger (Thomas 10.10.2026: moderner): drei schräge Striche, der unterste in Ligafarbe; offen → ✕ */
.rs-menu-toggle { background: transparent !important; border: 0 !important; }
.rs-burger { position: relative; display: block; width: 26px; height: 18px; transform: skewX(-14deg); }
.rs-burger i { position: absolute; left: 0; height: 3px; background: var(--text); transition: transform .2s, width .2s, top .2s, opacity .2s, background .2s; }
.rs-burger i:nth-child(1) { top: 0; width: 26px; }
.rs-burger i:nth-child(2) { top: 7.5px; width: 18px; }
.rs-burger i:nth-child(3) { top: 15px; width: 22px; background: var(--league); }
.rs-menu-toggle:hover .rs-burger i:nth-child(2) { width: 26px; }
.rs-menu-toggle[aria-expanded="true"] .rs-burger i:nth-child(1) { top: 7.5px; width: 26px; transform: rotate(45deg); }
.rs-menu-toggle[aria-expanded="true"] .rs-burger i:nth-child(2) { opacity: 0; }
.rs-menu-toggle[aria-expanded="true"] .rs-burger i:nth-child(3) { top: 7.5px; width: 26px; transform: rotate(-45deg); }
/* Aufmerksamkeit (Thomas 10.10.2026: „animiert, damit man es erkennt“): alle 4 s eine kurze Welle durch die Striche */
.rs-menu-toggle[aria-expanded="false"] .rs-burger i:nth-child(1) { animation: rs-burger-a 4s ease-in-out infinite; }
.rs-menu-toggle[aria-expanded="false"] .rs-burger i:nth-child(2) { animation: rs-burger-b 4s ease-in-out infinite; }
.rs-menu-toggle[aria-expanded="false"] .rs-burger i:nth-child(3) { animation: rs-burger-c 4s ease-in-out infinite; }
.rs-menu-toggle:hover .rs-burger i, .rs-menu-toggle:focus-visible .rs-burger i { animation: none !important; }
@keyframes rs-burger-a { 0%, 70%, 100% { width: 26px; } 76% { width: 14px; } 84% { width: 26px; } }
@keyframes rs-burger-b { 0%, 72%, 100% { width: 18px; } 80% { width: 26px; } 88% { width: 18px; } }
@keyframes rs-burger-c { 0%, 74%, 100% { width: 22px; opacity: 1; box-shadow: none; }
                         82% { width: 26px; opacity: .35; } 88% { opacity: 1; box-shadow: 0 0 8px var(--league); } }
@media (prefers-reduced-motion: reduce) { .rs-burger i { transition: none; animation: none !important; } }
.rs-icon-button {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid #2a2a2a; color: var(--text); cursor: pointer;
}
.rs-profile { position: relative; display: block; width: 40px; height: 40px; text-decoration: none; }
.rs-profile img, .rs-avatar-fallback { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; }
.rs-avatar-fallback { background: var(--surface-2); color: var(--text); font-weight: 700; }
.rs-dot { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--league); border: 2px solid #000; }
.rs-login { height: 40px; }

/* Pinnwand-Leiste (Demo/Tester/Laufband) unter dem Kopf */
.optik-rennstrecke .top-stack { top: var(--rs-head-h); z-index: 30; }
.optik-rennstrecke .ticker { background: var(--surface); border-bottom-color: #1f1f1f; }
.optik-rennstrecke .ticker-label { border-radius: 0; transform: skewX(-14deg); font-family: var(--font-head); font-style: italic; }

/* ---------- 7 Menü-Panel = komplette bisherige Seitenleiste (nichts geht verloren) ---------- */
.optik-rennstrecke .sidebar {
  position: fixed; z-index: 60; top: var(--rs-head-h); left: 0; bottom: 0; height: auto;
  width: min(340px, 100vw - 24px); transform: translateX(-105%); transition: transform .2s;
  border-right: 1px solid var(--border); box-shadow: 20px 0 40px rgba(0, 0, 0, .5);
}
.optik-rennstrecke:not(.with-servers) .sidebar { width: min(280px, 100vw - 24px); }
.optik-rennstrecke .sidebar.open { transform: none; }
.rs-backdrop { position: fixed; inset: var(--rs-head-h) 0 0 0; z-index: 55; background: rgba(0, 0, 0, .55); }
.optik-rennstrecke .side-nav a { border-radius: 0; }
.optik-rennstrecke .side-nav a[aria-current="page"] { background: color-mix(in srgb, var(--league) 18%, transparent); box-shadow: inset 3px 0 0 var(--league); }
.optik-rennstrecke .driver-plate { border-radius: 0; border-top-color: var(--accent); }
.optik-rennstrecke [data-theme-toggle] { display: none; }           /* F15: Hell/Dunkel vorerst nur in der Discord-Optik */

/* ---------- 8 Dock (Nächste Rennen links, Wer ist online rechts) ---------- */
.optik-rennstrecke .next-races { left: 0; }

/* ---------- 9 Seiteninhalte (Schritt 3): Liga-Kopf, Reiter, Karten 01–03, Fahrer des Tages, Startseite ---------- */
body.optik-rennstrecke { overflow-x: clip; }                         /* Kopfbild läuft über die volle Breite */
.rs-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--league-ink); }
.rs-eyebrow.muted { color: var(--muted); letter-spacing: .24em; }
.rs-outline-num {
  position: absolute; right: 14px; top: 0; pointer-events: none;
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 72px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #3a3a3a;
}

/* Liga-Kopf mit Streckenbild – Verlauf von links, keine Streifen (F10) */
.rs-stage {
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: 380px;
  width: 100vw; margin: calc(-1 * var(--s-5)) 0 0 calc(50% - 50vw); background: #000;
}
@media (min-width: 1400px) {                                        /* Anzeigen-Spalte rechts: Bild nur so breit wie die Inhaltsspalte */
  .content-body.has-rail .rs-stage { width: auto; margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); }
}
.rs-stage.no-image { min-height: 220px; background: linear-gradient(110deg, #000 40%, color-mix(in srgb, var(--league) 45%, #000)); }
.rs-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.2) 100%); }
.rs-stage.no-image::after { display: none; }
.rs-stage-body {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 44px var(--s-4);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5);
}
.rs-stage .rs-eyebrow { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.rs-stage-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rs-stage h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; overflow-wrap: anywhere; }
.rs-stage h1 span { font-weight: 500; }
.rs-stage-meta { margin: 0; font-size: 1.1rem; color: #d4d4d4; }
.rs-stage-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; padding-left: 6px; }
.rs-stage-actions .button { height: 48px; padding: 0 30px; }
.rs-stage-logo { flex: none; max-width: 180px; max-height: 90px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }
.league > .notice, .league > .sponsor-bar { margin-top: var(--s-4); }

/* Liga-Reiter: gleiche Punkte wie in der Seitenleiste */
.rs-league-tabs { margin: 0 0 var(--s-5); }
.rs-league-tabs a { padding: 0 16px; }
.rs-league-tabs a.side-restricted { color: color-mix(in srgb, var(--muted) 80%, var(--league)); }
.rs-league-tabs a.side-cta { color: var(--league-ink); }
.rs-league-tabs .nav-count { margin-left: 6px; }

/* Karten 01–03 (F11) */
.rs-top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
.rs-top3-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 24px 24px 22px; background: var(--surface); border-bottom: 3px solid var(--league);
}
.rs-top3-card.me { box-shadow: inset 3px 0 0 var(--league); }
.rs-top3-name { position: relative; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.6rem;
                text-transform: uppercase; line-height: 1.1; overflow-wrap: anywhere; }
.rs-top3-pts { font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: var(--league); }
.rs-top3-pts small { font-size: .9rem; color: var(--muted); }
.rs-section-title { margin: var(--s-5) 0 var(--s-3); }

/* Letztes Rennen + Fahrer des Tages (F12) */
.rs-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); align-items: start; margin-bottom: var(--s-5); }
.rs-panel { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--surface); }
.rs-panel h3 { margin: 0; font-size: 1.4rem; }
.rs-podium-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.rs-podium-row b { font-family: var(--font-head); font-style: italic; margin-right: 10px; }
.rs-more { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--league-ink) !important; text-decoration: none; }
.rs-dotd {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; margin: var(--s-4) 0;
  background: var(--league); color: var(--league-text); transform: skewX(-4deg);
  margin-inline: 10px;                                               /* schräge Kanten bleiben in der Spalte */
}
.rs-pair .rs-dotd { margin: 0 10px; }
.rs-dotd .rs-eyebrow { color: inherit; letter-spacing: .24em; }
.rs-dotd b { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.75rem; text-transform: uppercase; line-height: 1.1; }

/* Startseite */
.rs-hello { display: flex; flex-direction: column; gap: 10px; margin: var(--s-4) 0 var(--s-5); }
.rs-hello h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .98; }
.rs-hello h1 span { font-weight: 500; }
.optik-rennstrecke .stat-grid .stat { border: 0; border-radius: 0; background: var(--surface); border-bottom: 3px solid var(--accent); }
.optik-rennstrecke .stat-grid .stat b { font-family: var(--font-head); font-weight: 600; }
.optik-rennstrecke .card.tile { position: relative; border-bottom: 3px solid var(--league); }
.optik-rennstrecke .card.tile .rs-outline-num { font-size: 64px; top: -4px; -webkit-text-stroke-color: #353535; }
.optik-rennstrecke .tile-head, .optik-rennstrecke .tile-facts, .optik-rennstrecke .tile-actions { position: relative; }
.optik-rennstrecke .tile-logo { border-radius: 0; }
.optik-rennstrecke .tile-title h2 {                                /* voller Ligenname: nicht kürzen, nicht trennen */
  display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0;
  font-size: 1.1rem; line-height: 1.15; hyphens: manual; overflow-wrap: normal; text-wrap: balance; }
/* Ligenname über mehrere Zeilen: Hover-Rahmen als ein Kasten statt je Zeile (sah aus wie durchgestrichen – Thomas 18.10.2026) */
.optik-rennstrecke .tile-title h2 > a { display: inline-block; outline-offset: 2px; }
.optik-rennstrecke .tile-actions { background: transparent; border-top-color: #222; }
.optik-rennstrecke .tile-actions .button { transform: skewX(-14deg) scaleX(.96); }  /* schräg, ohne über den Rand zu ragen */

/* Verwaltung → Übersicht, Kacheln „Kennzahlen“ (Thomas 27.10.2026, Entwurf V2). Knöpfe wie in den Liga-Bändern: gerade,
   beim Darüberfahren leicht schräg mit Schatten (Thomas: „nur beim drüber hovern wird es schräg“). */
.optik-rennstrecke .card.tile.rs-atile { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.rs-atile-head { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 62px; }   /* Kacheln gleich hoch */
.rs-atile-logo { flex: none; width: 88px; height: 44px; display: grid; place-items: center; background: #101010; text-decoration: none; }
.rs-atile-logo img { max-width: 84px; max-height: 40px; object-fit: contain; }
.rs-atile-logo span { font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--league-ink); }
.rs-atile-title { min-width: 0; }
.rs-atile-title h2 { margin: 0; font-size: 15px !important; line-height: 1.2; }
.rs-atile-title h2 a { color: var(--text) !important; text-decoration: none; }
.rs-atile-sub { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.optik-rennstrecke .admin-guild .card-head .button { white-space: nowrap; }          /* Handy: Knopf bricht als Ganzes um */
.rs-atile-sub a { color: var(--league-ink) !important; }
.rs-atile-sub .st-active, .rs-atile-sub .st-open { color: #7fe39d; }
.rs-atile-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs-atile-kpi { display: flex; flex-direction: column; padding: 10px 12px; background: #1d1d1d; border-left: 3px solid var(--league);
                color: var(--text) !important; text-decoration: none; transition: background .15s; }
a.rs-atile-kpi:hover { background: #252525; }
.rs-atile-kpi b { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1; }
.rs-atile-kpi small { font-size: 11px; color: var(--muted); }
.rs-atile-kpi.warn { background: #2e2412; border-left-color: #f5c46b; }
.rs-atile-kpi.warn b, .rs-atile-kpi.warn small { color: #f5c46b; }
.rs-atile-next { margin: 0; font-size: 12.5px; color: #cfcfcf; }
.rs-atile-main .button, .rs-atile-acts .button { transform: none; transition: transform .2s ease, box-shadow .2s ease; }
.rs-atile-main .button { width: 100%; justify-content: center; box-sizing: border-box; background: var(--league); color: var(--league-text); }
.rs-atile-main .button:hover, .rs-atile-acts .button:hover { transform: translateX(3px) skewX(-6deg); box-shadow: -6px 0 0 rgba(255,255,255,.25); }
.rs-atile-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-atile-acts .button { justify-content: center; gap: 6px; border-width: 1px; }
.rs-atile-acts .ic { width: 14px; height: 14px; }
.rs-atile-del { align-self: flex-start; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .rs-atile-main .button:hover, .rs-atile-acts .button:hover { transform: none; box-shadow: none; }
}
.optik-rennstrecke .sim-title { margin-top: var(--s-6); }
.optik-rennstrecke .special-card { border: 0; border-radius: 0; background: var(--surface); }
.optik-rennstrecke .special-card::after { width: 3px; background: var(--league); }
.optik-rennstrecke .special-main h2 { font-size: 1.5rem; }
/* Startseite „Rennwoche“ (Variante B, Thomas 10.10.2026): Kopf mit Countdown, Hinweise, 7 Tage, Liga-Karten */
.rs-start-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin: var(--s-4) 0 var(--s-5); }
.rs-start-top .rs-hello { margin: 0; }
.rs-start-next { display: flex; flex-direction: column; gap: 8px; color: var(--text) !important; }
.rs-start-next .rs-count > span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; background: #000; border-bottom: 2px solid var(--league); }
.rs-alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.rs-alert { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--a); font-size: 13.5px; color: var(--text) !important; }
.rs-alert:hover { background: var(--surface-2); outline-offset: 0; }
.rs-alert .ic { width: 18px; height: 18px; color: var(--a); flex: none; }
.rs-alert b { font-family: var(--font-head); font-style: italic; font-weight: 700; }
.rs-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: var(--s-5) 0 var(--s-3); }
.rs-sec-head h2 { margin: 0; font-size: 1.6rem; }
.rs-sec-head h2 span { font-weight: 500; }
button.rs-more { padding: 0; background: none; border: 0; cursor: pointer; }
.rs-start-next, .rs-alert, .rs-day-ev, .rs-lcard-last, .rs-lcard-links a { text-decoration: none; }
.rs-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rs-day { min-height: 128px; min-width: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-top: 3px solid transparent; }
.rs-day.today { border-top-color: var(--text); }
.rs-day-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rs-day-head b { font-style: italic; font-size: 1.2rem; letter-spacing: 0; color: var(--text); }
.rs-day-ev { min-width: 0; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--text) !important;
             background: color-mix(in srgb, var(--league) 18%, #0d0d0d); border-left: 3px solid var(--league); }
.rs-day-ev:hover { background: color-mix(in srgb, var(--league) 28%, #0d0d0d); outline-offset: 0; }
.rs-day-ev b { font-family: var(--font-head); font-style: italic; font-size: 12px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-day-ev > span:not(.rs-nr-chip) { color: #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-day-ev .rs-nr-chip { align-self: flex-start; margin: 2px 0 0 3px; height: 18px; font-size: 9px; gap: 4px; }
.rs-nr-chip .ic { width: 11px; height: 11px; }
.rs-week-none { margin: var(--s-2) 0 0; }
.rs-lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: var(--s-5); }
.rs-lcard { position: relative; overflow: hidden; min-width: 0; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px;
            background: var(--surface); border-bottom: 3px solid var(--league); }
.rs-lcard.off { opacity: .5; }
.rs-lcard .rs-outline-num { right: 10px; top: -6px; font-size: 58px; -webkit-text-stroke-color: #333; }
.rs-lcard > :not(.rs-outline-num) { position: relative; }
.rs-lcard-sim { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.rs-lcard-name { margin: 0; font-size: 1.15rem !important; line-height: 1.1; min-height: 3.3em; text-wrap: balance; hyphens: manual; }   /* bis 3 Zeilen: darunter beginnt alles gleich hoch */
.rs-lcard-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #cfcfcf; }
.rs-lcard-next { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; }
.rs-lcard-next > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }     /* eine Zeile, voller Name im Tooltip */
.rs-lcard-row:has(> .rs-lcard-next) { flex-wrap: nowrap; }
.rs-lcard-row > .rs-nr-chip { flex: none; }
.rs-lcard-next .ic { width: 14px; height: 14px; color: var(--league-ink); flex: none; }
.rs-lcard-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--league-ink); }
.rs-lcard-pos small { margin-left: 5px; font-size: 11px; font-style: normal; font-weight: 400; color: var(--muted); }
.rs-lcard-last { color: var(--muted) !important; }
.rs-lcard-ana { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--league-ink) !important; text-decoration: none; }   /* Rennanalyse (Variante A, 14.10.2026) */
.rs-lcard-ana:hover { text-decoration: underline; }
.rs-lcard-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding: 6px 0 0 6px; }   /* Knöpfe aller Karten einer Reihe auf einer Linie */
.rs-lcard-acts + .rs-lcard-links { margin-top: 10px; }
.rs-lcard-last .rs-nr-chip { height: 18px; font-size: 9px; margin-left: 4px; }
.rs-lcard-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 8px; border-top: 1px solid #222;
                  font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.rs-lcard-links a { color: var(--muted) !important; }
.rs-lcard-links a:hover { color: var(--text) !important; outline-offset: 2px; }
.rs-lcard-links a.role { color: color-mix(in srgb, var(--muted) 70%, var(--league-ink)) !important; }
@media (max-width: 1100px) { .rs-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {                                          /* Handy: Liste ohne leere Tage */
  .rs-week { grid-template-columns: 1fr; }
  .rs-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .rs-day.empty:not(.today) { display: none; }
  .rs-day-head { width: 56px; flex-direction: column; justify-content: center; }
  .rs-day-ev { flex: 1 1 200px; }
  .rs-start-top { align-items: flex-start; }
  .rs-alert { width: 100%; }
  .rs-lcard-name { min-height: 0; }
}

/* Fahrerlager (früher Boxentafel), Variante C (Thomas 10.10.2026): Rampenlicht + nach Communities */
.rs-pb { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-4); }
.rs-pb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.rs-pb-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .98; }
.rs-pb-sims { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-pb-sims a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--surface); transform: skewX(-14deg);
                font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
                color: var(--muted) !important; text-decoration: none; }
.rs-pb-sims a i { width: 8px; height: 8px; background: var(--c); }
.rs-pb-sims a[aria-current="page"] { background: var(--text); color: #000 !important; }
.rs-pb-spot { position: relative; }
.rs-pb-slide { position: relative; overflow: hidden; min-height: 240px; padding: 26px 26px 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end;
               background: radial-gradient(140% 120% at 85% 20%, color-mix(in srgb, var(--league) 35%, #1a1a1a), #0b0b0b 62%); }
.rs-pb-slide[hidden] { display: none; }
.rs-pb-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-pb-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 55%, color-mix(in srgb, var(--league) 40%, transparent) 100%); }
.rs-pb-slide > div { position: relative; z-index: 1; }
.rs-pb-slide h2 { margin: 6px 0; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1; }
.rs-pb-slide p { margin: 0; color: #d4d4d4; font-size: 14px; }
.rs-pb-slide .rs-eyebrow .ic { width: 14px; height: 14px; }
.rs-pb-slide-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rs-pb-big { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 2.2rem; line-height: 1; }
.rs-pb-big small { font-size: 1rem; color: var(--muted); }
.rs-pb-dots { position: absolute; z-index: 2; left: 26px; bottom: 12px; display: flex; gap: 6px; }
.rs-pb-dots button { position: relative; overflow: hidden; width: 28px; height: 4px; padding: 0; border: 0; background: #555; cursor: pointer; }
.rs-pb-dots button[aria-current="true"] { width: 44px; background: rgba(255,255,255,.3); }
.rs-pb-dots button i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.rs-pb-dots button[aria-current="true"] i { transform: scaleX(1); }
.rs-pb-dots button.run i { animation: rs-pb-progress 6s linear forwards; }       /* Fortschritt bis zum nächsten Wechsel */
.rs-pb-slide.is-in > img { animation: rs-pb-zoom 7s ease-out forwards; }        /* Streckenbild zoomt langsam heran */
.rs-pb-slide.is-in > div { animation: rs-pb-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.rs-pb-slide.is-in > .rs-pb-slide-side { animation-delay: .12s; }
.rs-pb-spot.is-paused .rs-pb-dots button i, .rs-pb-spot.is-paused .rs-pb-slide > img { animation-play-state: paused; }
@keyframes rs-pb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rs-pb-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rs-pb-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rs-pb-dots button.run i, .rs-pb-slide.is-in > img, .rs-pb-slide.is-in > div { animation: none; }
}
.rs-pb-group { display: flex; flex-direction: column; gap: 10px; }
.rs-pb-ghead { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--cm); }
.rs-pb-gicon { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: var(--cm); color: #fff; font-weight: 700; }
.rs-pb-gicon img { width: 100%; height: 100%; object-fit: cover; }
.rs-pb-gname { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.rs-pb-gname b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.2rem; line-height: 1.1; }
.rs-pb-gname span { font-size: 12.5px; color: var(--muted); }
.rs-pb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rs-pb-card { position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: var(--surface); border-left: 3px solid var(--league); }
.rs-pb-card.off { opacity: .5; }
.rs-pb-card .rs-outline-num { right: 8px; top: -4px; font-size: 44px; -webkit-text-stroke-color: #333; }
.rs-pb-card > :not(.rs-outline-num) { position: relative; }
.rs-pb-sim { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-pb-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 2.3em; font-size: 1rem !important; line-height: 1.15; text-wrap: balance; hyphens: manual; }
.rs-pb-logo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.rs-pb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #d4d4d4; }
.rs-pb-next { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 0; }
.rs-pb-next > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }       /* eine Zeile: Status aller Karten auf einer Höhe */
.rs-pb-row:has(> .rs-pb-next) { flex-wrap: nowrap; }
.rs-pb-row > .rs-nr-chip { flex: none; }
.rs-pb-next .ic { width: 14px; height: 14px; color: var(--league-ink); flex: none; }
.rs-pb-seats { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rs-pb-seats .ic { width: 14px; height: 14px; }
.rs-pb-bar { flex: 1; min-width: 60px; height: 5px; background: #262626; }
.rs-pb-bar i { display: block; height: 100%; background: var(--league); }
.rs-pb-seats.is-full .rs-pb-bar i { background: #ff6b63; }
.rs-pb-acts { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: auto; padding-left: 6px; }
.rs-pb-acts .rs-more { display: inline-flex; align-items: center; gap: 5px; }
.rs-pb-acts .rs-more .ic { width: 13px; height: 13px; }
.rs-pb-foot { margin: 0; padding-top: 14px; border-top: 1px solid #222; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.rs-pb-foot .rs-more { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .rs-pb-slide { grid-template-columns: 1fr; padding: 20px 16px 30px; }
  .rs-pb-slide-side { align-items: flex-start; }
  .rs-pb-dots { left: 16px; }
  .rs-pb-sims { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 2px 8px; scrollbar-width: none; }   /* wischen statt drei Zeilen */
  .rs-pb-sims a { flex: none; }
}

/* Fahrer-Rating, Mischung A2 + A3 (Thomas 10.10.2026): Podium, Positionskampf, Formkurve, Tabelle mit Abstand */
.rs-rt { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-4); }
.rs-rt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.rs-rt-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: .98; }
.rs-rt-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rs-rt-modes .ic { width: 14px; height: 14px; }
.optik-rennstrecke .rs-rt-search { margin: 0; width: auto; flex: 0 1 280px; }
.rs-rt-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: #2a2a2a; font-weight: 700; }
.rs-rt-av img { width: 100%; height: 100%; object-fit: cover; }
.rs-rt-spark { width: 90px; height: 26px; }
.rs-rt-spark polyline { fill: none; stroke: var(--league-ink); stroke-width: 1.8; }
.rs-rt .delta { font-family: var(--font-head); font-weight: 600; font-size: 12px; }
.rs-rt .delta.up { color: #2fbf71; } .rs-rt .delta.down { color: #ff6b63; }
.rs-rt-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rs-rt-pc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--surface);
            border-bottom: 3px solid var(--pc); color: var(--text) !important; text-decoration: none; }
.rs-rt-pc.p1 { --pc: #ffd54a; } .rs-rt-pc.p2 { --pc: #cfd4dc; } .rs-rt-pc.p3 { --pc: #e0a46e; }
.rs-rt-pc:hover { background: var(--surface-2); outline-offset: 0; }
.rs-rt-pc.me { box-shadow: inset 3px 0 0 var(--league); }
.rs-rt-pc .rs-outline-num { right: 12px; top: -8px; font-size: 80px; }
.rs-rt-pc > :not(.rs-outline-num) { position: relative; }
.rs-rt-pc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-rt-pc-who b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-rt-pc-val { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--pc); }
.rs-rt-pc-val .delta { font-size: 14px; }
.rs-rt-pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rs-rt-battle { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 18px 20px;
                background: linear-gradient(90deg, #121212, color-mix(in srgb, var(--league) 18%, #141414) 50%, #121212); }
.rs-rt-side { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; color: var(--text) !important; text-decoration: none; }
.rs-rt-side small { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-rt-side b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-rt-side > span:last-child { font-family: var(--font-head); font-weight: 700; color: #d4d4d4; }
.rs-rt-lead .ic { width: 30px; height: 30px; color: #ffd54a; }
.rs-rt-gap { display: flex; flex-direction: column; align-items: center; font-family: var(--font-head); font-style: italic; font-weight: 700; }
.rs-rt-gap b { font-size: 1.4rem; } .rs-rt-gap small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.rs-rt-gap.ahead b { color: #ff6b63; } .rs-rt-gap.behind b { color: #2fbf71; }
.rs-rt-mine { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; background: #000; border-bottom: 3px solid var(--league); text-align: center; }
.rs-rt-mine-p { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--league-ink); }
.rs-rt-mine b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; }
.rs-rt-mine-val { font-family: var(--font-head); font-weight: 700; }
.rs-rt-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 18px 20px; background: var(--surface); border-left: 4px solid var(--league); }
.rs-rt-form-head { display: block; margin-top: 4px; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.4rem; }
.rs-rt-chart { display: block; width: 100%; height: 150px; margin-top: 8px; }
.rs-rt-chart .g { stroke: #262626; } .rs-rt-chart .l { fill: none; stroke: var(--league); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rs-rt-chart .a { fill: color-mix(in srgb, var(--league) 18%, transparent); }
.rs-rt-chart circle { fill: #0a0a0a; stroke: var(--league); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rs-rt-chart-x { display: flex; justify-content: space-between; padding: 0 3.33% 0 5%; font-size: 10.5px; color: #8a8a8a; white-space: nowrap; }
.rs-rt-chart-x span { flex: 0 0 0; display: flex; justify-content: center; }      /* Beschriftung genau unter den Punkten, nie gestaucht */
.rs-rt-races { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.rs-rt-race { display: grid; grid-template-columns: minmax(0, 1fr) auto 50px; gap: 8px; align-items: center; padding: 7px 10px; background: #101010; font-size: 12.5px; }
.rs-rt-race b { font-family: var(--font-head); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-rt-race > span:last-child { text-align: right; }
.rs-rt-table { display: flex; flex-direction: column; gap: 3px; }
.rs-rt-cols { display: flex; flex-direction: column; } .rs-rt-table.is-second > .rs-rt-th { display: none; }   /* zweite Hälfte schmal nahtlos */
.rs-rt-th, .rs-rt-tr { display: grid; grid-template-columns: 46px minmax(0, 1fr) 130px 80px 100px 100px 64px; gap: 12px; align-items: center; padding: 8px 12px; }
.rs-rt-th { padding-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-rt-th > :first-child { text-align: center; } .rs-rt-th > :last-child { text-align: right; }
.rs-rt-tr { background: var(--surface); border-left: 3px solid transparent; color: var(--text) !important; text-decoration: none; }
.rs-rt-tr[hidden] { display: none; }
.rs-rt-tr:hover { background: var(--surface-2); outline-offset: -2px; }
.rs-rt-tr.me { background: color-mix(in srgb, var(--league) 14%, var(--surface)); border-left-color: var(--league); }
.rs-rt-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--muted); text-align: center; }
.rs-rt-tr.p1 .rs-rt-pos { color: #ffd54a; } .rs-rt-tr.p2 .rs-rt-pos { color: #cfd4dc; } .rs-rt-tr.p3 .rs-rt-pos { color: #e0a46e; }
.rs-rt-who { display: flex; flex-direction: column; min-width: 0; }
.rs-rt-who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-rt-who small { font-size: 12px; color: var(--muted); }
.rs-rt-prov { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffcf5c; }
.rs-rt-val b { font-family: var(--font); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.rs-rt-gp { font-family: var(--font); font-weight: 600; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-rt-other { font-size: 13px; color: #cfcfcf; }
.rs-rt-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-rt-help { padding: 12px 16px; background: var(--surface); font-size: 13.5px; color: #d4d4d4; }
.rs-rt-help summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.rs-rt-help .ic { width: 14px; height: 14px; }
@media (max-width: 1000px) {
  .rs-rt-th { display: none; }
  .rs-rt-tr { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
  .rs-rt-gp, .rs-rt-spk, .rs-rt-num { display: none; }
  .rs-rt-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rs-rt-podium { grid-template-columns: 1fr; gap: 6px; }
  .rs-rt-pc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 14px; }   /* kompakt: eine Zeile je Platz */
  .rs-rt-pc-who b { font-size: 1rem; }
  .rs-rt-pc-val { font-size: 1.4rem; text-align: right; }
  .rs-rt-pc-row { grid-column: 1 / -1; }
  .rs-rt-pc .rs-outline-num { font-size: 44px; top: auto; bottom: -6px; right: 120px; }
  .rs-rt-chart { height: 120px; }
  .rs-rt-chart-x span:not(:first-child):not(:last-child) { visibility: hidden; }
  .rs-rt-battle { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 14px; }
  .rs-rt-gap { display: none; }
  .optik-rennstrecke .rs-rt-search { flex: 1 1 100%; }
  .rs-rt-tools .rs-pb-sims { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 2px 8px; scrollbar-width: none; }
  .rs-rt-tools .rs-pb-sims a { flex: none; }
}

/* Aktivität im Stil der Rating-Seite (Thomas 10.10.2026: Reiter „Aktivität“ fehlte im neuen Design) */
.rs-ac-unit { font-size: .9rem; color: var(--muted); font-style: normal; }
.rs-ac { --league: #ff8a3d; --league-ink: #ff9d5c; }                     /* Aktivität in Flammenfarbe */
.rs-ac-flames { display: inline-flex; gap: 2px; }
.rs-ac-flames .ic { width: 15px; height: 15px; color: #3a3a3a; }
.rs-ac-flames .on .ic { color: #ff8a3d; fill: color-mix(in srgb, #ff8a3d 35%, transparent); }
.rs-ac-flames.big .ic { width: 24px; height: 24px; }
.rs-ac-flames.sm .ic { width: 12px; height: 12px; }
.rs-ac-level { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 12px; }
.rs-ac-level .rs-rt-form-head { margin: 0; font-size: 2rem; }
.rs-ac-name { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; color: #ff8a3d; }
.rs-ac-next { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.rs-ac-track { height: 8px; background: #262626; }
.rs-ac-track i { display: block; height: 100%; background: linear-gradient(90deg, #c2410c, #ff8a3d); }
.rs-ac-part { position: relative; overflow: hidden; }
.rs-ac-part > i { position: absolute; left: 0; bottom: 0; height: 2px; background: #ff8a3d; }
.rs-ac-part.none { opacity: .45; }
.rs-ac-table .rs-rt-th, .rs-ac-table .rs-rt-tr { grid-template-columns: 46px minmax(0, 1fr) 90px 80px 110px; }
.rs-ac-table .rs-rt-who small .ic { width: 12px; height: 12px; }
@media (max-width: 1000px) { .rs-ac-table .rs-rt-tr { grid-template-columns: 34px minmax(0, 1fr) auto auto; } }

/* ---------- 10 Übrige Seiten (Schritt 4): gleiche Bausteine im Rennstrecke-Stil, ohne Sonderaufbau ---------- */
/* Ranglisten wie im Entwurf: flache Zeilen, kursive Platzziffern statt Kreisen, Podium in Gold/Silber/Bronze als Schrift */
.optik-rennstrecke .rank-row { border-radius: 0; border-width: 0 0 1px; border-bottom-color: #222; background: var(--surface);
                               border-left: 3px solid var(--class, var(--league)); }
.optik-rennstrecke a.rank-row:hover, .optik-rennstrecke .rank-row:hover { background: var(--surface-2); outline-offset: -2px; }
.optik-rennstrecke .rank-row.me { background: color-mix(in srgb, var(--league) 14%, var(--surface)); }
.optik-rennstrecke .rank-pos { width: auto; min-width: 34px; height: auto; border: 0; background: none; border-radius: 0;
                               font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.35rem; color: var(--muted); }
.optik-rennstrecke .podium-1 .rank-pos { background: none; color: #ffd54a; }
.optik-rennstrecke .podium-2 .rank-pos { background: none; color: #cfd4dc; }
.optik-rennstrecke .podium-3 .rank-pos { background: none; color: #e0a46e; }
.optik-rennstrecke .rank-change { border-radius: 0; font-family: var(--font); font-style: normal; font-size: .68rem; }
.optik-rennstrecke .rank-total { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; }
.optik-rennstrecke .rank-head { font-family: var(--font-head); letter-spacing: .12em; }

/* Abzeichen, Marken, Hinweise, Felder: eckig */
.optik-rennstrecke :is(.badge, .tag, .stream-tag, .notice, .chat-msg, .rank-change, .side-simcard, .side-league summary,
                       .ad-label, .tile-badges > *, .role-chip, .chat-member-role, .pill, .chip, .status-chip) { border-radius: 0; }
.optik-rennstrecke .badge { font-family: var(--font-head); font-style: italic; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.optik-rennstrecke .notice { border-width: 0 0 0 3px; }
.optik-rennstrecke input[type=file]::file-selector-button { border-radius: 0; }

/* Sitzungsknöpfe (Qualifying/Rennen) wie Reiter */
.optik-rennstrecke .session-tabs { gap: 0; border-bottom: 1px solid var(--border); }
.optik-rennstrecke .session-tabs button { border: 0; border-radius: 0; background: transparent; color: var(--muted);
                                          font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.optik-rennstrecke .session-tabs button[aria-selected="true"] { background: transparent; color: var(--text); box-shadow: inset 0 -3px 0 var(--league); }
.optik-rennstrecke .session-tabs button[aria-selected="true"] span { color: var(--text); }

/* Kopf der Verwaltungs-, Rennleitungs- und Betriebsseiten: Überzeile in lesbarer Ligafarbe, Linie in Ligafarbe */
.optik-rennstrecke .league-head { border-bottom-color: var(--league); }
.optik-rennstrecke .league-head h1 { font-size: 2rem; }

/* Dock (Nächste Rennen / Wer ist online?) eckig wie der Rest */
.optik-rennstrecke :is(.next-races, .dock-embed) > summary, .optik-rennstrecke :is(.nr-body, .dock-body) { border-radius: 0 !important; }

/* ---------- 11 News-Leiste als TV-Bauchbinde + „Alle“ (Variante D, Thomas 10.10.2026) ---------- */
.optik-rennstrecke .rs-ticker { position: relative; height: 46px; padding: 0 12px 0 0; gap: 12px; background: #050505; overflow: visible; }
.rs-lt { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; outline-offset: -2px; }
.rs-lt-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; visibility: hidden; }
.rs-lt-item.is-on { visibility: visible; }
.rs-lt-item.is-on .rs-lt-msg { animation: rs-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.rs-lt-item.is-out { visibility: visible; }
.rs-lt-item.is-out .rs-lt-msg { animation: rs-out .35s ease-in both; }
.rs-lt-item.is-out .rs-lt-shield { visibility: hidden; }
@keyframes rs-in { from { transform: translateX(40px) skewX(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rs-out { to { transform: translateX(-40px) skewX(-8deg); opacity: 0; } }
.rs-lt-shield {
  flex: none; height: 100%; display: flex; align-items: center; padding: 0 24px 0 14px; max-width: 40%;
  background: var(--league); color: var(--league-text); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rs-lt-msg { display: flex; align-items: center; gap: 12px; min-width: 0; height: 100%; padding: 0 12px 0 2px;
             color: var(--text) !important; text-decoration: none; white-space: nowrap; }
.rs-lt-cat { flex: none; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .14em;
             text-transform: uppercase; color: var(--league-ink); }
.rs-lt-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); font-style: italic; font-weight: 600;
              font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.rs-lt-item.is-hot .rs-lt-msg { background: var(--league); color: var(--league-text) !important; margin-left: 4px; padding: 0 18px;
                                clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.rs-lt-item.is-hot .rs-lt-cat { color: inherit; opacity: .9; }
.rs-lt-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--league); }
.rs-lt-progress.run { animation: rs-fill var(--rs-dur, 5s) linear forwards; }
@keyframes rs-fill { to { width: 100%; } }
.rs-lt-count { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rs-all {
  flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; cursor: pointer;
  background: transparent; color: var(--text); border: 2px solid var(--text); transform: skewX(-14deg);
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.rs-all[aria-expanded="true"] { background: var(--text); color: #000; }
.rs-new { position: absolute; top: -9px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center;
          background: var(--accent); color: var(--accent-text); font-style: normal; font-size: 11px; transform: skewX(14deg); }
.rs-feed { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 50; width: min(460px, calc(100vw - 24px)); max-height: min(70vh, 520px);
           overflow-y: auto; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.rs-feed-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
                padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
                font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rs-feed-head small { font-family: var(--font); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.rs-feed ol { list-style: none; margin: 0; padding: 0; }
.rs-feed li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 11px 16px; border-bottom: 1px solid #222; }
.rs-feed li.is-new { box-shadow: inset 3px 0 0 var(--league); background: color-mix(in srgb, var(--league) 7%, transparent); }
.rs-feed-logo { width: 36px; height: 36px; object-fit: contain; display: grid; place-items: center; background: #1a1d23; overflow: hidden;
                font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 10px; color: var(--league-ink); }
.rs-feed-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 12px; color: var(--muted); }
.rs-feed-top .rs-lt-cat { font-size: 11px; }
.rs-feed-text { font-size: 14px; overflow-wrap: anywhere; }
.rs-feed-text a { color: var(--text) !important; text-decoration: none; }
.optik-rennstrecke .rs-ticker .live-slot { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .rs-lt-item.is-on .rs-lt-msg, .rs-lt-item.is-out .rs-lt-msg { animation: none; }
  .rs-lt-progress.run { animation: none; }
}

/* ---------- 12 Rennkalender als Saison-Zeitstrahl (Variante B, Thomas 10.10.2026) ---------- */
.optik-rennstrecke .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-cal { display: flex; flex-direction: column; gap: 14px; }
.rs-cal-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.rs-cal-top h2 { margin: 0; font-size: 1.5rem; }
.rs-cal-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.rs-cal-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(72px, 1fr)); padding: 14px 0 6px; }
.rs-cal-track::before, .rs-cal-track::after { content: ""; position: absolute; top: 33px; height: 3px; left: calc(50% / var(--n)); }
.rs-cal-track::before { right: calc(50% / var(--n)); background: var(--border); }
.rs-cal-track::after { width: calc((100% - 100% / var(--n)) * var(--done)); background: var(--league); }
.rs-cal-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 3px;
               background: none; border: 0; color: inherit; cursor: pointer; min-width: 0; font: inherit; }
.rs-cal-dot { width: 40px; height: 40px; display: grid; place-items: center; transform: skewX(-14deg); background: var(--bg);
              border: 2px solid var(--border-strong); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; }
.rs-cal-node.is-done .rs-cal-dot { background: var(--league); border-color: var(--league); color: var(--league-text); }
.rs-cal-node.is-next .rs-cal-dot { border-color: var(--league); box-shadow: 0 0 0 4px color-mix(in srgb, var(--league) 30%, transparent); animation: rs-pulse 1.8s infinite; }
.rs-cal-node.is-off .rs-cal-dot { border-style: dashed; color: #ff8a80; }
.rs-cal-node[aria-selected="true"] .rs-cal-dot { outline: 2px solid var(--text); outline-offset: 3px; }
.rs-cal-node:hover { outline: none; }
.rs-cal-node:hover .rs-cal-dot { outline: 2px solid var(--league); outline-offset: 3px; }
@keyframes rs-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--league) 0%, transparent); } }
.rs-cal-label { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; max-width: 100%; }
.rs-cal-name { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
               text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.rs-cal-node.is-next .rs-cal-name, .rs-cal-node[aria-selected="true"] .rs-cal-name { color: var(--text); }
.rs-cal-day { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-cal-detail { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); background: var(--surface); min-height: 190px; }
.rs-cal-detail.is-next { box-shadow: inset 3px 0 0 var(--league); }
.rs-cal-pic { position: relative; overflow: hidden; min-height: 160px; background: #000; }
.rs-cal-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-cal-pic.no-image { background: linear-gradient(110deg, #000 30%, color-mix(in srgb, var(--league) 45%, #000)); }
.rs-cal-pic-num { position: absolute; right: 12px; bottom: 4px; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 64px; line-height: 1;
                  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.rs-cal-in { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.rs-cal-in h3 { margin: 0; font-size: 1.7rem; }
.rs-cal-detail.is-off h3 { text-decoration: line-through; color: var(--muted); }
.rs-cal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rs-cal-podium { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rs-cal-podium b { font-family: var(--font-head); font-style: italic; margin-right: 6px; }
.rs-cal-podium .p1 b { color: #ffd54a; } .rs-cal-podium .p2 b { color: #cfd4dc; } .rs-cal-podium .p3 b { color: #e0a46e; }
.rs-count { display: flex; gap: 10px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.rs-count div { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; background: #000; border-bottom: 2px solid var(--league); }
.rs-count b { font-size: 1.6rem; font-style: italic; line-height: 1; }
.rs-count small { margin-top: 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rs-cal-vote { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 6px; margin: 0; }
.rs-cal-vote .button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--success-text); }
@media (prefers-reduced-motion: reduce) { .rs-cal-node.is-next .rs-cal-dot { animation: none; } }

/* ---------- 13 Meisterschaft: Liste mit Abstand-Balken + Punkte-Matrix (Variante D mit B, Thomas 10.10.2026) ---------- */
.rs-dotd-mark { margin-left: 8px; color: var(--league-ink); font-size: .95em; white-space: nowrap; }      /* Fahrer des Tages: Stern + Zahl */
.rs-dotd-mark b { margin-left: 2px; font-family: var(--font-head); font-style: italic; font-size: .85em; color: var(--text); }
.rs-me { margin-left: 8px; padding: 0 6px; border: 1.5px solid var(--league); color: var(--league-ink); font-family: var(--font-head); font-style: italic;
         font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.rs-view-toggle { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rs-view-toggle button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); }
.rs-view-toggle button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--league); }
.rs-st-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 54px 96px; align-items: center; gap: 12px; padding: 8px 6px;
             border-bottom: 1px solid #222; border-left: 3px solid var(--class, transparent); }
.rs-st-row.me { background: color-mix(in srgb, var(--league) 12%, transparent); box-shadow: inset 3px 0 0 var(--league); }
.rs-st-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.35rem; color: var(--muted); text-align: center; }
.rs-st-pos.p1 { color: #ffd54a; } .rs-st-pos.p2 { color: #cfd4dc; } .rs-st-pos.p3 { color: #e0a46e; }
.rs-st-who { display: flex; flex-direction: column; min-width: 0; }
.rs-st-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-st-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-st-gapbar { position: relative; height: 5px; margin-top: 5px; background: #222; }
.rs-st-gapbar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); background: var(--league); }
.rs-st-form { display: flex; align-items: flex-end; justify-content: flex-end; gap: 3px; height: 30px; }
.rs-st-form i { width: 9px; height: max(3px, calc(var(--h) * 30px)); background: color-mix(in srgb, var(--league) 70%, #333); transform: skewX(-14deg); }
.rs-st-form i.win { background: #ffd54a; }
.rs-st-form i.zero { height: 3px; background: #444; }
.rs-st-form i.drop { opacity: .35; }
.rs-st-change { text-align: right; }
.rs-st-change .rank-change { position: static; transform: none; border: 0; background: none; font-size: 12px; }
.rs-st-total { display: flex; flex-direction: column; align-items: flex-end; }
.rs-st-pts { font-family: var(--font); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.rs-st-gap { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-matrix-scroll { overflow-x: auto; border: 1px solid var(--border); }
.rs-matrix { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.rs-matrix th, .rs-matrix td { height: 40px; padding: 0; border-bottom: 1px solid #222; text-align: center; }
.rs-matrix thead th { height: 34px; padding: 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .1em; color: var(--muted); background: #050505; }
.rs-matrix thead th a { color: inherit !important; }
.rs-matrix thead th.future { color: #8a8a8a; }   /* ≥ 4,5:1 (K15) */
.rs-mx-sticky { position: sticky; left: 0; z-index: 1; min-width: 200px; padding: 0 12px !important; text-align: left !important; background: var(--surface);
                font-weight: 700; white-space: nowrap; box-shadow: 1px 0 0 var(--border); }
.rs-matrix thead .rs-mx-sticky { background: #050505; }
.rs-mx-sticky .rs-st-pos { display: inline-block; width: 32px; font-size: 1.05rem; text-align: left; }
.rs-matrix tr.me .rs-mx-sticky { background: color-mix(in srgb, var(--league) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--league), 1px 0 0 var(--border); }
.rs-matrix td.c { min-width: 48px; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--text);
                  background: color-mix(in srgb, var(--league) calc(var(--v, 0) * 70%), #0d0d0d); }
.rs-matrix td.c.win { box-shadow: inset 0 0 0 2px #ffd54a; }
.rs-matrix td.c.drop { background: #0d0d0d; color: var(--muted); text-decoration: line-through; }
.rs-matrix td.c.dns, .rs-matrix td.c.future { background: #0b0b0b; color: #8a8a8a; }
.rs-matrix td.tot { min-width: 70px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; background: var(--surface); }
.rs-mx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 12px; }
.rs-mx-legend i { display: inline-block; width: 26px; height: 12px; margin-right: 6px; vertical-align: -2px; }
.rs-mx-legend i.g { background: linear-gradient(90deg, #0d0d0d, var(--league)); }
.rs-mx-legend i.w { box-shadow: inset 0 0 0 2px #ffd54a; }

/* ---------- 14 Kopf: Verwaltung/Betrieb, Reiter umbrechen statt abschneiden (Thomas 10.10.2026) ---------- */
.rs-admin-link { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1.5px solid #3a3a3a; transform: skewX(-14deg);
                 font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
                 color: var(--text) !important; text-decoration: none; white-space: nowrap; }
.rs-admin-link[aria-current="page"] { border-color: var(--league); box-shadow: inset 0 -3px 0 var(--league); }
.rs-tab-break { display: none; }
@media (min-width: 861px) {
  .optik-rennstrecke .tabs { flex-wrap: wrap; overflow: visible; }     /* alle Reiter sichtbar, notfalls in zwei Zeilen */
  .optik-rennstrecke .rs-league-tabs a { padding: 0 12px; }
  /* Liga-Reiter: oben die normalen, gleichmäßig verteilt; darunter Rennleitung und Verwaltung */
  .optik-rennstrecke .rs-league-tabs a:not(.side-restricted) { flex: 1 1 auto; justify-content: center; }
  .optik-rennstrecke .rs-league-tabs:has(.side-restricted) .rs-tab-break { display: block; flex-basis: 100%; order: 1; height: 0; }
  .optik-rennstrecke .rs-league-tabs a.side-restricted { order: 2; height: 38px; font-size: .74rem; }
  .optik-rennstrecke .rs-league-tabs:has(.side-restricted) { border-bottom: 1px solid var(--border); }
  .optik-rennstrecke .rs-league-tabs:has(.side-restricted) .rs-tab-break { border-top: 1px solid var(--border); }
}
@media (max-width: 1250px) { .rs-admin-link span { display: none; } }  /* eng: nur Symbol */

/* ---------- 15 Starterliste: Liste (C) und Fahrzeugkarten (B), umschaltbar (Thomas 10.10.2026) ---------- */
.rs-sr-row { display: grid; grid-template-columns: 62px 120px minmax(0, 1fr) minmax(0, 210px) auto; align-items: center; gap: 14px; padding: 8px 6px;
             border-bottom: 1px solid #222; border-left: 3px solid var(--class, transparent); }
.rs-sr-row.me { background: color-mix(in srgb, var(--league) 12%, transparent); box-shadow: inset 3px 0 0 var(--league); }
.rs-sr-nr { display: grid; place-items: center; height: 38px; background: var(--league); color: var(--league-text); transform: skewX(-14deg);
            font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.2rem; }
.rs-sr-row.res .rs-sr-nr { background: transparent; color: var(--muted); border: 2px solid #444; }
.rs-sr-row.guest .rs-sr-nr { background: transparent; color: var(--soft, #d4d4d4); border: 2px dashed #666; }
.rs-sr-pic { height: 44px; display: flex; align-items: center; }
.rs-sr-pic img { max-width: 100%; max-height: 44px; object-fit: contain; }
.rs-sr-who { display: flex; flex-direction: column; min-width: 0; }
.rs-sr-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sr-meta, .rs-sr-liv { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sr-rt { justify-self: end; }
.rs-sr-rounds { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 8px 82px; border-bottom: 1px solid #222; }
.rs-sr-sub { margin-top: var(--s-5); font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.rs-sr-sub small { margin-left: 8px; font-family: var(--font); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.rs-sr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: var(--s-2); }
.rs-sr-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface-2); border-bottom: 3px solid var(--class, var(--league)); }
.rs-sr-card.me { box-shadow: inset 0 0 0 1px var(--league); }
.rs-sr-cpic { position: relative; height: 112px; display: flex; align-items: flex-end; justify-content: center; padding: 18px 12px 6px;
              background: radial-gradient(120% 120% at 70% 100%, color-mix(in srgb, var(--league) 18%, #111), #070707 70%); }
.rs-sr-cpic img { position: relative; max-width: 100%; max-height: 88px; object-fit: contain; }
.rs-sr-big { position: absolute; left: 10px; top: 0; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 56px; line-height: 1;
             color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .4); }
.rs-sr-cbody { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-sr-cname { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; overflow-wrap: anywhere; }
.rs-sr-cfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }

/* ---------- 16 Dock „Nächste Rennen“ (Variante D mit B, Stufe „Breit“ = C; Thomas 10.10.2026) ---------- */
.rs-nr { position: fixed; z-index: 31; left: 0; bottom: 12px; display: flex; flex-direction: row-reverse; align-items: flex-end; }
.rs-nr-tab { list-style: none; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: stretch; width: 92px;
             margin-bottom: 18px; background: linear-gradient(180deg, #181818, #0e0e0e); border: 1px solid #2c2c2c; border-left: 0;
             box-shadow: 10px 10px 30px rgba(0, 0, 0, .55); transition: transform .15s; }
.rs-nr-tab::-webkit-details-marker { display: none; }
.rs-nr-tab:hover { outline: 2px solid var(--league); outline-offset: 3px; transform: translateX(3px); }
.rs-nr-tab-top { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 6px 12px; background: var(--league); color: var(--league-text);
                 clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); font-family: var(--font-head); font-style: italic; font-weight: 700; line-height: 1.1; }
.rs-nr-tab-top b { font-size: 13px; letter-spacing: .04em; }
.rs-nr-tab-top span { font-size: 11px; opacity: .85; }
.rs-nr-tab-mid { display: flex; flex-direction: column; align-items: center; padding: 8px 4px 4px; line-height: 1; }
.rs-nr-big { font-family: var(--font); font-style: italic; font-weight: 700; font-size: 2.4rem; line-height: .95; font-variant-numeric: tabular-nums; }
.rs-nr-unit { margin-top: 2px; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--league-ink); }
.rs-nr-sub { margin-top: 5px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.rs-nr-tab-mid.is-now .rs-nr-big { color: #2fbf71; font-size: 1.4rem; animation: rs-blink 1.6s infinite; }
@keyframes rs-blink { 50% { opacity: .35; } }
.rs-nr-tab .rs-nr-counts { justify-content: center; gap: 8px; padding: 6px 4px 8px; margin-top: 4px; border-top: 1px solid #262626; }
.rs-nr-open { position: absolute; right: -1px; top: 50%; transform: translate(100%, -50%); width: 14px; height: 34px; display: grid; place-items: center;
              background: var(--league); color: var(--league-text); font-size: 12px; clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%); }
.rs-nr[open] .rs-nr-open { transform: translate(100%, -50%) scaleX(-1); }
.rs-nr-dot { position: absolute; right: -7px; top: -7px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px;
             background: #ffcf5c; color: #111; font-size: 11px; font-weight: 700; transform: skewX(-14deg); }
.rs-nr-counts { display: flex; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-nr-panel { width: 420px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-left: 0;
               box-shadow: 20px 10px 40px rgba(0, 0, 0, .6); scrollbar-width: thin; }
.rs-nr[open] .rs-nr-panel { animation: rs-nr-in .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rs-nr-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.rs-nr-head, .rs-nr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.rs-nr-head b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.rs-nr-seg { display: flex; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rs-nr-seg button { background: none; border: 0; padding: 6px 9px; cursor: pointer; color: var(--muted); }
.rs-nr-seg button[aria-pressed="true"], .rs-nr-seg button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--league); }
.rs-nr-wide-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; background: transparent; color: var(--text);
                  border: 1.5px solid #3a3a3a; transform: skewX(-14deg); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 11px;
                  letter-spacing: .06em; text-transform: uppercase; }
.rs-nr-wide-btn[aria-pressed="true"] { border-color: var(--league); }
.rs-nr-hero { position: relative; overflow: hidden; background: #000; }
.rs-nr-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.rs-nr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.9) 30%, color-mix(in srgb, var(--league) 40%, transparent)); }
.rs-nr-hero-in { position: relative; z-index: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.rs-nr-lg { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--soft, #d4d4d4); }
.rs-nr-hero h4 { margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; }
.rs-nr-hero h4 span { font-weight: 500; }
.rs-nr-meta { font-size: 12.5px; color: #d4d4d4; }
.rs-nr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rs-nr-row .weather-tile-compact { position: static; margin-left: auto; }   /* Wetter in der Zeile, nicht über dem Streckennamen (Thomas 14.10.2026) */
.rs-count-sm div { min-width: 46px; padding: 6px 4px; }
.rs-count-now { font-weight: 700; color: #e5322d; }
.rs-count-sm b { font-size: 1.2rem; }
.rs-count-sm small { font-size: 9px; }
.rs-nr-vote { display: flex; gap: 10px; padding-left: 6px; margin: 0; }
.rs-nr-vote .button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--success-text); }
.rs-nr-note { margin: 0; font-size: 12px; color: var(--muted); }
.rs-nr-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; transform: skewX(-14deg); white-space: nowrap; border: 1.5px solid currentColor;
              font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.st-yes { --st: #2fbf71; } .st-pending { --st: #ffcf5c; } .st-no { --st: #ff6b63; } .st-commentary { --st: #b48cff; }
.rs-nr-chip.st-yes, .rs-nr-chip.st-pending, .rs-nr-chip.st-no, .rs-nr-chip.st-commentary { color: var(--st); }
.rs-nr-months { padding: 10px 12px 4px; }
.rs-nr-mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rs-nr-mhead b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.rs-nr-mhead button { width: 30px; height: 30px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); transform: skewX(-14deg); cursor: pointer; }
.rs-nr-mhead button:disabled { opacity: .35; cursor: default; }
.rs-nr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.rs-nr-wd { font-family: var(--font-head); font-size: 10px; letter-spacing: .1em; color: var(--muted); text-align: center; }
.rs-nr-day { min-width: 0; min-height: 50px; padding: 3px 4px; background: #0e0e0e; display: flex; flex-direction: column; gap: 2px; }
.rs-nr-day.other { opacity: .35; } .rs-nr-day.past .rs-nr-num { opacity: .5; }
.rs-nr-day.today { box-shadow: inset 0 0 0 1px var(--text); }
.rs-nr-num { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-nr-race { display: block; height: 20px; overflow: hidden; white-space: nowrap; padding: 0 2px; text-align: center; line-height: 16px;
              background: var(--league); color: var(--league-text) !important; text-decoration: none; transform: skewX(-14deg);
              border-bottom: 3px solid var(--st); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 9px; }
.rs-nr-race.selected { outline: 2px solid var(--text); outline-offset: 1px; }
.rs-nr-more { font-size: 10px; color: var(--muted); }
.rs-nr-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 6px; font-size: 11px; color: var(--muted); }
.rs-nr-legend i { display: inline-block; width: 14px; height: 4px; margin-right: 5px; vertical-align: 2px; background: var(--st); }
.rs-nr-list { display: flex; flex-direction: column; }
.rs-nr-item { display: grid; grid-template-columns: 46px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px;
              border-bottom: 1px solid #222; color: var(--text) !important; text-decoration: none; }
.rs-nr-item:hover, .rs-nr-item.selected { background: var(--surface-2); outline: none; }
.rs-nr-date { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--font-head); font-style: italic; font-weight: 700; }
.rs-nr-date b { font-size: 1.3rem; } .rs-nr-date span { margin-top: 3px; font-size: 9.5px; color: var(--muted); }
.rs-nr-box { display: grid; place-items: center; height: 24px; padding: 0 4px; background: var(--league); color: var(--league-text); transform: skewX(-14deg);
             font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.rs-nr-what { min-width: 0; display: flex; flex-direction: column; }
.rs-nr-what b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-nr-what span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-nr-export { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.rs-nr-export a { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--league-ink) !important; }
/* Stufe „Breit“: Streifen mit allen Rennen über die ganze Breite */
.rs-nr-strip { display: none; }
.rs-nr.is-wide { right: 0; bottom: 0; z-index: 33; flex-direction: column; align-items: stretch; }   /* stretch: Inhaltshülle von <details> auf volle Breite */   /* liegt dann über „Wer ist online?“ */
.rs-nr.is-wide .rs-nr-tab { margin: 0 0 6px; align-self: flex-start; }
.rs-nr.is-wide .rs-nr-panel { width: 100%; max-height: none; border-left: 0; border-right: 0; border-bottom: 0; border-top: 2px solid var(--league); }
.rs-nr.is-wide .rs-nr-hero, .rs-nr.is-wide .rs-nr-bar, .rs-nr.is-wide [data-view-panel] { display: none !important; }
.rs-nr.is-wide .rs-nr-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rs-nr-card { flex: 1 1 0; min-width: 220px; width: auto; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface-2); border-bottom: 3px solid var(--league); }
.rs-nr-card.first { flex-grow: 1.3; background: linear-gradient(110deg, var(--surface-2) 40%, color-mix(in srgb, var(--league) 35%, var(--surface-2))); }
.rs-nr-ctop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-nr-ctop b { font-family: var(--font-head); font-style: italic; font-size: 1.1rem; }
.rs-nr-ctitle { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 1rem; line-height: 1.15;
                min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* gleiche Höhe in allen Karten */
.rs-nr-card .rs-nr-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-nr-card > .rs-more { margin-top: auto; padding-top: 8px; border-top: 1px solid #262626; }   /* „Zum Rennen“ immer unten auf einer Linie */
.rs-nr-card .rs-nr-vote { margin: 2px 0; }
@media (prefers-reduced-motion: reduce) { .rs-nr[open] .rs-nr-panel { animation: none; } }

/* ---------- 17 „Wer ist online?“: Liste (A) oder Kacheln (B) (Thomas 10.10.2026) ---------- */
.optik-rennstrecke .online-embed.rs-who { width: auto; max-width: calc(100vw - 24px); display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.rs-who-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 12px; width: auto !important;
              background: var(--surface); border: 1px solid #2c2c2c; border-bottom: 3px solid var(--community); transform: skewX(-10deg);
              box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.rs-who-btn > * { transform: skewX(10deg); }
.rs-who-btn::-webkit-details-marker { display: none; }
.rs-who-btn:hover { outline: 2px solid var(--community); outline-offset: 3px; }
.rs-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; animation: rs-live 2s infinite; flex: none; }
@keyframes rs-live { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); } 70% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.rs-who-stack { display: flex; }
.rs-who-stack .rs-who-av { width: 28px; height: 28px; margin-left: -8px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface); }
.rs-who-stack .rs-who-av:first-child { margin-left: 0; }
.rs-who-stack .rs-who-av i { width: 9px; height: 9px; }
.rs-who-more { margin-left: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #333; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); }
.rs-who-n { display: none; font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.rs-who-label { display: flex; flex-direction: column; line-height: 1.1; }
.rs-who-label b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.rs-who-label span { font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.rs-who-panel { width: 340px; max-height: min(470px, calc(100vh - 200px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--border);
                border-top: 3px solid var(--community); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); scrollbar-width: thin; }
.rs-who-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rs-who-head img { width: 28px; height: 28px; border-radius: 6px; }
.rs-who-head b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-who-head .muted { margin-left: auto; white-space: nowrap; }
.rs-who-views { display: flex; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rs-who-views button { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--muted); }
html:not([data-rs-who-view="tiles"]) .rs-who-views [data-rs-who-view="list"], html[data-rs-who-view="tiles"] .rs-who-views [data-rs-who-view="tiles"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--community); }
html[data-rs-who-view="tiles"] .rs-who-list, html:not([data-rs-who-view="tiles"]) .rs-who-tiles { display: none; }
.rs-st-online { --st: #2fbf71; } .rs-st-idle { --st: #f0b232; } .rs-st-dnd { --st: #ff6b63; } .rs-st-invisible { --st: #80848e; }
.rs-who-av { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.rs-who-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rs-who-av i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 2px var(--surface); }
.rs-who-list, .rs-who-tiles { list-style: none; margin: 0; padding: 0; }
/* höchstens fünf Personen hoch, der Rest wird gescrollt (Thomas 14.11.2026) */
.rs-who-list { max-height: calc(5 * 58px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rs-who-tiles { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rs-who-list li { display: grid; grid-template-columns: 4px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px 8px 0; border-bottom: 1px solid #222; }
.rs-who-list li.me { background: color-mix(in srgb, var(--league) 10%, transparent); }
.rs-who-bar { align-self: stretch; background: var(--st); }
.rs-who-name { min-width: 0; display: flex; flex-direction: column; }
.rs-who-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-who-name span { font-size: 11.5px; color: var(--muted); }
.rs-who-role { flex: none; display: inline-flex; align-items: center; height: 19px; padding: 0 7px; transform: skewX(-14deg); border: 1.5px solid currentColor;
               font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rs-who-role.admin { color: var(--league-ink); } .rs-who-role.steward { color: #7fc8ff; }
.rs-who-role-none { visibility: hidden; }
.rs-who-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.rs-who-tiles li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 6px 10px; background: var(--surface-2); border-bottom: 2px solid var(--st); }
.rs-who-tiles li.me { outline: 1px solid var(--league); }
.rs-who-tiles b { max-width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-who-av-big { width: 48px; height: 48px; font-size: 17px; box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--st); }
@media (prefers-reduced-motion: reduce) { .rs-live-dot { animation: none; } }

/* ---------- Linien-Symbole statt Emojis (Thomas 10.10.2026: „Symbole überall“) ---------- */
.optik-rennstrecke .ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none;
                         fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; transform: skewX(-8deg); }

/* ---------- Menü-Panel „Boxengasse“ (Variante F2, Thomas 10.10.2026) ---------- */
.optik-rennstrecke .sidebar { width: min(480px, calc(100vw - 12px)); background: #0f0f0f; }
.optik-rennstrecke:not(.with-servers) .sidebar { width: min(410px, calc(100vw - 12px)); }
/* Leiste links: Symbole mit Namen, aktive Community mit schräger Farbmarke */
.optik-rennstrecke .server-rail { width: 76px; background: #070707; border-right: 1px solid var(--border); gap: 4px; }
.optik-rennstrecke .rail-item { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; }
.optik-rennstrecke .rail-icon { width: 44px; height: 44px; border-radius: 12px; }
.optik-rennstrecke .rail-item.active .rail-icon { border-radius: 4px; box-shadow: 0 0 0 2px var(--rail-color, var(--accent)); }
.optik-rennstrecke .rail-item::before { border-radius: 0; transform: skewY(-14deg); background: var(--rail-color, var(--accent)); }
.optik-rennstrecke .rail-name { max-width: 70px; font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 9.5px; text-transform: uppercase;
                                letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.optik-rennstrecke .rail-item.active .rail-name { color: var(--text); }
.optik-rennstrecke .rail-badge { border-radius: 0; transform: skewX(-14deg); right: 12px; top: 0; bottom: auto; }
.optik-rennstrecke .rail-action .rail-icon, .optik-rennstrecke .rail-feedback .rail-icon, .optik-rennstrecke .rail-kofi .rail-icon { background: #141414; color: var(--soft, #d4d4d4); }
.optik-rennstrecke .rail-icon .ic { width: 20px; height: 20px; }
.optik-rennstrecke .rail-item:hover .rail-icon .ic { color: var(--league-ink); }
.optik-rennstrecke .rail-sep { width: 34px; border-radius: 0; }
/* Kopf der Community */
.rs-side-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(110deg, #0f0f0f 40%, color-mix(in srgb, var(--cm) 38%, #0f0f0f)); }
.rs-side-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--cm) 35%, #111);
               font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px; color: #fff; }
.rs-side-ico img { width: 100%; height: 100%; object-fit: cover; }
.rs-side-top b { min-width: 0; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dein nächstes Rennen */
.rs-pn { flex: none; margin: 10px 12px 2px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(110deg, #000 35%, color-mix(in srgb, var(--league) 55%, #000)); }
.rs-pn-l { font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #d4d4d4; }
.rs-pn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rs-pn-row b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.1rem; line-height: 1.05; min-width: 0; }
.rs-pn-cd { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; font-family: var(--font-head); font-style: italic; font-weight: 700; }
.rs-pn-cd big { font-size: 1.35rem; } .rs-pn-cd small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #d4d4d4; font-style: normal; }
.rs-pn-vote { display: flex; gap: 8px; margin: 0; padding-left: 4px; }
.rs-pn-vote .button[aria-pressed="true"] { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--success-text); }
.rs-pn-when { font-size: 12px; color: #d4d4d4; }
/* Seiten als Kacheln */
.rs-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 2px 8px; }
.optik-rennstrecke .side-nav .rs-quick a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0;
                                           padding: 9px 2px 8px; border-radius: 0; background: #161616; border-bottom: 2px solid transparent; color: #d4d4d4;
                                           font-family: var(--font-head); font-weight: 600; font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase; text-align: center; line-height: 1.15; }
.optik-rennstrecke .side-nav .rs-quick a .ic { width: 21px; height: 21px; }
.optik-rennstrecke .side-nav .rs-quick a:hover, .optik-rennstrecke .side-nav .rs-quick a[aria-current="page"] { background: #1c1c1c; border-bottom-color: var(--league); color: var(--text); box-shadow: none; outline: none; }
.optik-rennstrecke .side-nav .rs-quick a:hover .ic { color: var(--league-ink); }
@media (max-width: 480px) {                         /* Handy: 3 Spalten, lange Wörter trennen statt überlappen (K14) */
  .rs-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .optik-rennstrecke .side-nav .rs-quick a { hyphens: auto; overflow-wrap: anywhere; padding-inline: 4px; }
}
.rs-quick-n { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; display: grid; place-items: center; background: #ffcf5c; color: #111; font-size: 10px; transform: skewX(-14deg); }
/* Simulations-Gruppen als schlichte Abschnitte */
.optik-rennstrecke .side-simcard { border: 0; border-radius: 0; background: none; box-shadow: none; margin-top: 6px; }
.optik-rennstrecke .side-simcard::before { display: none; }
.optik-rennstrecke .side-simcard-head { padding: 6px 2px; border-bottom: 1px solid var(--border); background: none; }
.optik-rennstrecke .side-simcard-name { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.optik-rennstrecke .side-simcard-body { padding: 4px 0 0; }
.optik-rennstrecke .side-sim { letter-spacing: .22em; }
/* Liga als Bauchbinde */
.optik-rennstrecke .side-league.rs-bb { margin: 6px 0; background: #0b0b0b; border-radius: 0; }
.optik-rennstrecke .rs-bb > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: 0; min-height: 48px; padding: 0; border-radius: 0; }
.optik-rennstrecke .rs-bb > summary:hover { background: #141414; outline: none; }
.optik-rennstrecke .rs-bb > summary::after, .optik-rennstrecke .rs-bb > summary::before { display: none; }
.optik-rennstrecke .rs-bb > summary::-webkit-details-marker { display: none; }
.optik-rennstrecke .rs-bb > summary { list-style: none; }
.optik-rennstrecke .rs-bb[open] > summary { box-shadow: inset 0 -2px 0 var(--league); }
.rs-bb-shield { display: flex; align-items: center; padding: 0 20px 0 10px; background: var(--league); color: var(--league-text); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
                font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .03em; white-space: nowrap; }
.rs-bb-txt { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 4px 8px; }
.rs-bb-txt b { font-family: var(--font-head); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-bb-txt small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.rs-bb-st { display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.rs-bb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--league); }
.rs-bb-chip { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; transform: skewX(-14deg); border: 1.5px solid currentColor; white-space: nowrap;
              font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.rs-bb-chip.st-yes { color: #2fbf71; } .rs-bb-chip.st-pending { color: #ffcf5c; } .rs-bb-chip.st-no { color: #ff6b63; } .rs-bb-chip.st-open { color: #7fc8ff; }
.rs-bb-seats { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-bb-tabs { display: flex; flex-wrap: wrap; padding: 0 4px; border-bottom: 1px solid var(--border); }
.optik-rennstrecke .side-nav .rs-bb-tabs a { display: inline-flex; align-items: center; gap: 4px; min-height: 0; padding: 9px 8px; border-radius: 0; background: none;
                                             font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
                                             box-shadow: inset 0 -3px 0 transparent; }
.optik-rennstrecke .side-nav .rs-bb-tabs a:hover { color: var(--text); background: none; outline: none; box-shadow: inset 0 -3px 0 #444; }
.optik-rennstrecke .side-nav .rs-bb-tabs a[aria-current="page"] { color: var(--text); background: none; box-shadow: inset 0 -3px 0 var(--league); font-weight: 600; }
.optik-rennstrecke .side-nav .rs-bb-tabs a.side-restricted { color: color-mix(in srgb, var(--muted) 80%, var(--league)); }
.optik-rennstrecke .side-nav .rs-bb-tabs a.side-cta { color: var(--league-ink); }
/* Rennleitung und Verwaltung gemeinsam in eigener Zeile unter den normalen Reitern (Thomas 10.10.2026) */
.optik-rennstrecke .side-nav .rs-bb-tabs:has(.side-restricted) .rs-tab-break { display: block; flex-basis: 100%; order: 1; height: 0; }
.optik-rennstrecke .side-nav .rs-bb-tabs a.side-restricted { order: 2; }
/* Fuß: Infos mit Symbolen, Profil als Rennlizenz */
.optik-rennstrecke .side-legal-icons a .ic { width: 16px; height: 16px; }
.optik-rennstrecke .side-fixed .side-info a:hover .ic { color: var(--league-ink); }
.optik-rennstrecke .side-foot { background: linear-gradient(115deg, #141414 55%, color-mix(in srgb, var(--accent) 28%, #141414)); border-top: 1px solid #2c2c2c; }
.optik-rennstrecke .user-avatar img, .optik-rennstrecke .user-avatar { box-shadow: 0 0 0 2px #0f0f0f, 0 0 0 4px var(--accent); }
.optik-rennstrecke .user-names b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; }
.optik-rennstrecke .user-actions .icon-button .ic { width: 17px; height: 17px; }
.optik-rennstrecke .dm-hint .ic { width: 12px; height: 12px; }

/* Ausklappliste „Communities“ im Kopf (Thomas 10.10.2026) */
.rs-cm { position: relative; }
.rs-cm-menu { position: absolute; left: -12px; top: calc(100% + 14px); z-index: 70; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto;
              display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 14px;
              background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); box-shadow: 0 20px 50px rgba(0, 0, 0, .65);
              font-family: var(--font); font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rs-cm-menu[hidden] { display: none; }
.rs-cm-group { background: var(--surface-2); border-top: 3px solid var(--cm); min-width: 0; }
.rs-cm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #262626; }
.rs-cm-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 8px;
              background: color-mix(in srgb, var(--cm) 35%, #111); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px; color: #fff; }
.rs-cm-icon img { width: 100%; height: 100%; object-fit: cover; }
.rs-cm-head b { min-width: 0; font-family: var(--font-head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: 14px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-cm-badge { flex: none; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; background: #c62828; color: #fff; font-size: 11px; font-weight: 700; transform: skewX(-14deg); }
.rs-nav .rs-cm-admin { margin-left: auto; padding: 0; flex: none; text-decoration: none; }
.rs-cm-group ul { list-style: none; margin: 0; padding: 4px 0; }
.rs-nav .rs-cm-league { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 12px;
                color: var(--text) !important; text-decoration: none; box-shadow: inset 3px 0 0 transparent; }
.rs-nav a.rs-cm-league:hover { background: #222; outline: none; box-shadow: inset 3px 0 0 var(--league); }
.rs-nav .rs-cm-league.is-current { box-shadow: inset 3px 0 0 var(--league); background: color-mix(in srgb, var(--league) 10%, transparent); }
.rs-cm-league.is-off { opacity: .45; }
/* Ligen-Menü im Stil der Liga-Bänder (Thomas 26.10.2026): Streifen in Ligafarbe, Streckenbild des nächsten Rennens rechts */
.rs-nav .rs-cm-league { position: relative; overflow: hidden; box-shadow: inset 3px 0 0 var(--league); }
.rs-nav .rs-cm-league > :not(.rs-cm-bg) { position: relative; z-index: 1; }
.rs-cm-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: var(--cm-img) center 58% / cover no-repeat;
            opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
            transition: opacity .25s ease, transform .6s ease; }
.rs-nav a.rs-cm-league:hover .rs-cm-bg { opacity: .8; transform: scale(1.04); }
.rs-cm-name .rs-cm-next { color: #d4d4d4; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .rs-cm-bg { transition: none; } .rs-nav a.rs-cm-league:hover .rs-cm-bg { transform: none; } }
.rs-cm-logo { height: 30px; display: grid; place-items: center; background: #1a1d23; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 11px; color: var(--league-ink); }
.rs-cm-logo img { max-width: 58px; max-height: 26px; object-fit: contain; }
.rs-cm-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rs-cm-name b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 13px; }
.rs-cm-name span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-cm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--league); }
.rs-cm-all { grid-column: 1 / -1; justify-self: start; height: 32px; padding: 0 14px; background: transparent; color: var(--text); border: 1.5px solid #3a3a3a;
             transform: skewX(-14deg); cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.rs-cm-empty { grid-column: 1 / -1; margin: 0; }

/* Sponsoren rechts: ~~scrollen nicht mit (static, 10.10.2026)~~ → bleiben beim Scrollen stehen (Thomas 18.10.2026: „Bug fix:
   die Sponsoren dürfen nicht mitscrollen“ – Wahl „Stehen bleiben“), angeheftet unter Kopfleiste (64 px) und Newsticker
   (46 px), damit nichts darunter verschwindet. Nur wo sie als Spalte rechts stehen (ab 1400 px, app.css). */
.optik-rennstrecke .ad-rail { position: static; }
@media (min-width: 1400px) {
  .optik-rennstrecke .ad-rail { position: sticky; top: 126px; }
  body.optik-rennstrecke:not(:has(.rs-ticker)) .ad-rail { top: 80px; }
}

/* ---------- 18 Handy ---------- */
@media (max-width: 1100px) {
  .rs-nav a:not([aria-current]):nth-of-type(n+3) { display: none; }   /* weitere Punkte stehen im Menü-Panel */
}
.rs-nav a.rs-nav-fit { display: none; }   /* passt nicht neben Verwaltung/Betrieb/Profil (B6, Skript in _rs_header.html) */
@media (max-width: 860px) {
  body.app.optik-rennstrecke { --rs-head-h: 60px; }
  .rs-head { padding: 0 12px; gap: 10px; }
  .rs-nav { display: none; }
  .rs-logo { font-size: 18px; }
  .optik-rennstrecke .dock { top: 10px; right: 64px; z-index: 46; }
  .optik-rennstrecke .next-races .nr-body, .optik-rennstrecke .online-embed .dock-body { top: 66px; }
  .optik-rennstrecke .next-races { left: auto; }
  .optik-rennstrecke h1 { font-size: 1.6rem; }
  .rs-stage { min-height: 300px; align-items: flex-end; }
  .rs-stage::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.9) 45%, rgba(0,0,0,.96) 100%); }
  .rs-stage-body { padding: 22px var(--s-4); }
  .rs-stage h1 { font-size: 2.3rem; }
  .rs-stage-logo { display: none; }
  .rs-stage-actions .button { flex: 1; }
  .rs-top3 { grid-template-columns: 1fr; gap: var(--s-3); }
  .rs-top3-card { padding: 16px 18px; }
  .rs-outline-num { font-size: 56px; right: 12px; }
  .rs-top3-name { font-size: 1.25rem; }
  .rs-top3-pts { font-size: 1.5rem; }
  .optik-rennstrecke .rs-league-tabs { flex-wrap: nowrap; overflow-x: auto; }   /* wischen statt umbrechen */
  .rs-logo span { color: var(--league-ink); }                       /* kleine Schrift: lesbare Variante (F5) */
  .rs-hello h1 { font-size: 2.4rem; }
  .optik-rennstrecke .rs-ticker { gap: 8px; padding-right: 8px; }
  .rs-lt-count, .rs-lt-cat { display: none; }
  .rs-feed-top .rs-lt-cat { display: inline; }
  .rs-lt-shield { padding: 0 18px 0 10px; font-size: 12px; }
  .rs-lt-text { font-size: 13px; }
  .rs-all { padding: 0 10px; }
  .rs-cal-scroll { overflow: visible; }
  .rs-cal-track { grid-template-columns: 1fr; padding: 0; }
  .rs-cal-track::before, .rs-cal-track::after { left: 19px; top: 20px; width: 3px; }
  .rs-cal-track::before { right: auto; bottom: 20px; height: auto; }
  .rs-cal-track::after { height: calc((100% - 40px) * var(--done)); }
  .rs-cal-node { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 5px 0; }
  .rs-cal-label { flex-direction: row; align-items: baseline; gap: 10px; }
  .rs-cal-name { font-size: 13px; text-align: left; }
  .rs-cal-detail { grid-template-columns: 1fr; }
  .rs-cal-pic { min-height: 110px; }
  .rs-cal-in { padding: 16px; }
  .rs-cal-in h3 { font-size: 1.4rem; }
  .rs-st-row { grid-template-columns: 30px minmax(0, 1fr) 70px; gap: 10px; }
  .rs-st-form, .rs-st-change { display: none; }
  .rs-mx-sticky { min-width: 150px; }
  .rs-admin-link { display: none; }                                  /* Handy: im Menü-Panel */
  .rs-sr-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .rs-sr-pic, .rs-sr-liv { display: none; }
  .rs-sr-rounds { padding-left: 64px; }
  .rs-sr-cards { grid-template-columns: 1fr 1fr; }
  .rs-sr-cpic { height: 84px; }
  .rs-sr-big { font-size: 40px; }
  .rs-nr { position: static; flex-direction: row; }
  .rs-nr-tab { flex-direction: row; align-items: center; width: auto; height: 38px; margin: 0; padding: 0 10px; gap: 6px; border: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--league); }
  .rs-nr-tab-top, .rs-nr-sub, .rs-nr-open { display: none; }
  .rs-nr-tab-mid { flex-direction: row; align-items: baseline; gap: 4px; padding: 0; }
  .rs-nr-big { font-size: 1.15rem; }
  .rs-nr-unit { margin: 0; font-size: 10px; }
  .rs-nr-tab .rs-nr-counts { display: none; }                         /* Handy: nur Countdown + Punkt, Logo bleibt frei */
  .rs-nr-panel, .rs-nr.is-wide .rs-nr-panel { position: fixed; top: 66px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 78px); border: 1px solid var(--border); }
  .rs-nr-wide-btn { display: none; }
  .optik-rennstrecke .online-embed.rs-who { position: static; display: block; }
  .rs-who-btn { height: 38px; padding: 0 10px; transform: none; box-shadow: none; border-bottom-width: 2px; }
  .rs-who-btn > * { transform: none; }
  .rs-who-label, .rs-who-stack { display: none; }
  .rs-who-n { display: inline; }
  .rs-who-panel { position: fixed; top: 66px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 78px); }
  .rs-feed { position: fixed; left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 24px)); }
}
@media (max-width: 420px) {
  .rs-logo { font-size: 14px; letter-spacing: .01em; }
  .optik-rennstrecke .dock { right: 54px; gap: 4px; }
  .rs-nr-tab { padding: 0 7px; }
}
@media (max-width: 370px) { .rs-logo { font-size: 12.5px; } .rs-head { gap: 8px; } }

/* ---------- 19 Galerie als Wochenwertung (Variante C, Thomas 10.10.2026) ---------- */
/* Podium 01–03 der laufenden Woche, Bild der letzten Woche als Siegerzeile, Fotos nach Daumen, ältere nach KW gruppiert,
   rechts Daumen/Hinweise/Fotografen; Großbild mit allen Angaben. Vorlage: gallery/_rs_overview.html */
.rs-ga { --gold: #ffd54a; --silver: #cfd4dc; --bronze: #e0a46e; display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-4); }
.rs-ga-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rs-ga-tools .button .ic, .rs-ga-join .button .ic { width: 15px; height: 15px; }
.optik-rennstrecke a.rs-ga-tool, .rs-ga-tool { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 12px;
               letter-spacing: .07em; text-transform: uppercase; color: #d4d4d4; }
.optik-rennstrecke a.rs-ga-tool:hover { color: var(--text); }
.rs-ga-count { padding: 0 6px; background: var(--league); color: var(--league-text); transform: skewX(-14deg); font-size: 11px; }
.rs-ga-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rs-ga-clock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d4d4d4; }
.rs-ga-clock b { font-family: var(--font); font-style: italic; font-variant-numeric: tabular-nums; color: var(--text); }
.rs-ga-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.rs-ga-main { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.rs-ga-side { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.rs-ga figure { margin: 0; }
.rs-ga-gold { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }

/* Foto-Fläche: Querformat füllt, Hochformat (9:16) mittig vor unscharfem Hintergrund */
.rs-ga-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.rs-ga-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rs-ga-open:hover { outline-offset: -2px; }
.rs-ga-open:hover img { transform: scale(1.03); }
.rs-ga-open.portrait::before { content: ""; position: absolute; inset: -20px; background: var(--photo-bg) center / cover; filter: blur(14px) brightness(.55); }
.rs-ga-open.portrait img { position: relative; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .rs-ga-open img { transition: none; } .rs-ga-open:hover img { transform: none; } }

/* Daumen-Knopf (schräg, gedrückt in Ligafarbe) */
.rs-ga-vote { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; cursor: pointer; transform: skewX(-14deg); flex: none;
              background: var(--surface-2); color: var(--text); font-family: var(--font); font-style: italic; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.rs-ga-vote[aria-pressed="true"] { background: var(--league); color: var(--league-text); }
.rs-ga-vote.is-static { cursor: default; }
.rs-ga-vote.is-big { height: 40px; padding: 0 20px; font-size: 15px; align-self: flex-start; }
.rs-ga-vote .ic { width: 15px; height: 15px; }

/* Podium */
.rs-ga-podium { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.rs-ga-pod { --mc: var(--gold); position: relative; display: flex; flex-direction: column; background: var(--surface); border-bottom: 3px solid var(--mc); min-width: 0; }
.rs-ga-pod.p2 { --mc: var(--silver); } .rs-ga-pod.p3 { --mc: var(--bronze); }
.rs-ga-pod.p1 { grid-row: span 2; }
.rs-ga-pod.p1 .rs-ga-open { aspect-ratio: auto; flex: 1; min-height: 260px; }
.rs-ga-pod:only-child { grid-column: 1 / -1; } .rs-ga-pod.p1:nth-last-child(2) { grid-row: auto; }   /* 1 bzw. 2 Fotos: ohne Lücke */
.rs-ga-pod:only-child .rs-ga-open, .rs-ga-pod.p1:nth-last-child(2) .rs-ga-open { aspect-ratio: 16 / 9; min-height: 0; }
.rs-ga-pod .rs-outline-num { z-index: 1; left: 12px; right: auto; top: 2px; font-size: 64px; -webkit-text-stroke: 1.5px var(--mc); pointer-events: none; text-shadow: 0 0 18px rgba(0,0,0,.5); }
.rs-ga-pod.p1 .rs-outline-num { font-size: 92px; }
.rs-ga-pod figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 14px 12px; }
.rs-ga-pod-who { display: flex; flex-direction: column; min-width: 0; }
.rs-ga-pod-who b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ga-pod.p1 .rs-ga-pod-who b { font-size: 1.2rem; }
.rs-ga-pod-who small { font-size: 12.5px; color: #d4d4d4; }
.rs-ga-meter { grid-column: 1 / -1; height: 4px; background: #262626; } .rs-ga-meter i { display: block; height: 100%; background: var(--mc); }
.rs-ga-badge { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; transform: skewX(-14deg);
               background: var(--gold); color: #111; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.rs-ga-badge .ic { width: 13px; height: 13px; }

/* Bild der letzten Woche */
.rs-ga-last { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-right: 16px; border-left: 3px solid var(--gold);
              background: linear-gradient(100deg, var(--surface) 50%, color-mix(in srgb, var(--gold) 16%, var(--surface))); }
.rs-ga-last figcaption { display: flex; flex-direction: column; min-width: 0; }
.rs-ga-last figcaption b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ga-last figcaption > span:last-child { font-size: 12.5px; color: #d4d4d4; }
.rs-ga-last .rs-eyebrow { font-size: 10.5px; letter-spacing: .22em; }

/* Wochen-Raster */
.rs-ga-week { display: flex; flex-direction: column; gap: 10px; }
.rs-ga-sec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.rs-ga-sec h2 { margin: 0; font-size: 1.35rem; }
.rs-ga-sec h2 span { font-weight: 500; color: var(--muted); font-size: .8em; }
.rs-ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rs-ga-tile { position: relative; background: var(--surface); min-width: 0; }
.rs-ga-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; }
.rs-ga-tile figcaption > span:first-child { font-size: 12px; color: #d4d4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rs-ga-tile .rs-ga-vote { height: 26px; font-size: 12px; }
.rs-ga-tile .rs-ga-badge { top: 6px; right: 6px; font-size: 10px; padding: 2px 9px; }
.rs-ga-place { position: absolute; z-index: 1; top: 5px; left: 8px; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; text-shadow: 0 1px 6px #000; pointer-events: none; }
.rs-ga-empty { padding: 18px; background: var(--surface); color: var(--muted); margin: 0; }

/* Seitenspalte */
.rs-ga-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--surface); }
.rs-ga-box h2 { margin: 0; font-size: 1rem; }
.rs-ga-small { margin: 0; font-size: 12.5px; color: var(--muted); }
.rs-ga-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: #d4d4d4; }
.rs-ga-thumbs b { font-family: var(--font-head); font-style: italic; color: var(--text); }
.rs-ga-cells { display: inline-flex; gap: 3px; }
.rs-ga-cells i { width: 16px; height: 14px; background: var(--league); transform: skewX(-14deg); }
.rs-ga-cells i.used { background: #2a2a2a; }
.rs-ga-noai { display: flex; gap: 8px; margin: 0; padding: 8px 10px; border-left: 3px solid #ff6b63; background: #1a1212; font-size: 12.5px; color: #e6e6e6; }
.rs-ga-noai .ic { color: #ff6b63; margin-top: 2px; }
.rs-ga-lb { display: flex; flex-direction: column; }
.optik-rennstrecke .rs-ga-lb a { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid #222; color: var(--text); }
.rs-ga-lb a:first-child { border-top: 0; }
.rs-ga-lb a:hover { background: var(--surface-2); outline-offset: -2px; }
.rs-ga-lb .c-avatar { width: 32px; height: 32px; font-size: 11px; }
.rs-ga-lb-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.1rem; color: var(--muted); text-align: center; }
.rs-ga-lb a.p1 .rs-ga-lb-pos { color: var(--gold); } .rs-ga-lb a.p2 .rs-ga-lb-pos { color: var(--silver); } .rs-ga-lb a.p3 .rs-ga-lb-pos { color: var(--bronze); }
.rs-ga-lb-who { display: flex; flex-direction: column; min-width: 0; }
.rs-ga-lb-who b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ga-lb-who small, .rs-ga-lb-val small { font-size: 11px; color: var(--muted); }
.rs-ga-lb-val { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font); font-style: italic; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-ga-lb-val small { font-style: normal; font-weight: 400; }
.rs-ga-join { background: linear-gradient(120deg, var(--surface) 40%, color-mix(in srgb, var(--league) 28%, var(--surface))); }
.rs-ga-join .button { align-self: flex-start; }

/* Großbild */
.rs-ga-lbx { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.95); color: var(--text); }
.rs-ga-lbx[open] { display: grid; grid-template-columns: minmax(0, 1fr) 350px; }
.rs-ga-lbx::backdrop { background: rgba(0,0,0,.85); }
.rs-ga-stage { position: relative; display: grid; place-items: center; padding: 24px 68px; min-width: 0; min-height: 0; }
.rs-ga-stage img { max-width: 100%; max-height: calc(100dvh - 48px); object-fit: contain; }
.rs-ga-nav { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; border: 0; cursor: pointer; transform: skewX(-14deg); display: grid; place-items: center;
             background: rgba(255,255,255,.08); color: var(--text); }
.rs-ga-nav:hover { background: var(--league); color: var(--league-text); }
.rs-ga-nav.prev { left: 12px; } .rs-ga-nav.next { right: 12px; }
.rs-ga-nav .ic { width: 22px; height: 22px; }
.rs-ga-panel { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: #0f0f0f; border-left: 1px solid var(--border); overflow-y: auto; }
.rs-ga-panel form[method="dialog"] { align-self: flex-end; margin: 0; }
.rs-ga-close { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; color: var(--muted);
               font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.rs-ga-close:hover { color: var(--text); }
[data-rs-lbx-info] { display: flex; flex-direction: column; gap: 14px; }
[data-rs-lbx-info] h2 { margin: 0; font-size: 1.5rem; line-height: 1.05; }
.rs-ga-by { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.rs-ga-by > span { display: flex; flex-direction: column; min-width: 0; }
.rs-ga-by b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; }
.rs-ga-by small { font-size: 12px; color: var(--muted); }
.rs-ga-by .rs-ga-tool { margin-left: auto; }
.rs-ga-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #d4d4d4; }
.rs-ga-meta > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rs-ga-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; transform: skewX(-14deg); border: 1.5px solid currentColor; color: var(--muted);
             font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.rs-ga-tag.is-on { color: var(--league-ink); }
.optik-rennstrecke a.rs-ga-drv { padding: 1px 8px; background: var(--surface-2); color: #d4d4d4; font-size: 12.5px; }
.rs-ga-lic { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--surface); font-size: 13px; color: #d4d4d4; }
.rs-ga-lic b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; color: var(--text); }
.rs-ga-lic label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.rs-ga-lic .button { align-self: flex-start; }
.rs-ga-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.rs-ga-pos { margin-top: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) { .rs-ga-layout { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .rs-ga-bar .rs-pb-sims { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding: 2px 8px; scrollbar-width: none; }
  .rs-ga-bar .rs-pb-sims a { flex: none; }
  .rs-ga-lbx[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rs-ga-stage { padding: 12px 8px; } .rs-ga-stage img { max-height: 52dvh; }
  .rs-ga-nav { width: 36px; height: 52px; margin-top: -26px; } .rs-ga-nav.prev { left: 6px; } .rs-ga-nav.next { right: 6px; }
  .rs-ga-panel { max-height: 48dvh; border-left: 0; border-top: 1px solid var(--border); padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .rs-ga-podium { grid-template-columns: 1fr 1fr; }
  .rs-ga-pod.p1 { grid-row: auto; grid-column: 1 / -1; } .rs-ga-pod.p1 .rs-ga-open { min-height: 0; aspect-ratio: 16 / 9; }
  .rs-ga-pod .rs-outline-num { font-size: 46px; } .rs-ga-pod.p1 .rs-outline-num { font-size: 70px; }
  .rs-ga-pod:not(.p1) .rs-ga-pod-who small { display: none; }
  .rs-ga-pod:not(.p1) .rs-ga-badge { display: none; }
  .rs-ga-last { grid-template-columns: 100px minmax(0, 1fr); padding-right: 10px; } .rs-ga-last > .rs-ga-vote { display: none; }
  .rs-ga-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rs-ga-tile figcaption > span:first-child { display: none; }
  .rs-ga-tile figcaption { justify-content: flex-end; }
}
.optik-rennstrecke .rs-ga a.rs-ga-tool, .optik-rennstrecke .rs-ga-lbx a.rs-ga-tool, .optik-rennstrecke .rs-ga-lb a, .optik-rennstrecke .rs-ga-by a { text-decoration: none; }
.rs-ga-by > span { flex: 1; }
.rs-ga-by b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ga-by .rs-ga-tool { flex: none; }
.rs-ga-pod-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 20 Mr. Pitwall als Boxenfunk (Variante A, Thomas 10.10.2026) ---------- */
/* Position, Auftauchen, Pause und Skript wie in der Discord-Optik (app.css .pitwall, templates/_tips.html); nur die
   Sprechblase wird zum Funkspruch. Abgetaucht schaut der Kopf raus, darüber blinkt „Funk“. */
.rs-pw .pitwall-figure { width: 112px; height: 140px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); cursor: pointer; }
.rs-pw-panel { position: relative; width: 340px; margin-bottom: 64px; background: #0d0d0d; border: 1px solid var(--border); border-bottom: 3px solid var(--league);
               box-shadow: 0 14px 34px rgba(0,0,0,.6); font-size: 14px; line-height: 1.45; }
.rs-pw-panel::after { content: ""; position: absolute; right: -10px; bottom: 22px; border: 10px solid transparent; border-left-color: var(--league); border-right: 0; }
.rs-pw-top { display: flex; align-items: center; gap: 10px; height: 34px; padding-right: 4px; background: #000; }
.rs-pw-shield { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 20px 0 12px; background: var(--league); color: var(--league-text);
                clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); font-family: var(--font-head); font-style: italic; font-weight: 700;
                font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.rs-pw-shield .ic { width: 15px; height: 15px; }
.rs-pw-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.rs-pw-eq i { width: 3px; height: 6px; background: currentColor; animation: rs-pw-eq 1s ease-in-out infinite; }
.rs-pw-eq i:nth-child(2) { animation-delay: -.3s; } .rs-pw-eq i:nth-child(3) { animation-delay: -.6s; } .rs-pw-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes rs-pw-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.rs-pw-top b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.rs-pw-close { margin-left: auto; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.rs-pw-close:hover { color: var(--text); }
.rs-pw-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; }
.rs-pw-who { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-pw-text { margin: 0; }
.rs-pw-text::before { content: "„"; color: var(--league-ink); font-family: var(--font-head); font-weight: 700; }
.rs-pw-text::after { content: "“"; color: var(--league-ink); font-family: var(--font-head); font-weight: 700; }
.rs-pw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-left: 4px; }
.rs-pw-nav { display: inline-flex; gap: 4px; }
.rs-pw-nav button { width: 32px; height: 30px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; transform: skewX(-14deg); display: grid; place-items: center; }
.rs-pw-nav .ic { width: 16px; height: 16px; }
.optik-rennstrecke a.rs-pw-off { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.rs-pw-callout { position: absolute; right: 10px; top: -26px; display: none; align-items: center; gap: 6px; padding: 2px 10px; cursor: pointer;
                 background: var(--league); color: var(--league-text); transform: skewX(-14deg); font-family: var(--font-head); font-style: italic;
                 font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.rs-pw-callout i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: rs-pw-blink 1.4s infinite; }
@keyframes rs-pw-blink { 50% { opacity: .2; } }
.rs-pw.peek .rs-pw-panel { display: none; }
.rs-pw.peek .rs-pw-callout { display: inline-flex; }
@media (max-width: 860px) {
  .rs-pw .pitwall-figure { width: 78px; height: 98px; }
  .rs-pw-panel { width: auto; max-width: 340px; flex: 1 1 0; min-width: 0; margin-bottom: 44px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .rs-pw-eq i, .rs-pw-callout i { animation: none; } }

/* ---------- 21 Live-Schublade „Bildregie“ (Variante B, Thomas 10.10.2026) ---------- */
/* Über dem Kalender unten links, öffnet wie dieser (Lasche rechts, Monitor + Kacheln links davon am Rand).
   Vorlage _rs_live.html; Zwei-Klick-Vorschau (Player erst nach „Vorschau laden“). */
.rs-lv { --live: #e5322d; position: fixed; z-index: 32; left: 0; bottom: 12px; display: flex; flex-direction: row-reverse; align-items: flex-end; }
.dock:has(.rs-nr) .rs-lv { bottom: var(--rs-lv-bottom, 196px); }
.dock:has(.rs-nr[open]) .rs-lv:not([open]) { z-index: 30; }            /* offener Kalender liegt über der Live-Lasche */
.rs-lv-tab { list-style: none; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: stretch; width: 92px; text-align: center;
             margin-bottom: 18px; background: linear-gradient(180deg, #181818, #0e0e0e); border: 1px solid #2c2c2c; border-left: 0;
             box-shadow: 10px 10px 30px rgba(0, 0, 0, .55); transition: transform .15s; }
.rs-lv-tab::-webkit-details-marker { display: none; }
.rs-lv-tab:hover { outline: 2px solid var(--league); outline-offset: 3px; transform: translateX(3px); }
.rs-lv-tab-top { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 6px 11px; background: var(--live); color: #fff;
                 clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.rs-lv.is-re .rs-lv-tab-top { background: #2a2a2a; color: #d4d4d4; }
.rs-lv-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: rs-blink 1.4s infinite; flex: none; }
.rs-lv-head .rs-lv-dot { color: var(--live); }
.rs-lv-tab-mid { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; line-height: 1; }
.rs-lv-tab-mid b { font-family: var(--font); font-style: italic; font-weight: 700; font-size: 2rem; line-height: .95; font-variant-numeric: tabular-nums; }
.rs-lv-tab-mid small { margin-top: 3px; font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rs-lv-stack { display: flex; justify-content: center; padding: 0 0 8px; }
.rs-lv-stack i { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; border: 2px solid #111; background: #3a3f4a; display: grid; place-items: center;
                 font-style: normal; font-size: 8.5px; font-weight: 700; color: #fff; box-shadow: 0 0 0 1.5px var(--live); }
.rs-lv-stack i:first-child { margin-left: 0; }
.rs-lv-open { position: absolute; right: -1px; top: 50%; transform: translate(100%, -50%); width: 14px; height: 34px; display: grid; place-items: center;
              background: var(--live); color: #fff; font-size: 12px; clip-path: polygon(0 0, 100% 18%, 100% 82%, 0 100%); }
.rs-lv.is-re .rs-lv-open { background: #2a2a2a; }
.rs-lv[open] .rs-lv-open { transform: translate(100%, -50%) scaleX(-1); }
.rs-lv-panel { width: 560px; max-width: calc(100vw - 110px); max-height: calc(100vh - 120px); overflow-y: auto; background: #050505; border: 1px solid var(--border); border-left: 0;
               border-top: 3px solid var(--live); box-shadow: 20px 10px 40px rgba(0, 0, 0, .6); scrollbar-width: thin; }
.rs-lv.is-re .rs-lv-panel { border-top-color: #e6e6e6; }
.rs-lv[open] .rs-lv-panel { animation: rs-nr-in .22s cubic-bezier(.2, .7, .2, 1) both; }
.rs-lv-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #000; border-bottom: 1px solid #1e1e1e; }
.rs-lv-head b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rs-lv-tc { margin-left: auto; font-size: 12px; color: var(--muted); }
.rs-lv-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.rs-lv-x:hover { color: var(--text); }
.rs-lv-main { padding: 10px 10px 0; }
.rs-lv-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: radial-gradient(120% 90% at 80% 20%, var(--pc, #333), #050505 70%); }
.rs-lv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-lv-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: rgba(0, 0, 0, .55); }
.rs-lv-consent[hidden] { display: none; }
.rs-lv-consent p { margin: 0; max-width: 40ch; font-size: 12.5px; color: #d4d4d4; }
.optik-rennstrecke .rs-lv-consent p a { color: #fff; text-decoration: underline; }
.rs-lv-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rs-lv-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 0; font-size: 12.5px; color: #d4d4d4; }
.rs-lv-cap > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-lv-cap b { font-family: var(--font-head); font-style: italic; text-transform: uppercase; color: var(--text); }
.rs-lv-plat { flex: none; height: 18px; padding: 0 7px; display: inline-flex; align-items: center; transform: skewX(-14deg); font-family: var(--font-head); font-style: italic;
              font-weight: 700; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #444; }
.rs-lv-plat.is-youtube { background: #e62117; } .rs-lv-plat.is-twitch { background: #8a5cf6; }
.rs-lv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px; }
.rs-lv-tile { position: relative; padding: 0; border: 2px solid #222; background: #000; cursor: pointer; text-align: left; min-width: 0; color: var(--text); }
.rs-lv-tile:hover { outline-offset: 1px; }
.rs-lv-tile[aria-pressed="true"] { border-color: var(--live); }
.rs-lv.is-re .rs-lv-tile[aria-pressed="true"] { border-color: #e6e6e6; }
.rs-lv-th { display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 70% 20%, var(--pc), #050505 75%);
            font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 16px; color: rgba(255, 255, 255, .88); }
.rs-lv-tally { position: absolute; top: 4px; left: 4px; width: 8px; height: 8px; background: #3a3a3a; }
.rs-lv-tile[aria-pressed="true"] .rs-lv-tally { background: var(--live); box-shadow: 0 0 6px var(--live); }
.rs-lv.is-re .rs-lv-tile[aria-pressed="true"] .rs-lv-tally { background: #e6e6e6; box-shadow: none; }
.rs-lv-lb { display: block; padding: 3px 5px 4px; background: #111; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-lv-foot { padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
/* Absetzen vom Seiteninhalt (Thomas 10.10.2026): Rahmen + Glühen – live in Rot, ReLive in der Ligafarbe des gewählten Streams */
.rs-lv { --lv-c: var(--live); }
.rs-lv.is-re { --lv-c: var(--league); }
.rs-lv-tab, .rs-lv-panel { border-color: var(--lv-c); }
.rs-lv-tab { box-shadow: 0 0 0 1px var(--lv-c), 0 0 22px color-mix(in srgb, var(--lv-c) 45%, transparent), 10px 10px 30px rgba(0, 0, 0, .55); transition: transform .15s, box-shadow .25s; }
.rs-lv-panel { border-top-color: var(--lv-c); box-shadow: 0 0 0 1px var(--lv-c), 0 0 34px color-mix(in srgb, var(--lv-c) 40%, transparent), 20px 10px 40px rgba(0, 0, 0, .6); transition: box-shadow .25s, border-color .25s; }
.rs-lv.is-re .rs-lv-panel { border-top-color: var(--lv-c); }
.rs-lv.is-re .rs-lv-tab-top { background: color-mix(in srgb, var(--lv-c) 30%, #1a1a1a); color: #fff; }
.rs-lv.is-re .rs-lv-open { background: var(--lv-c); }
.rs-lv.is-re .rs-lv-tile[aria-pressed="true"] { border-color: var(--lv-c); }
.rs-lv.is-re .rs-lv-tile[aria-pressed="true"] .rs-lv-tally { background: var(--lv-c); box-shadow: 0 0 6px var(--lv-c); }
@media (prefers-reduced-motion: reduce) { .rs-lv-dot { animation: none; } }
@media (max-width: 860px) {
  .rs-lv, .dock:has(.rs-nr) .rs-lv { position: fixed; left: 0; bottom: 96px; }   /* Handy: kleine Lasche am linken Rand (Kopf ist voll) */
  .rs-lv-tab { width: 46px; margin: 0; }
  .rs-lv-tab-top { padding: 5px 4px 8px; font-size: 11px; }
  .rs-lv-word { display: none; }
  .rs-lv.is-re .rs-lv-tab-top::before { content: "▶"; font-size: 10px; font-style: normal; }
  .rs-lv-tab-mid { padding: 4px 2px 6px; } .rs-lv-tab-mid b { font-size: 1.3rem; } .rs-lv-tab-mid small, .rs-lv-stack { display: none; }
  .rs-lv-open { width: 10px; height: 26px; }
  .rs-lv[open] .rs-lv-tab { visibility: hidden; }                   /* offen: Fenster über die ganze Breite, Lasche weg */
  .rs-lv-panel { position: fixed; top: 66px; left: 8px; right: 8px; width: auto; max-width: none; max-height: calc(100dvh - 78px); border: 1px solid var(--border); border-top: 3px solid var(--live); z-index: 47; }
  .rs-lv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 22 Hinweis „moderne Ansicht ist jetzt Standard“ (ab 0.8.3, Thomas 10.10.2026) ---------- */
.rs-default-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
                     border-left: 3px solid var(--league); background: color-mix(in srgb, var(--league) 12%, var(--surface)); }
.rs-default-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding-left: 6px; }

/* Rennleitung: Schnellknöpfe 5/10/15/20/30 neben „Zeitstrafe in Sekunden“ – schräge, breitere Knöpfe brechen um statt
   über das Feld und in die Nachbarspalte zu laufen (Fix 10.10.2026) */
.optik-rennstrecke .quick-row { flex-wrap: wrap; row-gap: 8px; padding-left: 4px; }
.optik-rennstrecke .quick-row input { flex: none; width: 90px; }
.optik-rennstrecke .quick-row .button { flex: none; padding: 0 10px; min-width: 38px; }

/* Galerie (Thomas 10.10.2026): Bild der Woche groß oben, größeres Podium, KW-Leiste fürs Archiv */
.rs-ga-hero { position: relative; margin: 0; background: #000; border-bottom: 3px solid var(--gold, #ffd54a); overflow: hidden; }
.rs-ga-hero .rs-ga-open { aspect-ratio: 16 / 9; max-height: 620px; }
.rs-ga-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                     background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.25) 40%, transparent 65%); }
.rs-ga-hero figcaption { position: absolute; z-index: 1; left: 22px; right: 120px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.rs-ga-hero figcaption b { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.05; }
.rs-ga-hero figcaption > span:last-child { font-size: 14px; color: #e6e6e6; }
.rs-ga-hero-votes { position: absolute; z-index: 1; right: 20px; bottom: 20px; height: 36px; font-size: 15px; }
.rs-ga-podium { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.rs-ga-pod.p1 .rs-ga-open { min-height: 380px; }
.rs-ga-weeks { display: flex; flex-wrap: wrap; gap: 6px; }
.optik-rennstrecke .rs-ga-weeks a { display: inline-flex; align-items: baseline; gap: 6px; height: 34px; padding: 0 14px; align-items: center; background: var(--surface);
                    transform: skewX(-14deg); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 12px;
                    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.rs-ga-weeks a small { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.optik-rennstrecke .rs-ga-weeks a[aria-current="page"] { background: var(--text); color: #000; }
.rs-ga-weeks a[aria-current="page"] small { color: #333; }
@media (max-width: 860px) {
  .rs-ga-hero figcaption { left: 14px; right: 14px; bottom: 50px; }
  .rs-ga-hero-votes { right: auto; left: 14px; bottom: 12px; }
  .rs-ga-pod.p1 .rs-ga-open { min-height: 0; }
  .rs-ga-weeks { flex-wrap: nowrap; overflow-x: auto; padding: 2px 8px; scrollbar-width: none; }
  .rs-ga-weeks a { flex: none; }
}

/* Laschen „Nächste Rennen“ und Live hängen am Menü-Panel (Thomas 10.10.2026): geht ☰ auf, rutschen sie mit nach rechts und
   bleiben über dem abgedunkelten Hintergrund sichtbar und klickbar (Desktop; am Handy füllt das Panel fast die Breite). */
@media (min-width: 861px) {
  .rs-nr, .rs-lv { transition: transform .2s; }
  .rs-panel-open .rs-nr, .rs-panel-open .rs-lv, .rs-panel-open .dock:has(.rs-nr[open]) .rs-lv:not([open]) {
    transform: translateX(var(--rs-panel-w)); z-index: 61;
  }
}

/* Eigener Mauszeiger (Thomas 10.10.2026): Kreis mit Community-Logo, Ecke oben links = Klickstelle (services/cursor.py).
   Pfeil überall, Hand über allem Klickbaren; Textfelder behalten den Textcursor, Sonderzeiger (Ziehen, Vergrößern) bleiben. */
body[data-rs-cursor] { cursor: var(--rs-cur) 4 4, auto; }
body[data-rs-cursor] :is(a[href], button:not(:disabled), summary, label, select, [role="button"], .button,
  input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"]) { cursor: var(--rs-cur-hand) 4 4, pointer; }
body[data-rs-cursor] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea,
  [contenteditable="true"]) { cursor: text; }

/* ---------- 23 Streckenrekorde als Streckenwand (Variante B, Thomas 10.10.2026) ---------- */
.rs-tr { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-4); }
.rs-tr-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; align-items: start; }
.rs-tr-side { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.optik-rennstrecke .rs-tr-search { margin: 0; width: 100%; }
.rs-tr-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 180px); overflow-y: auto; overscroll-behavior: contain; }
.rs-tr-tile { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 26px 7px 7px;
              background: var(--surface); border-left: 3px solid transparent; color: var(--text) !important; text-decoration: none; }
.rs-tr-tile[hidden] { display: none; }
.rs-tr-tile:hover { background: var(--surface-2); outline-offset: -2px; }
.rs-tr-tile[aria-current="page"] { background: var(--surface-2); border-left-color: var(--league); }
.rs-tr-th { height: 40px; overflow: hidden; background: linear-gradient(135deg, #262626, #161616); }
.rs-tr-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-tr-tx { min-width: 0; display: flex; flex-direction: column; }
.rs-tr-tx b { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tr-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tr-tx .rs-tr-lay { color: #c4c4c4; }
.rs-tr-t { font-family: var(--font); font-weight: 700; color: #e6e6e6; font-variant-numeric: tabular-nums; }
.rs-tr-star { position: absolute; right: 7px; top: 7px; color: var(--league-ink); }
.rs-tr-star .ic { width: 13px; height: 13px; }
.rs-tr-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rs-tr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rs-tr-top h2 { margin: 2px 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.02; }
.rs-tr-sub { color: var(--muted); font-weight: 600; }
.rs-tr-classes a { height: 30px; font-size: 12px; }
.rs-tr-table { display: flex; flex-direction: column; gap: 3px; }
.rs-tr-cols { display: flex; flex-direction: column; gap: 3px; } .rs-tr-table.is-second > .rs-tr-th-row { display: none; }   /* zweite Hälfte: schmal nahtlos weiter */
.rs-tr-th-row, .rs-tr-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 110px 90px 100px; gap: 12px; align-items: center; padding: 8px 12px; }
.rs-tr-th-row { padding-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rs-tr-th-row > :first-child { text-align: center; } .rs-tr-th-row > :nth-child(n+3) { text-align: right; }
.rs-tr-row { background: var(--surface); border-left: 3px solid transparent; color: var(--text) !important; text-decoration: none; }
.rs-tr-row:hover { background: var(--surface-2); outline-offset: -2px; }
.rs-tr-row.me { background: color-mix(in srgb, var(--league) 14%, var(--surface)); border-left-color: var(--league); }
.rs-tr-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.3rem; color: var(--muted); text-align: center; }
.rs-tr-row.p1 .rs-tr-pos { color: #ffd54a; } .rs-tr-row.p2 .rs-tr-pos { color: #cfd4dc; } .rs-tr-row.p3 .rs-tr-pos { color: #e0a46e; }
.rs-tr-who { display: flex; flex-direction: column; min-width: 0; }
.rs-tr-who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tr-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-tr-time { text-align: right; font-family: var(--font); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }   /* Tomorrow hat keine gleich breiten Ziffern */
.rs-tr-gap, .rs-tr-date { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .rs-tr-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-tr-side { position: static; }
  .rs-tr-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .rs-tr-tile { flex: 0 0 230px; scroll-snap-align: start; }
  .rs-tr-th-row { display: none; }
  .rs-tr-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .rs-tr-gap, .rs-tr-date { display: none; }
}

/* ---------- Startseite je Community (0.8.3, Thomas 11.10.2026) ---------- */
/* Reihe je Community wie app.css .start-row-cards (12 px Abstand); kein Leerraum unten, wenn alles passt */
.rs-lrow { margin-bottom: var(--s-4); }
.rs-lrow-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 10px; }
.rs-lrow-head .rs-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.rs-lrow-head .rs-eyebrow img { width: 20px; height: 20px; object-fit: cover; }
.rs-lrow-head .link-button { display: inline-flex; align-items: center; gap: 6px; }

/* Liga-Bänder (0.9.2 „league_bands“, Thomas 26.10.2026, Entwurf K/L): Streckenbild, wechselnde Einträge, je Community
   zwei Spalten (Handy eine). Farben aus league_vars (--league, --league-text, --league-ink). */
.rs-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .rs-bands { grid-template-columns: minmax(0, 1fr); } }
.rs-band { position: relative; display: flex; align-items: center; min-height: 108px; overflow: hidden; background: var(--surface); }
.rs-band.off { opacity: .5; }
.rs-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--league); z-index: 1; }
.rs-band-bg { position: absolute; inset: -6%; background: var(--band-img) center 58% / cover no-repeat;
              animation: rsBandZoom 18s ease-in-out infinite alternate; }
@keyframes rsBandZoom { from { transform: scale(1) translateX(0); } to { transform: scale(1.12) translateX(-3%); } }
.rs-band-shade { position: absolute; inset: 0;
                 background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.86) 45%, rgba(10,10,10,.25) 80%, rgba(10,10,10,.65) 100%); }
.rs-band.no-img .rs-band-shade { background: repeating-linear-gradient(115deg, #161616 0 20px, #1a1a1a 20px 40px); }
.rs-band > :not(.rs-band-bg):not(.rs-band-shade) { position: relative; z-index: 1; }
.rs-band-id { flex: none; width: 152px; box-sizing: border-box; padding: 0 14px 0 20px; display: flex; flex-direction: column; text-decoration: none; color: var(--text) !important; }
.rs-band-id b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 20px; letter-spacing: .03em; line-height: 1.1; }
.rs-band-id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rs-band-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 12px 0; }
.rs-band-slide { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--text) !important; text-decoration: none; }
.rs-band-slide.on { animation: rsBandIn .6s cubic-bezier(.2,.8,.2,1); }
a.rs-band-slide:hover .rs-band-small { text-decoration: underline; }
@keyframes rsBandIn { 0% { opacity: 0; transform: translateX(30px) skewX(-8deg); filter: blur(6px); }
                      60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
.rs-band-label, .rs-band-big, .rs-band-small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-band-label { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--league-ink); }
.rs-band-big { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 23px; line-height: 1.05; text-transform: uppercase; }
.rs-band-big.long { font-size: 18px; }                                                      /* lange Streckennamen */
.rs-band-small { font-size: 12px; font-weight: 600; color: #d4d4d4; }
.rs-band-dots { display: flex; gap: 5px; }
.rs-band-dot { position: relative; width: 16px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.22); cursor: pointer; }
.rs-band-dot::after { content: ""; position: absolute; inset: -13px -2px; }                 /* Trefferfläche ~29 px (Prüfung 27.10.) */
.rs-band-dot.on { width: 34px; transition: width .3s ease; }
.rs-band-dot i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.rs-band-dot.on i { animation: rsBandFill var(--band-ms, 5s) linear forwards; }
.rs-band-dot.on.held i, .rs-band-slide:only-of-type ~ .rs-band-dots i { animation: none; transform: none; }
.rs-band.paused .rs-band-dot.on i { animation-play-state: paused; }
@keyframes rsBandFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rs-band-right { flex: none; margin: 0 18px 0 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rs-band-pos { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 34px; line-height: .9; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.rs-band-state { padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: #111; }
.rs-band-state.st-yes { background: #2fbf63; color: #08260f; }
.rs-band-state.st-no { background: #3a3a3a; color: #e5e5e5; }
.rs-band-state.st-commentary { background: #b48cff; color: #1d0b3a; }
.rs-band-cta, .rs-band-ghost { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; text-decoration: none;
                               font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
                               transition: transform .2s ease, box-shadow .2s ease; }
.rs-band-cta { background: var(--league); color: var(--league-text) !important; }
.rs-band-ghost { border: 1px solid rgba(255,255,255,.35); color: var(--text) !important; }
.rs-band-cta:hover, .rs-band-ghost:hover { transform: translateX(3px) skewX(-6deg); box-shadow: -6px 0 0 rgba(255,255,255,.25); }
.rs-band-roles { position: absolute !important; top: 0; right: 2px; display: flex; gap: 0; }
.rs-band-roles a { display: inline-flex; padding: 9px; color: var(--muted) !important; }    /* 32 px Trefferfläche */
.rs-band-roles a:hover { color: var(--text) !important; }
.rs-band-roles .ic { width: 14px; height: 14px; }
@media (max-width: 520px) {                                          /* Handy: kleiner, untere Zeile darf umbrechen */
  .rs-band-id { width: 90px; padding: 0 8px 0 14px; } .rs-band-id b { font-size: 15px; overflow: visible; } .rs-band-id small { display: none; }
  .rs-band-big { font-size: 18px; } .rs-band-big.long { font-size: 15px; } .rs-band-small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rs-band-label { letter-spacing: .1em; } .rs-band-pos { font-size: 26px; } .rs-band-right { margin: 0 10px 0 8px; }
  .rs-band-cta, .rs-band-ghost { height: 38px; padding: 0 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-band-bg, .rs-band-slide.on, .rs-band-dot.on i { animation: none; } .rs-band-dot.on i { transform: none; }
  .rs-band-cta:hover, .rs-band-ghost:hover { transform: none; box-shadow: none; }
}
.rs-lrow-head .start-row-nav button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; }
.rs-lrow-head .start-row-nav button:not(:disabled):hover { border-color: var(--league, var(--rs-accent)); }
.rs-lcards.start-row-cards { margin-bottom: 0; grid-auto-columns: max(270px, calc((100% - 36px) / 4)); }
@media (max-width: 640px) { .rs-lcards.start-row-cards { grid-auto-columns: 85%; } }
.optik-rennstrecke .content:has(.rs-start-top) { padding-bottom: var(--s-4); }

/* ---------- 21 Handy = Variante A „Klar“ (Thomas 11.10.2026, nach Nutzer-Feedback) ---------- */
/* Bis 860 px: keine schrägen Linien, normale Schreibweise in der Textschrift, gerade Knöpfe, Farbe nur als Linie und
   für den Hauptknopf. Desktop bleibt Entwurf B (F7/F8). Listen der schrägen Elemente aus diesem Stylesheet erzeugt –
   neue Schrägen hier ergänzen. Entwurf: https://claude.ai/artifact/1kM7bLDKicuBZUqStBdxgC */
@media (max-width: 860px) {
  body.app.optik-rennstrecke { --font-head: var(--font); }
  .optik-rennstrecke, .optik-rennstrecke * { font-style: normal !important; text-transform: none !important; letter-spacing: normal !important; }
  .optik-rennstrecke .button, .rs-burger, .optik-rennstrecke .ticker-label, .rs-dotd, .rs-pb-sims a, .rs-all,
  .rs-new, .rs-cal-dot, .rs-st-form i, .rs-admin-link, .rs-sr-nr, .rs-nr-dot, .rs-nr-wide-btn, .rs-nr-chip,
  .rs-nr-mhead button, .rs-nr-race, .rs-nr-box, .rs-who-btn, .rs-who-btn > *, .rs-who-role,
  .optik-rennstrecke .ic, .optik-rennstrecke .rail-badge, .rs-quick-n, .rs-bb-chip, .rs-cm-badge, .rs-cm-all,
  .rs-ga-count, .rs-ga-vote, .rs-ga-badge, .rs-ga-cells i, .rs-ga-nav, .rs-ga-tag, .rs-pw-nav button,
  .rs-pw-callout, .rs-lv-plat, .optik-rennstrecke .rs-ga-weeks a { transform: none !important; }
  .rs-lt-shield, .rs-lt-item.is-hot .rs-lt-msg, .rs-nr-tab-top, .rs-nr-open, .rs-bb-shield, .rs-pw-shield,
  .rs-lv-tab-top, .rs-lv-open { clip-path: none !important; }
}
@media (max-width: 860px) {
  /* Überschriften: klein und ruhig, ohne Hell/Fett-Wechsel im Wort */
  .optik-rennstrecke h1 { font-size: 1.3rem; line-height: 1.2; }
  .optik-rennstrecke h2, .rs-sec-head h2 { font-size: 1.05rem; }
  .rs-hello h1, .rs-sec-head h2 span, .rs-stage h1 span, .rs-hello h1 span { font-weight: 700; }
  .rs-hello { gap: 4px; } .rs-hello h1 { font-size: 1.1rem; } .rs-hello .rs-eyebrow { display: none; }
  .rs-eyebrow { font-size: 12px; font-weight: 600; }
  /* Countdown als eine Zeile Text statt Kästen */
  .rs-count, .rs-start-next .rs-count { gap: 2px; align-items: baseline; font-family: var(--font); }
  .rs-count div, .rs-start-next .rs-count > span { flex-direction: row; align-items: baseline; gap: 3px; min-width: 0; padding: 0; background: none; border: 0; }
  .rs-count b { font-size: 1rem; }
  .rs-count small { margin: 0 8px 0 0; font-size: 12px; color: var(--muted); }
  /* Liga-Kopf in einer Zeile: kein Streckenbild, Knopf klein daneben */
  .rs-stage, .rs-stage.no-image { min-height: 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .rs-stage-img, .rs-stage::after, .rs-stage::before { display: none; }
  .rs-stage-body { padding: 10px 0; flex-direction: row; align-items: center; gap: 10px; }
  .rs-stage-text { min-width: 0; gap: 2px; }
  .rs-stage .rs-eyebrow { color: var(--muted); text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rs-stage h1 { font-size: 1rem; line-height: 1.25; }
  .rs-stage-meta { font-size: 12px; color: var(--muted); }
  .rs-stage-actions { margin: 0; padding: 0; flex: none; align-self: center; }
  .rs-stage-actions .button { flex: none; height: 34px; padding: 0 12px; font-size: 12.5px; }
  .rs-stage-text .rs-stage-actions { margin-top: 6px; }
  /* Reiter: Verlauf am rechten Rand zeigt, dass es weitergeht */
  .optik-rennstrecke .rs-league-tabs { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  /* Podium als drei kleine Kacheln */
  .rs-top3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: var(--s-3); }
  .rs-top3-card { padding: 8px 6px; gap: 2px; min-height: 0; text-align: center; align-items: center; border-bottom-width: 1px; }
  .rs-top3-card:first-child { box-shadow: inset 0 2px 0 var(--league); }
  .rs-top3-card .rs-outline-num, .rs-top3-card > .muted.small { display: none; }
  .rs-top3-name { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
  .rs-top3-pts { font-size: 15px; color: var(--text); } .rs-top3-pts small { font-size: 11px; }
  /* Letztes Rennen: eine Zeile mit Link statt Podium-Kasten */
  .rs-pair .rs-panel { padding: 10px 12px; gap: 2px; }
  .rs-pair .rs-podium-row { display: none; }
  .rs-pair .rs-panel h3 { font-size: 14px; margin: 0; }
  /* Ticker einfarbig, ohne „Alle“ */
  .rs-all { display: none; }
  .rs-lt-shield { background: none; color: var(--league-ink); padding: 0 6px 0 12px; }
  .rs-lt-item.is-hot .rs-lt-msg { background: none; color: var(--text); }
  /* Karten ohne große Umriss-Kürzel, Knöpfe flach */
  .rs-lcard .rs-outline-num { display: none; }
  .optik-rennstrecke .button { border-width: 1px; box-shadow: none; }
  /* Live: am Handy nur, wenn wirklich jemand live ist (ReLive bleibt am Desktop) – kleine Lasche */
  .rs-lv.is-re { display: none; }
  /* Hinweis „moderne Ansicht ist Standard“ als schmale Zeile */
  .optik-rennstrecke .rs-default-notice { padding: 8px 10px; font-size: 12.5px; gap: 8px; }
  .optik-rennstrecke .rs-default-notice .button { height: 30px; padding: 0 10px; font-size: 12px; }
}
@media (max-width: 860px) {
  /* Zahl offener Zu-/Absagen im Kalender-Feld statt darüber */
  .rs-nr-dot { position: static; order: 9; min-width: 17px; height: 17px; margin-left: 2px; font-size: 10px; box-shadow: none; }
  /* Liga-Kopf: Text links, Knopf rechts, mit Rand wie der Inhalt */
  .rs-stage-body { padding: 10px var(--s-3); }
  .rs-stage-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .rs-stage-text > :not(.rs-stage-actions) { grid-column: 1; }
  .rs-stage-text .rs-stage-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  /* Anmelde-Countdown ist breiter als ein Knopf: unter den Text, volle Breite – sonst wird der Streckenname
     Buchstabe für Buchstabe umbrochen (Thomas 06.11.2026) */
  .rs-stage-text .rs-stage-actions.is-countdown { grid-column: 1 / -1; grid-row: auto; margin-top: 6px; }
  .rs-stage-actions.is-countdown .reg-countdown { width: 100%; box-sizing: border-box; }
}
@media (max-width: 860px) {
  /* Fahrer-Rating: Podium als drei kleine Kacheln wie Meisterschaft */
  .rs-rt-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rs-rt-pc { padding: 8px 6px; gap: 2px; align-items: center; text-align: center; border-bottom-width: 1px; }
  .rs-rt-pc .rs-outline-num, .rs-rt-pc .avatar, .rs-rt-pc-row { display: none; }
  .rs-rt-pc-who { justify-content: center; } .rs-rt-pc-who b { font-size: 13px; white-space: normal; }
  .rs-rt-pc-val { font-size: 15px; text-align: center; } .rs-rt-pc-val .delta { font-size: 11px; }
  /* Kalender-Detail: kein großes Kürzel über dem Streckenbild */
  .rs-cal-pic .rs-outline-num { display: none; }
}
@media (max-width: 860px) {
  .rs-rt-pc-who { flex-direction: column; gap: 0; width: 100%; } .rs-rt-pc-who > :not(b) { display: none; }
  .rs-rt-pc-who b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 860px) {
  .rs-rt-pc { display: flex; flex-direction: column; grid-template-columns: none; }
  .rs-rt-pc-who b { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- 22 Laschen verdecken keinen Inhalt (K10, Prüfung 10.10.2026) ---------- */
/* Desktop: links Platz für „Nächste Rennen“ und „LIVE/ReLive“ (92 px + Abstand), sobald es sie gibt. Handy: LIVE als
   kleines Feld in der Kopfzeile wie der Kalender, keine Lasche über dem Inhalt. */
@media (min-width: 861px) {
  body.optik-rennstrecke:has(.dock .rs-nr, .dock .rs-lv) .content-body { padding-left: 104px; }
}
@media (max-width: 860px) {
  .rs-lv, .dock:has(.rs-nr) .rs-lv { position: static; flex-direction: row; }
  .rs-lv-tab { flex-direction: row; align-items: center; width: auto; height: 38px; margin: 0; padding: 0 10px; gap: 6px;
               border: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--live); }
  .rs-lv-tab-top { padding: 0; background: none; color: var(--live); }
  .rs-lv-tab-mid, .rs-lv-stack, .rs-lv-open { display: none; }
  .rs-lv-tab:hover { transform: none; }
  .rs-lv-tab { padding: 0 9px; } .rs-lv-tab .rs-lv-dot { width: 10px; height: 10px; }   /* nur roter Punkt: Logo bleibt lesbar */
}
@media (max-width: 420px) {
  .rs-head { gap: 6px; padding: 0 8px; } .rs-logo { font-size: 13px; }
  .optik-rennstrecke .dock { right: 48px; gap: 3px; }
  .rs-nr-tab, .rs-lv-tab, .rs-who-btn { padding: 0 6px; }
}

/* ---------- 24 Zurück-Navigation (Variante C, Thomas 12.10.2026) ---------- */
.optik-rennstrecke .trail { gap: 4px 0; margin: var(--s-3) 0 var(--s-3); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.optik-rennstrecke .trail a { color: var(--league-ink); border-bottom: 1px solid transparent; padding: 2px 0; }   /* Farbe der Serie bzw. Community */
.optik-rennstrecke .trail a:hover { color: var(--text); text-decoration: none; border-color: var(--league); }
.optik-rennstrecke .trail-sep { display: inline-block; width: 6px; height: 6px; margin: 0 10px; border-right: 2px solid #555; border-top: 2px solid #555; transform: rotate(45deg); }
.optik-rennstrecke .trail-sep::before { content: none; }
.optik-rennstrecke .trail [aria-current="page"] { color: var(--text); }
@media (max-width: 700px) {
  .optik-rennstrecke .trail-back { border-radius: 0; height: 46px; padding: 0 18px 0 14px; background: #000; border: 1.5px solid var(--league, var(--accent));
    transform: skewX(-14deg); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 18px color-mix(in srgb, var(--league, var(--accent)) 35%, transparent); color: var(--league-ink, var(--text)); }
  .optik-rennstrecke .trail-back > * { transform: skewX(14deg); }
  .optik-rennstrecke .trail-back .ic { width: 17px; height: 17px; }
}
/* Liga-Seiten: die Bühne ist bis unter die Kopfleiste gezogen – der Pfad liegt darüber, oben links auf dem Bild */
.optik-rennstrecke .trail { position: relative; z-index: 3; }
.optik-rennstrecke .trail a, .optik-rennstrecke .trail span { text-shadow: 0 1px 6px rgba(0,0,0,.9); }
/* Zahlen mit gleich breiten Ziffern (Thomas 12.10.2026): Tomorrow hat keine Tabellenziffern, darum Overpass für
   Werte, Abstände, Punkte, Zähler und Countdowns (kursiv bleibt, wo es kursiv war) */

/* Pro-Badge (0.9.0): Entwurf „A + F“ – Umriss in Lila mit Helm, eckig wie alles in der Rennstrecke */
.optik-rennstrecke .pro-badge { border-radius: 0; font-family: var(--font-head); font-style: italic; letter-spacing: .08em; }
.optik-rennstrecke h1 .pro-badge { height: 24px; font-size: .8rem; vertical-align: .25em; }

/* „Werde Pro“ ganz rechts in der Hauptnavigation, hervorgehoben (Thomas 14.10.2026) */
.rs-nav a.rs-nav-pro { background: linear-gradient(90deg, #7b0bd0, #a50ffc); color: #fff; font-weight: 700; padding-left: 14px; padding-right: 14px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.rs-nav a.rs-nav-pro:hover, .rs-nav a.rs-nav-pro[aria-current="page"] { filter: brightness(1.15); color: #fff; }

/* „Wer ist online?“: Personen, die man anschreiben darf, sind anklickbar (Thomas 17.10.2026) */
.rs-who-list li, .rs-who-tiles li { position: relative; }
.rs-who-hit { position: absolute; inset: 0; z-index: 1; }
.rs-who-hit:focus-visible { outline: 2px solid var(--league, #2f7bf5); outline-offset: -2px; }
.rs-who-dm { cursor: pointer; }
.rs-who-list li.rs-who-dm { grid-template-columns: 4px 34px minmax(0, 1fr) auto auto; }
.rs-who-list li.rs-who-dm:hover, .rs-who-tiles li.rs-who-dm:hover { background: color-mix(in srgb, var(--league, #2f7bf5) 12%, transparent); }
.rs-who-env { font-size: 14px; color: var(--muted); }
.rs-who-dm:hover .rs-who-env { color: var(--text); }


/* Lights-Out-Abzeichen eckig und schräg wie die Knöpfe der Optik Rennstrecke */
.optik-rennstrecke .top-badge.lo-badge, .optik-rennstrecke .top-badge.lo-badge b { border-radius: 0; }
.optik-rennstrecke .top-badge.lo-badge b { transform: skewX(-12deg); }

/* ---------- Knöpfe gerade, schräg nur beim Darüberfahren (Thomas 27.10.2026: „sämtliche anderen Buttons von schräg auf
   gerade mit Hovern schräg umstellen“) – wie in den Liga-Bändern. Nur Knöpfe und klickbare Schaltflächen; Status-Chips,
   Zähler, Abzeichen und Ziergrafiken bleiben schräg (Rennstrecken-Look). ---------- */
.optik-rennstrecke .button, .optik-rennstrecke .tile-actions .button, .optik-rennstrecke .trail-back,
.rs-all, .rs-pb-sims a, .rs-admin-link, .rs-cm-all, .rs-ga-vote, .rs-ga-nav, .rs-pw-nav button, .rs-nr-mhead button,
.rs-nr-wide-btn, .rs-pw-callout, .optik-rennstrecke .rs-ga-weeks a {
  transform: none; transition: transform .2s ease, box-shadow .2s ease;
}
.rs-all .rs-new, .optik-rennstrecke .trail-back > * { transform: none; }      /* Gegen-Schräge der Innenteile entfällt */
:is(.optik-rennstrecke .button, .optik-rennstrecke .trail-back, .rs-all, .rs-pb-sims a, .rs-admin-link, .rs-cm-all,
    .rs-ga-vote, .rs-pw-nav button, .rs-nr-mhead button, .rs-nr-wide-btn, .rs-pw-callout,
    .optik-rennstrecke .rs-ga-weeks a):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  transform: translateX(2px) skewX(-6deg); box-shadow: -5px 0 0 rgba(255,255,255,.22);
}
.rs-ga-nav:is(:hover, :focus-visible) { transform: skewX(-6deg); }          /* Bildwechsel: ohne Versatz, sonst zuckt der Pfeil */
@media (prefers-reduced-motion: reduce) {
  :is(.optik-rennstrecke .button, .optik-rennstrecke .trail-back, .rs-all, .rs-pb-sims a, .rs-admin-link, .rs-cm-all,
      .rs-ga-vote, .rs-ga-nav, .rs-pw-nav button, .rs-nr-mhead button, .rs-nr-wide-btn, .rs-pw-callout,
      .optik-rennstrecke .rs-ga-weeks a):is(:hover, :focus-visible) { transform: none; box-shadow: none; }
}

/* Starterfeld: beim eigenen Eintrag „Bild ändern“ als eigene kleine Zeile unter dem Fahrzeug (Thomas 06.11.2026) */
.rs-sr-edit { display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; margin-top: 2px; font-size: 12px; color: var(--league-ink, var(--accent)); text-decoration: none; white-space: nowrap; }
.rs-sr-edit:hover { text-decoration: underline; }
.rs-sr-edit svg { width: 13px; height: 13px; flex: none; }
