/* Synka — generated from tokens.json */
:root, [data-theme="light"] {
  --bg: #f3f5f4; /* Seitengrund der App und der Website. */
  --surface: #ffffff; /* Karten, Felder, Kopfzeile, Tab-Leiste auf `bg`. */
  --surface-2: #e8eeeb; /* Ruhige Fläche: Segment-Grund, Tabellenkopf, neutrale Hinweise, Hover von Geisterknöpfen. */
  --line: #d2dbd7; /* Haarlinien: Kartenrand, Trenner in Listen und Tabellen. Dekorativ, trägt keine Bedeutung. */
  --line-strong: #7a8a84; /* Rand von Eingabefeldern, Sekundärknöpfen, Segmenten, Auswahlfeldern. 3.3:1 auf `bg`, 3.6:1 auf `surface` (dunkel 4.4:1 / 4.0:1): erfüllt 3:1 für Bedienelemente. */
  --ink: #0e1b17; /* Titel, Zahlen, Text in Feldern. Auf `bg`, `surface`, `surface-2` und allen `-soft`-Flächen, mind. 13:1. */
  --ink-2: #243330; /* Fliesstext in Karten und Mitteilungen auf `bg` und `surface`. */
  --muted: #4a5a55; /* Sekundärtext: Ort, Uhrzeit-Zusatz, Unterzeilen, Fusszeile. Auf `bg`, `surface`, `surface-2` mind. 6:1. */
  --faint: #62716c; /* Tertiärtext und Platzhalter, nur ab 13px. Auf `bg` und `surface` mind. 4.6:1. */
  --brand: #1f6f5c; /* Synka-Grün als Fläche: Hauptknopf, aktiver Tab, Zusage, Logo. Text darauf `on-brand`. Im Hellen dieselbe Farbe wie das Logo. */
  --brand-strong: #185a4b; /* Hover und gedrückt für `brand`-Flächen; `on-brand` darauf mind. 8:1. */
  --brand-text: #1f6f5c; /* Grün als Schrift: Links, aktive Navigation, «Zugesagt». 5.5:1 auf `bg`, 6.0:1 auf `surface`, 5.0:1 auf `brand-soft` (dunkel mind. 6:1). */
  --brand-soft: #dcefe9; /* Heller Grüngrund: ausgewählte Zeile, Bestätigungs-Hinweis, eigene Antwort in Umfragen. Text `ink` oder `brand-text`. */
  --on-brand: #ffffff; /* Text und Icons auf `brand` und `brand-strong` (hell 6.0:1, dunkel 8.7:1). */
  --signal: #f2b33d; /* Bernstein als Fläche: Frist läuft ab, ungelesen-Punkt, «Offen». Nie als Schrift auf hell; Text darauf `on-signal`. */
  --signal-soft: #fdf1d8; /* Heller Bernsteingrund für «Offen» und Fristen-Hinweise; Text `signal-text` oder `ink`. */
  --signal-text: #7a5208; /* Bernstein als Schrift auf `signal-soft`, `surface` und `bg`, mind. 6:1. */
  --on-signal: #0e1b17; /* Text und Icons auf `signal` (mind. 9:1 in beiden Themen). */
  --danger: #c03a26; /* Fläche für zerstörerische Bestätigung («Konto löschen») und Fehler-Punkt. Text darauf `on-danger`. */
  --danger-strong: #9e2e1d; /* Hover und gedrückt für `danger`-Flächen. */
  --danger-text: #a8321f; /* Fehler und «Abgesagt» als Schrift auf `danger-soft`, `surface`, `bg`; mind. 5.6:1. */
  --danger-soft: #fbe6e1; /* Heller Grund für Fehlermeldungen, ungültige Importzeilen und «Abgesagt». */
  --on-danger: #ffffff; /* Text auf `danger` und `danger-strong`. */
  --club: var(--brand); /* Vereinsfarbe. Standard ist `brand`; der Verein setzt sie in den Einstellungen. Nur für Vereinsstreifen, Vereinsabzeichen und Team-Chips, nie für Status oder Text. */
  --on-club: var(--on-brand); /* Text auf `club`. Die App wählt Weiss oder `ink`, je nachdem, was mehr Kontrast gibt (mind. 4.5:1). */
  --yes: var(--brand); /* Status «Zugesagt» als Fläche (mit Haken-Icon und Wort). Text darauf `on-brand`. */
  --no: var(--danger-soft); /* Status «Abgesagt» als Fläche (mit Kreuz-Icon und Wort). Text darauf `danger-text`. Zu `yes` mind. 5:1 Helligkeitsunterschied, also auch ohne Farbsehen unterscheidbar. */
  --open: var(--signal-soft); /* Status «Offen» als Fläche (mit Fragezeichen-Icon und Wort). Text darauf `signal-text`. */
  --focus: #1f6f5c; /* Fokusring 2px, 2px Abstand. Mind. 3:1 auf `bg`, `surface`, `surface-2` in beiden Themen. Auf `brand`-Flächen `ink`. */
  --scrim: rgba(14, 27, 23, .48); /* Abdunkelung hinter Dialogen und Bottom-Sheets. */
  --shadow-1: 0 1px 2px rgba(14, 27, 23, .06), 0 1px 1px rgba(14, 27, 23, .04); /* Karten und Felder, die aufliegen. */
  --shadow-2: 0 12px 32px -12px rgba(14, 27, 23, .28); /* Schwebende Flächen: Bottom-Sheet, Menü, Toast. */
}
[data-theme="dark"] {
  --bg: #0e1513;
  --surface: #161f1c;
  --surface-2: #1e2926;
  --line: #2b3834;
  --line-strong: #6d7f79;
  --ink: #edf3f0;
  --ink-2: #d0dbd7;
  --muted: #a0aeaa;
  --faint: #8a9893;
  --brand: #6fc9b0;
  --brand-strong: #8ad6bf;
  --brand-text: #7dd3ba;
  --brand-soft: #173a32;
  --on-brand: #062019;
  --signal: #f5c160;
  --signal-soft: #3a2e14;
  --signal-text: #f5c870;
  --on-signal: #0e1b17;
  --danger: #ff8a73;
  --danger-strong: #ffa592;
  --danger-text: #ff9884;
  --danger-soft: #3d1d17;
  --on-danger: #2a0b05;
  --club: var(--brand);
  --on-club: var(--on-brand);
  --yes: var(--brand);
  --no: var(--danger-soft);
  --open: var(--signal-soft);
  --focus: #8ad6bf;
  --scrim: rgba(0, 0, 0, .64);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, .6);
}
:root {
  --space-1: 4px; /* Icon zu Zähler, Segment-Innenrand. */
  --space-2: 8px; /* Label zu Feld, Icon zu Text, Chip-Lücke. */
  --space-3: 12px; /* Lücke zwischen Karten in Listen, Knopf-Reihen. */
  --space-4: 16px; /* Seitenrand Telefon, Karten-Innenabstand. */
  --space-5: 20px; /* Innenabstand grosser Karten, Dialoge. */
  --space-6: 24px; /* Abstand zwischen Abschnitten in einer Ansicht. */
  --space-8: 32px; /* Seitenrand ab 720px, Spaltenlücke. */
  --space-10: 40px; /* Vor einem neuen Bereich der Website. */
  --space-16: 64px; /* Vertikaler Sektionsabstand der Website. */
  --container: 1120px; /* Maximale Inhaltsbreite Website und Verwaltung. */
  --container-app: 640px; /* Maximale Breite der Teamansichten (Termine, Umfragen) auf grossen Bildschirmen. */
  --container-text: 640px; /* Maximale Breite von Fliesstext (rund 65 Zeichen). */
  --container-form: 440px; /* Login, Einladung, schmale Formulare. */
  --radius-xs: 4px; /* Fortschrittsbalken, Markierungen. */
  --radius-s: 8px; /* Eingabefelder, Tags-eckig, Tooltips. */
  --radius-m: 12px; /* Knöpfe, Alerts, kleine Kacheln. */
  --radius-l: 16px; /* Karten (Termin, Umfrage, Mitteilung), Tabellen-Rahmen. */
  --radius-xl: 24px; /* Bottom-Sheet und Dialoge (obere Ecken auf dem Telefon). */
  --radius-pill: 9999px; /* Chips, Segmente, Zähler-Badges, Zusage-Umschalter. */
  --radius-round: 50%; /* Avatare, Icon-Knöpfe, Punkte. */
  --size-tap: 48px; /* Mindestgrösse jeder Tippfläche (WCAG 2.5.8 übertroffen). */
  --size-button: 48px; /* Knöpfe und Eingabefelder. */
  --size-button-sm: 36px; /* Kleine Knöpfe; die Tippfläche bleibt über Abstand mind. 44px. */
  --size-appbar: 56px; /* Höhe der Kopfzeile. */
  --size-tabbar: 64px; /* Höhe der Tab-Leiste unten (plus Safe Area). */
  --size-avatar: 40px; /* Avatar in Listen. */
  --size-avatar-sm: 28px; /* Avatar in Stapeln und Tabellen. */
  --size-icon: 20px; /* Icons in Knöpfen und Listen. */
  --size-dot: 8px; /* Ungelesen- und Status-Punkt. */
  --font-display: Archivo, ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display-xl: 800 56px/0.98 var(--font-display); /* Hero der Website; clamp(2.4rem, 7vw, 3.5rem), Breite 112 (`.wide`). */
  --text-title-1: 800 30px/1.1 var(--font-display); /* H1 einer App-Ansicht, Sektionstitel der Website; Breite 112. */
  --text-title-2: 750 22px/1.2 var(--font-display); /* H2: Abschnitte, Dialogtitel, Kartentitel gross. */
  --text-title-3: 700 18px/1.3 var(--font-display); /* H3: Termin-, Umfrage- und Mitteilungstitel in Karten. */
  --text-number-xl: 800 40px/1 var(--font-display); /* Grosse Zahlen: Zusagen, Kennzahlen. tabular-nums. */
  --text-number: 700 20px/1 var(--font-display); /* Uhrzeit und Datum in Terminkarten, Zähler. tabular-nums. */
  --text-overline: 700 12px/1.33 var(--font-display); /* Versalien-Überzeile: Wochentag, Terminart, Tabellenkopf. */
  --text-lead: 400 19px/1.55 var(--font-sans); /* Lead unter dem Hero, `ink-2`, max. `container-text`. */
  --text-prose: 400 17px/1.6 var(--font-sans); /* Lange Texte: Trainingsinhalte, Mitteilungen, Website. */
  --text-body: 400 16px/1.5 var(--font-sans); /* Standardtext der App. */
  --text-body-strong: 600 16px/1.5 var(--font-sans); /* Namen in Listen, hervorgehobene Werte. */
  --text-small: 400 14px/1.43 var(--font-sans); /* Nebentext, Hinweise unter Feldern, Metadaten. */
  --text-label: 600 14px/1.43 var(--font-sans); /* Formular-Labels, Tabs, Chips. */
  --text-caption: 400 13px/1.38 var(--font-sans); /* Bildunterschrift, Fusszeile, Zeitstempel. Mind. 13px. */
  --text-button: 600 16px/1.25 var(--font-sans); /* Knopf 48px. */
  --text-button-sm: 600 14px/1.29 var(--font-sans); /* Knopf 36px. */
  --text-micro: 600 12px/1.33 var(--font-sans); /* Tags, Zähler-Badges, Sprachumschalter. */
  --text-mono: 400 14px/1.43 var(--font-mono); /* Codes, Links zum Kopieren, Importfehler-Spalten. */
}
.display-xl {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.title-1 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.title-2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0;
}
.title-3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
.number-xl {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
.number {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}
.overline {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.33;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.lead {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.prose {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.body-strong {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 600;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: 0;
}
.button {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}
.button-sm {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.29;
  font-weight: 600;
  letter-spacing: 0;
}
.micro {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.33;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 400;
  letter-spacing: 0;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0e1513;
  --surface: #161f1c;
  --surface-2: #1e2926;
  --line: #2b3834;
  --line-strong: #6d7f79;
  --ink: #edf3f0;
  --ink-2: #d0dbd7;
  --muted: #a0aeaa;
  --faint: #8a9893;
  --brand: #6fc9b0;
  --brand-strong: #8ad6bf;
  --brand-text: #7dd3ba;
  --brand-soft: #173a32;
  --on-brand: #062019;
  --signal: #f5c160;
  --signal-soft: #3a2e14;
  --signal-text: #f5c870;
  --on-signal: #0e1b17;
  --danger: #ff8a73;
  --danger-strong: #ffa592;
  --danger-text: #ff9884;
  --danger-soft: #3d1d17;
  --on-danger: #2a0b05;
  --club: var(--brand);
  --on-club: var(--on-brand);
  --yes: var(--brand);
  --no: var(--danger-soft);
  --open: var(--signal-soft);
  --focus: #8ad6bf;
  --scrim: rgba(0, 0, 0, .64);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* Synka – Bausteine für Website und App. Werte kommen aus tokens.css; hier nur Bausteine.
   Archivo (breit, Achse wdth) ruft: Titel und Zahlen. Hanken Grotesk spricht: Text, Knöpfe, Labels.
   Dunkel über [data-theme="dark"] auf <html>; die App setzt es aus prefers-color-scheme oder der Profilwahl.
   Vereinsfarbe über --club / --on-club am Element .club-scope (Standard: Synka-Grün). */

body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, .tabular { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.wide { font-variation-settings: "wdth" 112; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[lang] { hyphens: auto; -webkit-hyphens: auto; }
.wrap { max-width: calc(var(--container) + 2 * var(--space-4)); margin: 0 auto; padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); box-sizing: border-box; }
@media (min-width: 720px) { .wrap { max-width: calc(var(--container) + 2 * var(--space-8)); padding-left: max(var(--space-8), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-8), env(safe-area-inset-right, 0px)); } }
.stack { display: grid; gap: var(--space-3); }
.ico { width: var(--size-icon); height: var(--size-icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typo-Helfer ---------- */
.t-display { font: 800 clamp(2.4rem, 7vw, 3.5rem)/.98 var(--font-display); font-variation-settings: "wdth" 112; letter-spacing: -.01em; text-wrap: balance; }
.t-title-1 { font: var(--text-title-1); font-variation-settings: "wdth" 112; letter-spacing: -.005em; text-wrap: balance; }
.t-title-2 { font: var(--text-title-2); text-wrap: balance; }
.t-title-3 { font: var(--text-title-3); }
.t-overline { font: var(--text-overline); letter-spacing: .12em; text-transform: uppercase; }
.t-lead { font: var(--text-lead); color: var(--ink-2); max-width: var(--container-text); }
.prose { font: var(--text-prose); color: var(--ink-2); max-width: var(--container-text); }
.prose > * + * { margin-top: var(--space-3); }
.prose a, a.link { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.muted { color: var(--muted); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-button); padding: 0 20px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: var(--radius-m);
  font: var(--text-button); text-decoration: none; cursor: pointer; user-select: none; white-space: nowrap;
  background: var(--brand); color: var(--on-brand);
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: var(--on-danger); }
.btn.danger:hover { background: var(--danger-strong); }
.btn.sm { min-height: var(--size-button-sm); padding: 0 14px; font: var(--text-button-sm); border-radius: var(--radius-s); }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: var(--radius-round); border: 2px solid currentColor; border-right-color: transparent; animation: synka-spin .8s linear infinite; }
.btn:not(.secondary):not(.ghost):focus-visible { outline-color: var(--ink); }
[data-theme="dark"] .btn:not(.secondary):not(.ghost):focus-visible { outline-color: var(--focus); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
@keyframes synka-spin { to { transform: rotate(360deg); } }

.icon-btn { width: var(--size-tap); height: var(--size-tap); display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-round); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn.outline { border: 1px solid var(--line-strong); color: var(--ink); }

/* ---------- Kopfzeile der App ---------- */
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar::before { content: ""; display: block; height: 4px; background: var(--club); }
.appbar .bar { display: flex; align-items: center; gap: var(--space-2); min-height: var(--size-appbar); padding: 0 max(var(--space-2), env(safe-area-inset-right, 0px)) 0 max(var(--space-4), env(safe-area-inset-left, 0px)); }
.appbar .team-switch { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-tap); padding: 0 var(--space-2) 0 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; min-width: 0; }
.appbar .team-switch .t { display: grid; min-width: 0; }
.appbar .team-switch .team { font: 800 18px/1.15 var(--font-display); font-variation-settings: "wdth" 112; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .team-switch .club-name { font: var(--text-caption); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .spacer { flex: 1; }
.appbar .icon-btn { position: relative; }
.appbar .icon-btn .dot { position: absolute; top: 11px; right: 11px; width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-round); background: var(--signal); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Vereinsabzeichen ---------- */
.club-badge { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: var(--radius-m); background: var(--club); color: var(--on-club); font: 800 14px/1 var(--font-display); font-variation-settings: "wdth" 112; letter-spacing: .02em; overflow: hidden; }
.club-badge img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.club-badge.lg { width: 56px; height: 56px; font-size: 20px; border-radius: var(--radius-l); }
.team-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: var(--radius-pill); background: var(--surface-2); font: var(--text-label); color: var(--ink); }
.team-chip::before { content: ""; width: 20px; height: 20px; border-radius: var(--radius-round); background: var(--club); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- Tab-Leiste unten ---------- */
.tabbar { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: var(--size-tabbar); padding: 0 2px; color: var(--muted); text-decoration: none; font: 600 12px/1.2 var(--font-sans); text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.tabbar a .ico { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--brand-text); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar .count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--signal); color: var(--on-signal); font: 700 11px/18px var(--font-display); font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .tabbar { position: static; grid-template-columns: none; grid-auto-flow: row; border-top: 0; border-right: 1px solid var(--line); padding: var(--space-3); gap: 2px; align-content: start; }
  .tabbar a { grid-template-columns: 24px 1fr; justify-items: start; min-height: 44px; padding: 0 12px; border-radius: var(--radius-m); font-size: 15px; gap: 12px; }
  .tabbar a[aria-current="page"] { background: var(--brand-soft); }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar .count { position: static; justify-self: end; grid-column: 3; } }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-4); box-shadow: var(--shadow-1); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-strong); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin: var(--space-6) 0 var(--space-3); }
.section-head h2 { font: var(--text-title-2); }

/* ---------- Termin ---------- */
.event { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3) var(--space-4); }
.event .date { display: grid; align-content: start; justify-items: center; padding-top: 2px; text-align: center; }
.event .date .dow { font: var(--text-overline); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event .date .day { font: 800 30px/1 var(--font-display); font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; color: var(--ink); }
.event .date .mon { font: var(--text-caption); color: var(--muted); }
.event .body { min-width: 0; display: grid; gap: 4px; }
.event .kind { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.event h3 { font: var(--text-title-3); color: var(--ink); overflow-wrap: anywhere; }
.event .meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); font: var(--text-small); color: var(--muted); }
.event .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event .meta .ico { width: 16px; height: 16px; }
.event .time { font: 700 16px/1.5 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.event .foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.event.cancelled h3 { text-decoration: line-through; color: var(--muted); }
.event.game { border-color: var(--line-strong); }

/* ---------- Zu-/Absage ---------- */
.rsvp { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); }
.rsvp button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: var(--text-button-sm); cursor: pointer; }
.rsvp button .ico { width: 18px; height: 18px; }
.rsvp button:hover { background: var(--surface); }
.rsvp button[aria-pressed="true"].yes { background: var(--yes); color: var(--on-brand); }
.rsvp button[aria-pressed="true"].no { background: var(--no); color: var(--danger-text); box-shadow: inset 0 0 0 1px var(--danger-text); }
.rsvp.block { display: grid; width: 100%; box-sizing: border-box; }
.rsvp-reason { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.deadline { display: inline-flex; align-items: center; gap: 6px; font: var(--text-small); color: var(--muted); }
.deadline.soon { color: var(--signal-text); }
.deadline.soon::before { content: ""; width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-round); background: var(--signal); }
.deadline.closed { color: var(--muted); }

/* ---------- Status-Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font: var(--text-micro); letter-spacing: .02em; white-space: nowrap; }
.tag .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.tag.yes { background: var(--yes); color: var(--on-brand); }
.tag.no { background: var(--no); color: var(--danger-text); }
.tag.open { background: var(--open); color: var(--signal-text); }
.tag.brand { background: var(--brand-soft); color: var(--brand-text); }
.tag.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.tag.caps { text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Zusagen-Übersicht ---------- */
.tally { display: grid; gap: var(--space-3); }
.tally .nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); }
.tally .big { font: var(--text-number-xl); font-family: var(--font-display); font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; color: var(--ink); }
.tally .big small { font-size: 20px; color: var(--muted); font-weight: 700; }
.tally .legend { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bar { display: flex; height: 10px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-2); gap: 2px; }
.bar span { display: block; height: 100%; }
.bar .y { background: var(--yes); }
.bar .n { background: var(--danger-text); }
.bar .o { background: var(--signal); }
.roster { list-style: none; padding: 0; display: grid; }
.roster li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); min-height: 56px; border-bottom: 1px solid var(--line); }
.roster li:last-child { border-bottom: 0; }
.roster .who { min-width: 0; display: grid; }
.roster .who b { font: var(--text-body-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .who span { font: var(--text-small); color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Avatar ---------- */
.avatar { position: relative; width: var(--size-avatar); height: var(--size-avatar); flex: none; display: inline-grid; place-items: center; border-radius: var(--radius-round); background: var(--surface-2); color: var(--ink); font: 700 15px/1 var(--font-display); font-variation-settings: "wdth" 112; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: var(--radius-round); object-fit: cover; }
.avatar .nr { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-pill); background: var(--club); color: var(--on-club); font: 800 10px/18px var(--font-display); text-align: center; box-shadow: 0 0 0 2px var(--surface); font-variant-numeric: tabular-nums; }
.avatar.sm { width: var(--size-avatar-sm); height: var(--size-avatar-sm); font-size: 12px; }
.avatars { display: flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ---------- Umfrage ---------- */
.poll fieldset { border: 0; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); min-width: 0; }
.poll legend { padding: 0; font: var(--text-title-3); color: var(--ink); margin-bottom: var(--space-2); }
.option { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-tap); padding: 10px 14px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); cursor: pointer; font: var(--text-body); color: var(--ink); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.results { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.result { display: grid; gap: 6px; }
.result .row { display: flex; justify-content: space-between; gap: var(--space-3); font: var(--text-body); }
.result .row b { font: 700 16px/1.5 var(--font-display); font-variant-numeric: tabular-nums; }
.result .track { height: 8px; border-radius: var(--radius-xs); background: var(--surface-2); overflow: hidden; }
.result .track span { display: block; height: 100%; background: var(--brand); border-radius: var(--radius-xs); }
.result .mine-label { color: var(--brand-text); font-weight: 600; }
.poll .locked { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-3); padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-2); font: var(--text-small); color: var(--muted); }

/* ---------- Mitteilung ---------- */
.notice { display: grid; gap: var(--space-2); }
.notice .head { display: flex; align-items: center; gap: var(--space-3); }
.notice .head .who { display: grid; min-width: 0; }
.notice .head .who b { font: var(--text-body-strong); }
.notice .head .who span { font: var(--text-caption); color: var(--muted); }
.notice h3 { font: var(--text-title-3); }
.notice .text { font: var(--text-body); color: var(--ink-2); overflow-wrap: anywhere; }
.notice.unread { border-color: var(--line-strong); }
.notice.unread .head::after { content: ""; margin-left: auto; width: var(--size-dot); height: var(--size-dot); flex: none; border-radius: var(--radius-round); background: var(--signal); }
.notice.pinned { background: var(--brand-soft); border-color: transparent; }
.read-receipt { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font: var(--text-caption); color: var(--muted); }

/* ---------- Trainingsinhalt ---------- */
.drill { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.drill .min { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--surface-2); text-align: center; }
.drill .min b { font: 800 20px/1 var(--font-display); font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; }
.drill .min span { font: 600 10px/1 var(--font-sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.drill h3 { font: var(--text-title-3); }
.drill p { font: var(--text-body); color: var(--ink-2); margin-top: 2px; }
.drill .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }
.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline > li { position: relative; padding: 0 0 var(--space-4) 0; }
.timeline > li + li::before { content: ""; position: absolute; left: 25px; top: -16px; height: 16px; width: 2px; background: var(--line); }

/* ---------- Formular ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font: var(--text-label); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { display: block; width: 100%; box-sizing: border-box; min-height: var(--size-button); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--font-sans); }
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field .hint { font: var(--text-small); color: var(--muted); }
.field.error .input, .field.error .select, .field.error .textarea { border-color: var(--danger-text); box-shadow: inset 0 0 0 1px var(--danger-text); }
.field.error .hint { display: flex; gap: 6px; color: var(--danger-text); font-weight: 600; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; min-height: var(--size-tap); padding-top: 12px; box-sizing: border-box; font: var(--text-body); color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.form { max-width: var(--container-form); display: grid; gap: var(--space-5); }

/* ---------- Segment ---------- */
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface-2); }
.segmented button, .segmented a { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font: var(--text-label); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.segmented [aria-current], .segmented [aria-pressed="true"], .segmented [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-strong); }
.segmented.sm button, .segmented.sm a { min-height: 28px; padding: 0 10px; font: var(--text-micro); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Hinweis ---------- */
.alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-m); background: var(--surface-2); color: var(--ink); font: var(--text-body); }
.alert .ico { margin-top: 2px; }
.alert b { font-weight: 600; }
.alert.success { background: var(--brand-soft); }
.alert.success .ico { color: var(--brand-text); }
.alert.warning { background: var(--signal-soft); }
.alert.warning .ico { color: var(--signal-text); }
.alert.error { background: var(--danger-soft); color: var(--ink); }
.alert.error .ico, .alert.error b { color: var(--danger-text); }
.toast { position: fixed; left: 50%; bottom: calc(var(--size-tabbar) + var(--space-3) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-3); max-width: min(480px, calc(100% - 32px)); padding: 12px 16px; border-radius: var(--radius-m); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font: var(--text-body); z-index: 50; }
.toast .btn.ghost { color: var(--bg); min-height: 36px; padding: 0 10px; }

/* ---------- Leerzustand ---------- */
.empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-10) var(--space-4); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-l); }
.empty .ico { width: 32px; height: 32px; color: var(--muted); stroke-width: 1.5; }
.empty h3 { font: var(--text-title-3); }
.empty p { font: var(--text-body); color: var(--muted); max-width: 36ch; }
.empty .actions { margin-top: var(--space-2); justify-content: center; }

/* ---------- Tabelle (Verwaltung, Import) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font: var(--text-body); }
.table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 10px 14px; font: var(--text-overline); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.invalid td { background: var(--danger-soft); }
.table tr.invalid td.err { color: var(--danger-text); font-weight: 600; }
.table tr:hover td { background: var(--bg); }
.table tr.invalid:hover td { background: var(--danger-soft); }
.table .mono, .mono { font: var(--text-mono); }

/* ---------- Bottom-Sheet / Dialog ---------- */
.sheet-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88dvh; overflow: auto; background: var(--surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--space-2) max(var(--space-5), env(safe-area-inset-right, 0px)) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)) max(var(--space-5), env(safe-area-inset-left, 0px)); box-shadow: var(--shadow-2); }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto var(--space-4); border-radius: var(--radius-pill); background: var(--line-strong); }
.sheet h2 { font: var(--text-title-2); }
@media (min-width: 720px) { .sheet { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 64px)); border-radius: var(--radius-xl); padding: var(--space-6); } .sheet::before { display: none; } }

/* ---------- Website ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--font-display); font-variation-settings: "wdth" 118; letter-spacing: -.01em; }
.logo img, .logo svg { width: 36px; height: 36px; display: block; }
.site-footer { margin-top: var(--space-16); padding: var(--space-6) 0 calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font: var(--text-caption); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Website synka.team – Layout auf Basis des Design Systems «Synka» (tokens.css, bundle.css). */

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-m); background: var(--ink); color: var(--bg); font: var(--text-label); text-decoration: none; }
.skip:focus { top: 12px; }

.site-header .end { display: flex; align-items: center; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: var(--space-10); align-items: center; padding-block: var(--space-10) var(--space-16); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: var(--space-16); } }
.hero .copy { display: grid; gap: var(--space-5); min-width: 0; }
.kicker { font: var(--text-label); color: var(--brand-text); }
.hero h1 { color: var(--ink); }
.hero .actions { margin-top: var(--space-2); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); font: var(--text-small); color: var(--muted); }
.status::before { content: ""; width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-round); background: var(--signal); flex: none; }

/* Bühne: echte Bausteine statt Screenshots */
.stage { position: relative; display: grid; gap: var(--space-3); justify-items: stretch; max-width: 460px; width: 100%; margin-inline: auto; }
.stage .card { box-shadow: var(--shadow-2); }
.stage .tally-mini { margin-left: var(--space-10); }
@media (max-width: 480px) { .stage .tally-mini { margin-left: var(--space-4); } }
.stage .tally .big { font-size: 32px; }
.stage .rsvp button { cursor: default; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-16); border-top: 1px solid var(--line); }
.section > .wrap > header { display: grid; gap: var(--space-3); max-width: var(--container-text); margin-bottom: var(--space-8); }
.section h2 { color: var(--ink); }

.features { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: grid; grid-template-rows: auto 1fr; gap: var(--space-4); padding: var(--space-5); }
.feature .demo { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-m); background: var(--bg); border: 1px solid var(--line); min-height: 132px; }
.feature h3 { font: var(--text-title-2); color: var(--ink); }
.feature p { margin-top: var(--space-2); color: var(--ink-2); font: var(--text-body); }
.feature .demo .option { min-height: 40px; padding: 6px 12px; cursor: default; }
.feature .demo .notice .text { font: var(--text-small); }

.grid-2 { display: grid; gap: var(--space-6) var(--space-8); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.point { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.point .ico { width: 24px; height: 24px; color: var(--brand-text); margin-top: 2px; }
.point h3 { font: var(--text-title-3); color: var(--ink); }
.point p { margin-top: 4px; color: var(--ink-2); font: var(--text-body); }

/* ---------- Kontakt ---------- */
.contact-band { display: grid; gap: var(--space-4); padding: var(--space-8); border-radius: var(--radius-l); background: var(--brand); color: var(--on-brand); }
.contact-band h2 { color: var(--on-brand); }
.contact-band p { max-width: var(--container-text); font: var(--text-lead); }
.contact-band .btn { background: var(--surface); color: var(--ink); justify-self: start; }
.contact-band .btn:hover { background: var(--bg); }
.contact-band :focus-visible { outline-color: var(--on-brand); }
.contact-band .mail { font: var(--text-body-strong); }

/* ---------- Rechtliche Seiten ---------- */
.doc { padding-block: var(--space-10) var(--space-16); }
.doc h1 { margin-bottom: var(--space-2); }
.doc .updated { color: var(--muted); font: var(--text-small); margin-bottom: var(--space-8); }
.doc section + section { margin-top: var(--space-8); }
.doc h2 { font: var(--text-title-2); color: var(--ink); margin-bottom: var(--space-2); }

.site-footer { margin-top: 0; }
.bar .w78 { width: 77.8%; }
.bar .w11 { width: 11.1%; }
body > .wrap, main .wrap, .site-footer .wrap { width: 100%; }
.feature .demo { justify-items: start; }
.feature .demo .option, .feature .demo .rsvp { justify-self: stretch; }

.mark-bg { fill: var(--brand); }
.mark-s { fill: none; stroke: var(--on-brand); stroke-width: 6; stroke-linecap: round; }
