/* ==========================================================================
   Football Huddle – Designsystem „Flutlicht“ (Web)
   Ein Abendspiel unter Flutlicht: Sturmblau-Feld mit Kreidelinien, Glasscheiben,
   Anzeigetafel-Ziffern, First-Down-Gelb nur für Schlüsselmomente.
   Quelle der Tokens: Docs/Designkonzept.md, HuddleUI/HuddleColors.swift, HuddleTheme.swift.
   Aufbau: 1 Schrift · 2 Tokens · 3 Themes · 4 Basis · 5 Hintergrund · 6 Typografie · 7 Layout
           8 Glas & Karten · 9 Bedienelemente · 10 Football-Motive · 11 Tabellen · 12 Zustände
           13 App-Rahmen · 14 Website-Kopf/-Fuß · 15 Hilfsklassen · 16 Bewegung
   ========================================================================== */

/* 1 · Schrift ------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  /* WOFF2: auf Latein (inkl. Erweiterungen) und genutzte Sonderzeichen reduziert, Achsen wght/wdth erhalten (~165 KB statt 643 KB). */
  src: url("../fonts/Archivo-Variable.woff2") format("woff2"), url("../fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* 2 · Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Farben (Theme „Flutlicht“) */
  --night: #070C12;
  --storm: #101B26;
  --ink: #384959;
  --slate: #6A89A7;
  --sky: #88BDF2;
  --mist: #BDDDFC;
  --muted: #9DB3C8;      /* Sekundärtext, ≥ 4,5 : 1 auf Storm und Glas */
  --line: #FFD60A;       /* First-Down-Gelb: nur Fortschritt, Line to gain, Schlüsselmomente */
  --live: #FF453A;       /* ausschließlich „läuft gerade“ */
  --turf: #1E5A3A;       /* nur in Spielfeld-Grafiken */
  --turf-dark: #17482F;
  --chalk: #EEF3F7;      /* Kreidelinien */
  --scrimmage: #3D8BFF;  /* TV-Konvention: blaue Line of Scrimmage */
  --text: #FFFFFF;
  --win: #4ADE80;
  --loss: #FF6B61;

  /* Teamfarben (werden per style="--team-1:…" gesetzt) */
  --team-1: var(--ink);
  --team-2: var(--slate);
  --team-glow: var(--sky);
  --glow: var(--sky);   /* Flutlicht-Farbe des Hintergrunds (Hauptteam) */
  --glow-strength: 1;

  /* Glas */
  --glass-bg: rgba(22, 36, 50, 0.52);
  --glass-bg-strong: rgba(18, 30, 42, 0.78);
  --glass-tint: color-mix(in srgb, var(--ink) 22%, transparent);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --glass-blur: 22px;

  /* Typografie */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-score: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-4xl: clamp(2.5rem, 1.5rem + 4.5vw, 5rem);
  --lh: 1.55;

  /* Maße */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;       /* Glasscheibe wie huddleCard */
  --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 32px);
  --content-max: 1180px;
  --tabbar-h: 64px;
  --rail-w: 248px;
  --focus: 0 0 0 3px var(--night), 0 0 0 5px var(--sky);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 3 · Themes (alle dunkel; „teamfarben“ setzt shell.js über Inline-Variablen) */
:root[data-theme="rasen"] { --night:#03100A; --storm:#0E2C1B; --ink:#2D5E40; --slate:#5F8A70; --sky:#7FD9A0; --mist:#C8F2D6; --muted:#A3C9B1; --chalk:#EEF5EF; --turf:#22703F; --glass-bg: rgba(16, 44, 28, .52); --glass-bg-strong: rgba(12, 36, 22, .8); }
:root[data-theme="anzeigetafel"] { --night:#060402; --storm:#201508; --ink:#5A3F1E; --slate:#8A7560; --sky:#FFA62B; --mist:#FFE2A8; --muted:#CDB596; --line:#FFE14D; --chalk:#F5EEE4; --turf:#2F4A26; --glass-bg: rgba(40, 27, 12, .55); --glass-bg-strong: rgba(32, 21, 8, .82); }
:root[data-theme="mitternacht"] { --night:#000000; --storm:#08080C; --ink:#2E2E3A; --slate:#6E6E7A; --sky:#A3B5FF; --mist:#DCE3FF; --muted:#A5A5B2; --chalk:#F2F2F5; --turf:#1D4A33; --glass-bg: rgba(20, 20, 28, .6); --glass-bg-strong: rgba(14, 14, 20, .85); }
:root[data-theme="eis"] { --night:#050B11; --storm:#142A38; --ink:#3D6476; --slate:#7D97A6; --sky:#7FE3F2; --mist:#D8F6FA; --muted:#AECBD8; --chalk:#F0FAFC; --turf:#1E5A48; --glass-bg: rgba(24, 48, 62, .52); --glass-bg-strong: rgba(18, 40, 54, .8); }

/* Ohne Transparenz: deckende Flächen */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-bg: var(--glass-bg-strong); --glass-blur: 0px; }
}
@media (prefers-contrast: more) {
  :root { --muted: #C9D6E2; --glass-border: rgba(255, 255, 255, .35); }
}

/* 4 · Basis --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  color: var(--text);
  background: transparent;   /* Grundfarbe trägt html, darüber liegt das feste Stadionbild */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg.team-badge, svg.icon { flex: none; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mist); }
p { margin: 0 0 var(--space-3); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; text-wrap: balance; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--glass-border); margin: var(--space-5) 0; }
::selection { background: color-mix(in srgb, var(--sky) 45%, transparent); color: #fff; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: 2px solid transparent; outline-offset: 2px; }

/* 5 · Hintergrund: Flutlicht-Stadion (fest hinter dem Inhalt) --------------- */
/* Blick über das Nachtfeld auf das Field Goal, prozedural gerendert (tools/stadium-backdrop). Die Ebene ist
   position: fixed (statt background-attachment: fixed, das iOS Safari ignoriert) und lvh-hoch, damit das Bild beim
   Ein-/Ausblenden der Safari-Leisten nicht springt. Je Bildschirmform die passende Fassung: quer (16:9),
   Tablet hoch (3:4), Handy hoch (~9:19,5); darüber ein Hauch Teamfarbe und eine Abdunklung für Lesbarkeit. */
:root {
  --stadium: url(../img/backdrop/stadium-quer-1600.webp);
  --stadium-set: image-set(url(../img/backdrop/stadium-quer-1600.webp) 1x, url(../img/backdrop/stadium-quer-2560.webp) 2x);
  --stadium-pos: center 46%;
}
@media (min-width: 1700px) {
  :root {
    --stadium: url(../img/backdrop/stadium-quer-2560.webp);
    --stadium-set: image-set(url(../img/backdrop/stadium-quer-2560.webp) 1x, url(../img/backdrop/stadium-quer-3840.webp) 2x);
  }
}
@media (min-width: 2600px) {
  :root { --stadium: url(../img/backdrop/stadium-quer-3840.webp); --stadium-set: var(--stadium); }
}
@media (orientation: portrait) and (min-aspect-ratio: 3/5) {
  :root {
    --stadium: url(../img/backdrop/stadium-tablet-1536.webp);
    --stadium-set: image-set(url(../img/backdrop/stadium-tablet-1536.webp) 1x, url(../img/backdrop/stadium-tablet-2048.webp) 2x);
    --stadium-pos: center 48%;
  }
}
@media (orientation: portrait) and (max-aspect-ratio: 3/5) {
  :root {
    --stadium: url(../img/backdrop/stadium-hoch-860.webp);
    --stadium-set: image-set(url(../img/backdrop/stadium-hoch-860.webp) 1x, url(../img/backdrop/stadium-hoch-1290.webp) 2x);
    --stadium-pos: center 48%;
  }
}
.backdrop, body.has-backdrop::before {
  content: "";
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-color: var(--night);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, center, var(--stadium-pos);
  --stadium-veil:
    radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--glow) calc(16% * var(--glow-strength)), transparent), transparent 72%),
    linear-gradient(180deg, rgba(7, 12, 18, .5) 0%, rgba(7, 12, 18, .36) 28%, rgba(7, 12, 18, .5) 58%, rgba(7, 12, 18, .78) 100%);
  background-image: var(--stadium-veil), var(--stadium);
}
/* Auflösung nach Pixeldichte nur, wo image-set() sicher geht (sonst würde die ganze Angabe ungültig). */
@supports (background-image: image-set(url("a.webp") 1x)) {
  .backdrop, body.has-backdrop::before { background-image: var(--stadium-veil), var(--stadium-set); }
}

/* 6 · Typografie ---------------------------------------------------------- */
.t-display {
  font-family: var(--font);
  font-size: var(--fs-3xl);
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.t-hero { font-size: var(--fs-4xl); font-weight: 900; font-stretch: 112%; line-height: .98; letter-spacing: -0.02em; }
.t-title { font-size: var(--fs-2xl); font-weight: 850; font-stretch: 106%; }
.t-section {  /* Abschnittstitel: .title3 heavy expanded */
  font-size: var(--fs-xl);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: 0;
}
.t-headline { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; }
.t-eyebrow {  /* Kategorie über Titeln: Versalien, Laufweite +1.2 */
  font-size: var(--fs-xs);
  font-weight: 750;
  font-stretch: 115%;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-body { font-size: var(--fs-md); line-height: var(--lh); }
.t-small { font-size: var(--fs-sm); }
.t-xs { font-size: var(--fs-xs); }
.t-muted { color: var(--muted); }
.t-mist { color: var(--mist); }
.t-sky { color: var(--sky); }
.t-strong { font-weight: 700; }
.t-center { text-align: center; }
.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }
.t-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t-balance { text-wrap: balance; }
.t-prose { max-width: 68ch; }
.t-prose p { margin-bottom: 1em; }

/* Anzeigetafel-Ziffern: schmal, schwer, ruhige Ziffernbreite */
.t-score, .score {
  font-family: var(--font-score);
  font-weight: 900;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
  line-height: .9;
}
.t-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.score--xl { font-size: clamp(3.5rem, 2.2rem + 6vw, 6.5rem); }
.score--lg { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.score--md { font-size: 2rem; }
.score--sm { font-size: 1.5rem; }
.score--glow { color: var(--mist); text-shadow: 0 0 24px color-mix(in srgb, var(--mist) 35%, transparent); }
.is-dimmed, .score.is-dimmed { opacity: .5; }

.team-badge__abbr, .team-badge__shadow { font-family: var(--font-score); font-weight: 900; font-stretch: 70%; }

/* 7 · Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-4)); }
.stack--sm { --stack-gap: var(--space-2); }
.stack--lg { --stack-gap: var(--space-6); }
.stack--xl { --stack-gap: var(--space-7); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-2)); }
.cluster--between { justify-content: space-between; }
.row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.row > .grow, .grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--grid-gap, var(--space-4)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--grid-min, 280px)), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid--tiles { --grid-min: 150px; }
.split { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.section { padding-block: var(--space-6); }
.full-bleed { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

/* 8 · Glas & Karten ------------------------------------------------------- */
.glass {
  position: relative;
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 40%),
    var(--glass-tint),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card {
  position: relative;
  padding: var(--card-pad, var(--space-4));
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 40%),
    var(--glass-tint),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  min-width: 0;
}
@media (min-width: 700px) { .card { --card-pad: var(--space-5); } }
.card--compact { --card-pad: var(--space-3); border-radius: var(--radius); }
.card--flush { --card-pad: 0; overflow: hidden; }
.card--strong { background: var(--glass-bg-strong); }
/* Teamfarben-Tönung */
.card--team {
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 40%),
    linear-gradient(135deg, color-mix(in srgb, var(--team-1) 34%, transparent), color-mix(in srgb, var(--team-2) 10%, transparent) 70%),
    var(--glass-bg);
}
/* Hero-Scheibe: Glas über diagonalem Verlauf aus zwei Teamfarben */
.card--hero {
  --card-pad: var(--space-5);
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg-strong);
}
.card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--away-1, var(--team-1)) 70%, transparent) 0%, transparent 48%),
    linear-gradient(295deg, color-mix(in srgb, var(--home-1, var(--team-2)) 70%, transparent) 0%, transparent 48%),
    var(--storm);
  opacity: .9;
}
.card--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* Schlüsselmoment: gelber Rand links */
.card--key { box-shadow: inset 4px 0 0 var(--line), inset 0 1px 0 rgba(255,255,255,.08); }
/* Ganze Karte klickbar */
.card--interactive { cursor: pointer; transition: transform .25s var(--ease), border-color .2s, background-color .2s; text-decoration: none; color: inherit; display: block; }
.card--interactive:hover { border-color: var(--glass-border-strong); transform: translateY(-2px); color: inherit; }
.card--interactive:active { transform: translateY(0) scale(.995); }
.card--interactive:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
/* Ausklappbereich in Karten */
.card__inset { margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius); background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .06); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.card__title { font-size: var(--fs-lg); font-weight: 750; }
/* Stretched Link: liegt absolut über der ganzen Fläche, nimmt keinen Platz im Layout ein */
.card__link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; color: inherit; text-decoration: none; }
.card__link ~ * button, .card__link ~ * a, .card__link ~ * input { position: relative; z-index: 1; }
.card__link:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.card:has(.card__link:focus-visible) { box-shadow: var(--focus); }

/* Liste in einer Glasscheibe */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.list__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 52px; color: inherit; text-decoration: none; position: relative; }
a.list__item:hover, button.list__item:hover { background: rgba(255, 255, 255, .04); color: inherit; }
button.list__item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.list__chevron { color: var(--slate); margin-left: auto; flex: none; }

/* 9 · Bedienelemente ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border-strong);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  font-stretch: 105%;
  text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--sky); border-color: transparent; color: #04121F; }
.btn--primary:hover { background: var(--mist); color: #04121F; }
.btn--line { background: var(--line); border-color: transparent; color: #1A1600; } /* nur für Schlüsselmomente */
.btn--ghost { background: transparent; border-color: transparent; color: var(--sky); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); color: var(--mist); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-xs); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--fs-md); }
/* Knöpfe mit langem, variablem Text (z. B. Lektionstitel): dürfen umbrechen, nie breiter als der Container */
.btn--wrap { white-space: normal; max-width: 100%; text-align: left; justify-content: flex-start; border-radius: var(--radius); overflow-wrap: break-word; }
.btn--icon { width: 44px; padding: 0; }
.btn--icon.btn--sm { width: 36px; }
.btn--block { width: 100%; }

/* Chips (Filter, Wochenwahl): Buttons mit aria-pressed oder Links mit aria-current */
.chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: -2px -2px 0;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.chip:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip[aria-current="page"], .chip[aria-selected="true"], .chip.is-active {
  background: var(--sky);
  border-color: transparent;
  color: #04121F;
}

/* Kapseln (nicht interaktiv) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  min-height: 22px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: .03em;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--mist);
  white-space: nowrap;
}
.pill--live { background: color-mix(in srgb, var(--live) 18%, transparent); border-color: color-mix(in srgb, var(--live) 45%, transparent); color: #FFB3AD; }
.pill--line { background: var(--line); border-color: transparent; color: #1A1600; }
.pill--sky { background: color-mix(in srgb, var(--sky) 18%, transparent); border-color: color-mix(in srgb, var(--sky) 40%, transparent); color: var(--mist); }
.pill--win { background: color-mix(in srgb, var(--win) 16%, transparent); color: #A7F3C0; border-color: transparent; }
.pill--loss { background: color-mix(in srgb, var(--loss) 16%, transparent); color: #FFC2BD; border-color: transparent; }
.pill--seed { font-family: var(--font-score); font-stretch: 70%; font-weight: 900; font-size: .8rem; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
.input, .select {
  min-height: 44px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-strong);
  background: rgba(0, 0, 0, .25);
  color: #fff;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus-visible, .select:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
.search {
  position: relative;
}
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 42px; border-radius: var(--radius-pill); }

/* Schalter (input[type=checkbox].switch) */
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  position: relative;
  cursor: pointer;
  transition: background-color .2s;
  margin: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.switch:checked { background: var(--sky); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }

/* Segmente (Tabs innerhalb einer Ansicht) – role="tablist" */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .3); border: 1px solid var(--glass-border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented > * { flex: none; min-height: 34px; padding: 6px 14px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; text-decoration: none; }
.segmented > [aria-selected="true"], .segmented > [aria-current="page"], .segmented > [aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.segmented > *:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }

/* 10 · Football-Motive ---------------------------------------------------- */

/* Abschnittstitel mit Yard-Markierung (SectionHeader) */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  min-width: 0;
}
.section-head__yard {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-score);
  font-stretch: 62%;
  font-weight: 900;
  font-size: .95rem;
  line-height: 1;
  color: color-mix(in srgb, var(--chalk) 55%, transparent);
}
.section-head__yard::after { content: ""; width: 2px; height: 14px; background: color-mix(in srgb, var(--chalk) 45%, transparent); border-radius: 1px; }
.section-head__text { flex: 1; min-width: 0; }
.section-head__title { font-size: var(--fs-xl); font-weight: 800; font-stretch: 110%; }
.section-head__action { flex: none; margin-left: auto; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; }
.section-head::after { content: none; }

/* TV-Einblendung „3rd & 4 · BUF 35“ */
.chyron {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 800;
  font-size: var(--fs-sm);
  font-stretch: 105%;
  white-space: nowrap;
}
.chyron__tag { padding: 2px 8px; border-radius: 7px; background: var(--line); color: #1A1600; font-family: var(--font-score); font-stretch: 70%; font-weight: 900; }
.chyron--live .chyron__tag { background: #D70015; color: #fff; } /* dunkleres Live-Rot: Weiß erreicht ≥ 4,5:1 */
.chyron--plain { padding-left: 12px; }

/* LIVE-Punkt */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent); animation: live-pulse 1.6s infinite; flex: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Ballbesitz (Football-Symbol in Gelb) */
.possession { color: var(--line); display: inline-flex; }

/* Line to Gain: gelber Fortschrittsbalken mit Zielmarke */
.ltg { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: visible; }
.ltg__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--value, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent), var(--line)); transition: width .8s var(--ease); }
.ltg__marker { position: absolute; top: -4px; bottom: -4px; right: 0; width: 3px; border-radius: 2px; background: var(--line); box-shadow: 0 0 10px color-mix(in srgb, var(--line) 60%, transparent); }
.ltg--sm { height: 6px; }

/* Siegchance-Balken (Heim vs. Gast) */
.prob-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.prob-bar > span { display: block; height: 100%; }

/* Anzeigetafel-Kopf (Scoreboard)
   Schmal (≤ 420 px): lange Teamnamen („Commanders“) laufen schmaler (Breitenachse) und skalieren mit der Spaltenbreite,
   damit sie nicht mit „…“ abgeschnitten werden; die Ellipse bleibt nur letzte Rückfallebene. */
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}
.scoreboard__team { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; min-width: 0; color: inherit; text-decoration: none; }
.scoreboard__name { font-weight: 800; font-stretch: 105%; font-size: var(--fs-md); line-height: 1.2; max-width: 100%; }
.scoreboard__record { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scoreboard .team-badge { width: clamp(44px, 14vw, 72px); height: auto; }
.scoreboard__center { min-width: 0; text-align: center; }
.scoreboard__foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.scoreboard__foot .chyron { white-space: normal; }
.scoreboard__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreboard { grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); }
.scoreboard__center { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.scoreboard__scores { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
.scoreboard__sep { color: var(--slate); font-size: 2rem; font-weight: 300; }
.scoreboard__status { font-size: var(--fs-sm); font-weight: 750; color: var(--mist); text-align: center; }
.scoreboard__countdown { display: flex; gap: var(--space-3); }
.scoreboard__countdown > div { display: flex; flex-direction: column; align-items: center; }
.scoreboard__countdown .t-eyebrow { font-size: .65rem; }
@media (max-width: 420px) { .scoreboard__team { container-type: inline-size; } .scoreboard__name { font-size: clamp(.75rem, 19cqi, var(--fs-sm)); font-stretch: 72%; } .scoreboard { gap: var(--space-2); } .scoreboard__countdown { gap: var(--space-2); } .scoreboard__countdown .score { font-size: 1.6rem; } }

/* Linescore (Punkte je Viertel) */
.linescore { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.linescore th, .linescore td { padding: 6px 8px; text-align: center; font-size: var(--fs-sm); }
.linescore th:first-child, .linescore td:first-child { text-align: left; }
.linescore thead th { color: var(--muted); font-weight: 650; font-size: var(--fs-xs); }
.linescore td:last-child { font-family: var(--font-score); font-stretch: 62%; font-weight: 900; font-size: 1.25rem; }

/* Spielzeile (GameRow) */
.game-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  color: inherit;
  text-decoration: none;
  position: relative;
}
.game-row__teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.game-row__team { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.game-row__name { font-weight: 700; font-size: var(--fs-md); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-row__score { margin-left: auto; font-size: 1.6rem; min-width: 2ch; text-align: right; }
.game-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.game-row__status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: var(--fs-xs); font-weight: 750; color: var(--mist); min-width: 64px; }
.game-row__team.is-loser { opacity: .55; }
a.game-row:hover { background: rgba(255, 255, 255, .03); color: inherit; }

/* Team-Zeile */
.team-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; color: inherit; text-decoration: none; }
.team-row__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.team-row__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row__meta { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row__trailing { margin-left: auto; flex: none; display: flex; align-items: center; gap: var(--space-2); }
.fav-star { color: var(--line); }

/* Spielfeld (Drive-Tracker, Playbook) */
.field-strip { width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; }
.field-strip text { font-family: var(--font-score); font-weight: 900; font-stretch: 70%; }
.field-svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--turf); }

/* Spieler-Initialen (statt Fotos) */
.avatar { display: inline-grid; place-items: center; flex: none; width: var(--size, 40px); height: var(--size, 40px); border-radius: 50%; background: linear-gradient(135deg, var(--team-1, var(--ink)), color-mix(in srgb, var(--team-1, var(--ink)) 50%, #000)); border: 1px solid rgba(255, 255, 255, .2); font-weight: 800; font-stretch: 90%; font-size: calc(var(--size, 40px) * .38); color: #fff; }

/* Kachel (Lernbereich, Hub) */
.tile { display: flex; flex-direction: column; gap: var(--space-2); min-height: 132px; }
.tile__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--sky); }
.tile__title { font-weight: 800; font-size: var(--fs-lg); font-stretch: 105%; }

/* 11 · Tabellen ----------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: inherit; }
.table-wrap:focus-visible { box-shadow: var(--focus); outline: 2px solid transparent; outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.table caption { text-align: left; padding: 0 0 var(--space-2); font-weight: 750; }
.table th, .table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; }
.table thead th { position: sticky; top: 0; z-index: 1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; background: var(--glass-bg-strong); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.table .num { text-align: right; }
.table .col-team { width: 100%; min-width: 140px; }
.table .rank { width: 2.5em; color: var(--muted); text-align: right; }
.table tr.is-favorite td { background: color-mix(in srgb, var(--sky) 9%, transparent); }
.table tr.is-leader td:first-child { box-shadow: inset 3px 0 0 var(--line); }
.table--compact th, .table--compact td { padding: 7px 8px; }
.table th button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.table th button.sort:focus-visible { box-shadow: var(--focus); border-radius: 4px; }
/* Spalten erst ab regulärer Breite */
@media (max-width: 640px) { .col-wide { display: none; } }
@media (max-width: 400px) { .col-xwide { display: none; } }

/* 12 · Zustände ----------------------------------------------------------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; padding: var(--space-7) var(--space-4); color: var(--muted); }
.state__icon { color: var(--slate); }
.state__title { color: #fff; font-weight: 800; font-size: var(--fs-lg); }
.state--error .state__icon { color: var(--loss); }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--sky); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, .07); border-radius: 8px; min-height: 1em; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton--line { height: 14px; margin-bottom: 10px; }
.skeleton--title { height: 26px; width: 60%; margin-bottom: 14px; }
.skeleton--block { height: 120px; border-radius: var(--radius); }
.skeleton--circle { border-radius: 50%; }

/* Spoilerschutz-Abdeckung */
.spoiler { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px dashed rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .25); color: var(--mist); font-size: var(--fs-xs); font-weight: 750; cursor: pointer; }
.spoiler:hover { background: rgba(255, 255, 255, .08); }
.spoiler:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }

.notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-border); font-size: var(--fs-sm); color: var(--muted); }
.notice--warn { border-color: color-mix(in srgb, var(--line) 40%, transparent); }

/* Hinweis „Daten: ESPN · ohne Gewähr“ */
.data-note { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em; }
.data-note a { color: inherit; }

/* Ansage für Screenreader (aria-live) */
.live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 13 · App-Rahmen (Web-App unter /app/) ----------------------------------- */
.skip-link { position: absolute; left: var(--space-3); top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--sky); color: #04121F; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: var(--space-3); }

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.app__header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 85%, transparent), color-mix(in srgb, var(--night) 55%, transparent));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.app__title { font-weight: 850; font-stretch: 110%; font-size: var(--fs-lg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.app__main { flex: 1; width: 100%; max-width: var(--content-max); margin-inline: auto; padding: var(--space-5) var(--gutter) calc(var(--tabbar-h) + var(--space-7) + env(safe-area-inset-bottom)); outline: none; }
.app__footer { padding: var(--space-5) var(--gutter) calc(var(--tabbar-h) + var(--space-5) + env(safe-area-inset-bottom)); text-align: center; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: var(--fs-lg); }
/* Schmale Displays: Seitentitel statt Markenname in der Kopfzeile (Logo bleibt) */
@media (max-width: 479px) { .app__header .brand__name { display: none; } }

/* Tab-Leiste: mobil unten (Glas), Desktop seitlich */
.tabbar {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 6px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--storm) 62%, transparent);
  border: 1px solid var(--glass-border-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.tabbar__list { display: contents; list-style: none; margin: 0; padding: 0; }
.tabbar__list > li { flex: 1; display: flex; }
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  border-radius: 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: .68rem;
  font-weight: 700;
  font-stretch: 100%;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: #fff; }
.tab[aria-current="page"] { color: var(--sky); background: rgba(255, 255, 255, .1); }
.tab:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
.tab .icon { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .app { padding-left: var(--rail-w); }
  .tabbar {
    left: 0;
    top: 0;
    bottom: 0;
    transform: none;
    width: var(--rail-w);
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: var(--space-5) var(--space-3);
    border-radius: 0;
    border-width: 0 1px 0 0;
    box-shadow: none;
    background: color-mix(in srgb, var(--night) 55%, transparent);
  }
  .tabbar__brand { display: flex !important; padding: 0 var(--space-3) var(--space-5); }
  .tabbar__list > li { flex: none; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 14px; }
  .tabbar__foot { display: block !important; margin-top: auto; padding: var(--space-3); }
  .app__main { padding-bottom: var(--space-7); }
  .app__footer { padding-bottom: var(--space-5); }
  .app__header .brand { display: none; }
}
.tabbar__brand, .tabbar__foot { display: none; }

/* Ansichts-Kopf */
.view-head { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.view-head__back { align-self: flex-start; }
.view { animation: view-in .35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 14 · Website-Kopf/-Fuß (Landing-Page) ---------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; display: flex; align-items: center; gap: var(--space-4); background: color-mix(in srgb, var(--night) 70%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-nav { display: flex; gap: var(--space-1); margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); padding: 8px 12px; border-radius: var(--radius-pill); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .site-nav .site-nav__secondary { display: none; } }
.site-footer { margin-top: var(--space-8); padding: var(--space-6) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--night) 70%, transparent); color: var(--muted); font-size: var(--fs-sm); }
.site-footer a { color: var(--mist); }
.disclaimer { font-size: var(--fs-xs); color: var(--muted); max-width: 80ch; line-height: 1.6; }

/* 15 · Hilfsklassen ------------------------------------------------------- */
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { width: var(--icon-size, 20px); height: var(--icon-size, 20px); display: inline-block; vertical-align: middle; flex: none; }
.icon--sm { --icon-size: 16px; }
.icon--lg { --icon-size: 28px; }
.icon--xl { --icon-size: 40px; }
.hidden, [hidden] { display: none !important; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.w-full { width: 100%; }
.divider { height: 1px; background: rgba(255, 255, 255, .08); margin: var(--space-3) 0; border: 0; }
.kbd { font: 600 .8em/1 var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--glass-border-strong); background: rgba(255,255,255,.06); }
.color-win { color: var(--win); } .color-loss { color: var(--loss); } .color-line { color: var(--line); } .color-live { color: var(--live); }

/* 16 · Bewegung ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot { animation: none; }
  .skeleton::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Druck: hell und ohne Glas */
@media print {
  body { background: #fff; color: #000; }
  .backdrop, body.has-backdrop::before, body.has-backdrop::after, .tabbar, .app__header, .site-header { display: none !important; }
  .card { background: none; border-color: #ccc; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
