/* Selbst gehostete Schriften (PR-Review 2026-11-05, Priorität 6): vorher per <link> von
   fonts.googleapis.com/fonts.gstatic.com geladen - dabei übertrug jeder Seitenaufruf die
   IP-Adresse der besuchenden Person an Google, noch bevor irgendein Einwilligungsmechanismus
   existiert (siehe docs/dsgvo-vorbereitung.md). Die Dateien liegen jetzt unter public/fonts/
   (SIL Open Font License 1.1, siehe dortige OFL-Inter.txt/OFL-Oswald.txt - die OFL erlaubt
   ausdrücklich das Bündeln/Weiterverteilen der Schriftdateien mit Software, solange sie nicht
   einzeln verkauft werden). Nur die Unicode-Teilmenge "latin" (U+0000-00FF u. a.) wurde
   benötigt - deutsche Umlaute/ß liegen vollständig darin (ä=U+00E4, ö=U+00F6, ü=U+00FC,
   ß=U+00DF), "latin-ext" (zusätzliche mittel-/osteuropäische Zeichen) und alle anderen
   Sprach-Teilmengen (kyrillisch, griechisch, vietnamesisch) wurden bewusst weggelassen -
   kleinere Dateien, ohne für diese deutschsprachige Anwendung etwas zu verlieren. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/inter-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/oswald-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/oswald-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/oswald-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Helferelf-Markenpalette (verbindlich, siehe docs/audit-redesign-2026-11-04.md) */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F6F8;
  --line: #E2E8ED;
  --text: #263746;
  --muted: #5C6B78;
  --accent: #43B52F;
  /* accent-ink/warn-ink minimal darken (PR-Review 2026-11-05, Priorität 1.4 "Kontraste"):
     die vorherigen Werte (#2E8A1F / #B4530C) lagen bei Weiß-auf-Farbe bzw. Text-auf-Soft-Fläche
     rechnerisch knapp unter dem WCAG-AA-Mindestkontrast 4,5:1 (u. a. 4,40 bzw. 3,93/4,37) -
     per Python/WCAG-Formel nachgerechnet, keine geschätzten Werte. Beide hier um das jeweils
     rechnerisch nötige Minimum abgedunkelt (neu: 5,12 bzw. 4,57/4,52), optisch kaum sichtbar. */
  --accent-ink: #2A7E1C;
  --accent-soft: #E8F6E4;
  --warn-ink: #B0510B;
  --warn-soft: #FBEDE0;
  --danger-ink: #B3261E;
  --danger-soft: #FBEAE9;
  --navy: #082F55;
  --navy-2: #0F3F70;
  --on-navy: rgba(255, 255, 255, .68);
  --on-navy-strong: #FFFFFF;
  --bronze: #A9633A;
  --bronze-soft: #F3E3D7;
  --silver: #74808A;
  --silver-soft: #ECEFF1;
  --gold: #AD8A1E;
  --gold-soft: #FBF1D8;
  --platinum: #4A5BA6;
  --platinum-soft: #E7E9F7;
  /* 2026-11-13 Gestaltung: keine weichen Schatten in Ruhe - Karten liegen mit einer feinen Linie
     auf der Fläche. Nur schwebende Dinge (Menüs, Fenster) werfen einen Schatten. */
  --shadow-sm: none;
  --shadow-md: none;
  --line-strong: #C9D3DB;
  --shadow-lg: 0 14px 34px rgba(18, 23, 20, .12), 0 4px 10px rgba(18, 23, 20, .06);
  /* 2026-11-13 Gestaltung: eine Eckenfamilie - 6 px für Karten, Fenster und Flächen, 4 px für
     Knöpfe, Felder und Chips. Rund bleiben nur Profilbilder, Punkte und Farbmuster. */
  --radius: 6px;
  --radius-sm: 4px;
  --r-sm: 4px;
  --display: "Oswald", system-ui, "Segoe UI", sans-serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
a { color: var(--accent-ink); }

/* ---------- App-Shell ---------- */
.shell {
  max-width: 560px; margin: 0 auto;
  padding: 0 16px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.shell.no-tabbar { padding-bottom: 40px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; flex: none; }
.brand .mark { color: var(--accent); }
.brand svg { width: 24px; height: 24px; }
/* PR-Review 2026-11-05, Priorität 1.1: echtes Helferelf-Logo (public/assets/logo-mark.png)
   statt des zuvor selbst gezeichneten Kreis-Icons - niemals gestreckt/verzerrt/eingefärbt. */
.brand-logo-mark { height: 30px; width: auto; object-fit: contain; flex: none; display: block; }
.topbar-title { font-size: .84rem; color: var(--muted); font-weight: 600; text-align: right; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--muted); }
/* Modul 12 (Notfallglocke): aktiver Zustand des Push-An-/Abmelden-Buttons im Topbar. */
.icon-btn.active { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Icons (minimalistische Linien-Icons, passend zum Logo-Stil) ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-flip { transform: scaleX(-1); }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 10px; }
.card-tap { cursor: pointer; transition: border-color .12s, background-color .12s; }
.card-tap:hover { border-color: var(--line-strong); }
.card-tap:active { background: var(--surface-2); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
/* PR-Review 2026-11-05, Priorität 1.5 "Weniger Versalien, keine übertriebenen
   Buchstabenabstände": Überschriften lesen sich jetzt in normaler Groß-/Kleinschreibung,
   Hierarchie kommt über Größe/Gewicht statt über Versalien. */
.section-head h2 { font-size: 1.08rem; font-weight: 700; }
.hint { font-size: .78rem; color: var(--muted); }

.type-badge {
  /* Versalien hier bewusst beibehalten (kurzes Badge-Label, keine Überschrift) - aber
     Buchstabenabstand gedämpft (PR-Review 2026-11-05, Priorität 1.5). */
  font-size: .75rem; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--r-sm); padding: 2px 7px; display: inline-block;
}
.pill { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-sm); white-space: nowrap; display: inline-block; }
.pill.open { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.full { background: var(--accent-soft); color: var(--accent-ink); }
.pill.replacement_needed { background: var(--warn-soft); color: var(--warn-ink); }
.pill.closed, .pill.archived { background: #ECECEC; color: #555; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .92rem; letter-spacing: .005em; border-radius: var(--r-sm); padding: .66rem 1.1rem; min-height: 44px;
  border: 1px solid transparent; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn svg { flex: none; }
/* PR-Review 2026-11-05, Priorität 1.4 "Kontraste": Weiß auf der Markenfarbe Grün
   (#43B52F) hatte rechnerisch nur 2,66:1 - deutlich unter dem WCAG-AA-Mindestkontrast
   4,5:1 (per Python/WCAG-Formel nachgerechnet). Dunkler Text auf demselben Grün erreicht
   4,59:1. Ein dunkler Button-Text auf kräftigem Grün ist zudem ein etabliertes Muster
   (vergleichbar mit anderen Marken, die aus genau diesem Kontrastgrund auf Grün dunklen statt
   weißen Text setzen), keine Verlegenheitslösung. Der Hover-Zustand verändert deshalb bewusst
   NICHT mehr die Hintergrundfarbe (jede Abdunkelung von #43B52F drückt den Kontrast sofort
   wieder unter 4,5:1), sondern nur die Erhebung (Schatten) - dieselbe Hover-Sprache wie bei
   .card-tap weiter oben. */
.btn-primary { background: var(--accent); color: var(--on-accent, var(--text)); border-color: color-mix(in srgb, var(--accent) 80%, #000); }
.btn-primary:hover { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.btn-primary:active { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: color-mix(in srgb, var(--navy) 40%, var(--line)); }
.btn-ghost:hover { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 4%, var(--surface)); }
.btn-danger { background: var(--surface); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger-ink) 45%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger-ink); }
.btn-block { width: 100%; }
.btn-sm { padding: .44rem .8rem; font-size: .84rem; min-height: 36px; }
/* display:inline-flex oben würde das hidden-Attribut sonst überstimmen. */
.btn[hidden] { display: none !important; }

label { display: block; font-size: .82rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .92rem; padding: .62rem .72rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); box-shadow: none; }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.msg { font-size: .86rem; border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; display: flex; gap: 8px; align-items: flex-start; }
.msg svg { flex: none; margin-top: 1px; }
.msg.error { background: var(--danger-soft); color: var(--danger-ink); }
.msg.success { background: var(--accent-soft); color: var(--accent-ink); }
.msg.info { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
/* Modul 12 (Notfallglocke): Dringlichkeitsstufe "dringend" - zwischen info (neutral) und
   error (notfall), reuse der bestehenden Warn-Tokens statt neuer Ad-hoc-Farben. */
.msg.warn { background: var(--warn-soft); color: var(--warn-ink); }

.empty { font-size: .86rem; color: var(--muted); padding: 10px 2px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-state .icon-lg { margin: 0 auto 10px; color: var(--line); width: 40px; height: 40px; }
.empty-state p { font-size: .88rem; }
.demo-note { font-size: .75rem; color: var(--muted); margin-top: 16px; }

.helper-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.helper-chip { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 10px; }

.sponsor-plate {
  display: flex; align-items: center; gap: 12px; background: var(--navy);
  border-radius: var(--radius); padding: 14px 16px; color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-md);
}
a.sponsor-plate { text-decoration: none; cursor: pointer; }
.sponsor-plate .crest { width: 44px; height: 44px; border-radius: var(--r-sm); background: #fff; color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.sponsor-plate .logo { width: 44px; height: 44px; border-radius: var(--r-sm); background: #fff; object-fit: contain; padding: 4px; flex: none; }
.sponsor-plate .eyebrow { display: block; font-size: .75rem; color: var(--on-navy); }
.sponsor-plate strong { display: block; font-size: 1rem; }

/* ---------- Weitere Sponsoren (Modul 10: Platzierung Premium/Standard) ---------- */
.sponsor-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.sponsor-chip {
  display: flex; align-items: center; gap: 8px; flex: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 14px 6px 6px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
}
.sponsor-chip .logo { width: 26px; height: 26px; border-radius: 999px; object-fit: contain; background: var(--surface-2); flex: none; }
.sponsor-chip .initials {
  width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none;
}
.sponsor-chip .name { font-size: .78rem; font-weight: 600; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: .76rem; }

.token-box {
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-all;
}

/* ---------- Dashboard-Kennzahlen ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.stat-tile .icon { color: var(--accent-ink); margin-bottom: 8px; }
.stat-tile.warn .icon { color: var(--warn-ink); }
.stat-tile .stat-value { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-tile .stat-label { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.stat-tile.card-tap:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* ---------- Avatare, Rangliste & Abzeichen ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 700; font-size: .86rem; color: #fff; background: var(--muted);
}
.avatar-sm { width: 28px; height: 28px; font-size: .75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }

.badge-tier { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: var(--r-sm); letter-spacing: .02em; }
.badge-tier svg { width: 13px; height: 13px; }
.badge-tier.bronze { background: var(--bronze-soft); color: var(--bronze); }
.badge-tier.silber { background: var(--silver-soft); color: var(--silver); }
.badge-tier.gold { background: var(--gold-soft); color: var(--gold); }
.badge-tier.platin { background: var(--platinum-soft); color: var(--platinum); }

.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin-bottom: 14px; }
.podium-slot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.podium-slot .avatar { margin-bottom: 6px; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.podium-slot .podium-name { font-size: .8rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-slot .podium-points { font-size: .75rem; color: var(--muted); }
.podium-base { width: 100%; border-radius: var(--r-sm) 10px 0 0; margin-top: 8px; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-family: var(--display); font-weight: 700; color: #fff; }
.podium-slot.rank-1 .avatar { width: 64px; height: 64px; font-size: 1.2rem; background: var(--gold); }
.podium-slot.rank-1 .podium-base { height: 72px; background: linear-gradient(180deg, var(--gold), #8a6c12); }
.podium-slot.rank-2 .avatar { background: var(--silver); }
.podium-slot.rank-2 .podium-base { height: 52px; background: linear-gradient(180deg, var(--silver), #4d555c); }
.podium-slot.rank-3 .avatar { background: var(--bronze); }
.podium-slot.rank-3 .podium-base { height: 40px; background: linear-gradient(180deg, var(--bronze), #7a4323); }

.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row .rank-num { width: 22px; flex: none; text-align: center; font-weight: 700; color: var(--muted); font-size: .86rem; }
.rank-row .rank-info { flex: 1; min-width: 0; }
.rank-row .rank-name { font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.rank-row .rank-meta { font-size: .76rem; color: var(--muted); margin-top: 1px; }
.rank-row .rank-points { font-family: var(--display); font-weight: 700; font-size: 1rem; flex: none; text-align: right; min-width: 40px; }
.rank-row.me { background: var(--accent-soft); border-radius: var(--r-sm); margin: 0 -10px; padding: 10px; }
.rank-row.me + .rank-row { border-top: none; }

.progress-track { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }

/* ---------- Skelett-Ladezustand ---------- */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.skeleton { background: var(--surface-2); border-radius: var(--r-sm); animation: skeleton-pulse 1.1s ease-in-out infinite; }
.skeleton-card { height: 84px; border-radius: var(--radius); margin-bottom: 10px; }
.skeleton-line { height: 12px; margin-bottom: 8px; }

/* ---------- Toast-Benachrichtigungen ---------- */
#toastHost { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: calc(560px - 32px); width: calc(100% - 32px);
  background: var(--text); color: #fff; border-radius: var(--radius); padding: 11px 14px; font-size: .86rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: toast-in .2s ease-out;
}
.toast.success { background: var(--accent-ink); }
.toast.error { background: var(--danger-ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Nav-Zeile (Unterreiter innerhalb eines Bereichs) ---------- */
.nav-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.nav-row button { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 14px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--muted); }
.nav-row button.active { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft); font-weight: 600; }

/* ---------- QR-/Einladungslink-Karte ---------- */
.invite-card { text-align: center; }
.invite-card .qr-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: inline-block; margin: 10px auto; }
.invite-card .qr-wrap svg { display: block; width: 168px; height: 168px; }
.link-pill {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 6px 8px 14px; font-size: .82rem; margin-top: 10px;
}
.link-pill span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-pill button { flex: none; }

/* ---------- Zusage/Absage/Krank-Übersicht (Training/Spiele, Modul 6) ---------- */
.attend-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.attend-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600;
  padding: 4px 10px 4px 8px; border-radius: var(--r-sm);
}
.attend-badge .icon { width: 15px; height: 15px; }
.attend-badge.confirmed { background: var(--accent-soft); color: var(--accent-ink); }
.attend-badge.declined { background: var(--surface-2); color: var(--muted); }
.attend-badge.sick { background: var(--warn-soft); color: var(--warn-ink); }

.session-type-badge { display: inline-flex; align-items: center; gap: 4px; }
.session-type-badge.spiel { color: var(--navy); background: #E7ECF7; }

/* ---------- Kader (Modul 6) ---------- */
.squad-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.squad-row + .squad-row { border-top: 1px solid var(--line); }
.squad-row .squad-name { font-weight: 600; font-size: .92rem; flex: 1; min-width: 0; }
.role-chip { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); letter-spacing: .02em; white-space: nowrap; }
.role-chip.trainer { background: var(--platinum-soft); color: var(--platinum); }
.role-chip.spieler { background: var(--accent-soft); color: var(--accent-ink); }
.role-chip.removed { background: var(--danger-soft); color: var(--danger-ink); }
.squad-row .squad-actions { display: flex; gap: 6px; flex: none; }

/* ---------- Kalender (Modul 6) ---------- */
.cal-upcoming-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.cal-upcoming-row + .cal-upcoming-row { border-top: 1px solid var(--line); }
.cal-date-chip {
  flex: none; width: 46px; text-align: center; background: var(--surface-2); border-radius: var(--r-sm); padding: 6px 2px;
  font-family: var(--display);
}
.cal-date-chip .cal-day-num { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.cal-date-chip .cal-month-abbr { font-size: .75rem; color: var(--muted); }
.cal-upcoming-row .cal-info { flex: 1; min-width: 0; }
.cal-upcoming-row .cal-title { font-weight: 600; font-size: .9rem; }
.cal-upcoming-row .cal-meta { font-size: .76rem; color: var(--muted); margin-top: 1px; }

.cal-month-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.cal-month-head h2 { font-size: 1.05rem; font-family: var(--display); }
.cal-month-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekday { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .8rem; position: relative;
}
.cal-day.outside { opacity: .35; }
.cal-day.today { border-color: var(--accent); border-width: 2px; font-weight: 700; }
.cal-day .cal-dot-row { display: flex; gap: 2px; position: absolute; bottom: 4px; }
.cal-day .cal-dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.cal-day .cal-dot.spiel { background: var(--navy); }
.cal-day .cal-dot.event { background: var(--gold); }
.cal-day-detail { margin-top: 12px; }

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cal-day { font-size: .75rem; }
}

/* ---------- Öffentliche Einzelansichten auf dem Desktop ---------- */
@media (min-width: 900px) {
  /* PR-Review 2026-11-05, Priorität 1.9/1.3: die VIER öffentlichen Ansichten
     (Helfer/Spieler/Trainer/Eltern, alle ".shell.no-tabbar") sind einfache, einzweckige
     Link-Ansichten ohne Seitenleiste - nur eine breitere, weiterhin einspaltige Inhaltsfläche
     statt max-width:560px mit riesigen leeren Rändern. */
  .shell.no-tabbar { max-width: 720px; padding-left: 24px; padding-right: 24px; }
}

/* ---------- Fokuszustände (Priorität 1.9 "Tastaturbedienbarkeit/Fokuszustände") ---------- */
/* Eingabefelder haben bereits einen eigenen, markenfarbigen :focus-Stil weiter oben; dies
   ergänzt sichtbare, konsistente Fokusringe für alles andere Interaktive, das sich bisher nur
   auf den unstylten Browser-Standard verlassen hat. */
a:focus-visible,
button:focus-visible,
.icon-btn:focus-visible,
.btn:focus-visible,
.sponsor-chip:focus-visible,
a.sponsor-plate:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduzierte Bewegung (Priorität 1.9) ---------- */
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .toast { animation: none; }
  .app-sidebar, .app-overlay { transition: none; animation: none; }
  .card-tap, .btn, .icon-btn, .progress-fill { transition: none; }
}

/* =====================================================================================
   Modul 17 (2026-11-06): App-Shell der Organisator-App (public/appshell.js)
   Desktop ab 900 px: dauerhafte, gruppierte Seitenleiste (Navy, weiße Schrift, aktive
   Seite dezent grün). Smartphone: dieselbe Liste als Schublade über den Menü-Knopf.
   Ersetzt die frühere untere Tab-Leiste + "Mehr"-Sheet vollständig.
   ===================================================================================== */
:root { --sidebar-w: 264px; }
.app-shell { min-height: 100%; }
.app-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, var(--sidebar-w)); z-index: 50;
  background: var(--navy); color: var(--on-navy-strong);
  display: flex; flex-direction: column;
  padding: 18px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .2s ease-out, visibility 0s linear .2s;
}
.app-shell.drawer-open .app-sidebar { transform: none; visibility: visible; transition: transform .2s ease-out; box-shadow: var(--shadow-lg); }
.app-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(8, 20, 35, .45); }
.app-overlay[hidden] { display: none; }
.app-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 14px; border-bottom: 1px solid var(--navy-2); }
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-brand-logo { height: 34px; width: auto; flex: none; background: #fff; border-radius: var(--r-sm); padding: 2px 4px; }
.app-brand-text { display: flex; flex-direction: column; min-width: 0; }
.app-brand-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; color: #fff; }
.app-brand-name .mark { color: var(--accent); }
.app-brand-club { font-size: .78rem; color: var(--on-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-drawer-close { background: none; border: none; color: var(--on-navy-strong); width: 40px; height: 40px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.app-drawer-close:hover { background: var(--navy-2); }
.app-nav { flex: 1; padding-top: 6px; }
.app-nav-group { margin-top: 14px; }
.app-nav-heading {
  font-family: var(--body-font); font-size: .75rem; font-weight: 700;
  color: var(--on-navy); padding: 0 12px 6px; margin: 0;
}
.app-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--on-navy-strong); text-decoration: none; font-size: .9rem; font-weight: 500; min-height: 40px;
}
.app-nav-item .icon { color: var(--on-navy); width: 19px; height: 19px; }
.app-nav-item:hover { background: var(--navy-2); }
.app-nav-item.active { background: color-mix(in srgb, var(--accent) 22%, var(--navy)); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.app-nav-item.active .icon { color: var(--accent); }
.app-nav-item.danger { color: #FFD9D6; }
.app-nav-item.danger .icon { color: #FFB4AD; }
.app-nav-item:focus-visible, .app-drawer-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.app-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 14px; border-top: 1px solid var(--navy-2); }
.app-user-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--navy-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.app-user-text { display: flex; flex-direction: column; min-width: 0; }
.app-user-name { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-role { font-size: .75rem; color: var(--on-navy); }

.app-main { min-width: 0; }
.app-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-left: max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.app-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px;
  font: inherit; font-size: .84rem; font-weight: 600; color: var(--text); cursor: pointer; min-height: 40px;
}
.app-topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar-club { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-page-title { font-size: 1.12rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.app-role-chip {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 3px 9px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink);
}
.app-topbar-actions .app-role-chip { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.app-content { max-width: 960px; padding: 16px 16px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#view:focus { outline: none; }

@media (min-width: 900px) {
  .app-sidebar { transform: none; visibility: visible; width: var(--sidebar-w); transition: none; }
  .app-drawer-close, .app-menu-btn { display: none; }
  .app-topbar-club { display: none; } /* steht auf dem Desktop schon in der Seitenleiste */
  .app-overlay { display: none; }
  .app-main { margin-left: var(--sidebar-w); }
  .app-topbar { padding: 14px 32px; }
  .app-content { padding: 22px 32px 56px; }
  body:has(.app-shell:not([hidden])) #toastHost { left: var(--sidebar-w); }
}
@media (max-width: 420px) {
  .app-menu-btn span { display: none; }
  .app-topbar-actions .app-role-chip { display: none; }
}

/* ---------- Dashboard & neue Übersichten (Modul 17) ---------- */
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-hello { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-section .section-head { margin-top: 20px; }
.dash-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 0;
  background: none; border: none; font: inherit; color: inherit; cursor: pointer;
}
.dash-row + .dash-row, .dash-row-static + .dash-row-static, .dash-row + .dash-row-static { border-top: 1px solid var(--line); }
.dash-row:hover .dash-row-title { color: var(--accent-ink); }
.dash-row.dash-row-static, .dash-row-static { cursor: default; }
.dash-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-row-title { font-weight: 600; font-size: .92rem; }
.dash-row-meta { font-size: .78rem; color: var(--muted); }
.dash-row .chev { color: var(--muted); }
.dash-line { padding: 7px 0; font-size: .9rem; }
.dash-line + .dash-line { border-top: 1px solid var(--line); }
.dash-empty { color: var(--muted); font-size: .9rem; padding: 4px 0; }
.card-warn { border-color: color-mix(in srgb, var(--warn-ink) 35%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 45%, var(--surface)); }
.stat-tap { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: box-shadow .15s, border-color .15s; }
.stat-tap:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
@media (min-width: 900px) { .dash-section .stat-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-order { display: flex; flex-direction: column; gap: 2px; }
.team-order .icon-btn { width: 26px; height: 26px; font-size: 12px; }
.team-name { font-family: var(--body-font); font-size: 1rem; font-weight: 700; }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.invite-result { margin-top: 12px; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.link-row + .link-row { border-top: 1px solid var(--line); }
.link-row.revoked { opacity: .6; }
.link-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.shift-line { padding: 10px 0; }
.shift-line + .shift-line { border-top: 1px solid var(--line); }
.shift-line-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.push-setting { display: flex; align-items: center; gap: 14px; }
.table-scroll { overflow-x: auto; padding: 0; }
.perm-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 640px; }
.perm-table th, .perm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.perm-table th { font-size: .75rem; color: var(--muted); font-weight: 700; }
.perm-table tr.perm-group td { background: var(--surface-2); font-weight: 700; font-size: .75rem; color: var(--muted); }
.perm-api { font-size: .75rem; margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.perm.yes .icon { color: var(--accent-ink); width: 16px; height: 16px; }
.perm.no { color: var(--line); font-weight: 700; }

/* ---------- Link-Ansichten auf der App-Shell (Modul 18) ---------- */
.app-nav-count {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent, var(--navy)); font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.lead { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.lead strong { color: var(--text); }
.focus-card {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); padding: 16px; margin-bottom: 14px;
}
.focus-card .kicker { font-size: .75rem; font-weight: 700; color: var(--accent-ink); }
.focus-card h3 { font-family: var(--body-font); font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.focus-card .hint { margin-top: 2px; }
.focus-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.focus-grid > * { margin: 0; }
@media (min-width: 700px) { .focus-grid { grid-template-columns: 1fr 1fr; } }
.status-seg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.status-seg .btn { flex: 1 1 0; min-width: 0; }
.btn.is-current { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); font-weight: 700; }
.me-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.me-line strong { color: var(--text); }
.me-line > span { flex: 1 1 auto; min-width: 0; }
.me-line > .icon { flex: none; }
.btn-link { background: none; border: none; padding: 0; color: var(--accent-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.name-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.name-form .field { flex: 1 1 200px; margin: 0; }
.readonly-note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.link-section + .link-section { margin-top: 22px; }
.sponsor-foot { margin-top: 28px; }
.past-list summary { cursor: pointer; color: var(--muted); font-size: .86rem; padding: 6px 0; }
a.btn { text-decoration: none; }

/* ======================================================================
   Nächste Phase (2026-11-07): Kalender, Detail-Fenster, untere Leiste,
   große Rückmelde-Knöpfe, Saisonplanung.
   Regeln: Tippziele mind. 44 px, Symbole immer mit Text, Farbe nie allein
   (Terminart steht zusätzlich als Wort da, "Fällt aus" als Text).
   ====================================================================== */
:root {
  --kind-training: #2A7E1C; --kind-training-soft: #E8F6E4;
  --kind-spiel: #082F55;    --kind-spiel-soft: #E3EAF2;
  --kind-event: #8A6A0E;    --kind-event-soft: #FBF1D8;
}

/* ---------- Kalender ---------- */
.cal { margin-bottom: 18px; }
.cal-views { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; gap: 2px; margin-bottom: 12px; }
.cal-view-btn { font: inherit; font-weight: 600; font-size: .88rem; border: none; background: none; color: var(--muted); border-radius: var(--r-sm); padding: .5rem 1rem; min-height: 40px; cursor: pointer; }
.cal-view-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cal-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin: 0; min-width: 0; }
.cal-nav-btn { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.cal-nav-btn:hover { border-color: var(--muted); }
.cal-today-btn { min-height: 44px; }
.cal-month { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-weekdays span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 8px 0; }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell {
  font: inherit; color: var(--text); background: var(--surface); border: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 92px; padding: 6px 5px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; cursor: pointer; text-align: left; min-width: 0;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.outside { background: var(--surface-2); color: var(--muted); }
.cal-cell.outside .cal-chip { opacity: .6; }
.cal-cell-num { font-size: .86rem; font-weight: 600; width: 28px; height: 28px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; }
.cal-cell.today .cal-cell-num { background: var(--navy); color: #fff; }
.cal-cell.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: flex; gap: 4px; align-items: baseline; font-size: .75rem; line-height: 1.25; padding: 2px 5px; border-radius: var(--r-sm); border-left: 3px solid; min-width: 0; overflow: hidden; }
.cal-chip-time { font-weight: 700; flex: none; }
.cal-chip-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-chip.kind-training { background: var(--kind-training-soft); border-color: var(--kind-training); color: var(--kind-training); }
.cal-chip.kind-spiel { background: var(--kind-spiel-soft); border-color: var(--kind-spiel); color: var(--kind-spiel); }
.cal-chip.kind-event { background: var(--kind-event-soft); border-color: var(--kind-event); color: var(--kind-event); }
.cal-chip.is-cancelled { background: #F1F1F1; border-color: #9AA3AB; color: #6B7680; text-decoration: line-through; }
.cal-more { font-size: .75rem; font-weight: 700; color: var(--muted); padding-left: 4px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); margin: 10px 2px 0; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-swatch.kind-training { background: var(--kind-training); }
.cal-swatch.kind-spiel { background: var(--kind-spiel); }
.cal-swatch.kind-event { background: var(--kind-event); }
.cal-swatch.cancelled { background: repeating-linear-gradient(45deg, #9AA3AB 0 2px, #E4E7EA 2px 4px); }
.cal-day-panel { margin-top: 16px; }
.cal-day-panel-title, .cal-list-date { font-family: var(--body-font); font-size: 1rem; font-weight: 700; margin: 0 0 8px; text-transform: none; }
.cal-today-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--navy); border-radius: var(--r-sm); padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.cal-item-list { display: flex; flex-direction: column; gap: 8px; }
.cal-item {
  font: inherit; color: var(--text); width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 12px 12px; min-height: 64px;
}
.cal-item:hover { border-color: var(--muted); }
.cal-item.kind-training { border-left-color: var(--kind-training); }
.cal-item.kind-spiel { border-left-color: var(--kind-spiel); }
.cal-item.kind-event { border-left-color: var(--kind-event); }
.cal-item.is-cancelled { background: #F7F7F7; border-left-color: #9AA3AB; }
.cal-item.is-cancelled .cal-item-title { text-decoration: line-through; color: var(--muted); }
.cal-item-time { font-weight: 700; font-size: 1rem; min-width: 46px; }
.cal-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cal-item-kind { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.cal-item.kind-training .cal-item-kind { color: var(--kind-training); }
.cal-item.kind-spiel .cal-item-kind { color: var(--kind-spiel); }
.cal-item.kind-event .cal-item-kind { color: var(--kind-event); }
.cal-item-title { font-weight: 600; font-size: .96rem; overflow-wrap: anywhere; }
.cal-item-meta { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.cal-item-go { color: var(--muted); flex: none; }
.cal-badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-sm); white-space: nowrap; flex: none; background: var(--surface-2); color: var(--muted); }
.cal-badge.cancelled { background: #ECECEC; color: #555; }
.cal-badge.ok { background: var(--accent-soft); color: var(--accent-ink); }
.cal-badge.no { background: #ECECEC; color: #444; }
.cal-badge.sick { background: var(--warn-soft); color: var(--warn-ink); }
.cal-empty { color: var(--muted); font-size: .88rem; margin: 4px 2px; }
.cal-day-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.cal-week { display: flex; flex-direction: column; gap: 10px; }
.cal-week-day { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.cal-week-day.today { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.cal-week-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-week-wd { font-weight: 700; width: 26px; }
.cal-week-num { color: var(--muted); font-size: .86rem; }
.cal-list-group + .cal-list-group { margin-top: 14px; }
@media (max-width: 640px) {
  /* Smartphone: Monatsraster bleibt lesbar - statt abgeschnittener Texte farbige Balken,
     die Details stehen im Tagesbereich darunter. */
  .cal-cell { min-height: 58px; padding: 4px 2px; align-items: center; gap: 3px; }
  .cal-cell-num { align-self: center; width: 26px; height: 26px; font-size: .82rem; }
  .cal-cell-items { width: 100%; align-items: center; }
  .cal-chip { width: 80%; height: 5px; padding: 0; border-left: none; border-radius: 3px; }
  .cal-chip > * { display: none; }
  .cal-chip.kind-training { background: var(--kind-training); }
  .cal-chip.kind-spiel { background: var(--kind-spiel); }
  .cal-chip.kind-event { background: var(--kind-event); }
  .cal-chip.is-cancelled { background: repeating-linear-gradient(90deg, #9AA3AB 0 3px, #E4E7EA 3px 6px); }
  .cal-more { font-size: .75rem; padding: 0; }
  .cal-views { display: flex; }
  .cal-view-btn { flex: 1; }
}

/* ---------- Detail-Fenster (public/sheet.js) ---------- */
body.sheet-open { overflow: hidden; }
.sheet-host { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 35, .5); }
.sheet {
  position: relative; background: var(--surface); width: 100%; max-height: 92vh; overflow-y: auto; outline: none;
  border-radius: var(--radius) 20px 0 0; box-shadow: var(--shadow-lg); padding: 6px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  animation: sheet-in .18s ease-out;
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; background: var(--surface); padding: 10px 0; z-index: 1; }
.sheet-title { font-family: var(--display); font-size: 1.25rem; margin: 0; min-width: 0; }
.sheet-close { font: inherit; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
@media (min-width: 700px) {
  .sheet-host { align-items: center; }
  .sheet { width: min(620px, 92vw); border-radius: var(--radius); padding: 6px 24px 24px; }
}
.detail-facts { display: grid; gap: 10px; margin: 4px 0 14px; }
.detail-fact { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.detail-fact .icon { color: var(--muted); margin-top: 2px; }
.detail-fact strong { display: block; }
.detail-fact .sub { color: var(--muted); font-size: .86rem; }
.cancel-banner { display: flex; gap: 10px; align-items: flex-start; background: #F1F1F1; border: 1px solid #D5D9DD; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; font-weight: 600; }

/* ---------- Große Rückmelde-Knöpfe (Kinder/Spieler) ---------- */
.answer-now { font-size: 1.02rem; margin: 10px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.answer-now .pill { font-size: .86rem; padding: 5px 12px; }
.answer-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.answer-btn {
  font: inherit; font-weight: 700; font-size: .95rem; min-height: 64px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; cursor: pointer; text-align: center; line-height: 1.15;
}
.answer-btn .icon { width: 24px; height: 24px; }
/* 2026-11-13: gewählte Antwort voll eingefärbt - auf einen Blick erkennbar, auch draußen bei Sonne. */
.answer-btn.yes.is-current { background: var(--accent); border-color: color-mix(in srgb, var(--accent) 75%, #000); color: var(--on-accent, var(--text)); }
.answer-btn.no.is-current { background: #3A444E; border-color: #2E363E; color: #fff; }
.answer-btn.sick.is-current { background: var(--warn-soft); border-color: var(--warn-ink); color: var(--warn-ink); }
.answer-btn:disabled { opacity: .6; cursor: wait; }
.answer-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.answer-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.next-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; margin-bottom: 14px; border-left: 3px solid var(--kind-training); }
.next-card.kind-spiel { border-left-color: var(--kind-spiel); }
.next-card.is-cancelled { border-left-color: #9AA3AB; }
.next-card .kicker { font-size: .78rem; font-weight: 700; color: var(--muted); }
.next-card h2 { font-family: var(--body-font); font-size: 1.3rem; font-weight: 700; margin: 4px 0 10px; text-transform: none; }
.next-when { font-size: 1.15rem; font-weight: 700; }
.next-sub { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.who-btn { font: inherit; font-weight: 600; min-height: 52px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; padding: 8px 10px; text-align: left; overflow-wrap: anywhere; }
.who-btn:hover { border-color: var(--accent-ink); }

/* ---------- Untere Leiste (Link-Ansichten auf dem Smartphone) ---------- */
.app-bottombar { display: none; }
@media (max-width: 899px) {
  .app-shell.has-bottombar .app-menu-btn { display: none; }
  .app-shell.has-bottombar .app-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .app-shell.has-bottombar .app-bottombar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(18, 23, 20, .06); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.app-shell.has-bottombar) #toastHost { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
.app-bottom-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.1; padding: 4px 2px; }
.app-bottom-item .icon { width: 24px; height: 24px; }
.app-bottom-item.active { color: var(--navy); background: var(--accent-soft); }
.app-bottom-item.active .icon { color: var(--accent-ink); }
.app-bottom-item:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.app-bottom-item .app-nav-count { margin: 0; position: absolute; transform: translate(14px, -16px); }

/* ---------- Saisonplanung ---------- */
.weekday-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekday-btn { font: inherit; font-weight: 700; min-height: 48px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.weekday-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink); }
.slot-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.slot-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface-2); }
.slot-row-title { font-weight: 700; margin-bottom: 6px; }
.slot-row .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-row .field { margin-bottom: 6px; }
.plan-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); margin-bottom: 12px; }
.plan-step h3 { font-family: var(--body-font); font-size: 1rem; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; text-transform: none; }
.plan-step-num { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--navy); color: #fff; font-size: .82rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pause-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.pause-row .field { margin: 0; }
.pause-row .pause-label { grid-column: 1 / -1; }
.preview-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.preview-stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--surface); }
.preview-stat strong { display: block; font-size: 1.4rem; font-family: var(--display); }
.preview-stat span { font-size: .8rem; color: var(--muted); }
.preview-stat.warn { border-color: #EBC9A8; background: var(--warn-soft); }
.preview-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.preview-month { position: sticky; top: 0; background: var(--surface-2); font-weight: 700; font-size: .82rem; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.preview-row { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.preview-row:last-child { border-bottom: none; }
.preview-row .tnum { min-width: 98px; }
.preview-row .pill { margin-left: auto; }
.series-card { border: 1px solid var(--line); border-left: 5px solid var(--kind-training); border-radius: var(--radius); padding: 14px; background: var(--surface); margin-bottom: 12px; }
.series-card h3 { font-family: var(--body-font); font-size: 1.05rem; font-weight: 700; margin: 0; text-transform: none; }
.series-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.series-slot { background: var(--kind-training-soft); color: var(--kind-training); font-weight: 600; font-size: .84rem; border-radius: var(--r-sm); padding: 4px 9px; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.series-actions .btn { min-height: 44px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; font-weight: 600; margin: 0; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent-ink); }
.choice .sub { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); }
.action-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.action-stack .btn { min-height: 50px; justify-content: flex-start; }

/* ---------- Vereinfachte Vorlagen (2026-11-08): Aufgabe + Anzahl Personen ---------- */
.task-rows-head { font-family: var(--body-font); font-size: 1rem; font-weight: 600; margin: 14px 0 2px; }
.task-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 6px; margin: 8px 0; background: var(--surface); }
.task-row-main { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem auto; gap: 8px; align-items: end; }
.task-row-main .field { margin-bottom: 0; }
.task-row-remove { min-width: 44px; min-height: 44px; justify-content: center; }
.task-row-time { margin-top: 6px; }
.task-row-time summary { cursor: pointer; font-size: 0.875rem; color: var(--muted, #5b6670); padding: 6px 0; min-height: 32px; }
.task-row-time .hint { margin: 0 0 6px; }
@media (max-width: 480px) {
  .task-row-main { grid-template-columns: minmax(0, 1fr) 6.5rem auto; }
  .task-row-main label { font-size: 0.8125rem; }
}
.task-summary { list-style: none; margin: 8px 0 0; padding: 0; }
.task-summary li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.task-summary li:first-child { border-top: 0; }
.task-summary-title { font-weight: 600; }
.task-summary-needed { font-variant-numeric: tabular-nums; }
.task-summary .hint { margin: 0; flex-basis: 100%; }

/* ---------- Helfen: Mannschaften abonnieren + Hilfe-Bedarf (2026-11-08) ---------- */
.help-event-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; }
.help-event-head h3 { font-family: var(--body-font); font-size: 1rem; font-weight: 600; margin: 0; }
.follow-badge { display: inline-flex; align-items: center; gap: 4px; }
.follow-badge .icon { width: 14px; height: 14px; }
.help-shifts { list-style: none; margin: 8px 0 0; padding: 0; }
.help-shift { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.help-shift-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-shift-title { font-weight: 600; }
.help-shift-free { font-size: .875rem; color: var(--text); }
.help-shift-free.is-urgent { color: var(--danger-ink); font-weight: 600; }
.help-join { min-height: 44px; }
.help-shift-mine { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) { .help-join { width: 100%; } }
.follow-list { border: 0; margin: 0; padding: 0; min-width: 0; }
.follow-list legend { font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: 4px; }
.follow-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--line); cursor: pointer; }
.follow-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent-ink); }
.follow-row.is-own { cursor: default; color: var(--muted); }
.follow-row.is-own .icon { width: 20px; height: 20px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini-row-icon .icon { width: 20px; height: 20px; }
.mini-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-row.is-cancelled .mini-row-main strong { text-decoration: line-through; }

/* ---------- Stern-Abo: Mannschaftsliste + Übersicht (2026-11-08, Nachtrag) ---------- */
.team-follow-card { padding: 4px 12px; }
.team-follow-list { list-style: none; margin: 0; padding: 0; }
.team-follow-row { display: flex; align-items: center; gap: 10px; min-height: 60px; border-top: 1px solid var(--line); }
.team-follow-row:first-child { border-top: 0; }
.team-follow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding: 8px 0; text-align: left; }
.team-follow-name { font-weight: 600; color: var(--text); }
.team-follow-main .hint { margin: 0; }
.team-follow-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-sm); }
.team-follow-open .team-follow-name, .team-follow-open .hint { grid-column: 1; }
.team-follow-chev { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); }
.team-follow-open:hover .team-follow-name { text-decoration: underline; }
.team-follow-own { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.star-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); cursor: pointer; }
.star-btn .icon { width: 22px; height: 22px; }
.star-btn:hover { border-color: #C9A227; color: #8A6A0E; }
.star-btn[aria-pressed="true"] { background: #FBF1D8; border-color: #C9A227; color: #8A6A0E; }
.star-btn[aria-pressed="true"] .icon { fill: #E0B528; }
.star-btn:focus-visible, .team-follow-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.team-sheet-head { font-family: var(--body-font); font-size: 1rem; font-weight: 600; margin: 14px 0 6px; }
.team-sched { list-style: none; margin: 0 0 10px; padding: 0; }
.team-sched-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.team-sched-row:first-child { border-top: 0; }
.team-sched-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); min-width: 8rem; }
.team-sched-kind .icon { width: 14px; height: 14px; }
.team-sched-kind.kind-training { background: var(--kind-training-soft); color: var(--kind-training); }
.team-sched-kind.kind-spiel { background: var(--kind-spiel-soft); color: var(--kind-spiel); }
.team-sched-kind.kind-event { background: var(--kind-event-soft); color: var(--kind-event); }
.team-sched-main { display: flex; flex-direction: column; min-width: 0; }
.team-sched-main .hint { margin: 0; }
.team-sched-row.is-cancelled strong { text-decoration: line-through; }
.team-sched-off { color: var(--danger-ink); font-size: .85rem; font-weight: 600; }
.help-event { padding: 8px 0; border-top: 1px solid var(--line); }

/* Store-Release (2026-11): Datenschutzinformation, Kontolöschung, Offline-Hinweis, Safe-Area. */
.legal-page { background: var(--bg); }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px calc(48px + env(safe-area-inset-bottom)); color: var(--text); line-height: 1.55; }
.legal h1 { font-family: var(--display); color: var(--navy); font-size: 1.7rem; margin: 8px 0 12px; }
.legal h2 { font-size: 1.1rem; color: var(--navy); margin: 24px 0 8px; }
.legal-draft { background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--radius-sm); padding: 12px 14px; }
.legal-check { color: var(--warn-ink); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.legal .check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 12px; }
.offline-banner { position: fixed; left: 0; right: 0; top: 0; z-index: 1000; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--warn-soft); color: var(--warn-ink); font-weight: 600; text-align: center; box-shadow: var(--shadow-sm); }
.offline-banner[hidden] { display: none; }
/* Store-Release (2026-11): oberer Geräterand (Notch/Statusleiste) bei viewport-fit=cover. */
.app-topbar, .topbar { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.app-sidebar, .app-drawer { padding-top: env(safe-area-inset-top, 0px); }
.sheet { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); }
.install-chip { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 55; border: 0; border-radius: var(--r-sm); padding: 10px 16px; background: var(--navy); color: #fff; font: 600 .9rem var(--body-font); box-shadow: var(--shadow-md); cursor: pointer; }
@media (min-width: 900px) { .install-chip { bottom: 24px; } }

/* 2026-11: Termin-Karte wie bei Spond/TeamPlus - Zeitleiste, Info-Feld, vier Antworten, Teilnehmer. */
.time-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--bg-soft, #F3F6F8); border-radius: var(--radius); padding: 10px 8px; }
.time-col { text-align: center; }
.time-col strong { display: block; font-size: 1.25rem; color: var(--navy); }
.time-label { font-size: .75rem; color: var(--muted); font-weight: 700; }
.session-info { display: flex; gap: 10px; align-items: flex-start; background: #FFF7E0; border: 1px solid #F1DFA6; color: #5A4708; border-radius: var(--radius); padding: 10px 12px; }
.session-info .icon { margin-top: 2px; color: #8A6A0E; }
.session-info-label { display: block; font-size: .75rem; font-weight: 700; color: #8A6A0E; }
.answer-btns.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.answer-btn.maybe.is-current { background: var(--platinum); border-color: #3A4886; color: #fff; }
.answer-reason { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.who-lists { display: grid; gap: 10px; margin-top: 12px; }
.who-group h4 { margin: 0 0 4px; font: 700 .82rem var(--body-font); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.who-group h4 .count { background: var(--line); border-radius: var(--r-sm); padding: 0 8px; color: var(--text); }
.who-names { display: flex; flex-wrap: wrap; gap: 6px; }
.who-name { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 10px; font-size: .9rem; }
.who-group.yes h4 { color: var(--accent-ink); } .who-group.no h4 { color: #4B5560; } .who-group.maybe h4 { color: var(--platinum); }
.who-toggle { margin-top: 10px; }
.stat-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stat-bar > span { display: block; height: 100%; background: var(--accent); }
.stats-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stats-table th, .stats-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.stats-table td.num, .stats-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stats-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 420px) { .answer-btns.four .answer-btn span { font-size: .78rem; } }
.stats-big .stat-value { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stats-big .stat-label { font-size: .8rem; color: var(--muted); }
.attend-badge.maybe { background: #EEF2FB; color: var(--platinum); }

/* ---------- Sponsor überall (2026-11): Kopfzeile + Seitenleiste jeder Ansicht ---------- */
.app-topbar-sponsor { flex: none; display: flex; align-items: center; min-width: 0; }
.app-topbar-sponsor[hidden], .app-sidebar-sponsor[hidden] { display: none; }
.app-sponsor-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 220px; min-height: 40px;
  padding: 4px 12px 4px 4px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  color: #263746; text-decoration: none; box-shadow: var(--shadow-sm);
}
a.app-sponsor-chip:hover { border-color: var(--accent); }
.app-sponsor-logo { height: 32px; width: auto; max-width: 96px; object-fit: contain; border-radius: var(--r-sm); flex: none; }
.app-sponsor-logo.initials, .app-sponsor-plate-logo.initials, .app-sponsor-mini-logo.initials {
  display: inline-grid; place-items: center; width: 32px; background: var(--navy); color: #fff; font-weight: 700; font-size: .75rem;
}
.app-sponsor-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.app-sponsor-eyebrow { font-size: .75rem; font-weight: 700; color: #5C6B78; }
.app-sponsor-name { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sidebar-sponsor { margin: 14px 2px 0; }
.app-sponsor-plate {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 12px; border-radius: var(--radius);
  background: #fff; color: #263746; text-decoration: none; box-shadow: var(--shadow-md); text-align: center;
}
.app-sponsor-plate-logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; border-radius: var(--r-sm); flex: none; }
.app-sponsor-plate-logo.initials { width: 48px; height: 48px; font-size: .95rem; }
.app-sponsor-plate-text { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.app-sponsor-plate-text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sponsor-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-sponsor-mini { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 3px 8px; border-radius: var(--r-sm); background: #fff; }
.app-sponsor-mini-logo { height: 28px; width: auto; max-width: 72px; object-fit: contain; }
.app-sponsor-mini-logo.initials { width: 28px; height: 28px; border-radius: var(--r-sm); font-size: .75rem; }
.app-sponsor-chip:focus-visible, .app-sponsor-plate:focus-visible, .app-sponsor-mini:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  /* Handy: nur das Logo (der Name steht im Logo und im Menü) */
  .app-sponsor-chip.has-logo { padding: 4px; }
  .app-sponsor-chip.has-logo .app-sponsor-text { display: none; }
  .app-sponsor-logo { max-width: 96px; height: 30px; }
  /* ohne Logo: Name statt Initialen, damit der Sponsor erkennbar bleibt */
  .app-sponsor-chip.no-logo { padding: 4px 10px; max-width: 128px; }
  .app-sponsor-chip.no-logo .app-sponsor-logo { display: none; }
  .app-sponsor-chip.no-logo .app-sponsor-name { font-size: .76rem; }
}
@media (min-width: 900px) {
  /* Desktop: steht groß in der Seitenleiste; oben rechts zusätzlich mit Namen */
  .app-sponsor-chip { max-width: 260px; }
}

/* ---------- Logo reinziehen (Sponsoren-Bereich) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wizard-step { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 4px 0 8px; }
.wizard-step .step-no { width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent, #fff); display: inline-grid; place-items: center; font-size: .8rem; flex: none; }
.logo-drop {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; margin-bottom: 16px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; text-align: center; padding: 16px;
  transition: border-color .15s, background .15s;
}
.logo-drop.small { min-height: 92px; margin-bottom: 6px; }
.logo-drop:hover, .logo-drop:focus-visible { border-color: var(--accent); outline: none; }
.logo-drop.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.logo-drop-empty[hidden], .logo-drop-preview[hidden] { display: none; }
.logo-drop-empty strong { color: var(--text); font-size: 1rem; }
.logo-drop-empty .icon, .logo-drop-empty .icon-lg { width: 34px; height: 34px; color: var(--accent); }
.logo-drop-empty span { font-size: .82rem; }
.logo-drop-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-drop-preview img { max-height: 110px; max-width: 100%; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 8px; box-shadow: var(--shadow-sm); }
.wizard-more { margin: 0 0 14px; }
.wizard-more summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.sponsor-live-preview { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 14px; }
.sponsor-live-preview .app-sponsor-text { display: flex; }
.sponsor-live-preview .hint { margin: 0; }

/* ---------- Zustimmungsfenster vor dem ersten Öffnen (public/consent.js) ---------- */
html.consent-open, html.consent-open body { overflow: hidden; }
.consent-overlay {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
}
.consent-card {
  width: 100%; max-width: 640px; max-height: 100%; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.consent-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.consent-logo { height: 46px; width: auto; max-width: 104px; object-fit: contain; flex: none; background: #fff; border-radius: var(--radius); padding: 3px 6px; }
.consent-head h1 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; outline: none; }
.consent-head h1 .mark { color: var(--accent-ink); }
.consent-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.consent-body { flex: 1; overflow-y: auto; padding: 6px 18px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.consent-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.consent-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.consent-sec:last-of-type { border-bottom: 0; }
.consent-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 6px; }
.consent-sec h2 .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.consent-sec p, .consent-sec li { font-size: .92rem; line-height: 1.5; }
.consent-sec p { margin: 0 0 6px; }
.consent-sec ul { margin: 0; padding-left: 20px; }
.consent-sec li { margin: 3px 0; }
.consent-full { font-size: .92rem; margin: 12px 0 4px; }
.consent-draft { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.consent-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.consent-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .95rem; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent-error { color: var(--danger-ink); font-size: .88rem; font-weight: 600; margin: 2px 0 8px; }
.consent-error[hidden] { display: none; }
.consent-go { margin-top: 6px; min-height: 48px; font-size: 1rem; }
.consent-meta { font-size: .75rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 480px) {
  .consent-overlay { padding: 0; }
  .consent-card { border-radius: 0; height: 100%; max-height: none; }
  .consent-head { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .consent-foot { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
}

/* Audit C-6 (2026-11-10): "Melden"-Knopf an Fahrgemeinschaften und Vereinsnachrichten. */
.report-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex: none; background: none; border: 0; padding: 4px 6px; min-height: 32px; border-radius: var(--r-sm); color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.report-btn:hover, .report-btn:focus-visible { background: var(--surface-2); color: var(--ink, inherit); }
.report-btn svg { width: 14px; height: 14px; }
.radio-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: .95rem; cursor: pointer; }
.radio-row input { width: 20px; height: 20px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
fieldset.field legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.report-excerpt { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; margin: 6px 0; font-size: .9rem; overflow-wrap: anywhere; }

/* Audit F-3: Beispiel-Mannschaften */
.starter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; margin: 6px 0 10px; }

/* Mehrsprachigkeit (2026-11-10): Sprachauswahl */
.lang-picker { display: inline-flex; align-items: center; gap: 6px; position: relative; max-width: 100%; }
.lang-picker-icon { display: inline-flex; color: var(--muted); }
.lang-picker-icon svg { width: 18px; height: 18px; }
.lang-select { appearance: none; -webkit-appearance: none; font: inherit; font-size: .9rem; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 30px 6px 12px; min-height: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.lang-select:focus-visible { outline: 2px solid var(--accent, #2a8); outline-offset: 2px; }
.app-sidebar-lang { padding: 8px 16px 4px; }
.login-lang { display: flex; justify-content: flex-end; margin-top: 16px; }
.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; }

/* Sprachknopf in der Kopfzeile: nur auf dem Handy in Link-Ansichten (dort gibt es kein Menü). */
.app-lang-btn { display: none; align-items: center; gap: 3px; min-height: 40px; min-width: 40px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: inherit; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; flex: none; }
.app-lang-btn svg { width: 16px; height: 16px; }
@media (max-width: 899px) { .app-shell.has-bottombar .app-lang-btn { display: inline-flex; } }
.lang-options { display: grid; gap: 8px; }

/* 2026-11-10: Farbauswahl für die App-Farbe (Sponsor) */
.color-chooser .swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--line); background: var(--sw, var(--surface-2)); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.swatch-default { width: auto; padding: 0 12px; background: #43B52F; color: #263746; font-size: .85rem; font-weight: 600; }
.swatch-own { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: .85rem; cursor: pointer; }
.swatch-own input[type="color"] { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.swatch-default.main { background: #082F55; color: #fff; }
.color-pair-label { margin: 10px 0 6px; }
.color-pair-label:first-child { margin-top: 0; }

/* 2026-11-10: Profilbilder */
.pavatar { display: inline-grid; place-items: center; flex: none; border-radius: 999px; object-fit: cover; color: #fff; font-weight: 700; background: var(--surface-2); vertical-align: middle; }
.pavatar-xs { width: 22px; height: 22px; font-size: .75rem; }
.pavatar-sm { width: 30px; height: 30px; font-size: .75rem; }
.pavatar-md { width: 44px; height: 44px; font-size: .95rem; }
.pavatar-lg { width: 96px; height: 96px; font-size: 1.8rem; }
.who-name.has-avatar { display: inline-flex; align-items: center; gap: 6px; padding-left: 3px; }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.squad-row .pavatar { margin-right: 8px; }

/* 2026-11-12: Spielerprofile und Spielerverwaltung (public/playerprofile.js) - ergänzend, im
   bestehenden Gestaltungssystem. */
.player-row { position: relative; }
.player-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 4px 6px; margin: -4px 0 -4px -6px; background: none; border: 0; border-radius: var(--radius); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.player-open:hover, .player-open:focus-visible { background: var(--surface-2); }
.player-open .pavatar { margin-right: 0; }
.player-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.player-main .squad-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-main .hint { margin: 0; font-size: .8rem; }
.player-open-hint { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: .8rem; flex: none; }
.row-menu { position: relative; flex: none; }
.row-menu > summary { list-style: none; cursor: pointer; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 250px; max-width: calc(100vw - 32px); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.row-menu-list .btn { justify-content: flex-start; text-align: left; width: 100%; }
.danger-text { color: var(--danger-ink); }
.setting-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: .95rem; cursor: pointer; }
.setting-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-ink); }
.setting-row > span { flex: 1; min-width: 0; }
.setting-row .hint { margin: 2px 0 0; }
.profile-head-lg { margin-bottom: 4px; }
.profile-name { font-size: 1.2rem; font-weight: 700; margin: 0; }
.profile-badges { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-section { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.profile-section h3 { font-size: 1rem; margin: 0 0 6px; }
.profile-facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.profile-facts li { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); }
.photo-preview[hidden] { display: none; }
@media (max-width: 520px) {
  .player-open-hint span, .player-open-hint { font-size: 0; }
  .player-open-hint .icon { width: 18px; height: 18px; }
  .row-menu > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ==============================================================================
/* ===== Zusammenführung PR #4–#6 ===== */
   Vereinsbeitritt (2026-11-13): Startseite (Beitreten / Anmelden / Gründen), Beitrittsseite,
   Konto-Seite und die Seiten "Einladen", "Freigaben", "Mitglieder", "Vereinslizenz".
   Mobile first: eine Spalte, große Tippflächen, keine Effekte.
   ===================================================================================== */

/* Smartphones: Eingabefelder mit 16px - sonst zoomt iOS beim Antippen ungefragt hinein. */
@media (max-width: 700px) {
  input, select, textarea { font-size: 16px; }
}
/* Touch-Geräte: Schaltflächen mindestens ~44px hoch (Apple 44pt / Android 48dp). */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .icon-btn { width: 44px; height: 44px; }
}

.welcome-page { background: var(--surface-2); min-height: 100vh; }
.welcome-head {
  background: var(--navy); color: #fff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 22px;
}
.welcome-head-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.welcome-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.welcome-brand img { width: 38px; height: 38px; border-radius: var(--r-sm); background: #fff; object-fit: contain; }
.welcome-brand .mark { color: var(--accent); }
.welcome-head select { width: auto; min-height: 44px; font-size: .9rem; padding: .35rem .5rem; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.welcome-head select option { color: var(--text); }
.welcome {
  max-width: 560px; margin: 0 auto;
  padding: 20px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.welcome h1 { font-size: 1.55rem; line-height: 1.2; color: var(--navy); }
.welcome .lead { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.welcome h2 { font-size: 1.2rem; color: var(--navy); }
.welcome .card { margin-top: 14px; }
.welcome .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: .95rem; min-height: 44px; }
.welcome .back .icon { transform: scaleX(-1); }

/* Die drei Wege auf der Startseite: große, eindeutig beschriftete Flächen. */
.choice-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; min-height: 76px; text-align: left; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit;
}
.choice:hover { border-color: var(--muted); }
.choice:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-color: var(--accent); }
.choice-icon { width: 44px; height: 44px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface-2); color: var(--navy); }
.choice-icon .icon { width: 24px; height: 24px; }
.choice.primary .choice-icon { background: var(--accent-soft); color: var(--accent-ink); }
.choice-text { flex: 1; min-width: 0; }
.choice-title { display: block; font-weight: 700; font-size: 1.05rem; }
.choice-sub { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.choice > .icon { color: var(--muted); flex: none; }

/* "Du möchtest … beitreten" - die wichtigste Information zuerst, groß. */
.join-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.join-hero .club { font-family: var(--display); font-size: 1.45rem; color: var(--navy); line-height: 1.2; }
.join-hero .as { margin-top: 6px; font-size: 1.05rem; }
.join-hero .as strong { color: var(--accent-ink); }
.join-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.join-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.join-steps li span:first-child { flex: none; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--navy); font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; }

.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; }
.segmented button { flex: 1; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.radio-cards { display: flex; flex-direction: column; gap: 8px; }
.radio-card { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .95rem; font-weight: 500; margin: 0; }
.radio-card input { width: 20px; height: 20px; flex: none; accent-color: var(--accent-ink); margin: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: .92rem; font-weight: 400; cursor: pointer; }
.check-row input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent-ink); }
.field .hint { margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.done-mark { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.done-mark .icon { width: 32px; height: 32px; }
.done-mark.wait { background: var(--warn-soft); color: var(--warn-ink); }
.centered { text-align: center; }
.centered .done-mark { margin: 6px auto 12px; }
.kid-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ---------- Einladen (Vereins-App) ---------- */
.invite-group h3 { font-size: 1.05rem; margin: 0 0 4px; }
.invite-team > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.invite-team > summary::-webkit-details-marker { display: none; }
.invite-team-name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.invite-team-meta { flex: 1; min-width: 0; color: var(--muted); font-size: .84rem; text-align: right; }
.invite-team > summary .icon { color: var(--muted); transform: rotate(90deg); transition: transform .15s; flex: none; }
.invite-team:not([open]) > summary .icon { transform: none; }
.invite-team[open] > summary { margin-bottom: 4px; }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.invite-row + .invite-row { border-top: 1px solid var(--line); }
.invite-row-main { flex: 1; min-width: 160px; }
.invite-row-title { font-weight: 600; }
.invite-row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.invite-row-actions { display: flex; gap: 6px; flex: none; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.chip.off { background: var(--danger-soft); color: var(--danger-ink); border-color: transparent; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-grid .btn { justify-content: flex-start; }
.share-qr { max-width: 240px; margin: 12px auto 0; }
.share-qr svg { width: 100%; height: auto; display: block; }
.share-url { margin-top: 10px; font-size: .82rem; color: var(--muted); word-break: break-all; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.code-sheet { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.code-sheet td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.code-sheet td:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; text-align: right; letter-spacing: .06em; }

/* ---------- Freigaben ---------- */
.request-card .who { font-weight: 700; font-size: 1.02rem; }
.request-card .what { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.request-card .actions { display: flex; gap: 8px; margin-top: 12px; }
.request-card .actions .btn { flex: 1; }
.nav-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-sm); background: var(--warn-ink); color: #fff; font-size: .75rem; font-weight: 700; align-items: center; justify-content: center; margin-left: 6px; }

/* ---------- Mitglieder ---------- */
.member-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 40px; min-height: 44px; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button { flex: none; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip-row button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.member-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; min-height: 56px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.member-row:first-child { border-top: 0; }
.member-row .avatar-sm { flex: none; }
.member-row-main { flex: 1; min-width: 0; }
.member-row-name { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row-sub { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-count { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* ---------- Vereinslizenz ---------- */
.license-status { display: flex; align-items: center; gap: 12px; }
.license-status .done-mark { width: 48px; height: 48px; flex: none; }
.license-status .done-mark .icon { width: 24px; height: 24px; }
.license-status .done-mark.off { background: var(--danger-soft); color: var(--danger-ink); }
.license-status strong { font-size: 1.08rem; display: block; }

/* ======================================================================
   2026-11-13: Terminkarte für Training und Spiel (Spieler, Eltern, Trainer)
   Datumsblock links, Titel/Uhrzeit/Ort rechts, darunter die eigene Antwort als
   Schalterleiste und "wer kommt" als Balken mit Profilbildern. Feste Farben für
   Zusage/Unsicher/Absage - unabhängig von der Sponsorfarbe, damit Grün immer "komme" heißt.
   ====================================================================== */
:root {
  --rsvp-yes: #43B52F;  --rsvp-yes-ink: #2A7E1C;  --rsvp-yes-soft: #E6F5E2;
  --rsvp-maybe: #EBA300; --rsvp-maybe-ink: #7A5000; --rsvp-maybe-soft: #FDF1D6;
  --rsvp-no: #D2432F;   --rsvp-no-ink: #B3261E;   --rsvp-no-soft: #FBE7E4;
}
.next-card.ev-card, .card.ev-card { border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--radius); background: var(--surface); padding: 16px; }
.next-card.ev-card .kicker { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.ev-head { display: flex; gap: 14px; align-items: flex-start; }
.ev-date {
  flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7px 0 8px; border-radius: var(--r-sm); background: var(--kind-training-soft); color: var(--kind-training); line-height: 1;
}
.ev-dow, .ev-mon { font-size: .72rem; font-weight: 700; }
.ev-mon { font-weight: 600; }
.ev-day { font-family: var(--display); font-size: 1.75rem; font-weight: 700; margin: 3px 0 2px; }
.kind-spiel .ev-date { background: var(--navy); color: #fff; }
.is-cancelled .ev-date { background: #ECEEF0; color: #6B757E; }
.ev-main { flex: 1; min-width: 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.ev-kind { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--kind-training); }
.kind-spiel .ev-kind { color: var(--navy); }
.is-cancelled .ev-kind { color: #6B757E; }
.ev-rel { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); }
.ev-title, .next-card .ev-title, .card .ev-title { font-family: var(--body-font); font-size: 1.18rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; text-transform: none; overflow-wrap: anywhere; }
.card .ev-title { font-size: 1.05rem; }
.is-cancelled .ev-title { text-decoration: line-through; color: var(--muted); }
.ev-line { display: flex; gap: 6px; align-items: center; margin: 3px 0 0; font-size: .92rem; color: var(--muted); }
.ev-line .icon { flex: none; }
.ev-line .tnum, .ev-line .ev-strong { color: var(--text); font-weight: 600; }
.ev-card .cancel-banner { margin: 12px 0 0; }
.ev-extras { display: grid; gap: 8px; margin-top: 12px; }
.ev-meet { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; padding: 9px 12px; background: var(--kind-spiel-soft); color: var(--navy); border-radius: var(--r-sm); }
.ev-meet .icon { flex: none; }
.ev-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ev-sheet-head { margin-bottom: 2px; }
.ev-carpool { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.ev-carpool .icon { flex: none; }

/* Eigene Antwort */
.ev-answer .answer-now { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .92rem; }
.answer-label { font-weight: 700; color: var(--text); }
.answer-state { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-sm); white-space: nowrap; }
.answer-state::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.answer-state.yes { background: var(--rsvp-yes-soft); color: var(--rsvp-yes-ink); }
.answer-state.maybe { background: var(--rsvp-maybe-soft); color: var(--rsvp-maybe-ink); }
.answer-state.no { background: var(--rsvp-no-soft); color: var(--rsvp-no-ink); }
.answer-state.none { background: var(--surface-2); color: var(--muted); }
.ev-answer .answer-btns { gap: 0; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.ev-answer .answer-btn { border: 0; border-radius: 0; min-height: 58px; font-size: .88rem; gap: 3px; background: var(--surface); transition: background-color .12s ease; }
.ev-answer .answer-btn + .answer-btn { border-left: 1px solid var(--line-strong); }
.ev-answer .answer-btn .icon { width: 20px; height: 20px; }
.ev-answer .answer-btn.yes .icon { color: var(--rsvp-yes-ink); }
.ev-answer .answer-btn.maybe .icon { color: var(--rsvp-maybe-ink); }
.ev-answer .answer-btn.no .icon { color: var(--rsvp-no-ink); }
.ev-answer .answer-btn:hover:not(.is-current):not(:disabled) { background: var(--surface-2); }
.ev-answer .answer-btn.yes.is-current { background: var(--rsvp-yes); color: #0E2A08; }
.ev-answer .answer-btn.maybe.is-current { background: var(--rsvp-maybe); color: #2B1D00; }
.ev-answer .answer-btn.no.is-current { background: var(--rsvp-no); color: #fff; }
.ev-answer .answer-btn.is-current .icon { color: inherit; }
.ev-answer .answer-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.ev-answer .answer-reason, .ev-answer .answer-note { margin-top: 8px; }

/* Wer kommt - auf einen Blick */
.rsvp { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
button.rsvp { cursor: pointer; padding: 10px 12px; margin: -10px -12px; width: calc(100% + 24px); border-radius: var(--r-sm); }
button.rsvp:hover { background: var(--surface-2); }
button.rsvp:focus-visible { outline: 3px solid var(--navy); outline-offset: 0; }
.rsvp-top { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.rsvp-stack { display: flex; flex: none; }
.rsvp-stack .pavatar { width: 34px; height: 34px; font-size: .72rem; box-shadow: 0 0 0 2px var(--surface); }
.rsvp-stack .pavatar + .pavatar { margin-left: -10px; }
.rsvp-more { background: var(--navy); color: #fff; font-size: .72rem; }
.rsvp-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rsvp-head strong { font-size: 1rem; }
.rsvp-hint { font-size: .8rem; color: var(--muted); }
.rsvp-go { flex: none; color: var(--muted); display: inline-flex; }
.rsvp-bar { display: flex; gap: 2px; height: 8px; margin-top: 12px; border-radius: 2px; overflow: hidden; background: var(--line); }
.rsvp-bar i { display: block; min-width: 6px; }
.rsvp-bar .yes { background: var(--rsvp-yes); }
.rsvp-bar .maybe { background: var(--rsvp-maybe); }
.rsvp-bar .no { background: var(--rsvp-no); }
.rsvp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.rsvp-key { display: inline-flex; align-items: center; gap: 5px; }
.rsvp-key::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.rsvp-key.yes::before { background: var(--rsvp-yes); }
.rsvp-key.maybe::before { background: var(--rsvp-maybe); }
.rsvp-key.no::before { background: var(--rsvp-no); }
.rsvp-key b { color: var(--text); }

/* Wer kommt - Liste im Fenster */
.who-lists { display: grid; gap: 20px; margin-top: 18px; }
.who-group h4, .who-group.yes h4, .who-group.maybe h4, .who-group.no h4 { display: flex; align-items: center; gap: 8px; font: 700 .92rem var(--body-font); color: var(--text); margin: 0 0 6px; }
.who-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--rsvp-yes); flex: none; }
.who-group.maybe .who-dot { background: var(--rsvp-maybe); }
.who-group.no .who-dot { background: var(--rsvp-no); }
.who-group h4 .count { margin-left: auto; background: var(--surface-2); color: var(--text); border-radius: var(--r-sm); padding: 1px 8px; font-size: .8rem; }
.who-lists .who-names { list-style: none; margin: 0; padding: 0; display: block; border-top: 1px solid var(--line); }
.who-lists .who-name, .who-lists .who-name.has-avatar { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: .95rem; font-weight: 600; }
.who-lists .who-name .pavatar-md { width: 40px; height: 40px; font-size: .85rem; }
.who-label { min-width: 0; overflow-wrap: anywhere; }
.who-you { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--navy); color: #fff; padding: 2px 8px; border-radius: var(--r-sm); }
.who-empty { color: var(--muted); font-size: .88rem; margin: 0; padding: 10px 2px; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .who-lists .who-names { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* Trainer-Übersicht: nächste Termine mit Balken */
.dash-session { align-items: flex-start; }
.dash-session .ev-date { width: 50px; }
.dash-session .ev-day { font-size: 1.45rem; }
.dash-session .ev-kind { margin-bottom: 2px; }
.dash-session .rsvp { margin-top: 2px; }
.dash-session .rsvp-top { min-height: 0; margin-top: 6px; }
.dash-session .rsvp-head strong { font-size: .88rem; }
.dash-session .rsvp-bar { margin-top: 8px; height: 6px; }

/* Kurze Terminzeilen ("Danach") mit kleinem Datumsblock */
.cal-item.ev-row, .cal-item.ev-row.kind-training, .cal-item.ev-row.kind-spiel { border-left: 1px solid var(--line); padding: 10px 12px; gap: 12px; }
.cal-item.ev-row:hover { border-color: var(--line-strong); }
.ev-row .ev-date { width: 46px; padding: 5px 0 6px; }
.ev-row .ev-day { font-size: 1.3rem; margin: 2px 0 1px; }
.ev-row .ev-dow, .ev-row .ev-mon { font-size: .66rem; }
.ev-row .cal-item-kind { white-space: nowrap; }
.ev-row .cal-item-time { font-weight: 600; font-size: inherit; min-width: 0; color: var(--muted); }
.ev-row .cal-item-time::before { content: "·"; margin: 0 4px 0 2px; }
.ev-row .cal-item-meta:empty { display: none; }
.cal-badge.ok { background: var(--rsvp-yes-soft); color: var(--rsvp-yes-ink); }
.cal-badge.no { background: var(--rsvp-no-soft); color: var(--rsvp-no-ink); }
.cal-badge.no.maybe { background: var(--rsvp-maybe-soft); color: var(--rsvp-maybe-ink); }

/* ======================================================================
   2026-11-13 (zweite Runde): Terminkarten wie in Team-Apps üblich - übersichtlich, jede
   Karte gleich. Kopf in der Farbe der Terminart, Zeitleiste, Ort, unten Antwort mit Zahlen.
   ====================================================================== */
.tcard-list { display: grid; gap: 14px; margin-bottom: 18px; }
.hint + .tcard-list, .lead + .tcard-list { margin-top: 12px; }
.next-card.tcard, .tcard { padding: 0; margin: 0; border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tcard-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 66px; border: 0; margin: 0; text-align: left;
  font: inherit; cursor: pointer; background: var(--kind-training-soft); color: var(--text);
}
button.tcard-head:hover { filter: brightness(.97); }
button.tcard-head:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.tcard.kind-spiel .tcard-head { background: var(--navy); color: #fff; }
.tcard.is-cancelled .tcard-head { background: #ECEEF0; color: var(--muted); }
.tcard-date { flex: none; min-width: 54px; display: flex; flex-direction: column; line-height: 1.15; padding-right: 14px; border-right: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.tcard-date b { font-size: 1.15rem; }
.tcard-date span { font-size: .84rem; opacity: .85; }
.tcard-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tcard-title, .next-card .tcard-title { font: 700 1.1rem/1.25 var(--body-font); margin: 0; text-transform: none; letter-spacing: -.01em; overflow-wrap: anywhere; color: inherit; }
.is-cancelled .tcard-title { text-decoration: line-through; }
.tcard-sub { font-size: .84rem; opacity: .85; }
.tcard-badge { align-self: flex-start; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-sm); background: var(--kind-training); color: #fff; margin-bottom: 3px; }
.tcard.kind-spiel .tcard-head .tcard-badge { background: var(--rsvp-yes, #43B52F); color: #0E2A08; }
.tcard-go { flex: none; display: inline-flex; opacity: .8; }
.tcard-body { padding: 12px 14px 2px; }
.tcard-body .cancel-banner { margin: 0 0 12px; }
.tcard-body .time-strip, .ev-sheet-head + .time-strip { background: none; border-radius: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line); gap: 0; }
.tcard-body .time-col + .time-col { border-left: 1px solid var(--line); }
.tcard-body .time-col strong { font-size: 1.3rem; color: var(--text); }
.tcard-body .time-label { font-weight: 500; font-size: .8rem; }
.tcard-lines { display: grid; gap: 6px; padding: 10px 0 12px; }
.tcard-line { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: .92rem; }
.tcard-line .icon { flex: none; }
.tcard-body .session-info { margin: 0 0 12px; }
.tcard-body > :last-child:not(.session-info):not(.tcard-lines) { margin-bottom: 10px; }

/* Leiste unten: Antwort + Zahlen */
.tcard-answer { border-top: 1px solid var(--line); }
.tcard-foot { display: flex; align-items: stretch; }
.tcard > .tcard-foot { border-top: 1px solid var(--line); }
.tcard-foot .tcard-rsvp { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 8px; border: 0; border-radius: 0; overflow: visible; }
.tcard-foot .answer-btn {
  flex-direction: row; gap: 8px; min-height: 56px; padding: 6px 4px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text);
  font-size: 1.05rem; font-weight: 700;
}
.tcard-foot .answer-btn .icon { width: 22px; height: 22px; color: inherit; }
.tcard-foot .answer-btn + .answer-btn { border-left: 0; }
.tcard-foot button.answer-btn:hover:not(.is-current):not(:disabled) { background: var(--surface-2); }
.tcard-foot .answer-btn.yes.is-current { background: var(--rsvp-yes); color: #0E2A08; }
.tcard-foot .answer-btn.maybe.is-current { background: var(--rsvp-maybe); color: #2B1D00; }
.tcard-foot .answer-btn.no.is-current { background: var(--rsvp-no); color: #fff; }
.tcard-foot .answer-btn.is-static { cursor: default; }
.tcard-foot .answer-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 0; }
.tcard-people { flex: none; width: 62px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.tcard-people:hover { background: var(--surface-2); }
.tcard-people .icon { width: 26px; height: 26px; }
.tcard-people:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.tcard-answer .answer-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0 14px 12px; font-size: .86rem; }
.tcard-answer .answer-reason { margin: 0; color: var(--muted); }
.tcard-answer [data-msg]:not(:empty) { padding: 0 14px 12px; }
.tcard-answer [data-msg] .msg { margin: 0; }
.tcard > a.btn { margin: 0 14px 14px; width: calc(100% - 28px); }
.tcard > .ev-carpool { margin: 0; padding: 10px 14px; }
.sheet .tcard-foot { border: 1px solid var(--line); border-radius: var(--radius); margin: 4px 0 6px; }
.sheet .tcard-answer { border-top: 0; }
.sheet .tcard-answer .answer-now { padding: 0 0 8px; }
.sheet .tcard-answer [data-msg]:not(:empty) { padding: 0 0 8px; }
.tcard-sheet { margin: 0 0 4px; }
.tcard-sheet .tcard-head { cursor: default; }
.tcard-head-link { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tcard-head-link .tcard-head { cursor: pointer; }
.tcard-head-link:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.tcard-title { display: block; }
.tcard-sheet .tcard-body { padding-bottom: 0; }
.me-line:not(.home-hero) { flex-wrap: nowrap; align-items: flex-start; }
.me-line:not(.home-hero) > span { flex: 1 1 0; }
.sheet-sub { color: var(--muted); font-size: .9rem; margin: -2px 0 10px; }
.sheet-section-title { font: 700 1.05rem var(--body-font); margin: 22px 0 2px; }

.tcard-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); align-items: flex-start; }
.tcard-more { position: relative; margin-left: auto; }
.tcard-actions .btn-sm { padding-left: 10px; padding-right: 10px; }
.tcard-more-btn { min-width: 44px; justify-content: center; font-weight: 800; letter-spacing: .05em; }
.tcard-more[open] { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.tcard-more > summary { list-style: none; }
.tcard-more > summary::-webkit-details-marker { display: none; }
.tcard-more-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.tcard-more:not([open]) .tcard-more-menu { display: none; }
.tcard-extra:empty { display: none; }
.tcard-extra { padding: 0 14px; }
.tcard-extra > :last-child { margin-bottom: 14px; }
.who-reason { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); }

/* Kopf der Startseite */
.me-line.home-hero { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; font-size: 1rem; color: var(--text); margin: 2px 0 18px; }
.home-hero .pavatar-md { width: 58px; height: 58px; font-size: 1.15rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.home-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-hero-name { font: 700 1.35rem/1.2 var(--display); color: var(--navy); }
.home-hero-name strong { font-weight: 700; color: inherit; }
.home-hero-sub { color: var(--muted); font-size: .86rem; }
.home-hero .btn-link { flex: none; }

/* Teilnehmerliste */
.who-lists { display: grid; gap: 10px; margin-top: 8px; }
details.who-group > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px 10px; border-bottom: 2px solid var(--line); cursor: pointer; font: 700 1.02rem var(--body-font); color: var(--text); }
details.who-group > summary::-webkit-details-marker { display: none; }
details.who-group > summary::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--rsvp-yes); flex: none; }
details.who-group.maybe > summary::before { background: var(--rsvp-maybe); }
details.who-group.no > summary::before { background: var(--rsvp-no); }
.who-title { flex: 1; }
details.who-group > summary .count { background: none; padding: 0; font-size: 1rem; color: var(--text); margin: 0; }
.who-fold { display: inline-flex; color: var(--muted); transform: rotate(90deg); transition: transform .15s ease; }
details.who-group[open] .who-fold { transform: rotate(-90deg); }
.who-lists .who-names { border-top: 0; }
.who-lists .who-name, .who-lists .who-name.has-avatar { padding: 10px 2px; font-size: 1rem; }
.who-lists .who-name .pavatar-md { width: 44px; height: 44px; }
.who-mark { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--rsvp-yes); color: #0E2A08; }
.who-mark .icon { width: 20px; height: 20px; }
.who-mark.maybe { background: var(--rsvp-maybe); color: #2B1D00; }
.who-mark.no { background: var(--rsvp-no); color: #fff; }
.who-name .who-you { margin-left: 8px; }
.who-name .who-you + .who-mark { margin-left: auto; }
.who-name.is-me .who-label { font-weight: 700; }
@media (min-width: 640px) { .who-lists .who-names { display: block; } }

@media print {
  .app-shell-nav, .app-topbar, .sheet-head, .no-print { display: none !important; }
  .sheet-host { position: static !important; }
}
=======
/* 2026-11-12 (Final-Polish): Anwesenheit - gruppiert, kompakt, Status nie nur über Farbe
   (Symbol + Text). public/attendance.js */
.att-panel { margin-top: 10px; border-top: 1px solid var(--line); }
.att-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 10px 0 6px; cursor: pointer; list-style: none; min-height: 44px; }
.att-summary::-webkit-details-marker { display: none; }
.att-summary-title { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.att-summary-title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -3px 0 0 4px; transition: transform .15s; }
.att-panel[open] .att-summary-title::after { transform: rotate(-135deg); margin-top: 3px; }
.att-sums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.att-sum { display: inline-flex; align-items: center; gap: 4px; }
.att-sum strong { color: var(--text); font-variant-numeric: tabular-nums; }
.att-sum.confirmed .icon { color: var(--accent-ink); }
.att-sum.declined .icon { color: var(--danger-ink); }
.att-sum.maybe .icon { color: var(--warn-ink); }
.att-group { margin-top: 6px; }
.att-group-head { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); font-family: var(--body-font); }
.att-group.confirmed .att-group-head .icon { color: var(--accent-ink); }
.att-group.declined .att-group-head .icon { color: var(--danger-ink); }
.att-group.maybe .att-group-head .icon { color: var(--warn-ink); }
.att-count { font-variant-numeric: tabular-nums; color: var(--text); }
.att-note { margin: 0 0 4px; font-size: .78rem; }
.att-list { list-style: none; margin: 0; padding: 0; }
.att-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.att-group .att-row:first-child { border-top: 0; }
.att-row.is-saving { opacity: .7; }
.att-name { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.att-person { font-weight: 600; font-size: .92rem; }
.att-reason { font-size: .8rem; color: var(--muted); }
.att-actions { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.att-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; min-width: 44px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.att-btn:first-child { border-left: 0; }
.att-btn:hover { background: var(--surface-2); }
.att-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.att-btn.confirmed.is-current { background: var(--accent-soft); color: var(--accent-ink); }
.att-btn.maybe.is-current { background: var(--warn-soft); color: var(--warn-ink); }
.att-btn.declined.is-current { background: var(--danger-soft); color: var(--danger-ink); }
.att-btn[disabled] { cursor: progress; }
@media (max-width: 480px) {
  .att-actions { width: 100%; }
  .att-btn { flex: 1; min-height: 40px; }
}
/* 2026-11-12 (Audit F6): "×" zum Austragen - eigene, ausreichend große Tippfläche */
.chip-remove { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; margin: -6px -8px -6px 0; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 1.05rem; cursor: pointer; }
.chip-remove:hover, .chip-remove:focus-visible { background: var(--surface-2); color: var(--text); }

/* 2026-11-12 (Final-Polish): Barrierefreiheit und Bedienbarkeit (visual-audit.e2e.js)
   - Kontraste: "kein Recht"-Zeichen und Schrittnummern erreichen mind. 4,5:1
   - Tippflächen: kleine Text-Knöpfe und Aufklapp-Zeilen mind. 24 px (WCAG 2.2, 2.5.8);
     auf Touch-Geräten Haupt-Knöpfe mind. 44 px (Apple/Google-Empfehlung)
   - deaktivierte Knöpfe sind als solche erkennbar */
.perm.no { color: var(--muted); font-weight: 400; }
.wizard-step .step-no { background: var(--accent-ink); color: #fff; }
.btn-link { display: inline-block; padding: 4px 0; }
details > summary { padding-block: 5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary:disabled { opacity: .6; }
/* Re-Audit nach PR #4: auf Touch-Geräten ALLE Bedienelemente mind. 44 × 44 px
   (geprüft von scripts/e2e/visual-audit.e2e.js mit echter Touch-Simulation). */
@media (pointer: coarse) {
  .btn, .btn-sm, .icon-btn, .app-nav-item, .app-menu-btn, .app-lang-btn, .app-sponsor-chip, .report-btn, .att-btn { min-height: 44px; }
  .icon-btn, .app-menu-btn, .app-lang-btn { min-width: 44px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea { min-height: 44px; }
  details > summary { min-height: 44px; padding-block: 10px; box-sizing: border-box; }
  .swatch { width: 44px; height: 44px; }
  .swatch-own { min-height: 44px; }
  .chip-remove { min-width: 44px; min-height: 44px; margin: -12px -12px -12px -4px; }
  .section-head a, p.hint > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
  .lang-select, .nav-row button { min-height: 44px; }
  .radio-row, .setting-row, label.check { min-height: 44px; }
}
/* freistehende Text-Links (Abschnittsköpfe, "Alle … ansehen") auch mit Maus mind. 24 px */
.section-head a, p.hint > a:only-child { display: inline-flex; align-items: center; min-height: 24px; }
.app-topbar-actions { flex: 0 1 auto; min-width: 0; }
.att-btn span { white-space: nowrap; }
@media (max-width: 480px) {
  /* Release-Abnahme: bei großer Schrift dürfen die Antworten umbrechen statt abgeschnitten zu
     werden (scripts/e2e/text-scale.e2e.js); drei gleich breite Knöpfe über die volle Breite. */
  .att-btn { padding: 4px 6px; gap: 3px; font-size: .78rem; flex: 1 1 0; min-width: 0; height: auto; }
  .att-btn span { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
}
/* 2026-11-12 (Final-Polish): "Mein Profil" - Bild und Name zentriert, Aktionen darunter */
.profile-hero { text-align: center; }
.profile-hero .profile-head { flex-direction: column; justify-content: center; gap: 10px; }
.profile-hero .profile-head .hint { margin: 2px 0 0; }
.profile-hero .photo-picker { margin-top: 14px; }
.profile-hero .photo-picker-actions { justify-content: center; }
.profile-hero .photo-preview { justify-content: center; text-align: left; }
.profile-hero .profile-facts { align-items: center; margin-top: 14px; }
.profile-hero .msg.info { text-align: left; margin-top: 14px; }
.profile-note { margin: 12px 0 0; }
.pavatar { aspect-ratio: 1 / 1; }
.who-report { margin-top: 10px; }
/* Release-Abnahme (U12): Trainer erkennbar, Treffpunkt in der Terminliste */
.who-role { font-size: .72rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.coach-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; font-size: .9rem; color: var(--text); }
.cal-item-meeting { display: flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; }

/* Release-Abnahme (U12): Glocke mit sichtbarem Zustand „An“/„Aus“ (Spieler-Ansicht). */
.icon-btn.icon-btn-labeled { width: auto; min-width: 44px; padding: 0 12px 0 10px; gap: 5px; }
.icon-btn-text { font-size: .82rem; font-weight: 600; line-height: 1; white-space: nowrap; }

/* Visueller Rundgang 2026-11-14: Text-Links als Tippfläche mindestens 44 px hoch (Anmeldung). */
.tap-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
/* Zusammenführung: die eigene Antwort trägt zusätzlich .pill (Prüfungen aus PR #6) - Aussehen bleibt .answer-state */
.answer-state.pill { font-size: .82rem; font-weight: 700; display: inline-flex; }

/* Knopf-Rundgang 2026-11-14: Eltern-Ansicht mit mehreren Kindern war auf Handys 408 px breit
   (Sponsor + Sprache + „Kind wechseln“ + Glocke) - Seitentitel verschwand, Knöpfe am unteren Rand
   lagen unter der unteren Leiste. Auf schmalen Bildschirmen: „Kind wechseln“ nur als Symbol,
   der Sponsor-Hinweis darf schmaler werden, der Titel behält eine Mindestbreite. */
@media (max-width: 480px) {
  .family-switch { min-width: 44px; padding: 0 10px; justify-content: center; }
  .family-switch span { display: none; }
  .app-topbar-title { min-width: 64px; }
  .app-topbar-actions { flex: none; }
  .app-topbar-sponsor { flex: 0 1 auto; min-width: 44px; }
  .app-topbar-sponsor .app-sponsor-chip { min-width: 44px; } /* Tippfläche bleibt mind. 44 px */
  .app-topbar-sponsor .app-sponsor-logo { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 340px) {
  /* sehr kleine Handys (320 px): Eltern-Kopfzeile mit Sponsor-Tippfläche 44 px passt nur so */
  .app-topbar-title { min-width: 56px; }
}

/* ---------- Release-Audit 2026-11-17: Befunde der Sichtprüfung ---------- */
/* Das hidden-Attribut gilt immer. Vorher zeichnete die Anmeldeseite auf dem Handy einen leeren
   44-px-Knopf (#pushToggleBtn hidden), weil die Tippflächen-Regel display überschrieb. */
[hidden] { display: none !important; }
/* Seite „Konto und Daten löschen“: das Kästchen war 171 px breit, der Text daneben auf drei Zeilen gequetscht. */
.legal .check input[type="checkbox"] { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent-ink); }
.legal .check span { flex: 1; min-width: 0; }
/* Erklärtext stieß direkt an den Knopf darunter (0 px, z. B. Kader „Links für alle“, Einstellungen). */
p.hint + .btn-row, p.hint + .btn { margin-top: 10px; }
/* Seitentitel wurde auf dem Handy abgeschnitten („Zeugwart (Mat…“, „Benachrichtigu…“): er darf jetzt
   auf zwei Zeilen umbrechen (Trennung nach Silben, wo das Gerät sie kennt). Der Sponsor-Hinweis
   daneben bleibt vollständig; nur auf sehr schmalen Handys (320 px) gibt er etwas Platz ab. */
@media (max-width: 480px) {
  .app-topbar { gap: 8px; }
  /* kein line-clamp/overflow: hidden - bei großer Schrift (130-200 %) würde sonst der Titel
     unten abgeschnitten (scripts/e2e/text-scale.e2e.js); er darf so viele Zeilen haben wie nötig */
  .app-page-title {
    white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;
    font-size: 1.02rem; line-height: 1.2;
  }
}
@media (max-width: 400px) {
  .app-topbar { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .app-sponsor-chip.no-logo { padding: 4px 8px; }
}
@media (max-width: 340px) {
  .app-topbar-sponsor { max-width: 27vw; }
}
/* Löschseite/Kontaktseite: Formularkarte mit Abstand zum Text davor und danach. */
.legal form.card { margin: 14px 0 10px; }
/* Untere Leiste auf schmalen Handys: sechs gleich breite Felder waren für „Nachrichten“ und
   „Mitfahren“ zu schmal - die Beschriftungen liefen ineinander. Jetzt bekommt jedes Feld so viel
   Platz, wie sein Text braucht (mindestens 44 px Tippfläche), der Rest wird gleichmäßig verteilt. */
@media (max-width: 400px) {
  .app-shell.has-bottombar .app-bottombar { grid-auto-columns: minmax(44px, auto); padding-left: 4px; padding-right: 4px; }
  .app-bottom-item { white-space: nowrap; }
}
@media (max-width: 360px) {
  .app-bottom-item { font-size: .68rem; }
  /* Anwesenheit: „Unsicher“ brach mitten im Wort um - Symbol über dem Wort statt daneben. */
  .att-btn { flex-direction: column; gap: 2px; padding: 5px 4px; }
  .att-btn span { overflow-wrap: normal; }
}
/* Profil: das Häkchen stand auf schmalen Handys allein in einer Zeile über seinem Text. */
.profile-facts li { flex-wrap: nowrap; }
.profile-facts li > .icon, .profile-facts li > svg { flex: none; margin-top: 2px; }
/* Seitenleiste am Computer: langer Vereinsname bricht um, statt abgeschnitten zu werden. */
.app-brand-club { white-space: normal; overflow-wrap: anywhere; }
/* Tastaturbedienung (Prüfer aus dem taste-skill, 2026-11-17): Sprungmarke zum Inhalt - nur sichtbar,
   wenn sie den Fokus hat; Fokusring im dunklen Kopf der Startseiten weiß statt dunkelgrün
   (vorher 2,65:1), an den großen Auswahlkarten kräftiger; Logo-Link mind. 44 px hoch. */
.skip-link { position: absolute; left: 8px; top: -64px; z-index: 2000; padding: 12px 16px; background: var(--navy); color: #fff; font-weight: 700; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 8px; outline: 3px solid #fff; outline-offset: -5px; }
#appContent:focus { outline: none; }
#welcomeHead a:focus-visible, #welcomeHead button:focus-visible, #welcomeHead select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.choice:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.welcome-brand { min-height: 44px; }

/* ---------- Aufgeräumte Teilnehmerliste und kompaktere Terminkarten (2026-11-18) ----------
   Eine Zeile je Person: Bild, Name (Grund klein darunter), rechts drei gleich große Antwortfelder.
   Vorher standen die drei Antworten als Textknöpfe in einer zweiten Zeile unter jedem Namen. */
.att-summary { flex-wrap: nowrap; padding: 6px 0; }
.att-open-chip { font-size: .78rem; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); border-radius: var(--r-sm); padding: 3px 8px; white-space: nowrap; }
.att-body { padding-bottom: 6px; }
.att-group { margin-top: 2px; }
.att-group-head { margin: 14px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--line); font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.att-group-head .att-count { margin-left: auto; font-size: .95rem; }
.att-note { margin: 6px 0 0; }
.att-row { flex-wrap: nowrap; gap: 12px; padding: 8px 0; min-height: 60px; }
.att-row .pavatar { width: 36px; height: 36px; flex: none; }
.att-name { min-width: 0; }
.att-person { overflow-wrap: anywhere; line-height: 1.25; }
.att-actions { width: auto; flex: none; border: 0; border-radius: 0; overflow: visible; gap: 6px; }
.att-btn, .att-btn:first-child { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; gap: 0; flex-direction: row; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: #8A96A1; }
.att-btn .icon { width: 22px; height: 22px; }
.att-btn:hover { background: var(--surface-2); color: var(--text); }
.att-btn.confirmed.is-current { background: var(--rsvp-yes); border-color: transparent; color: #0E2A08; }
.att-btn.maybe.is-current { background: var(--rsvp-maybe); border-color: transparent; color: #2B1D00; }
.att-btn.declined.is-current { background: var(--rsvp-no); border-color: transparent; color: #fff; }
@media (max-width: 360px) {
  .att-row { gap: 8px; }
  .att-row .pavatar { width: 30px; height: 30px; }
  .att-actions { gap: 4px; }
}
/* Terminkarte beim Trainer: Zahlen, dann zwei gleich aussehende aufklappbare Zeilen (Teilnehmer,
   Fahrgemeinschaften), dann eine ruhige Aktionszeile. Vorher hing die Fahrgemeinschaft als eigener
   Block mit Überschrift und Karte unter jeder Auswärtsspiel-Karte. */
.tcard > .att-panel, .tcard > .tcard-fold { margin: 0; padding: 0 14px; border-top: 1px solid var(--line); }
.tcard-fold-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; list-style: none; }
.tcard-fold-head::-webkit-details-marker { display: none; }
.tcard-fold-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.tcard-fold-title::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -3px 0 0 2px; }
.tcard-fold[open] .tcard-fold-title::after { transform: rotate(-135deg); margin-top: 3px; }
.tcard-fold-count { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tcard-fold-head:focus-visible, .att-summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.tcard-fold-body { padding: 2px 0 12px; }
.tcard-fold-body > .card:first-child { margin-top: 0 !important; }
/* Kompakter: weniger Luft im Kopf, in der Zeitleiste und in der Aktionszeile */
.tcard-list { gap: 12px; }
.tcard-head { padding: 10px 14px; min-height: 58px; }
.tcard-body { padding: 10px 14px 0; }
.tcard-body .time-strip, .ev-sheet-head + .time-strip { padding: 0 0 10px; }
.tcard-body .time-col strong { font-size: 1.15rem; line-height: 1.2; }
.tcard-lines { gap: 4px; padding: 8px 0 10px; }
.tcard-actions { padding: 8px 14px 10px; gap: 6px; }
.tcard-actions .btn-sm { border-color: transparent; background: var(--surface-2); }
.tcard-actions .btn-sm:hover { border-color: var(--line); }
/* Aufklappbares Formular ("Neues Spiel anlegen"): zugeklappt nur ein Knopf über die volle Breite */
.form-fold { margin: 4px 0 18px; }
.form-fold > summary { list-style: none; cursor: pointer; }
.form-fold > summary::-webkit-details-marker { display: none; }
.form-fold[open] > summary { margin-bottom: 10px; }
/* Startkarte "Dein nächstes Training/Spiel": eine Zeile je Angabe, Zeiten ohne grauen Kasten,
   "Wer kommt?" als ruhiger Knopf ohne die Zahlen, die schon in der Leiste darüber stehen. */
.next-card { padding: 14px; }
.next-card h2 { font-size: 1.2rem; margin: 2px 0 8px; }
.next-card .detail-facts { gap: 8px; margin: 2px 0 10px; }
.next-card .detail-fact > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.next-card .detail-fact strong { display: inline; overflow-wrap: anywhere; }
.next-card .detail-fact .sub-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.next-card .time-strip { background: none; border-radius: 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 0; }
.next-card .time-col + .time-col { border-left: 1px solid var(--line); }
.next-card .time-col strong { font-size: 1.15rem; }
.who-toggle { margin-top: 8px; border-color: transparent; background: var(--surface-2); }
.who-toggle:hover { border-color: var(--line); }

/* =====================================================================================
   Erscheinungsbild 2026-11-18 (Wunsch des Betreibers: größer, übersichtlicher, mehr Farbe,
   weniger "Baukasten"). Eine Schicht über dem bisherigen Regelwerk - Funktionen unberührt.
   Grundsätze:
     1. Schrift überall größer (Grundgröße 17 px, kein Text unter ~14 px).
     2. Weiße Karten ohne Rahmen auf hellgrauem Grund statt Kästchen mit Linien auf Weiß.
     3. Jeder Bereich hat eine eigene Farbe: Training grün, Spiel blau, Verein/Veranstaltung
        orange, Helfer himbeerrot, Fahrten türkis, Nachrichten himmelblau, Hinweise gelb.
     4. Weichere Ecken, größere Knöpfe, mehr Abstand zwischen den Blöcken.
   ===================================================================================== */
:root {
  --bg: #F2F4F7;
  --surface-2: #EDF1F5;
  --line: #E0E6EC;
  --line-strong: #CBD5DE;
  --muted: #52606D;
  --radius: 14px;
  --radius-sm: 10px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 3px 10px rgba(16, 32, 48, .05);
  --shadow-md: 0 2px 4px rgba(16, 32, 48, .08), 0 8px 20px rgba(16, 32, 48, .08);
  --c-training: #18702F; --c-training-soft: #E1F5E5; --c-training-strong: #2FA84F;
  --c-spiel: #1556B0;    --c-spiel-soft: #E1ECFB;
  --c-event: #9A4408;    --c-event-soft: #FFEDDB;    --c-event-strong: #F08A24;
  --c-helfer: #A82846;   --c-helfer-soft: #FDE6EC;   --c-helfer-strong: #E0486B;
  --c-fahrt: #086A73;    --c-fahrt-soft: #DBF3F4;    --c-fahrt-strong: #14A3AE;
  --c-info: #095E94;     --c-info-soft: #E0F0FB;     --c-info-strong: #2D9CDB;
  --c-sun: #7A5600;      --c-sun-soft: #FFF2C9;      --c-sun-strong: #F2B705;
  --kind-training: var(--c-training); --kind-training-soft: var(--c-training-soft);
  --kind-spiel: var(--c-spiel);       --kind-spiel-soft: var(--c-spiel-soft);
  --kind-event: var(--c-event);       --kind-event-soft: var(--c-event-soft);
}
html { font-size: 106.25%; }
body { line-height: 1.45; }
h2, h3 { font-family: var(--body-font); letter-spacing: -.01em; }
.hint { font-size: .86rem; line-height: 1.4; }
.lead { font-size: 1rem; line-height: 1.45; }
.empty, .dash-empty { font-size: .95rem; }

/* --- Abschnitte --- */
.section-head { margin: 30px 0 12px; align-items: center; gap: 12px; }
.section-head h2 { font-size: 1.22rem; font-weight: 800; }
.section-head .hint, .section-head a { font-size: .9rem; font-weight: 600; }
.dash-section .section-head { margin-top: 28px; }

/* --- Karten: weiß, ohne Rahmen, leichter Schatten --- */
.card, .stat-tile, .tcard, .next-card.tcard, .next-card, .next-card.ev-card, .card.ev-card { border: 0; box-shadow: var(--shadow-sm); }
.card { padding: 18px; }
.card .card, .sheet .card, .tcard-fold-body .card { box-shadow: none; background: var(--surface-2); }
.card + .card { margin-top: 12px; }
.next-card { border-left: 0; padding: 18px; }
.app-content { padding-top: 20px; }

/* --- Kopfzeile --- */
.app-topbar, .topbar { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(16, 32, 48, .04); }
.app-page-title { font-size: 1.3rem; }
.app-topbar-club { font-size: .8rem; }
.app-menu-btn, .icon-btn { border-color: transparent; background: var(--surface-2); }
.app-sponsor-chip { box-shadow: none; border-color: var(--line); }
@media (max-width: 480px) { .app-page-title { font-size: 1.12rem; } }

/* --- Knöpfe und Felder --- */
.btn { min-height: 48px; padding: .65rem 1.15rem; font-size: 1rem; font-weight: 700; border-radius: var(--r-sm); }
.btn-sm { min-height: 44px; padding: .45rem .9rem; font-size: .92rem; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line-strong); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-danger { background: #fff; border: 1.5px solid color-mix(in srgb, var(--danger-ink) 35%, #fff); }
.btn-primary { border-color: transparent; box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 65%, #000); }
.tcard-actions .btn-sm, .who-toggle { background: var(--surface-2); border-color: transparent; }
input, select, textarea { min-height: 48px; border-width: 1.5px; border-radius: var(--r-sm); font-size: 1rem; }
.field label { font-size: .92rem; font-weight: 600; }

/* --- Schildchen --- */
.pill, .role-chip, .helper-chip, .tcard-badge, .att-open-chip, .badge-tier { border-radius: 999px; font-size: .8rem; font-weight: 700; padding: 4px 11px; }
.pill.open { background: var(--c-info-soft); color: var(--c-info); border: 0; }
.pill.full { background: var(--c-training-soft); color: var(--c-training); }
.pill.replacement_needed { background: var(--c-helfer-soft); color: var(--c-helfer); }
.helper-chip { background: var(--surface-2); border: 0; }
.msg { font-size: .95rem; border-radius: var(--r-sm); padding: 12px 14px; }
.msg.info { background: var(--c-info-soft); color: var(--c-info); border: 0; }

/* --- Übersicht (Dashboard) --- */
.dash-hello { font-size: 1.9rem; line-height: 1.1; }
.dash-hero { margin-bottom: 10px; row-gap: 14px; }
.dash-row-title { font-size: 1.02rem; font-weight: 700; }
.dash-row-meta { font-size: .88rem; }
.dash-line { font-size: 1rem; padding: 10px 0; }
.stat-grid { gap: 12px; }
.stat-tile { padding: 16px; }
.stat-tile .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; margin-bottom: 12px; background: var(--c-training-soft); color: var(--c-training); }
.stat-grid > :nth-child(4n + 2) .icon { background: var(--c-spiel-soft); color: var(--c-spiel); }
.stat-grid > :nth-child(4n + 3) .icon { background: var(--c-event-soft); color: var(--c-event); }
.stat-grid > :nth-child(4n + 4) .icon { background: var(--c-fahrt-soft); color: var(--c-fahrt); }
.stat-tile.warn .icon { background: var(--c-helfer-soft); color: var(--c-helfer); }
.stat-tile .stat-value { font-size: 2rem; }
.stat-tile .stat-label { font-size: .9rem; margin-top: 6px; }
.shift-line { padding: 14px 0; }

/* --- Terminkarten --- */
.tcard-list { gap: 16px; }
.tcard-head { padding: 14px 16px; min-height: 68px; background: var(--c-training-soft); }
.tcard.kind-spiel .tcard-head { background: var(--c-spiel); }
.tcard.kind-event .tcard-head { background: var(--c-event-soft); }
.tcard-date b { font-size: 1.25rem; }
.tcard-date span { font-size: .9rem; }
.tcard-title, .next-card .tcard-title { font-size: 1.18rem; font-weight: 800; }
.tcard-sub { font-size: .9rem; }
.tcard-badge { background: var(--c-training-strong); color: #06260F; }
.tcard.kind-spiel .tcard-head .tcard-badge { background: var(--c-sun-strong); color: #2B1D00; }
.tcard-body { padding: 14px 16px 0; }
.tcard-body .time-col strong, .next-card .time-col strong { font-size: 1.35rem; }
.tcard-body .time-label, .time-label { font-size: .85rem; font-weight: 600; }
.tcard-line { font-size: 1rem; }
.tcard-foot .answer-btn { min-height: 60px; font-size: 1.15rem; }
.tcard > .att-panel, .tcard > .tcard-fold { padding: 0 16px; }
.att-summary-title, .tcard-fold-title { font-size: 1rem; }
.tcard-actions { padding: 10px 16px 14px; }
.next-card .kicker { font-size: .85rem; color: var(--c-training); text-transform: uppercase; letter-spacing: .04em; }
.next-card.kind-spiel .kicker { color: var(--c-spiel); }
.next-card h2 { font-size: 1.45rem; font-weight: 800; margin: 4px 0 12px; }
.next-card .detail-fact { font-size: 1.02rem; }

/* --- Teilnehmerliste --- */
.att-person { font-size: 1rem; }
.att-reason { font-size: .88rem; }
.att-group-head { font-size: 1rem; }
.att-btn, .att-btn:first-child { border-radius: 12px; width: 46px; height: 46px; }

/* --- Untere Leiste --- */
.app-shell.has-bottombar .app-bottombar { border-top: 0; box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgba(16, 32, 48, .07); padding-top: 8px; }
.app-bottom-item { font-size: .76rem; font-weight: 700; border-radius: 12px; min-height: 58px; }
.app-bottom-item .icon { width: 26px; height: 26px; }
.app-bottom-item.active { background: var(--c-training-soft); color: var(--c-training); }
.app-bottom-item.active .icon { color: var(--c-training); }

/* --- Zeilen der Übersicht: Datum farbig links, Titel groß, darunter worum es geht, Status in eigener Zeile --- */
.dash-row { padding: 14px 0; gap: 14px; }
.dash-row:has(> .cal-date-chip) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 8px; align-items: center; }
.dash-row:has(> .cal-date-chip) > .cal-date-chip { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.dash-row:has(> .cal-date-chip) > .dash-row-main { grid-column: 2; grid-row: 1; }
.dash-row:has(> .cal-date-chip) > .pill { grid-column: 2; grid-row: 2; justify-self: start; }
.dash-row:has(> .cal-date-chip) > .chev, .dash-row:has(> .cal-date-chip) > .icon:last-child { grid-column: 3; grid-row: 1 / span 2; }
.dash-row-sub { font-size: .92rem; font-weight: 600; color: var(--muted); }
.cal-date-chip { background: var(--c-helfer-soft); border: 0; border-radius: 12px; min-width: 52px; padding: 8px 6px; }
.cal-date-chip .cal-day-num { font-size: 1.3rem; color: var(--c-helfer); }
.cal-date-chip .cal-month-abbr { font-size: .8rem; font-weight: 700; color: var(--c-helfer); }
/* Knöpfe neben Abschnittsüberschriften: klein und einzeilig, die Überschrift bekommt den Platz */
.section-head .btn { min-height: 44px; padding: .3rem .85rem; font-size: .9rem; white-space: nowrap; flex: none; }
.section-head h2 { min-width: 0; }
/* Untere Leiste: mit der größeren Grundschrift passen sechs Felder nur mit kleinerer Beschriftung */
@media (max-width: 430px) { .app-bottom-item { font-size: .7rem; } }
@media (max-width: 360px) { .app-bottom-item { font-size: .62rem; } .app-bottom-item .icon { width: 24px; height: 24px; } }

/* --- Startseiten (Beitreten / Anmelden / Gründen): große Karten, jede mit eigener Farbe --- */
.welcome h1 { font-size: 2rem; line-height: 1.12; }
.welcome .lead { font-size: 1.08rem; margin-top: 10px; }
.welcome .choice-list { gap: 14px; margin-top: 24px; }
.welcome .choice { border: 0; box-shadow: var(--shadow-sm); padding: 18px 16px; gap: 16px; align-items: center; background: #fff; }
.welcome .choice:hover { box-shadow: var(--shadow-md); }
.choice-icon { width: 56px; height: 56px; border-radius: 16px; }
.choice-icon .icon { width: 28px; height: 28px; }
.choice-title { font-size: 1.2rem; font-weight: 800; }
.choice-sub { font-size: .95rem; margin-top: 3px; }
.welcome .choice:nth-of-type(1) .choice-icon { background: var(--c-training-soft); color: var(--c-training); }
.welcome .choice:nth-of-type(2) .choice-icon { background: var(--c-spiel-soft); color: var(--c-spiel); }
.welcome .choice:nth-of-type(3) .choice-icon { background: var(--c-event-soft); color: var(--c-event); }
/* Anmeldung und einfache Seiten */
.legal { font-size: 1rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; }
/* Begrüßung in den Link-Ansichten */
.me-line.home-hero { font-size: 1.05rem; gap: 16px; }
.me-line.home-hero > * { min-width: 0; }
.me-line.home-hero > .pavatar, .me-line.home-hero > button, .me-line.home-hero > a:first-child { flex: none; }

/* --- Schriftgrößen-Durchgang: kein Kleingedrucktes mehr (Grundschrift 17 px, Nebentext ≥ 15,5 px, Schildchen ≥ 14 px) --- */
.hint { font-size: .94rem; line-height: 1.5; }
.demo-note { font-size: .9rem; line-height: 1.5; }
.pill, .type-badge, .chip, .role-chip, .app-role-chip, .tcard-badge, .cal-badge, .ev-kind, .ev-rel, .cal-today-tag, .att-open-chip, .helper-chip, .kicker, .eyebrow { font-size: .82rem; }
.btn { font-size: 1rem; }
.btn-sm, .section-head .btn { font-size: .94rem; }
.field > label, .field label { font-size: 1rem; }
.dash-row-meta, .tcard-sub, .cal-item-meta, .member-row-sub, .player-main .hint, .stat-label, .section-head a.hint { font-size: .94rem; }
.time-label { font-size: .9rem; }
.cal-cell-num { font-size: .94rem; }
.cal-legend span, .cal-weekdays span, .cal-item-kind, .cal-item-time { font-size: .84rem; }
.report-btn span, .icon-btn-text { font-size: .86rem; }
.app-topbar-club, .app-sponsor-name { font-size: .84rem; }
.app-sponsor-eyebrow { font-size: .76rem; }
.perm-table { font-size: .94rem; }
.perm-table th, .perm-table tr.perm-group td { font-size: .84rem; }
.perm-table th, .perm-table td { padding: 12px 10px; }
.empty-state p { font-size: 1rem; }
.ev-date .ev-mon, .ev-date .ev-dow, .cal-month-abbr { font-size: .8rem; }
.legal table td, .legal table th { font-size: 1rem; }
/* Seiteneinleitung: ruhiger Absatz direkt unter der Kopfzeile, gut lesbar statt klein und grau */
main > p.hint:first-child, .view > p.hint:first-child { font-size: 1rem; color: var(--ink-2, #33414E); margin-bottom: 16px; }

/* Mitgliederliste: runde, farbige Namenskürzel wie im Kader */
.member-row { padding: 12px 4px; min-height: 64px; gap: 14px; }
.member-row .avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; font-size: .86rem; background: var(--c-spiel-soft); color: var(--c-spiel); }
.member-row:nth-child(4n + 2) .avatar { background: var(--c-training-soft); color: var(--c-training); }
.member-row:nth-child(4n + 3) .avatar { background: var(--c-event-soft); color: var(--c-event); }
.member-row:nth-child(4n + 4) .avatar { background: var(--c-fahrt-soft); color: var(--c-fahrt); }
.member-row-name { font-weight: 700; font-size: 1.04rem; }

/* Kennzahl-Kacheln: eine einzelne dritte Kachel füllt die Zeile, statt halb leer zu stehen */
.stat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.dash-hello { line-height: 1.15; margin-bottom: 4px; }
/* Lange Wörter ohne Trennstelle (E-Mail-Adressen) dürfen umbrechen, statt die Seite breiter zu machen */
.dash-line { overflow-wrap: anywhere; }
.dash-line > * { min-width: 0; }
/* Schmale Handys: Kopfzeile enger setzen, damit der Seitentitel in eine Zeile passt */
@media (max-width: 430px) {
  .app-topbar { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .app-page-title { font-size: 1.06rem; }
}
