/*
 * Kabine - Gestaltung.
 *
 * Bewusst ohne eingebundene Webfonts: Schriften von Google Fonts laden die
 * IP-Adresse jedes Besuchers zu einem Drittanbieter hoch, was in Deutschland
 * bereits abgemahnt wurde. Systemschriften sind hier datenschutzfreundlich,
 * schnell und sehen auf jedem Gerät nativ aus.
 */

:root {
  /* Flächen wie bei Apple „gruppiert“: ruhiger Grund, weiße Gruppen darauf, Trennlinien fein (docs/DESIGN.md). */
  --ground:#F2F4F7; --surface:#FFFFFF; --surface-2:#F7F8FA;
  --raise:0 1px 2px rgba(16,32,52,.05);
  --line:#E3E8EE; --line-strong:#CDD5DF; --card-line:transparent;
  /* Füllung für Knöpfe, Suchfelder und die Spur von Knopfleisten (wie die grauen Systemflächen bei Apple). */
  --fill:rgba(118,128,142,.12); --fill-2:rgba(118,128,142,.2);
  --bar:rgba(255,255,255,.82);
  --ink:#0F1A25; --ink-2:#4B5E72; --ink-3:#5A6D82;
  /* Blau des HSV (#005CA9); --accent-2 für Hover/Fokus etwas heller, --accent-soft als ruhige Fläche. */
  /* Marke SportWieWo (docs/marke/MARKE.md): Navy des Symbols – Startbildschirm, Statusleiste, Manifest. */
  --brand-navy:#101F36;
  --accent:#005CA9; --accent-2:#0A74CE; --accent-soft:#E0EDF8;
  --red:#C1202C; --red-soft:#FBE7E8;
  --green:#1B7A4C; --green-soft:#E3F3EA;
  --amber:#8F5A00; --amber-soft:#FBEEDA;
  /* Artfarben der Termine (Punkt in der Terminzeile, Monatsansicht): bewusst keine Bedeutungsfarben – Rot, Grün und Gelb
     heißen abgesagt/Fehler, zugesagt und Achtung (docs/DESIGN.md). Immer zusammen mit Wort oder Kürzel. */
  --kind-training:#1D64B5; --kind-training-soft:#E2EDF9;
  --kind-game:#6B40BF; --kind-game-soft:#EEE7FA;
  --kind-tournament:#0A6F80; --kind-tournament-soft:#DFF1F4;
  --kind-camp:#A3256F; --kind-camp-soft:#F8E4F0;
  --kind-other:#5B6878; --kind-other-soft:#ECEFF3;
  --kind-goalie:#9A4A12; --kind-goalie-soft:#F8E9DD;
  /* Schrift auf farbigen Flächen (Knöpfe, Zähler): hell auf dunklem Blau/Rot/Grün. */
  --on-color:#FFFFFF;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --r:12px; --r-sm:10px;
  /* Schriftgrößen nach Apple (Body 17 pt auf dem Handy); in rem, damit die Textgröße des Geräts greift. */
  --fs-large:2rem; --fs-title1:1.65rem; --fs-title2:1.3rem; --fs-title3:1.18rem; --fs-body:1rem;
  --fs-callout:.94rem; --fs-sub:.88rem; --fs-foot:max(12px, .77rem); --fs-cap:max(11px, .7rem);
}
/* Grundgröße: am Computer 15 px, auf Handy/Tablet 17 px (Apple-Standard). Auf iPhone/iPad folgt sie der
   eingestellten Textgröße (Einstellungen → Anzeige & Helligkeit → Textgröße). */
html { font-size:15px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
@media (max-width:900px) { html { font-size:17px; } }
@supports (font: -apple-system-body) {
  @media (pointer:coarse) { html { font:-apple-system-body; } }
}

@media (prefers-color-scheme: dark) {
  /* Standard ist hell. Dunkel wird es nur, wenn jemand „automatisch“ (wie das Gerät) oder „dunkel“ gewählt hat. */
  :root[data-theme="auto"] {
    --ground:#0B131B; --surface:#131E29; --surface-2:#18242F;
    --raise:0 1px 2px rgba(0,0,0,.5), 0 10px 28px -18px rgba(0,0,0,.9);
    --line:#233240; --line-strong:#314456; --card-line:#1E2B38;
    --fill:rgba(140,150,165,.2); --fill-2:rgba(140,150,165,.3); --bar:rgba(19,30,41,.82);
    --ink:#E9F0F7; --ink-2:#9EB2C6; --ink-3:#8A9CB0;
    --accent:#5FA8EE; --accent-2:#86C0F8; --accent-soft:#11304D;
    --red:#F0707A; --red-soft:#3A1B20;
    --green:#4FC58E; --green-soft:#12301F;
    --amber:#E0A93F; --amber-soft:#332409;
  --kind-training:#6FAAF0; --kind-training-soft:#132E4C;
  --kind-game:#B79BF4; --kind-game-soft:#272043;
  --kind-tournament:#55C6D8; --kind-tournament-soft:#0D2D34;
  --kind-camp:#F08DC8; --kind-camp-soft:#38172C;
  --kind-other:#A1AFBF; --kind-other-soft:#1E2A36;
  --kind-goalie:#F2A06A; --kind-goalie-soft:#3A2114;
    /* Dunkelmodus: helle Farbflächen, darauf dunkle Schrift (weiß auf #5AA0F0 hätte nur 2,7:1). */
    --on-color:#0B131B;
  }
}
:root[data-theme="dark"] {
  --ground:#0B131B; --surface:#131E29; --surface-2:#18242F;
  --raise:0 1px 2px rgba(0,0,0,.5), 0 10px 28px -18px rgba(0,0,0,.9);
  --line:#233240; --line-strong:#314456; --card-line:#1E2B38;
  --fill:rgba(140,150,165,.2); --fill-2:rgba(140,150,165,.3); --bar:rgba(19,30,41,.82);
  --ink:#E9F0F7; --ink-2:#9EB2C6; --ink-3:#8A9CB0;
  --accent:#5FA8EE; --accent-2:#86C0F8; --accent-soft:#11304D;
  --red:#F0707A; --red-soft:#3A1B20;
  --green:#4FC58E; --green-soft:#12301F;
  --amber:#E0A93F; --amber-soft:#332409;
  --kind-training:#6FAAF0; --kind-training-soft:#132E4C;
  --kind-game:#B79BF4; --kind-game-soft:#272043;
  --kind-tournament:#55C6D8; --kind-tournament-soft:#0D2D34;
  --kind-camp:#F08DC8; --kind-camp-soft:#38172C;
  --kind-other:#A1AFBF; --kind-other-soft:#1E2A36;
  --kind-goalie:#F2A06A; --kind-goalie-soft:#3A2114;
    /* Dunkelmodus: helle Farbflächen, darauf dunkle Schrift (weiß auf #5AA0F0 hätte nur 2,7:1). */
    --on-color:#0B131B;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--sans); font-size:var(--fs-body); line-height:1.47;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4 { margin:0; line-height:1.2; text-wrap:balance; font-weight:700; letter-spacing:-.01em; }
button, input, select, textarea { font:inherit; color:inherit; }
a { color:var(--accent); }
:focus-visible { outline:3px solid color-mix(in srgb, var(--accent-2) 70%, transparent); outline-offset:2px; border-radius:6px; }
[hidden] { display:none !important; }
@media (prefers-reduced-motion: reduce) { * { animation:none !important; transition:none !important; } }
/* „Kontrast erhöhen“ am Gerät: kräftigere Linien und Nebentexte (Apple: Accessibility). */
@media (prefers-contrast: more) {
  :root:not([data-theme="dark"]):not([data-theme="auto"]) { --line:#9AA8B8; --line-strong:#6F8095; --ink-2:#2E3F52; --ink-3:#34475C; --fill:rgba(60,70,85,.18); --card-line:#9AA8B8; }
  :root[data-theme="dark"] { --line:#4A5E73; --line-strong:#6C8197; --ink-2:#C4D2E0; --ink-3:#B4C3D2; --card-line:#4A5E73; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root[data-theme="auto"] { --line:#9AA8B8; --line-strong:#6F8095; --ink-2:#2E3F52; --ink-3:#34475C; --fill:rgba(60,70,85,.18); --card-line:#9AA8B8; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { --line:#4A5E73; --line-strong:#6C8197; --ink-2:#C4D2E0; --ink-3:#B4C3D2; --card-line:#4A5E73; }
}

/* ---------------------------------------------------------------- Struktur */
.app {
  min-height:100vh; display:grid;
  grid-template-columns:minmax(0,236px) minmax(0,1fr);
  grid-template-rows:auto 1fr;
  grid-template-areas:"top top" "nav main";
}
.app > * { min-width:0; }
/* Leisten aus „Material“: leicht durchscheinend über dem Inhalt (Apple: Materials). */
.top { grid-area:top; position:sticky; top:0; z-index:30; background:var(--bar); border-bottom:.5px solid var(--line-strong);
  -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); }
@media (prefers-reduced-transparency: reduce) { .top, .tabbar { background:var(--surface) !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; } }
.top-in { display:flex; align-items:center; gap:14px; padding:10px 20px; flex-wrap:wrap; }
.rule { height:3px; display:flex; }
.rule i { display:block; height:100%; }
.rule i:nth-child(1) { width:22%; background:var(--accent); }
.rule i:nth-child(2) { width:8px; background:var(--red); }
.rule i:nth-child(3) { flex:1; background:var(--line); }

.brand { display:flex; align-items:center; gap:10px; }
/* Mannschaftsauswahl am Computer direkt neben dem Wappen, über dem Inhalt; Name und Abmelden rechts. */
@media (min-width:901px) { .top-in > .brand { min-width:202px; } }
.who { margin-left:auto; }
.crest { width:40px; height:40px; border-radius:9px; flex:none; display:block; }
.brand-lg .crest { width:64px; height:64px; border-radius:14px; }
.brand-lg { flex-direction:column; gap:12px; text-align:center; }
.brand.brand-lg > div:last-child { display:block; }
.login-note { text-align:center; margin:16px 0 0; font-size:var(--fs-foot); line-height:1.45; color:var(--ink-3); }

/* Startbildschirm beim Öffnen */
.splash { position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; padding:24px; text-align:center; color:#fff; background:var(--brand-navy); transition:opacity .35s ease; }
.splash img { width:132px; height:132px; border-radius:30px; margin-bottom:14px; box-shadow:0 18px 40px -18px rgba(0,0,0,.6); }
.splash b { font-size:30px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.splash span { font-size:14px; letter-spacing:.06em; text-transform:uppercase; opacity:.85; }
.splash small { position:absolute; bottom:max(28px, env(safe-area-inset-bottom)); font-size:12px; opacity:.7; }
.splash.out { opacity:0; pointer-events:none; }
@media (prefers-reduced-motion: reduce) { .splash { transition:none; } }
.brand b { font-size:20px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; display:block; line-height:1; }
.brand span { font-size:11px; color:var(--ink-3); letter-spacing:.05em; text-transform:uppercase; }
.brand-lg { justify-content:center; margin:0 0 22px; }

.ctl { display:flex; align-items:center; gap:8px; }
.ctl label { font-size:var(--fs-foot); color:var(--ink-3); font-weight:600; }
.who { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-2); font-weight:600; }

/* Alle Textfelder sehen gleich aus – auch Suchfelder und Felder ohne Typangabe (docs/BEDIENUNG.md). */
select, input:not([type]), input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=time], input[type=date], input[type=month], input[type=url], textarea {
  background:var(--surface-2); border:1px solid var(--line-strong); color:var(--ink);
  padding:9px 12px; border-radius:var(--r-sm); font-size:max(16px, var(--fs-body)); width:100%; min-height:40px;
}
input[type=search] { background:var(--fill); border-color:transparent; }
input[type=search]:focus { background:var(--surface-2); border-color:var(--line-strong); }
@media (min-width:901px) { select, input:not([type]), input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=time], input[type=date], input[type=month], input[type=url], textarea { font-size:var(--fs-body); min-height:36px; } }
select { cursor:pointer; padding-right:30px; appearance:none;
  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, 5px 5px; background-repeat:no-repeat; }
textarea { min-height:110px; resize:vertical; }

.nav {
  grid-area:nav; padding:18px 12px; border-right:.5px solid var(--line-strong);
  background:var(--surface-2); position:sticky; top:57px; align-self:start;
  height:calc(100vh - 57px); overflow:auto;
}
.nav-group { font-size:var(--fs-foot); color:var(--ink-3); font-weight:600; padding:0 10px 6px; }
.nav button {
  display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:8px; width:100%; min-height:34px;
  color:var(--ink); font-weight:500; font-size:var(--fs-body); cursor:pointer;
  border:1px solid transparent; background:none; text-align:left;
}
.nav button:hover { background:var(--fill); color:var(--ink); }
.nav button.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.nav .badge { margin-left:auto; background:var(--red); color:var(--on-color); font-size:11px; font-weight:700;
  min-width:19px; height:19px; border-radius:999px; display:grid; place-items:center; padding:0 5px; }

main { grid-area:main; padding:24px 22px 72px; max-width:1180px; width:100%; }
.page-head { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.page-head h1 { font-size:var(--fs-large); letter-spacing:-.02em; }
.page-head p { margin:3px 0 0; color:var(--ink-2); font-size:var(--fs-sub); }
.spacer { margin-left:auto; }

/* Leiste unten (nur Handy/Tablet) */
.tabbar { display:none; }
.more-grid { display:flex; flex-direction:column; background:var(--surface-2); border-radius:var(--r); overflow:hidden; }
.more-grid button { display:flex; align-items:center; gap:10px; padding:11px 16px; border:0; border-bottom:.5px solid var(--line-strong);
  background:none; color:var(--ink); font-weight:400; font-size:var(--fs-body); text-align:left; cursor:pointer; min-height:44px; }
.more-grid button:last-child { border-bottom:0; }
.more-grid button::after { content:'›'; margin-left:auto; color:var(--ink-3); font-size:1.3em; line-height:1; }
.more-grid button:active { background:var(--fill); }
.more-grid button.on { color:var(--accent); font-weight:600; }
.more-who { border-top:.5px solid var(--line-strong); padding-top:14px; }
.nav .nav-group:not(:first-child) { margin-top:14px; }

@media (max-width:900px) {
  .app { grid-template-columns:minmax(0,1fr); grid-template-areas:"top" "main"; }
  .nav { display:none; }
  .tabbar {
    display:grid; grid-auto-flow:column; grid-auto-columns:1fr; position:fixed; left:0; right:0; bottom:0; z-index:40;
    background:var(--bar); border-top:.5px solid var(--line-strong);
    -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px);
    padding:4px 4px calc(4px + env(safe-area-inset-bottom));
    /* Eigene Ebene: Auf dem iPhone bleibt eine fest stehende Leiste sonst beim Scrollen mit Schwung mitten im Bild hängen. */
    transform:translate3d(0, 0, 0); will-change:transform;
  }
  /* Tastatur offen (iPhone/Android): Die Leiste verschwindet, solange getippt wird. Beim Schließen der Tastatur wird sie
     neu eingesetzt – so steht sie wieder ganz unten und nicht dort, wo eben noch die Tastatur begann. */
  body.typing .tabbar, .tabbar.resettle { display:none; }
  .tabbar button {
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    min-height:50px; padding:4px 2px; border:0; background:none; border-radius:10px; cursor:pointer;
    color:var(--ink-3); font-size:11px; font-weight:500;
  }
  .tabbar button span:not(.badge) { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  /* Gewählt: nur die Farbe wechselt (Apple: Tab bars), keine Fläche. */
  .tabbar button.on { color:var(--accent); font-weight:600; }
  .tabbar .badge { position:absolute; top:3px; left:calc(50% + 6px); background:var(--red); color:var(--on-color); font-size:11px; font-weight:700;
    min-width:17px; height:17px; border-radius:999px; display:grid; place-items:center; padding:0 4px; }
  main { padding:16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size:var(--fs-title1); }
  /* Kopf kompakt: Wappen + Mannschaftsauswahl; Name und Abmelden stehen unter „Mehr“. */
  .top-in { padding:8px 12px; gap:10px; flex-wrap:nowrap; }
  .brand { margin-right:0; }
  .brand > div:last-child { display:none; }
  .crest { width:34px; height:34px; border-radius:8px; }
  .ctl { flex:1; min-width:0; }
  .ctl label { display:none; }
  .who, #logoutBtn { display:none; }
  .top-in > .brand { min-width:0; }
}

/* ------------------------------------------------------------- Bausteine */
.card { background:var(--surface); border:1px solid var(--card-line); border-radius:var(--r); box-shadow:var(--raise); min-width:0; }
.card-h { display:flex; align-items:center; gap:8px 10px; padding:14px 16px; border-bottom:.5px solid var(--line-strong); flex-wrap:wrap; }
.card-h h3 { font-size:var(--fs-title3); font-weight:600; min-width:0; }
.card-h .sub { font-size:var(--fs-foot); color:var(--ink-3); font-weight:500; }
/* Überschrift im Kartenkopf schrumpft nie unter ihren Text – Knopfleiste und Untertitel rutschen sonst darüber;
   ist es zu eng, brechen sie in die nächste Zeile um. */
.card-h > h3.grow { flex:1 0 auto; max-width:100%; }
.card-b { padding:16px; }
.grid { display:grid; gap:16px; }
.grid > * { min-width:0; }
.g2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.g4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:980px) { .g3,.g4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:660px) { .g2,.g3,.g4 { grid-template-columns:1fr; } }
.stack { display:flex; flex-direction:column; gap:14px; }
.stack > * { min-width:0; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Knöpfe nach Apple: der wichtigste gefüllt (blau), alle anderen grau hinterlegt mit blauer Schrift – ohne Rahmen.
   Zerstörende Aktionen rot. Gewicht über den Stil, nicht über die Größe (docs/DESIGN.md). */
.btn { border:1px solid transparent; background:var(--fill); color:var(--accent); padding:8px 14px; border-radius:var(--r-sm);
       font-weight:600; font-size:var(--fs-callout); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px;
       min-height:36px; text-decoration:none; transition:background-color .15s, opacity .15s; }
.btn:hover:not(:disabled) { background:var(--fill-2); }
.btn:active:not(:disabled) { opacity:.7; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.btn-primary { background:var(--accent); color:var(--on-color); }
.btn-primary:hover:not(:disabled) { background:var(--accent-2); color:var(--on-color); }
.btn-danger { color:var(--red); }
.btn-danger:hover:not(:disabled) { background:var(--red-soft); color:var(--red); }
.btn-sm { padding:5px 11px; font-size:var(--fs-sub); min-height:30px; }
.btn-wide { width:100%; justify-content:center; padding:11px; }

/* Kennzeichen: normale Schreibweise statt GROSSBUCHSTABEN, getönte Fläche ohne Rahmen. */
.pill { display:inline-flex; align-items:center; gap:5px; font-size:var(--fs-cap); font-weight:600;
        padding:2px 8px; border-radius:999px; border:1px solid transparent; white-space:nowrap; }
.p-blue { background:var(--accent-soft); color:var(--accent); }
.p-red { background:var(--red-soft); color:var(--red); }
.p-green { background:var(--green-soft); color:var(--green); }
.p-amber { background:var(--amber-soft); color:var(--amber); }
.p-grey { background:var(--fill); color:var(--ink-2); }

/* Zahlen, Uhrzeiten, Daten: Systemschrift mit gleich breiten Ziffern (Apple: keine Schreibmaschinenschrift für Zahlen). */
.mono { font-variant-numeric:tabular-nums; }
.code, code { font-family:var(--mono); font-size:.92em; }
.muted { color:var(--ink-2); }
.tiny { font-size:var(--fs-foot); }
.eyebrow { font-size:var(--fs-foot); font-weight:600; color:var(--ink-3); }
.err { color:var(--red); font-size:var(--fs-callout); margin:0; font-weight:600; }
.hint { font-size:var(--fs-sub); color:var(--ink-2); margin:0; background:var(--accent-soft);
        border:0; border-radius:var(--r-sm); padding:10px 12px; }
.note { background:var(--accent-soft); border:0; border-radius:var(--r-sm); padding:12px 14px; font-size:var(--fs-sub); color:var(--ink-2); }
.empty { padding:28px 16px; text-align:center; color:var(--ink-3); font-size:var(--fs-callout); }
/* Bereich, der eigenständig lädt (loadArea in app-ui.js): Hülle ohne eigenes Layout; Fehlerbild mit „Erneut versuchen“ */
.area { display:contents; }
.load-fail-text { color:var(--ink-2); font-size:var(--fs-callout); min-width:12em; }

/* ---------------------------------------------------------------- Termine */
.ev { display:flex; gap:14px; padding:14px 16px; border-bottom:1px solid var(--line); align-items:flex-start; }
.ev:last-child { border-bottom:0; }
.ev:hover { background:var(--surface-2); }
.t-training { background:var(--kind-training); } .t-game { background:var(--kind-game); }
.t-tournament { background:var(--kind-tournament); } .t-other { background:var(--kind-other); }
.date-chip { flex:none; width:48px; text-align:center; padding:2px 0; }
.date-chip .d { font-size:var(--fs-title2); font-weight:700; line-height:1.1; font-variant-numeric:tabular-nums; }
.date-chip .m, .date-chip .w { font-size:var(--fs-cap); color:var(--ink-3); font-weight:600; }
.date-chip .w { color:var(--red); }
.ev-main { flex:1; min-width:0; }
.ev-title { font-weight:600; font-size:var(--fs-body); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ev-title button { background:none; border:0; padding:0; font:inherit; font-weight:600; cursor:pointer; text-align:left; }
.ev-title button:hover { color:var(--accent); }
.ev-meta { font-size:var(--fs-sub); color:var(--ink-2); display:flex; gap:4px 12px; flex-wrap:wrap; margin-top:2px; }
/* Uhrzeiten (app-blocks.js, timesHtml): „Treffen 10:15“ und „Beginn 11:00–12:30“ brechen nie in sich um. */
.ev-times time { white-space:nowrap; }
/* Karte „Nächster Termin“ (volle Breite): Treffen und Beginn zusammen in einer Zeile. */
.next-when .ev-times { white-space:nowrap; }
/* Art des Termins: farbiger Punkt mit Wort – Artfarben (--kind-*), keine Bedeutungsfarben */
.ev-kind { display:inline-flex; align-items:center; gap:6px; font-weight:500; color:var(--ink); }
.ev-kind .dot { width:8px; height:8px; border-radius:50%; }
.t-camp { background:var(--kind-camp); }
.t-goalie { background:var(--kind-goalie); }
/* Trainerteam: Ring mit Zusagen, daneben Zahl und offene Rückmeldungen */
.ev-count .tiny { text-align:right; line-height:1.35; }
/* Startseite: Zu-/Absage direkt auf der Karte „Nächster Termin“ */
.next-rsvp { margin-top:14px; padding-top:12px; border-top:.5px solid var(--line-strong); display:flex; flex-direction:column; gap:8px; }
.next-rsvp > .row { justify-content:flex-start; }
.next-rsvp .seg { flex:1 1 220px; max-width:360px; }
.next-rsvp .seg button { flex:1; min-height:40px; }
/* Termine: „Kalender abonnieren“ als leiser Link im Seitenkopf */
.linkish.cal-link { display:inline-flex; align-items:center; gap:5px; color:var(--accent); font-weight:500; vertical-align:baseline; }
.cal-link svg { width:1.05em; height:1.05em; }
.linkish.cal-link:hover { text-decoration:underline; color:var(--accent); }
/* Fenster einer Person (Kader → Bearbeiten): weitere Aktionen unter dem Formular */
.player-more { margin-top:16px; padding-top:12px; border-top:.5px solid var(--line-strong); display:flex; flex-direction:column; gap:8px; }
/* Ganze Zeile antippbar (list-tools.js): Zeiger und kurzes Aufhellen beim Antippen, wie bei Apple-Listen */
.ev:has(> .ev-main > .ev-title > button), .msg:has(> h4 > [data-wiki-open]), .td-row:has(> .td-name > [data-ts="open"]),
tr[data-kader-q]:has(button[data-player-edit]), .card-b:has(> h2 > .linkbtn) { cursor:pointer; -webkit-tap-highlight-color:transparent; }
.ev:has(> .ev-main > .ev-title > button):active, .msg:has(> h4 > [data-wiki-open]):active, .td-row:has(> .td-name > [data-ts="open"]):active,
tr[data-kader-q]:has(button[data-player-edit]):active > td, .card-b:has(> h2 > .linkbtn):active { background:var(--fill); }
.msg:has(> h4 > [data-wiki-open]):hover { background:var(--surface-2); }
/* Zeichen vor den Bereichen: Seitenleiste und Menü „Mehr“ */
.nav button > svg { width:19px; height:19px; flex:none; color:var(--accent); }
.more-grid button > svg { width:22px; height:22px; flex:none; color:var(--accent); }
.ev-side { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
@media (max-width:900px) {
  .ev { flex-wrap:wrap; }
  .ev-main { flex:1 1 60%; }
  .ev-side { width:100%; flex-direction:row; justify-content:flex-end; flex-wrap:wrap; }
}

/* Knopfleiste wie Apples Segmented Control: graue Spur, der gewählte Teil hebt sich weiß (dunkel: heller) ab. */
.seg { display:inline-flex; border:0; border-radius:9px; padding:2px; gap:2px; background:var(--fill); }
.seg button { border:0; background:transparent; padding:5px 12px; font-size:var(--fs-sub); font-weight:500;
              cursor:pointer; color:var(--ink); border-radius:7px; min-height:30px; }
.seg button:hover:not(.on):not(.on-yes):not(.on-no):not(.on-maybe) { background:var(--fill); }
.seg button.on { background:var(--surface); color:var(--ink); font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.05); }
:root[data-theme="dark"] .seg button.on { background:#3A4654; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .seg button.on { background:#3A4654; } }
.seg button.on-yes { background:var(--green); color:var(--on-color); font-weight:600; }
.seg button.on-no { background:var(--red); color:var(--on-color); font-weight:600; }

.meter { height:8px; border-radius:999px; background:var(--line); overflow:hidden; display:flex; }
.meter i { display:block; height:100%; }
.meter-empty { background:var(--fill); }
.legend-empty { color:var(--ink-3); }
.m-yes { background:var(--green); } .m-no { background:var(--red); } .m-open { background:var(--line-strong); }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:var(--fs-foot); color:var(--ink-2); margin-top:8px; }
.legend span { display:inline-flex; align-items:center; gap:6px; }
.dot { width:8px; height:8px; border-radius:3px; display:inline-block; }

.stat { padding:14px 16px; }
.stat .k { font-size:var(--fs-large); font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.stat .l { font-size:var(--fs-foot); color:var(--ink-2); margin-top:4px; font-weight:500; }

.tw { overflow-x:auto; max-width:100%; }
table { width:100%; border-collapse:collapse; font-size:var(--fs-callout); }
th { text-align:left; font-size:var(--fs-foot); color:var(--ink-3);
     font-weight:600; padding:10px 12px; border-bottom:.5px solid var(--line-strong); white-space:nowrap; }
td { padding:10px 12px; border-bottom:.5px solid var(--line); vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--surface-2); }
.jersey { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:6px;
          background:var(--accent-soft); color:var(--accent); font-weight:700; font-size:14px; }

.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { font-size:var(--fs-sub); font-weight:600; padding:4px 9px; border-radius:7px; background:var(--surface-2); border:1px solid var(--line); }
.chip.yes { background:var(--green-soft); border-color:color-mix(in srgb,var(--green) 25%,transparent); color:var(--green); }
.chip.no { background:var(--red-soft); border-color:color-mix(in srgb,var(--red) 25%,transparent); color:var(--red); }
.chip.open { background:var(--surface-2); color:var(--ink-3); }

.msg { padding:14px 16px; border-bottom:1px solid var(--line); }
.msg:last-child { border-bottom:0; }
.msg-h { display:flex; gap:9px; align-items:center; flex-wrap:wrap; font-size:var(--fs-foot); color:var(--ink-3); }
.msg h4 { font-size:var(--fs-title3); margin:4px 0 3px; }
.msg p { margin:0; font-size:var(--fs-callout); color:var(--ink-2); white-space:pre-wrap; }
.avatar { width:24px; height:24px; border-radius:50%; background:var(--accent-soft); color:var(--accent);
          display:grid; place-items:center; font-size:var(--fs-cap); font-weight:700; flex:none; }

.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:0 0 16px; overflow-x:auto; }
.tabs button { border:0; background:none; padding:9px 12px; font-weight:600; font-size:var(--fs-callout);
               color:var(--ink-3); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.tabs button.on { color:var(--accent); border-bottom-color:var(--accent); }
.tabs button:hover { color:var(--ink); }

.line-row { display:flex; gap:8px; align-items:center; padding:8px 0; border-bottom:1px dashed var(--line); }
.line-row:last-child { border-bottom:0; }
.line-row .lbl { width:104px; flex:none; font-size:var(--fs-foot); font-weight:600; color:var(--ink-3); }

.kv { display:grid; grid-template-columns:118px 1fr; gap:6px 14px; font-size:14px; margin:0; }
.kv dt { color:var(--ink-3); font-weight:500; font-size:var(--fs-sub); padding-top:1px; }
.kv dd { margin:0; }
@media (max-width:560px) { .kv { grid-template-columns:1fr; gap:2px 0; } .kv dd { margin-bottom:8px; } }

/* --------------------------------------------------------------- Anmeldung */
.login { min-height:100vh; display:grid; place-items:center; padding:24px 16px; background:var(--ground); }
.login-card { width:min(420px,100%); background:var(--surface); border:1px solid var(--card-line);
              border-radius:16px; box-shadow:var(--raise); padding:26px 24px 24px; }
.field { display:flex; flex-direction:column; gap:5px; }
.field > span { font-size:var(--fs-sub); font-weight:500; color:var(--ink-2); }
.field small { font-size:var(--fs-foot); color:var(--ink-3); }

/* ------------------------------------------------------------------ Dialog */
.scrim { position:fixed; inset:0; background:rgba(8,16,26,calc(.4 * var(--scrim-dim, 1))); z-index:60; display:grid; place-items:end center; }
.sheet { background:var(--surface); width:min(760px,100%); max-height:92vh; overflow:auto;
         border-radius:14px 14px 0 0; border:0; box-shadow:0 -10px 40px -20px rgba(0,0,0,.4); }
@media (min-width:760px) { .scrim { place-items:center; } .sheet { border-radius:16px; box-shadow:0 24px 60px -20px rgba(0,0,0,.45); } }
.sheet-h { position:sticky; top:0; background:var(--bar); border-bottom:.5px solid var(--line-strong);
           -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px);
           padding:16px 18px 14px; display:flex; gap:12px; align-items:flex-start; z-index:2; }
/* Griff oben am Fenster (Handy): zeigt, dass es ein Fenster über der Seite ist. Griff und Kopfzeile ziehen das Fenster
   nach unten (Wischen schließt, app-shell.js); der Inhalt federt oben nicht nach, damit das Wischen dort ankommt. */
@media (max-width:759px) { .sheet-h { padding-top:20px; touch-action:none; } .sheet { overscroll-behavior-y:contain; } .sheet-h::before { content:''; position:absolute; top:6px; left:50%; width:36px; height:5px;
  margin-left:-18px; border-radius:3px; background:var(--line-strong); } }
.sheet-h h2 { font-size:var(--fs-title2); font-weight:700; }
/* Schließen: runder grauer Knopf oben rechts (Apple: Close-Knopf). */
.x { margin-left:auto; border:0; background:var(--fill); color:var(--ink-2); width:30px; height:30px;
     border-radius:50%; cursor:pointer; font-size:14px; font-weight:700; line-height:1; flex:none; position:relative; }
.x::after { content:''; position:absolute; inset:-7px; }
.x:hover { background:var(--fill-2); color:var(--ink); }
.sheet-b { padding:18px; display:flex; flex-direction:column; gap:16px; }
/* Gruppen im Fenster: fein umrandet, damit sie sich von der weißen Fensterfläche abheben. */
.sheet .card { border-color:var(--line); box-shadow:none; }
/* Platz im Fenster am Handy (docs/DESIGN.md „Platz am Handy“): Kopf knapp (Griff, Titel, ✕), Inhalt mit 16 px Rand.
   Eine Oberzeile, die nur die Ansicht wiederholt, aus der das Fenster kommt (Kader → „Kader“), entfällt (app-shell.js
   setzt ph-dup); Erklärungen mit class="m-intro" zeigt der Knopf i neben dem Titel (compact.js). Leere Platzhalter und
   Absatzränder ergeben keine doppelten Abstände. */
@media (max-width:660px) {
  .sheet-h { padding:12px 16px 10px; align-items:center; }
  .sheet-h::before { top:4px; }
  .sheet-h h2 { font-size:var(--fs-title3); line-height:1.25; }
  .sheet-h .eyebrow { line-height:1.25; }
  .sheet-h .eyebrow.ph-dup { display:none; }
  .sheet-h > div:has(> h2) { display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; flex:1 1 auto; min-width:0; }
  .sheet-h > div > .eyebrow { flex:1 1 100%; }
  .sheet-h > div > h2 { min-width:0; overflow-wrap:anywhere; }
  .sheet-h > div > h2:has(+ .intro-more) { max-width:calc(100% - 46px); }   /* i bleibt neben dem Titel, Tippfläche inklusive */
  .sheet-b { padding:16px; }
  /* Fußleisten, die bis an den Fensterrand reichen (Block-Editor: Speichern, Übungswahl), folgen dem Rand */
  .sheet-b .se-savebar, .sheet-b .se-pick-f { bottom:-16px; margin-inline:-16px; margin-bottom:-16px; padding-inline:16px; }
  .sheet-b > :empty:not(input, textarea, select, canvas, iframe, img, video, hr) { display:none; }
  .sheet-b > :first-child, .sheet-b > :first-child > :first-child { margin-top:0; }
  .sheet-b > p { margin-block:0; }
  .sheet:not(.open) .sheet-b .m-intro { display:none; }
  .sheet-h .intro-more { display:inline-flex; align-items:center; justify-content:center; flex:none; width:30px; height:30px; margin:0; padding:0;
    border-radius:50%; background:var(--fill); color:var(--accent); font-size:var(--fs-callout); font-weight:700; line-height:1; position:relative; }
  .sheet-h .intro-more::after { content:''; position:absolute; inset:-7px; }
  .sheet.open .sheet-h .intro-more { display:none; }
}

/* Meldung unten, mittig: links/rechts verankert + Breite nach Inhalt – sonst begrenzt left:50% die Breite auf die halbe
   Seite, langer Text bricht in viele Zeilen um. Ecken 20px statt Pille: einzeilig wirkt es rund, mehrzeilig wird es kein
   Oval, das den Text anschneidet. Am Handy steht sie über der Leiste unten: app-ui.js misst deren Höhe (--toast-bottom) – auch bei großer
   Systemschrift. (Früher stand dafür eine Handy-Regel weiter oben im Stylesheet, die diese Regel überschrieb.) */
.toast { position:fixed; left:0; right:0; margin-inline:auto; width:fit-content; max-width:min(560px, calc(100vw - 32px));
         bottom:var(--toast-bottom, 22px); background:var(--ink); color:var(--ground); line-height:1.35;
         padding:11px 18px; border-radius:20px; font-weight:600; font-size:var(--fs-callout); z-index:80;
         box-shadow:0 10px 30px -10px rgba(0,0,0,.4); }
.toast.bad { background:var(--red); color:var(--on-color); }
.toast.bad { display:flex; align-items:center; gap:10px; border-radius:14px; padding-right:8px; }
.toast-x { background:none; border:0; color:inherit; font:inherit; font-size:15px; cursor:pointer; padding:4px 8px; border-radius:8px; }
.toast-x:hover, .toast-x:focus-visible { background:rgba(255,255,255,.18); }
/* Meldung mit Knopf (z. B. „Rückgängig“ nach „Antwort ändern“): Text links, Knopf rechts, Tippfläche 44 px am Handy */
.toast.toast-with-act { display:flex; align-items:center; gap:12px; border-radius:14px; padding-right:8px; }
.toast-act { background:none; border:0; color:inherit; font:inherit; font-weight:700; text-decoration:underline;
  text-underline-offset:3px; cursor:pointer; padding:6px 10px; min-height:36px; border-radius:8px; flex:none; }
.toast-act:hover, .toast-act:focus-visible { background:rgba(127,127,127,.25); }
@media (max-width:900px) { .toast-act { min-height:44px; } }

.skeleton { padding:40px 16px; text-align:center; color:var(--ink-3); }

/* ---------------------------------------------------------------------------
 * Hilfsklassen.
 *
 * Diese ersetzen inline style-Attribute. Grund ist nicht Ordnungsliebe,
 * sondern die Content-Security-Policy: mit style-src 'self' verbietet der
 * Browser jedes style-Attribut im HTML. Was dynamisch ist (Balkenbreiten),
 * wird nach dem Einfügen über das CSSOM gesetzt - das erlaubt die CSP.
 * ------------------------------------------------------------------------ */
.m0 { margin:0; }
.mb0 { margin-bottom:0; }
.mb6 { margin-bottom:6px; }
.mb7 { margin-bottom:7px; }
.mb8 { margin-bottom:8px; }
.mb9 { margin-bottom:9px; }
.mb12 { margin-bottom:12px; }
.mb14 { margin-bottom:14px; }
.mb16 { margin-bottom:16px; }
.mt4 { margin-top:4px; }
.mt5 { margin-top:5px; }
.mt6 { margin-top:6px; }
.mt7 { margin-top:7px; }
.mt8 { margin-top:8px; }
.mt9 { margin-top:9px; }
.mt10 { margin-top:10px; }
.mt12 { margin-top:12px; }
.mt16 { margin-top:16px; }
.right { text-align:right; }
.center { text-align:center; }
.between { justify-content:space-between; }
.align-end { align-items:flex-end; }
.gap7 { gap:7px; }
.gap8 { gap:8px; }
.w150 { width:150px; }
.w230 { min-width:230px; }
.narrow { max-width:420px; }
.strong { color:var(--ink); }
.warn { color:var(--amber); font-weight:600; }
.h-lg { font-size:24px; margin:6px 0 0; }
.bar-label { font-size:var(--fs-sub); font-weight:600; }
.boxed { border:1px solid var(--line); border-radius:8px; padding:11px 12px; background:var(--surface-2); }
.cb { width:auto; }
/* Ankreuzfeld mit Beschriftung: Langer Text bricht neben dem Kästchen um, statt als Ganzes unter das Kästchen zu rutschen
   (am Handy stand sonst das Kästchen allein in einer Zeile). */
label.row > input.cb:first-child + span:last-child { flex:1 1 0; min-width:0; }
.dot-yes { background:var(--green); }
.dot-no { background:var(--red); }
.dot-open { background:var(--line-strong); }
.m-accent { background:var(--accent); }
.k-green { color:var(--green); }
.k-red { color:var(--red); }
.k-amber { color:var(--amber); }
/* Kennzahl ohne Bezug (z. B. niemand eingeladen): grau statt Bedeutungsfarbe */
.k-grey { color:var(--ink-3); }
/* Ziel eines Sprungs von der Startseite (konkrete Umfrage, konkreter Dienst): kurz blau umrandet */
.focus-hit { box-shadow:0 0 0 2px var(--accent); border-radius:12px; }

/* ------------------------------------------------------------------ Wiki */
.linkish { background:none; border:0; padding:0; font:inherit; font-weight:inherit; color:inherit; cursor:pointer; text-align:left; }
/* „font:inherit“ oben würde die kleine Schrift überschreiben */
.linkish.tiny { font-size:var(--fs-foot); }
.linkish:hover { color:var(--accent); text-decoration:underline; }
.hidden-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.editor { min-height:320px; font-family:var(--mono); font-size:13.5px; line-height:1.55; }
.prose { max-width:72ch; font-size:15.5px; line-height:1.6; }
.prose h2 { font-size:22px; margin:22px 0 8px; }
.prose h3 { font-size:18px; margin:18px 0 6px; }
.prose h4 { font-size:16px; margin:14px 0 4px; }
.prose h2:first-child, .prose h3:first-child, .prose p:first-child { margin-top:0; }
.prose p { margin:0 0 12px; }
.prose ul, .prose ol { margin:0 0 12px; padding-left:24px; }
.prose li { margin:3px 0; }
.prose blockquote { margin:0 0 12px; padding:8px 14px; border-left:3px solid var(--accent); background:var(--surface-2); border-radius:0 8px 8px 0; color:var(--ink-2); }
.prose blockquote p { margin:0; }
.prose code { font-family:var(--mono); font-size:.9em; background:var(--surface-2); border:1px solid var(--line); border-radius:4px; padding:1px 5px; }
.prose pre { background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:12px 14px; overflow-x:auto; margin:0 0 12px; }
.prose pre code { border:0; padding:0; background:none; }
.prose hr { border:0; border-top:1px solid var(--line); margin:18px 0; }
.prose a { color:var(--accent); }
.prose table { margin-bottom:12px; }

/* Eigenständige Eisplanung, auch per Touch/Tastatur vollständig bedienbar. */
.planner-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.planner-toolbar .field { margin:0; }
input[type=date] { font:inherit; border:1px solid var(--line-strong); background:var(--surface-2); border-radius:8px; color:var(--ink); padding:8px 11px; }
.planner-summary .card-b { display:flex; flex-direction:column; gap:5px; }
.planner-summary strong { font-size:23px; }
.planner-summary span { font-size:12px; color:var(--ink-2); }
.planner-teams { display:flex; gap:10px; flex-wrap:wrap; }
.team-token { border-left:5px solid var(--team-color); cursor:grab; }
.team-token.selected { outline:3px solid var(--accent); outline-offset:2px; }
.team-color-0 { --team-color:#4b95ee; }
.team-color-1 { --team-color:#a478db; }
.team-color-2 { --team-color:#32a782; }
.team-color-3 { --team-color:#d39336; }
.team-color-4 { --team-color:#e17488; }
.team-color-5 { --team-color:#56a6bb; }
/* Eisplanung: volle Breite, sieben gleich breite Tage, kompakte Karten */
main[data-view="planung"] { max-width:none; }
.planner-week { display:grid; grid-template-columns:repeat(7,minmax(165px,1fr)); overflow-x:auto; gap:8px; padding-bottom:10px; align-items:start; }
.planner-day { border:1px solid var(--line); border-radius:12px; background:var(--surface-2); padding:8px; min-width:0; }
.planner-day h2 { font-size:14px; margin:2px 2px 8px; }
.ice-slot { padding:9px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); margin-bottom:8px; }
.slot-head { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.ice-slot h3 { font-size:16px; margin:0; font-variant-numeric:tabular-nums; }
.slot-meta { margin:2px 0 6px; overflow-wrap:anywhere; }
.slot-free { margin-top:3px; }
.slot-assign { width:100%; margin-top:7px; }
.btn.btn-xs { padding:3px 8px; font-size:12.5px; min-height:0; line-height:1.4; border-radius:7px; }
.ice-slot.drop { outline:3px solid var(--accent); background:var(--accent-soft); }
.ice-diagram { display:grid; grid-template-columns:repeat(6,1fr); gap:2px; height:14px; border:1px solid var(--line-strong); border-radius:12px; overflow:hidden; }
.ice-free { background:var(--green-soft); }
.ice-used { background:var(--accent); }
.ice-unavailable { background:repeating-linear-gradient(45deg,var(--line),var(--line) 3px,var(--surface-2) 3px,var(--surface-2) 7px); }
.training-block { border-left:4px solid var(--team-color); padding:6px 7px; background:var(--surface-2); border-radius:6px; margin-top:6px; }
.training-block[data-movable] { cursor:grab; }
.team-token, .training-block[data-movable] { user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.team-token.dragging, .training-block.dragging { opacity:.4; }
.block-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.block-head .pill { margin-left:auto; }
.block-actions { display:flex; gap:5px; margin-top:5px; }
.training-removed { border-left-color:var(--red); opacity:.85; }
.planner-empty { padding:8px 4px; color:var(--ink-3); font-size:12.5px; }
.planner-add { margin-top:2px; width:100%; padding:4px 8px; font-size:12.5px; }
.distribution-row { display:grid; grid-template-columns:100px minmax(0,1fr); gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.distribution-row .row { flex-wrap:wrap; }
.distribution-row progress { width:100%; height:13px; accent-color:var(--accent); }
@media (max-width:660px) {
  .planner-week { grid-template-columns:1fr; overflow:visible; }
  .planner-day { min-height:0; }
  .planner-toolbar { align-items:center; }
  .planner-toolbar .field { flex:1; min-width:190px; }
  .distribution-row { grid-template-columns:65px minmax(0,1fr); }
  .btn,.nav button,.seg button { min-height:44px; }
  input,select,textarea { font-size:max(16px, 1rem) !important; }
  .top-in { gap:8px; }
  .who { flex-wrap:wrap; }
  .page-head { flex-wrap:wrap; gap:12px; }
  .page-head h1 { overflow-wrap:anywhere; }
  .sheet { max-height:92dvh; }
}

/* Elterndienste, Ausrüstung, Auswertung */
.duty-row { align-items:flex-start; padding:12px 0; }
.duty-main { flex:1; min-width:0; }
.duty-side { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.duty-row .dot { width:10px; height:10px; }
.tw td .meter { min-width:110px; }
@media (max-width:560px) {
  .duty-row { flex-direction:column; }
  .duty-side { justify-content:flex-start; }
}

/* Eisplanung: Wochenübersicht und Excel-Import */
.week-strip { display:grid; grid-template-columns:repeat(8,minmax(120px,1fr)); gap:8px; overflow-x:auto; padding-bottom:4px; }
.week-tile { display:flex; flex-direction:column; gap:4px; text-align:left; padding:10px 12px; border-radius:10px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; font:inherit; }
.week-tile strong { font-size:var(--fs-title2); }
.week-tile.on { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
.week-tile:hover { border-color:var(--accent-2); }
.import-sheet details summary { cursor:pointer; padding:6px 0; }
.import-table { max-height:46vh; overflow:auto; border:1px solid var(--line); border-radius:10px; }
.import-table tr.muted td { color:var(--ink-3); }
.row.wrap { flex-wrap:wrap; }
@media (min-width:760px) { .sheet:has(.import-sheet) { width:min(1040px,100%); } }
.week-tile .pill { align-self:flex-start; }
.seg button.on-maybe { background:var(--amber, #B7791F); color:var(--on-color); }
.ice-slot.ice-external { border-style:dashed; border-color:var(--accent-2); }
.venue-main { flex:1; min-width:0; text-align:left; }
.grow { flex:1; min-width:0; text-align:left; }
/* Kurze Überschrift in einer Reihe mit Knöpfen (z. B. „Tagesprogramm“ im Camp-Fenster): nicht unter ihre Breite
   zusammendrücken – lieber rutschen die Knöpfe in die nächste Zeile (sonst liegen sie am Handy über dem Text). */
.row > b.grow { flex:1 0 auto; max-width:100%; }

/* Hilfe für Eltern (hilfe.html) */
.help-page { background:var(--bg); }
.help-brand { color:inherit; text-decoration:none; }
.help { max-width:860px; margin:0 auto; padding:24px 16px 64px; }
.help h1 { font-size:30px; margin:8px 0 10px; }
.help h2 { font-size:21px; margin:0 0 10px; }
.help h3 { font-size:17px; margin:0 0 4px; }
.help-lead { font-size:17px; color:var(--ink-2); margin:0 0 18px; }
.help-section { margin:30px 0; scroll-margin-top:110px; }
.help-section p, .help-section li { line-height:1.55; }
.help-section ul, .help-section ol, .help-toc ol { padding-left:22px; }
.help-section li { margin:6px 0; }
.help-toc ol { margin:8px 0 0; columns:2; column-gap:28px; }
.help-toc li { margin:4px 0; break-inside:avoid; }
.help-faq { margin:8px 0; }
.help-faq summary { cursor:pointer; padding:14px 16px; font-weight:700; }
.help-faq[open] summary { border-bottom:1px solid var(--line); }
.help-contact { margin-top:32px; }
.nav .nav-help { display:block; padding:9px 12px; margin-top:8px; color:var(--ink-2); font-size:var(--fs-callout); text-decoration:none; }
.login-help { text-align:center; margin-top:14px; font-size:var(--fs-callout); }
@media (max-width:660px) { .help-toc ol { columns:1; } .help h1 { font-size:25px; } }
.help-page a.btn { text-decoration:none; }

/* Spielkader */
.squad-cell { padding-left:28px !important; }
/* Mannschaften umsortieren: Griff zum Ziehen und ↑ ↓ (Verwaltung → Mannschaften) */
.team-order { white-space:nowrap; }
.team-order .btn-xs { min-width:30px; }
.team-grip { display:inline-block; padding:4px 6px; margin-right:2px; color:var(--ink-3); cursor:grab; letter-spacing:-2px; user-select:none; -webkit-user-select:none; }
.team-grip-name { display:none; letter-spacing:0; }
.drag-ghost.team-grip { background:var(--surface); border-radius:8px; padding:6px 10px; }
.drag-ghost .team-grip-name { display:inline; }
.team-grip.dragging { opacity:.4; }
tr.drop > td { background:var(--accent-soft); }
.squad-list { max-height:55vh; overflow:auto; border:1px solid var(--line); border-radius:10px; padding:4px 12px; }
.squad-row { padding:8px 0; border-bottom:1px dashed var(--line); }
.squad-row:last-child { border-bottom:0; }
.update-log { white-space:pre-wrap; font-size:12px; max-height:320px; overflow:auto; background:var(--surface-2); padding:10px; border-radius:8px; }
.linkbtn { background:none; border:0; padding:0; color:var(--accent); text-decoration:underline; cursor:pointer; font:inherit; }
/* Titel, die etwas öffnen: dunkle Schrift mit Pfeil › statt unterstrichenem Link (Apple: Listenzeile mit Pfeil). */
.linkbtn.h-lg { color:var(--ink); text-decoration:none; text-align:left; }
.linkbtn.h-lg::after { content:' ›'; color:var(--ink-3); font-weight:400; }
.linkbtn.h-lg:hover { color:var(--accent); }
.err.ok { color:var(--green); }
@media (max-width:900px) { .top-in:has(#teamPicker[hidden]) .brand > div:last-child { display:block; } }
.more-who a.btn { text-decoration:none; }
.plain-fieldset { border:0; padding:0; margin:0; min-width:0; }
/* Camp-Programm bearbeiten */
.camp-rows { gap:8px; }
.camp-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:6px; align-items:center;
  padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); }
.camp-row input[data-f="title"] { grid-column:span 2; }
.fw-shift { align-items:flex-start; flex-wrap:wrap; gap:8px 12px; }
@media (max-width:660px) { .btn.btn-xs { min-height:36px; padding:6px 10px; } }
/* Eisland-Abgleich in der Wochenansicht */
.eisland-ghost { display:flex; align-items:center; justify-content:space-between; gap:6px; border:1px dashed var(--red); border-radius:8px; padding:4px 6px; margin-bottom:6px; background:color-mix(in srgb, var(--red) 5%, transparent); }
.eisland-flag { margin:2px 0 4px; font-weight:600; }
.eisland-cabin { margin:0 0 4px; color:var(--ink-2); }
.eisland-summary details summary { cursor:pointer; }
/* NEV-Markierungen und Spielkader */
.nev-badges { display:inline-flex; flex-wrap:wrap; gap:3px; vertical-align:middle; }
.nev-badge { display:inline-block; font-size:var(--fs-cap); font-weight:700; line-height:1.5; padding:0 6px; border-radius:6px; border:1px solid transparent; white-space:nowrap; }
.nev-core { background:var(--accent-soft); color:var(--accent); }
.nev-up { background:var(--amber-soft); color:var(--amber); }
.nev-up-young { background:var(--amber-soft); color:var(--amber); border-color:var(--amber); }
.nev-girl { background:color-mix(in srgb, #a478db 18%, transparent); color:#7d4fc0; }
.nev-bad { background:var(--red-soft); color:var(--red); }
.nev-ok { background:var(--green-soft); color:var(--green); }
.nev-unknown { background:var(--surface-2); color:var(--ink-3); border-color:var(--line); }
.nev-goalie { background:var(--ink); color:var(--surface); }
.nev-from, .nev-also { background:var(--surface-2); color:var(--ink-2); border-color:var(--line); }
.nev-tk { background:color-mix(in srgb, var(--amber) 22%, var(--surface)); color:var(--ink); border-color:color-mix(in srgb, var(--amber) 55%, transparent); }
.nev-legend { display:inline-flex; gap:4px; align-items:center; flex-wrap:wrap; color:var(--ink-3); }
.nev-roster summary { cursor:pointer; list-style:none; }
.nev-verdict { font-weight:800; padding:8px 10px; border-radius:8px; margin-bottom:8px; }
.nev-verdict-ok { background:var(--green-soft); color:var(--green); }
.nev-verdict-warning { background:var(--amber-soft); color:var(--amber); }
.nev-verdict-error { background:var(--red-soft); color:var(--red); }
.nev-checks { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.nev-checks li { display:flex; gap:8px; align-items:flex-start; }
.nev-icon { flex:none; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:800; color:var(--on-color); }
.nev-check-ok .nev-icon { background:var(--green); }
.nev-check-warning .nev-icon { background:var(--amber); }
.nev-check-error .nev-icon { background:var(--red); }
.sheet.sheet-wide { width:min(1240px,100%); }
.lineup-editor { display:grid; grid-template-columns:minmax(260px,330px) minmax(0,1fr); gap:16px; align-items:start; }
.lu-rules { position:sticky; top:0; }
.lu-table select { padding:4px 26px 4px 8px; font-size:13px; }
.lu-table tr.lu-selected { background:var(--accent-soft); }
.lu-table tr.lu-sub td { padding-top:12px; border-bottom:1px solid var(--line-strong); }
.pr-sub { padding:4px 0 0; }
.line-rot { box-shadow:inset 4px 0 0 #d23b3b; } .line-gelb { box-shadow:inset 4px 0 0 #e0b300; }
.line-gruen { box-shadow:inset 4px 0 0 #2e9e5b; } .line-blau { box-shadow:inset 4px 0 0 #2f6fd6; }
.line-row.line-rot .lbl { color:#d23b3b; } .line-row.line-gelb .lbl { color:#b38f00; }
.line-row.line-gruen .lbl { color:#2e9e5b; } .line-row.line-blau .lbl { color:#2f6fd6; }
@media (max-width:900px) { .lineup-editor { grid-template-columns:1fr; } .lu-rules { position:static; } }

/* Monatsüberschrift in Terminlisten */
.month-h { position:sticky; top:0; z-index:1; padding:8px 18px 6px; font-size:var(--fs-sub); font-weight:600;
  color:var(--ink-2); background:var(--surface-2); border-bottom:.5px solid var(--line-strong); }
.tabs.tabs-sm { margin:0; }
.tabs.tabs-sm button { padding:6px 10px; font-size:var(--fs-sub); }
.bulk-rsvp { border-bottom:1px solid var(--line); }

.seg.seg-sm button { padding:4px 9px; font-size:var(--fs-foot); }
.w100 { width:100%; }
.bt { border-top:1px solid var(--line); }
.row.end { justify-content:flex-end; }

/* Saison-Dienstplan */
.tt-post-head { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.tt-post-head input[type=text] { flex:1 1 200px; font-weight:700; }
.tt-grip { flex:0 0 18px; align-self:stretch; display:grid; place-items:center; color:var(--ink-3); cursor:grab; font-size:var(--fs-sub); letter-spacing:-2px; user-select:none; -webkit-user-select:none; }
.tt-post-head .tt-move { min-width:30px; padding-left:6px; padding-right:6px; }
[data-tt-post].drop { outline:2px dashed var(--accent); outline-offset:2px; }
.tt-person { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.tt-person select, .tt-person input[type=text] { flex:1 1 160px; min-width:0; }
.stack-sm { display:flex; flex-direction:column; gap:6px; }
.w70 { width:70px; }
.tt-list { margin:0; padding-left:20px; display:grid; gap:4px; }
.ok { color:var(--green); }

/* Infoblatt, Einladung, Tablet-Link: großer Code */
.big-code { font-size:20px; letter-spacing:.06em; }

/* ------------------------------------------------------------------ Druck
   Gilt für jeden Ausdruck (docs/DESIGN.md „Druckausgaben“, frontend/print.js). Immer hell, ohne App-Rahmen, Menü und
   Knöpfe, voller Inhalt über mehrere Seiten. Gedruckt wird – in dieser Reihenfolge –
     1. ein eigener Druckbereich .print-box (printBox in print.js; body.printing),
     2. sonst ein offenes Fenster (#modal) in voller Länge,
     3. sonst der Inhalt der Seite (#main).
   Steht im Fenster bzw. auf der Seite ein .print-sheet, nur dieses. Module ergänzen nur ihr eigenes Layout
   (z. B. `.ts-print .ts-paper`), blenden aber nie body/#main/#modal aus. */
.print-box { display:none; }
@media print {
  /* Hell drucken, auch wenn dunkel oder „automatisch“ gewählt ist (Werte wie :root oben) */
  :root, :root[data-theme] {
    color-scheme:light;
    --ground:#FFFFFF; --surface:#FFFFFF; --surface-2:#F7F8FA; --raise:none;
    --line:#C9D1DB; --line-strong:#9AA8B8; --card-line:#C9D1DB; --fill:rgba(118,128,142,.12); --fill-2:rgba(118,128,142,.2); --bar:#FFFFFF;
    --ink:#000000; --ink-2:#2E3F52; --ink-3:#34475C;
    --accent:#005CA9; --accent-2:#0A74CE; --accent-soft:#E0EDF8;
    --red:#C1202C; --red-soft:#FBE7E8; --green:#1B7A4C; --green-soft:#E3F3EA; --amber:#8F5A00; --amber-soft:#FBEEDA;
    --kind-training:#1D64B5; --kind-training-soft:#E2EDF9; --kind-game:#6B40BF; --kind-game-soft:#EEE7FA;
    --kind-tournament:#0A6F80; --kind-tournament-soft:#DFF1F4; --kind-camp:#A3256F; --kind-camp-soft:#F8E4F0;
    --kind-other:#5B6878; --kind-other-soft:#ECEFF3; --kind-goalie:#9A4A12; --kind-goalie-soft:#F8E9DD;
    --on-color:#FFFFFF;
  }
  html, body { background:#fff !important; color:#000; height:auto !important; overflow:visible !important; }
  body { font-size:11pt; }
  /* App-Rahmen und alles, was nur am Bildschirm Sinn ergibt */
  #splash, #login, #toast, #mfaGate, .top, .nav, .tabbar, .setup-overlay, .drag-ghost,
  .btn, .x, .seg, .tabs, .list-bar, .no-print, details.evt-more, .sketch-play-btn, .play-bar,
  .se-side, .se-savebar, .se-pagebar, .st-bar, .bd-bar { display:none !important; }
  /* Such- und Filterzeilen (Suche, Auswahl „Alle …“) */
  input[type=search], label:has(> input[type=search]), label.field:has(> select), .kader-tools, .coach-filter { display:none !important; }
  .app { display:block !important; min-height:0; }
  main { max-width:none; padding:0; }
  /* Scrollen gibt es auf Papier nicht: Kästen mit fester Höhe zeigen alles statt nur den sichtbaren Ausschnitt */
  :is(main, #modal, .print-box) :not(img, svg, svg *, video, canvas, .cert-page) { max-height:none !important; overflow:visible !important; }
  /* Klebende Leisten im Fluss lassen (sonst überdecken sie Inhalt oder wiederholen sich) */
  .sheet-h, .if-bar, .if-holder, .if-rail-holder, .month-h, .lu-rules, .drill-bar, .vc-pool-card, .an-side, .ts-live-f,
  .cp-week td, .cp-week th { position:static !important; }
  .card, .sheet .card { box-shadow:none; border-color:var(--line); }
  /* 2. Fenster: nur das Fenster, in voller Länge statt im festen, scrollenden Kasten */
  body:has(#modal > *) #app { display:none !important; }
  #modal .scrim { position:static; display:block; background:none; }
  #modal .sheet { width:auto; max-width:none; border:0; border-radius:0; box-shadow:none; animation:none; transform:none; }
  #modal .sheet-h { padding:0 0 8px; background:none; border-bottom:1px solid var(--line-strong); -webkit-backdrop-filter:none; backdrop-filter:none; }
  #modal .sheet-h::before { display:none; }
  #modal .sheet-b { padding:12px 0 0; }
  /* .print-sheet (Liste, Infoblatt, Einladung, Tablet-Link, Clips): nur dieser Teil von Fenster bzw. Seite */
  #modal .sheet:has(.print-sheet) .sheet-h { display:none; }
  #modal .sheet-b:has(.print-sheet) > :not(.print-sheet), main:has(.print-sheet) :not(.print-sheet, .print-sheet *, :has(.print-sheet)) { display:none !important; }
  .print-sheet { color:#000; }
  /* 1. Eigener Druckbereich: nur er */
  body.printing > :not(.print-box) { display:none !important; }
  body.printing > .print-box { display:block; }
  /* Seitenumbrüche: Überschrift nicht allein unten, Übungen, Skizzen, Zeilen und Karten nicht mitten durch */
  h1, h2, h3, h4, .card-h, .sheet-h { break-after:avoid; page-break-after:avoid; }
  tr, svg, img, figure, .ts-item, .plan-drill, .gp-step, .drill-view, .print-avoid { break-inside:avoid; page-break-inside:avoid; }
  thead { display:table-header-group; }
  svg, img { max-width:100%; }
  a { color:inherit; text-decoration:none; }
}

/* Kabine light: größere Knöpfe und Schrift, weniger Ablenkung */
.center { text-align:center; }
body.light-mode { font-size:max(17px, var(--fs-body)); }
body.light-mode .seg button { padding:10px 16px; font-size:15px; }
body.light-mode .ev-meta span:nth-child(n+3) { display:none; }
body.light-mode .page-head p { display:none; }

/* Handy: Zu-/Absage wie gewohnt (Kadermanager) – volle Breite, große Tippflächen */
@media (max-width:600px) {
  .ev { padding:12px; gap:10px; }
  .ev-side > .row { width:100%; justify-content:space-between; flex-wrap:wrap; }
  .ev-side > .row > .seg { flex:1 1 220px; max-width:360px; }
  .ev-side .seg button { flex:1; min-height:42px; }
  .ev-side > .row > .seg.seg-sm button { min-height:34px; }
  .month-h { padding:8px 12px 6px; }
  /* Trainerteam: Ring und „13/16 zugesagt“ bleiben zusammen, unter dem Titel ausgerichtet */
  .ev-side > .ev-count { justify-content:flex-start; padding-left:58px; }
  .ev-count .tiny { text-align:left; }
}

/* Rückmeldungen wie im Kadermanager */
.att-ring { --deg:360deg; flex:none; width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  background:conic-gradient(var(--green) var(--deg), var(--line) 0); }
.att-ring span { width:36px; height:36px; border-radius:50%; background:var(--surface); display:grid; place-items:center;
  font-weight:800; font-size:16px; color:var(--accent); font-variant-numeric:tabular-nums; }
.ev-ring { flex:none; align-self:center; }
.att-comment { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.att-cols { display:grid; gap:12px; }
.att-col { border-radius:10px; padding:8px 10px; }
.att-col-h { font-weight:700; margin-bottom:6px; }
.att-yy { font-weight:500; opacity:.65; font-size:11px; }
.att-yes { background:var(--green-soft); }
.att-no { background:var(--red-soft); }
.att-open { background:var(--surface-2); border:1px solid var(--line); }
.att-chip.g-staff { background:#fdf6d3; color:#5b4a00; }
.att-chip.g-core { background:#e1ecd2; color:#2d4a12; }
.att-chip.g-goalie { background:#cfeeee; color:#0f4f52; }
.att-chip.g-guest { background:#d6e4ef; color:#1d3d5c; }
.att-chip.g-trial { background:#f8dcc6; color:#6a3410; }
.att-stats { width:100%; }
.att-stats td { padding:8px 10px; }
.att-stats tr.g-staff { background:#fdf6d3; } .att-stats tr.g-core { background:#e1ecd2; } .att-stats tr.g-goalie { background:#cfeeee; }
.att-stats tr.g-guest { background:#d6e4ef; } .att-stats tr.g-trial { background:#f8dcc6; }
.att-stats tr:not(.att-total) td { color:#1d2a36; }
.att-total td { font-weight:800; }
/* Lesen und Ändern getrennt: Zähler je Bezugsgruppe, Trainerteam eigene Zeile, Bearbeitungsmodus sichtbar */
.att-sum { display:flex; flex-wrap:wrap; gap:4px 18px; font-size:var(--fs-sub); color:var(--ink-2); }
.att-staff .chips { gap:6px; }
.att-editing { box-shadow:0 0 0 2px var(--accent); }
.att-edit-mark { color:var(--accent); font-weight:600; }
.att-set { cursor:pointer; }
.att-ring-empty { background:var(--line); }
.att-ring-empty span { color:var(--ink-3); }
.att-pick { display:flex; flex-wrap:wrap; }
.att-pick button { flex:1 1 auto; min-height:36px; }
@media (max-width:900px) { .att-pick button { min-height:44px; } }
.print-table { width:100%; border-collapse:collapse; margin-top:12px; }
.print-table th, .print-table td { border:1px solid #999; padding:4px 6px; text-align:left; font-size:13px; }

/* Datenschutz */
.consent { align-items:flex-start; font-size:var(--fs-callout); }
.legal-edit { width:100%; font-family:var(--mono); font-size:13px; }

/* Schiedsrichter */
.ref-box { border-top:1px solid var(--line); padding-top:10px; }

/* Monatsansicht */
.mv-head { gap:8px; flex-wrap:wrap; }
.mv-head h3 { min-width:150px; text-align:center; }
.mv-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border-top:1px solid var(--line); }
.mv-wd { padding:6px 8px; font-size:var(--fs-cap); font-weight:600; color:var(--ink-3); border-bottom:1px solid var(--line); }
.mv-day { min-height:104px; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface);
  padding:4px; text-align:left; font:inherit; color:inherit; cursor:pointer; display:flex; flex-direction:column; gap:3px; min-width:0; }
.mv-day:nth-child(7n+7) { border-right:0; }
.mv-day:hover { background:var(--surface-2); }
.mv-other { background:var(--surface-2); color:var(--ink-3); }
.mv-num { font-size:12px; font-weight:700; }
.mv-today .mv-num { background:var(--accent); color:var(--on-color); border-radius:999px; padding:0 7px; align-self:flex-start; }
.mv-sel { outline:2px solid var(--accent); outline-offset:-2px; }
.mv-clash { box-shadow:inset 0 0 0 2px var(--red); }
.mv-items { display:flex; flex-direction:column; gap:2px; min-width:0; }
.mv-ev { display:block; font-size:11px; line-height:1.3; padding:1px 4px; border-radius:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  background:var(--k-soft, var(--kind-training-soft)); color:var(--ink); border-left:3px solid var(--k, var(--kind-training)); }
/* Art: Farbe (--k, ohne Angabe Training) und Kürzel (.mv-k) – die Farbe allein trägt keine Bedeutung. */
.t-game { --k:var(--kind-game); --k-soft:var(--kind-game-soft); }
.t-tournament { --k:var(--kind-tournament); --k-soft:var(--kind-tournament-soft); }
.t-camp { --k:var(--kind-camp); --k-soft:var(--kind-camp-soft); }
.t-other { --k:var(--kind-other); --k-soft:var(--kind-other-soft); }
.t-goalie { --k:var(--kind-goalie); --k-soft:var(--kind-goalie-soft); }
.mv-ev .mv-k { color:var(--k, var(--kind-training)); font-weight:700; margin-right:3px; }
.mv-ev.clash { outline:1.5px solid var(--red); }
.mv-ev.cancelled { text-decoration:line-through; opacity:.6; }
.mv-time { font-variant-numeric:tabular-nums; font-weight:700; }
.mv-more { font-size:11px; color:var(--ink-3); }
.mv-dots { display:none; gap:2px; flex-wrap:wrap; }
/* Kürzel-Schildchen der Art (Handy-Raster und Legende): Artfarbe auf heller Fläche */
.mv-dots i, .mv-legend i.mv-k { display:inline-block; font-style:normal; font-size:var(--fs-cap); font-weight:700; line-height:1.35;
  padding:0 3px; border-radius:4px; background:var(--k-soft, var(--kind-training-soft)); color:var(--k, var(--kind-training));
  box-shadow:inset 0 0 0 1px var(--k, var(--kind-training)); }
.mv-dots i.clash { outline:1.5px solid var(--red); outline-offset:1px; }
.mv-dots i.cancelled { text-decoration:line-through; opacity:.6; }
.mv-legend i.clash { display:inline-block; width:10px; height:10px; border-radius:3px; box-shadow:0 0 0 2px var(--red); background:var(--surface); }
.mv-legend { display:flex; gap:6px 14px; flex-wrap:wrap; align-items:center; padding:10px 14px; font-size:var(--fs-foot); color:var(--ink-2); border-top:1px solid var(--line); }
.mv-legend > span { display:inline-flex; align-items:center; gap:6px; }
.mv-more-k { font-size:var(--fs-cap); color:var(--ink-3); }
.mv-clash-note { padding:8px 18px 0; font-size:13px; color:var(--red); font-weight:600; }
@media (max-width:700px) {
  .mv-day { min-height:52px; align-items:center; }
  .mv-items { display:none; }
  .mv-dots { display:flex; justify-content:center; }
  .mv-head h3 { min-width:0; flex:1; }
}
.att-set { cursor:pointer; border:1px solid transparent; font:inherit; }
.att-set:hover { border-color:var(--accent); }
.att-set { user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.att-col[data-att-zone] { border:1.5px dashed transparent; transition:background .12s, border-color .12s; }
.att-col.drop { border-color:var(--accent); background:var(--accent-soft); }
.att-set.dragging, .lu-chip.dragging { opacity:.35; }
.att-hint { padding-bottom:0; }

/* Einstieg: geprüfte Einladung grün hervorheben, Einleitungssatz im Willkommensschritt */
.hint.ok { background:var(--green-soft); color:var(--ink); border-left-color:var(--green); }
.lead { font-size:15.5px; line-height:1.45; margin:0; }
.setup-mark { display:inline-block; width:1.4em; text-align:center; color:var(--ink-3, var(--ink-2)); font-weight:700; }
.setup-mark.done { color:var(--green); }

/* Mannschaften in der Seitenleiste (Computer) */
.nav button.nav-team { font-size:var(--fs-callout); padding:7px 10px; }
.nav button.nav-team.sub { padding-left:22px; font-size:var(--fs-sub); }

/* Termin: Knopfleiste oben, Untertext */
.evt-actions { padding-bottom:12px; border-bottom:1px solid var(--line); margin-bottom:4px; }
.evt-more { position:relative; }
.evt-more > summary { list-style:none; cursor:pointer; }
.evt-more > summary::-webkit-details-marker { display:none; }
.evt-more[open] > summary { background:var(--surface-2); }
.evt-menu { position:absolute; left:0; top:calc(100% + 6px); z-index:30; min-width:210px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,.18); padding:6px; display:flex; flex-direction:column; }
.evt-menu hr { border:0; border-top:1px solid var(--line); margin:6px 4px; }
.evt-menu-item { text-align:left; background:none; border:0; border-radius:8px; padding:10px 12px; font:inherit; font-size:var(--fs-body); color:var(--ink); cursor:pointer; }
.evt-menu-item:hover, .evt-menu-item:focus-visible { background:var(--surface-2); }
.evt-menu-item.danger { color:var(--red); }
.evt-menu-item:disabled { color:var(--ink-3); cursor:default; background:none; }
.evt-subtitle { margin:0; font-size:var(--fs-body); color:var(--ink-2); font-weight:600; }
/* Spiel/Turnier: Treffen, Beginn, Ort, Kabine, Gegner oben als gruppierte Liste – Beschriftung links, Angabe rechts */
.evt-facts { margin:0; background:var(--surface); border:1px solid var(--line); border-radius:var(--r); }
.evt-fact { display:flex; align-items:baseline; gap:12px; min-height:44px; padding:11px 14px; }
.evt-fact + .evt-fact { border-top:.5px solid var(--line-strong); }
.evt-fact dt { flex:0 0 72px; color:var(--ink-3); font-size:var(--fs-sub); font-weight:500; }
.evt-fact dd { margin:0; flex:1; min-width:0; font-size:var(--fs-callout); overflow-wrap:anywhere; }
.evt-fact-key dd { font-weight:600; }
.ev-sub { display:block; font-size:var(--fs-foot); color:var(--ink-2); font-weight:500; margin-top:1px; }

/* Rechtstexte (Impressum, Datenschutz, Nutzung): volle Kartenbreite, Abschnitte mit Luft nach oben */
.legal-page { max-width:780px; }
.legal-page .prose { max-width:none; }
.help .prose h2, .help .prose h3 { margin:22px 0 6px; }
.help .prose h2:first-child, .help .prose h3:first-child { margin-top:0; }
.help .prose h3 { font-size:18px; }

/* Spielkader: Beteiligung an den letzten 5 Trainings als Punkte */
.tr-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:3px; }
.tr-dots { display:inline-flex; align-items:center; gap:3px; }
.tr-dots .tiny { margin-right:2px; }
.tr-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--line); }
.tr-dot.tr-yes { background:var(--green); }
.tr-dot.tr-no { background:var(--red); }
.tr-dot.tr-maybe { background:var(--amber); }
.tr-dot.tr-open { background:transparent; border:1.5px solid var(--ink-3, var(--line)); width:7px; height:7px; }
.slot-kids { margin:4px 0; color:var(--ink-2); }
/* Zeitgleich in anderer Mannschaft trainiert: zählt als Teilnahme (grün) */
.tr-dot.tr-elsewhere { background:var(--green); box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--green) 45%, var(--surface)); }

.kader-tools .field { margin:0; min-width:150px; }
.kader-tools #kaderCount { align-self:flex-end; padding-bottom:10px; }
.kader-tools .kader-sort { min-width:0; }
.kader-tools .kader-sort .seg { align-self:flex-start; max-width:100%; overflow-x:auto; }
.kader-tools .kader-sort .seg button { flex:0 0 auto; white-space:nowrap; padding-top:7px; padding-bottom:7px; }
.kader-tools [data-kader-reset] { align-self:flex-end; margin-bottom:4px; }

/* ------------------------------------------------------------- Einrichtungs-Assistent (Handy) */
.setup-overlay { position:fixed; inset:0; z-index:70; background:rgba(8,16,26,.62); display:flex; flex-direction:column;
  padding:max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); overflow-y:auto; }
.setup-card { width:100%; max-width:420px; margin:auto; background:var(--surface); border-radius:18px; padding:18px 18px 14px;
  box-shadow:0 24px 60px -20px rgba(0,0,0,.6); display:flex; flex-direction:column; gap:10px; }
.setup-card h2 { font-size:21px; margin:0; }
.setup-card p { margin:0; font-size:14.5px; line-height:1.45; color:var(--ink-2); }
.setup-head { display:flex; align-items:center; gap:10px; }
.setup-head img { border-radius:9px; }
.setup-head b { font-size:13px; color:var(--ink-3); }
.setup-video { width:100%; max-height:32vh; aspect-ratio:9 / 16; object-fit:contain; border-radius:12px; background:#0A3A78; }
.setup-steps { margin:0; padding-left:22px; font-size:14.5px; line-height:1.5; }
.setup-steps li { margin:3px 0; }
.setup-ic { display:inline-block; font-size:12px; border:1px solid var(--line-strong); border-radius:5px; padding:0 4px; }
.setup-dots { display:flex; gap:6px; }
.setup-dots i { width:28px; height:5px; border-radius:99px; background:var(--line); }
.setup-dots i.on { background:var(--accent); }
.setup-later { align-self:center; color:var(--ink-3); }

/* Zwei-Faktor-Anmeldung */
.mfa-qr { display:flex; justify-content:center; }
.mfa-qr svg { width:220px; height:220px; background:#fff; padding:8px; border-radius:8px; }
.mfa-codes { display:grid; grid-template-columns:repeat(2, 1fr); gap:6px 16px; list-style:none; padding:0; margin:0; font-size:16px; }
.mfa-alt { border-top:1px solid var(--line, #ddd); padding-top:12px; }
.mfa-alt summary { cursor:pointer; color:var(--muted, #666); font-size:14px; }
.mfa-big { font-size:24px; letter-spacing:2px; text-align:center; }

/* Kalender-Abo: Auswahllisten */
fieldset.field { border:0; padding:0; margin:0; min-width:0; }
fieldset.field > legend { font-size:12px; font-weight:600; color:var(--ink-3); margin-bottom:6px; padding:0; }
label.check { display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; line-height:1.4; }
label.check input { margin-top:3px; }
label.check.indent { padding-left:22px; }
.cal-teams { padding-left:22px; gap:6px; }

/* Hilfe fürs Team: Bildschirmfotos */
.help-shot, .help-shots figure { margin:14px 0; }
.help-shot img, .help-shots img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:12px; box-shadow:0 2px 10px rgba(15,30,50,.08); background:var(--surface); }
.help-shots { display:grid; gap:16px; }
.help-shots.two { grid-template-columns:1fr 1fr; align-items:start; }
.help-shots img.phone { max-width:320px; margin:0 auto; }
.help-shot figcaption, .help-shots figcaption { font-size:13px; color:var(--ink-3); margin-top:6px; line-height:1.45; }
.help-section h3 { margin:22px 0 6px; font-size:17px; }
@media (max-width:760px) { .help-shots.two { grid-template-columns:1fr; } }

/* Menü: zuklappbare Abschnitte und zusammengefasste Bereiche */
.nav button.nav-toggle { display:flex; align-items:center; gap:6px; width:100%; background:none; border:0; cursor:pointer; text-align:left; font:inherit; font-size:var(--fs-foot); color:var(--ink-3); font-weight:600; padding:0 10px 8px; border-radius:6px; }
.nav button.nav-toggle:hover { color:var(--ink); }
.nav button.nav-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
/* Pfeile zum Auf- und Zuklappen: groß und in Rot, damit man sie findet */
.nav button.nav-toggle .chev { margin-left:auto; font-size:17px; line-height:1; color:var(--red); font-weight:800; }
.nav-team-row { display:flex; align-items:stretch; gap:2px; }
.nav-team-row > .nav-team { flex:1 1 auto; min-width:0; }
.nav button.nav-sub-toggle { flex:0 0 auto; width:auto; display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border:0; background:none; border-radius:8px; cursor:pointer; }
.nav button.nav-sub-toggle:hover { background:var(--surface-2); }
.nav button.nav-sub-toggle .chev { font-size:17px; line-height:1; color:var(--red); font-weight:800; }
.nav button.nav-sub-toggle .nav-count { background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:0 6px; font-size:11px; color:var(--ink-3); }
.nav button.nav-toggle .nav-count:not(:empty) { background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:0 6px; font-size:11px; letter-spacing:0; }
.nav .nav-toggle:not(:first-child) { margin-top:14px; }
.more-group > summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:6px; padding:4px 0 6px; }
.more-group > summary::-webkit-details-marker { display:none; }
.more-group > summary::after { content:'▸'; margin-left:auto; }
.more-group[open] > summary::after { content:'▾'; }
.more-group .nav-count { background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:0 6px; font-size:11px; letter-spacing:0; }
.hub-tabs { margin:0 0 14px; }
/* Reiter eines zusammengefassten Menüpunkts (z. B. Dienste): als Schaltflächen, unterscheidbar von Unterreitern */
.hub-tabs { border-bottom:0; gap:6px; }
.hub-tabs button { border:1px solid var(--line); border-radius:999px; padding:6px 14px; background:var(--surface); color:var(--ink-2); }
.hub-tabs button.on { background:var(--accent); border-color:var(--accent); color:var(--on-color, #fff); }

/* Spielkader: Ampel kompakt oben, Details aufklappbar; Tafel zum Ziehen */
.lineup-editor { grid-template-columns:1fr; }
.lu-rules { position:static; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); }
.lu-ampel { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.lu-light { display:inline-flex; gap:3px; padding:3px 5px; border-radius:999px; background:#222b35; }
.lu-light i { width:11px; height:11px; border-radius:50%; background:#4a5560; opacity:.35; }
.lu-light i:nth-child(1).on { background:#e5484d; opacity:1; } .lu-light i:nth-child(2).on { background:#f5b400; opacity:1; } .lu-light i:nth-child(3).on { background:#2fb36a; opacity:1; }
.lu-counts { display:inline-flex; gap:10px; font-weight:700; font-size:13px; margin-left:auto; }
.lu-errors { color:var(--red); margin-top:4px; }
.lu-details { margin-top:6px; } .lu-details > summary { cursor:pointer; font-size:13px; color:var(--accent); font-weight:600; }
.k-blue { color:var(--accent); }
.lu-board { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; }
.lu-zone { border:1px solid var(--line); border-radius:12px; background:var(--surface); min-height:84px; padding:8px; transition:background .12s, border-color .12s; }
.lu-zone-h { font-size:var(--fs-foot); font-weight:600; margin-bottom:6px; display:flex; justify-content:space-between; }
.lu-zone.line-rot .lu-zone-h { color:#d23b3b; } .lu-zone.line-gelb .lu-zone-h { color:#b38f00; } .lu-zone.line-gruen .lu-zone-h { color:#2e9e5b; } .lu-zone.line-blau .lu-zone-h { color:#2f6fd6; }
.lu-zone-free { border-style:dashed; }
.lu-zone.drop { background:var(--accent-soft); border-color:var(--accent); }
.lu-zone-b { display:flex; flex-wrap:wrap; gap:6px; }
.lu-chip { touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab; border:1px solid var(--line); background:var(--surface-2); border-radius:999px; padding:5px 10px; font:inherit; font-size:13px; color:var(--ink); }
.lu-chip small { color:var(--ink-3); font-weight:700; } .lu-chip small.cap { color:var(--accent); }
.lu-chip.picked { outline:2px solid var(--accent); background:var(--accent-soft); }
.lu-chip.dragging { opacity:.35; }
.drag-ghost { position:fixed; left:0; top:0; z-index:1000; pointer-events:none; cursor:grabbing; box-shadow:0 6px 18px rgba(0,0,0,.25); }
@media (max-width:600px) { .lu-board { grid-template-columns:1fr 1fr; } .lu-zone { min-height:70px; } }
.lineup-editor { grid-template-columns:minmax(0,1fr); }
.lineup-editor > * { min-width:0; }
.lu-errors { overflow-wrap:anywhere; }
.lu-chip { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:600px) { .lu-board { grid-template-columns:repeat(2, minmax(0,1fr)); } .lu-chip { font-size:12.5px; padding:5px 8px; } }

/* Mitteilungen: neu / gelesen */
.msg.msg-new { border-left:3px solid var(--green); }
.msg-reads { margin-top:6px; }

/* Kompakt am Handy (Menüs und Anzeigen) */
.evt-menu.to-left { left:auto; right:0; }
.evt-menu-item.btn-primary { font-weight:700; }
.planner-week-nav { display:flex; align-items:end; gap:8px; }
.chip-scroll { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.chip-scroll::-webkit-scrollbar { display:none; }
.chip-scroll > * { flex:none; }
.intro-more { display:none; }
.m-short { display:none; }
@media (max-width:660px) {
  /* Kennzahl-Kacheln: zwei nebeneinander statt untereinander */
  .grid:has(> .stat) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .stat { padding:10px 12px; }
  .stat .k { font-size:26px; }
  .stat .l { font-size:12px; }
  /* Seitenkopf am Handy (docs/DESIGN.md „Platz am Handy“): Titel und Knöpfe in einer Zeile, wenn sie passen; die
     Beschreibung unter dem Titel und die kleine Oberzeile („Verwaltung“) entfallen – der Knopf ⓘ neben dem Titel
     (compact.js) zeigt beides. Was der Titel nicht sagt, bleibt sichtbar: Beschreibungen mit Link oder Knopf und
     Angaben mit class="ph-keep" (z. B. die Kinder auf Start). Termine haben einen eigenen Kopf (styles/termine.css). */
  .page-head { margin-bottom:12px; }
  .page-head:not(.term-head) { align-items:center; gap:8px 10px; }
  .page-head:not(.term-head) > div:first-child { display:contents; }
  .page-head:not(.term-head) > div:first-child > h1 { flex:0 1 auto; min-width:0; }
  .page-head:not(.term-head) > div:first-child > h1:has(+ .intro-more) { max-width:calc(100% - 40px); }   /* ⓘ bleibt neben langem Titel */
  .page-head:not(.term-head) > div:first-child > :not(h1):not(.intro-more) { flex:1 1 100%; order:5; margin-top:-4px; }
  .page-head:not(.term-head) > div:first-child > .eyebrow:not(h1):not(.intro-more) { order:-1; margin:0 0 -6px; }
  .page-head:not(.term-head) > div:first-child + :not(.spacer) { margin-left:auto; }
  .page-head:not(.term-head) .btn, .page-head:not(.term-head) summary.btn { white-space:nowrap; }
  /* … dafür darf die Knopfreihe umbrechen (z. B. Übungs-Editor: Animation, Abbrechen, Speichern) */
  .page-head:not(.term-head) > .row.row { flex-wrap:wrap; justify-content:flex-end; }
  /* Die Aktionen stehen rechts: Menü „⋯ Mehr“ klappt nach links auf, nicht über den Rand */
  .page-head:not(.term-head) .evt-menu { left:auto; right:0; }
  .page-head:not(.term-head):not(.open) .eyebrow:not(.ph-keep),
  .page-head:not(.term-head):not(.open) > div:first-child > p:not(.ph-keep):not(:has(a, button:not(.intro-more))) { display:none; }
  .page-head .intro-more, .hub-row .intro-more { display:inline-flex; align-items:center; justify-content:center; flex:none; width:30px; height:30px;
    margin:0; padding:0; border-radius:50%; background:var(--fill); color:var(--accent); font-size:var(--fs-callout); font-weight:700; line-height:1; }
  .page-head.open .intro-more, #main:has(.page-head.open) .hub-row .intro-more { display:none; }
  /* Kein doppelter Abstand über dem ersten Text einer Karte bzw. zwischen Absätzen einer Spalte (.stack hat schon Lücken) */
  .card-b > p:first-child { margin-top:0; }
  .stack > p { margin-block:0; }
  /* Titel wiederholt den gewählten Reiter darüber (z. B. „Dienste“: Reiter „Elterndienste“, Titel „Elterndienste U11“) –
     am Handy nur für Screenreader (app-shell.js setzt ph-dup). */
  .page-head.ph-dup > div:first-child > h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .page-head.ph-dup:not(.open):not(:has(> :not(div:first-child):not(.spacer))) { display:none; }
  .hub-row { display:flex; align-items:center; gap:8px; margin:0 0 12px; }
  .hub-row > .hub-tabs { margin:0; flex:1 1 auto; min-width:0; }
  /* Zusatz im Titel, den der Kopf oben schon zeigt (z. B. „– alle meine Mannschaften“) */
  .ph-sub { display:none; }
  /* Erklärung in der Seite, die das ⓘ im Seitenkopf schon gibt (Förderspieler, 5-Sterne): erst mit ⓘ sichtbar */
  #main:not(:has(.page-head.open)) .m-intro { display:none; }
  /* Zeitraum „von … bis …“ nebeneinander statt untereinander; weitere Knöpfe darunter */
  .row.m-pair { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; align-items:end; }
  .row.m-pair > :not(label) { grid-column:1 / -1; justify-self:start; }
  .row.m-pair > label { min-width:0; margin:0; }
  .row.m-pair input { width:100%; min-width:0; }
  /* Leerhinweise kompakt */
  .empty { padding:16px 14px; }
  /* Auswahl in der Seite als eine Zeile zum Wischen (class="m-scroll"): Mannschaftswahl (Förderspieler, 5-Sterne), Bereiche
     im Trainerbereich, Ansicht + Zeitraum im 5-Sterne-Programm. Die gewählte Auswahl steht im Bild (compact.js). */
  .m-scroll.m-scroll { display:flex; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-14px; padding:2px 14px 4px; }
  .m-scroll::-webkit-scrollbar { display:none; }
  .m-scroll > * { flex:none; }
  .m-scroll > label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
  .m-scroll > label > input { width:auto; }
  /* Kurzer Text am Handy (Titel „Planung“, Knopf „+ Neu“): class="m-long" fällt weg, class="m-short" erscheint */
  .m-long { display:none; }
  .m-short { display:inline; }
  /* Filter in einer Zeile zum Wischen */
  .chip-scroll { margin-left:-4px; padding:2px 4px 4px; }
  /* Planung: Woche in einer Zeile, Rest kleiner */
  .planner-toolbar { gap:8px; }
  .planner-week-nav { flex:1 1 100%; }
  .planner-week-nav .field { flex:1; min-width:0; }
  .planner-toolbar > .btn { flex:1 1 auto; }
  /* Tabellen als Karten (class="m-cards"): jede Zeile ein Block, Spaltenname klein davor */
  .tw:has(> table.m-cards) { overflow:visible; }
  table.m-cards, table.m-cards tbody { display:block; width:100%; }
  table.m-cards thead { display:none; }
  table.m-cards tr { display:flex; flex-wrap:wrap; gap:4px 12px; padding:10px 14px; border-bottom:1px solid var(--line); }
  table.m-cards td { display:block; border:0; padding:0; min-width:0; }
  table.m-cards td.m-main { flex:1 1 100%; order:-1; }
  table.m-cards td:empty { display:none; }
  table.m-cards td[data-label]:not(.m-main):not(.m-nolabel)::before { content:attr(data-label); display:block; font-size:var(--fs-foot); font-weight:600; color:var(--ink-3); }
  table.m-cards td.m-full { flex:1 1 100%; }
  table.m-cards td.m-lead { order:-2; flex:none; }
  table.m-cards td.m-lead + td.m-main { flex:1 1 0; min-width:55%; }   /* sonst schrumpft der Name, Nachbarspalten rutschen darüber */
  /* Spielkader: Einrückung kostet am Handy zu viel Breite (das Schild „Spielkader von …“ zeigt die Zuordnung), lange
     Schilder dürfen umbrechen statt über den Rand zu ragen. */
  table.m-cards td.squad-cell { padding-left:0 !important; }
  table.m-cards td.m-main .pill { white-space:normal; max-width:100%; }
  table.m-cards td.right { text-align:left; }
  table.m-cards td.m-hide { display:none; }
  table.m-cards td.tiny-m { font-size:12.5px; color:var(--ink-2); }
  table.m-cards td .btn-sm { min-height:44px; }
  .planner-summary { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px; }
  .planner-summary > :last-child { grid-column:1 / -1; }
  .planner-summary .card-b { padding:10px 12px; gap:2px; }
  .planner-summary strong { font-size:18px; }
}
.intro-more { color:var(--accent); font-weight:700; margin-top:2px; }
.row.nowrap { flex-wrap:nowrap; align-items:flex-start; }
@media (max-width:660px) {
  /* Kader: Suche oben, Sortierung und Filter klein nebeneinander */
  .kader-tools { display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:8px; }
  .kader-tools .field.grow, .kader-tools .kader-sort, .kader-tools #kaderCount { grid-column:1 / -1; }
  .kader-tools .field > span { font-size:var(--fs-foot); }
  .kader-tools > *, .kader-tools .field { min-width:0; } .kader-tools select { width:100%; min-width:0; }
  .page-head > .row { flex-wrap:nowrap; }
}
@media (min-width:661px) { .page-head > .row:last-child { margin-left:auto; } }
.lang-switch { text-align:right; margin:-4px 0 6px; color:var(--ink-3); }

/* Termin-Fenster: einklappbare Karten (Elterndienste) und Listen (Wer spielt?) */
.evt-fold-card > summary { cursor:pointer; list-style:none; }
.evt-fold-card > summary::-webkit-details-marker { display:none; }
.evt-fold-card > summary h3::before { content:'▸'; display:inline-block; width:1.1em; color:var(--ink-3); }
.evt-fold-card[open] > summary h3::before { content:'▾'; }
.evt-fold-card:not([open]) > summary { border-bottom:0; }
.evt-fold > summary { cursor:pointer; font-weight:600; }
.ok-note { border-color:var(--green); }

/* Mannschaftswahl an genau einer Stelle (docs/DESIGN.md): am Computer oben in der Seitenleiste, am Handy die Auswahl im
   Kopf. Sie gilt für alle Seiten. */
@media (min-width:901px) {
  #teamPicker { display:none; }
}
.nav button.nav-team-all { font-weight:700; }

/* Kadermanager-Abgleich: Namen zuordnen (Name links, Auswahl rechts; am Handy untereinander) */
.km-name-row { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:6px 0; }
.km-name-row select { min-width:min(100%, 260px); }
/* Auswahl mitten im Satz (z. B. Ruhezeit von … bis … Uhr) */
.sel-inline { width:auto; display:inline-block; padding:2px 6px; margin:0 2px; }
/* Mannschaftswahl in der Seitenleiste: bleibt beim Scrollen des Menüs oben stehen; zugeklappt zeigt sie nur die Wahl. */
.nav .nav-teams { position:sticky; top:-18px; z-index:3; background:var(--surface); margin:-18px -12px 12px; padding:18px 12px 8px; border-bottom:1px solid var(--line); }
.nav .nav-teams.open { box-shadow:0 6px 12px -10px rgba(0,0,0,.35); }
.nav .nav-teams .nav-toggle { padding-bottom:4px; }
.nav .nav-team-list { max-height:min(60vh, 520px); overflow:auto; margin-top:4px; }
.nav button.nav-toggle .nav-team-now:not(:empty) { background:var(--accent-soft); color:var(--accent); border-color:color-mix(in srgb, var(--accent) 22%, transparent); font-size:12.5px; padding:2px 9px; text-transform:none; letter-spacing:0; min-width:0; flex:0 1 auto; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav .nav-teams .nav-teams-title { flex:0 0 auto; white-space:nowrap; }
.nav .nav-teams + .nav-group, .nav .nav-teams + .nav-toggle { margin-top:0; }

/* Gemeinsame Listen-Bausteine (list-tools.js, docs/BEDIENUNG.md) */
.list-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
.list-bar input[type=search] { flex:1 1 220px; min-width:0; width:auto; }
.list-bar select { flex:0 1 210px; min-width:0; width:auto; }
table[data-sortable] thead th[data-sort] { cursor:pointer; user-select:none; -webkit-user-select:none; white-space:nowrap; }
table[data-sortable] thead th[data-sort]:hover, table[data-sortable] thead th[data-sort]:focus-visible { color:var(--accent); }
table[data-sortable] thead th[data-sort]::after { content:' ↕'; opacity:.35; font-size:.85em; }
table[data-sortable] thead th[aria-sort=ascending]::after { content:' ▲'; opacity:1; color:var(--accent); }
table[data-sortable] thead th[aria-sort=descending]::after { content:' ▼'; opacity:1; color:var(--accent); }

/* ------------------------------------------------------------------ Tippflächen auf Touch-Geräten (docs/DESIGN.md)
 * Apple: mindestens 44 × 44 pt. Textlinks bekommen Innenabstand oben/unten (ändert die Zeilenhöhe nicht), kleine
 * Textknöpfe eine unsichtbar vergrößerte Fläche, Knöpfe in Karten, Auswahl-Chips und Häkchen eine Mindestgröße. */
@media (pointer:coarse) {
  #main p a:not(.btn), #main li a:not(.btn), #main .tiny a:not(.btn), #main .muted a:not(.btn), #modal p a:not(.btn) { padding-block:12px; }
  .intro-more, .linkish.cal-link, .att-comment, summary.tiny, .linkbtn:not(.h-lg), .linkish.tiny { position:relative; }
  .intro-more::after, .linkish.cal-link::after, .att-comment::after, summary.tiny::after, .linkbtn:not(.h-lg)::after,
  .linkish.tiny::after { content:''; position:absolute; inset:-12px -6px; }
  .page-head .intro-more::after, .hub-row .intro-more::after { inset:-7px; }   /* Knopf ⓘ: 30 px Kreis, 44 px Tippfläche */
  input[type=checkbox], input[type=radio] { min-width:22px; min-height:22px; }
}
@media (max-width:660px) {
  button.chip { min-height:44px; padding:8px 12px; }
}

