/* =====================================================================
   CFH Kids – gemeinsames Stylesheet (Designsystem v3)
   ---------------------------------------------------------------------
   Ohne Build-Schritt: diese Datei wird direkt ausgeliefert.
   Eingebunden ueber {{ asset('css/cfh.css') }} (Cache-Busting per Version).
   v3 (v1.37.0): Stil der Box-Webseite crossfithelvetix.cloud – heller Grund,
   weisse Karten, CFH-Rot, Titel in Roboto Condensed (Grossbuchstaben),
   Text in Poppins, eckige Buttons. Dunkle Flaechen (Kopf, Footer,
   Seitenleiste) stellen die Farbwerte mit .on-dark lokal um.
   ===================================================================== */

/* --- Farben, Schrift, Masse ------------------------------------------ */
:root {
  --bg:         #eeeeee;
  --surface:    #ffffff;
  --surface-2:  #f3f3f3;
  --surface-3:  #f8f8f8;
  --line:       #e2e2e2;
  --line-2:     #d0d0d0;
  --line-3:     #a9a9a9;

  --ink:        #242424;   /* Titel wie auf der Webseite         */
  --text:       #242424;
  --text-2:     #555555;   /* Nebentext, 7.4:1 auf Weiss         */
  --text-3:     #6b6b6b;   /* leise, mind. 5:1 auf Weiss         */

  --dark:       #1b1b1d;   /* Kopf, Footer, Seitenleiste         */
  --dark-2:     #242424;   /* dunkle Kacheln                     */

  --red:        #de1e25;   /* CFH-Rot fuer Flaechen/Buttons      */
  --red-hover:  #c4161d;
  --red-text:   #c8161d;   /* Rot fuer Text auf hell, 5.9:1      */
  --red-soft:   rgba(222, 30, 37, 0.10);

  --ok:         #1f7a3d;
  --ok-solid:   #2f9e55;
  --ok-soft:    #e3f4e8;
  --ok-line:    rgba(31, 122, 61, 0.45);
  --warn:       #8a5a00;
  --warn-solid: #e0a100;
  --warn-soft:  #fdf1d6;
  --warn-line:  rgba(196, 140, 0, 0.55);
  --bad:        #b4141b;
  --info:       #1d4f91;
  --info-soft:  #e3ecf8;

  --font:         "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  /* Michroma: freie Schrift im Stil von Microgramma (Hero-Titel der Webseite) */
  --font-hero:    "Michroma", "Roboto Condensed", sans-serif;

  --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  --r-sm: 2px;
  --r:    4px;
  --r-lg: 4px;
  --r-xl: 4px;
  --tap:  44px;            /* Mindestgroesse fuer Klickflaechen */
}

/* Dunkle Flaechen: gleiche Bausteine, umgestellte Farbwerte */
.on-dark {
  --surface:   #26262a;
  --surface-2: #2e2e33;
  --surface-3: #202024;
  --line:      #333337;
  --line-2:    #46464c;
  --line-3:    #5c5c63;
  --ink:       #ffffff;
  --text:      #f4f4f5;
  --text-2:    #c4c4ca;
  --text-3:    #9d9da5;
  --red-text:  #ff5a60;
  --ok:        #86efac;
  --ok-soft:   rgba(74, 222, 128, 0.14);
  --warn:      #fcd34d;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --info:      #93c5fd;
  --info-soft: rgba(96, 165, 250, 0.14);
  --bad:       #ff9aa0;
  color: var(--text);
}

/* --- Basis ------------------------------------------------------------ */
/* Element-Grundregeln gelten nur unter <body class="ui"> (Portal, Anmeldung).
   Der Coach-Bereich nutzt daneben noch Tailwind; dort greifen nur die
   Komponenten-Klassen (.card, .btn, .chip …). :where() haelt die
   Spezifitaet bei 0, damit Komponenten-Klassen immer gewinnen. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ui {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
:where(.ui) :where(h1, h2, h3) { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
:where(.ui) p { margin: 0; }
:where(.ui) a { color: var(--red-text); text-decoration: none; }
:where(.ui) a:hover { color: var(--red-hover); }
:where(.ui .on-dark) a:hover { color: #ff8a90; }
:where(.ui) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ui) svg { flex: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
[x-cloak] { display: none !important; }
.h-display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; text-transform: uppercase; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted   { color: var(--text-2); }
.quiet   { color: var(--text-3); }
.small   { font-size: 14px; }
.tiny    { font-size: 13px; }
.strong  { font-weight: 600; }
.display { font-family: var(--font-hero); font-weight: 400; line-height: 1.15; text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }

/* --- Logo ----------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { display: block; height: 28px; width: auto; }
.logo__mark--lg { height: 44px; }
.logo__text {
  padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 1.15;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.logo__text small { display: block; font-weight: 400; letter-spacing: .03em; font-size: 13px; color: var(--text-3); }
@media (max-width: 479px) { .logo__text small { display: none; } .logo__mark { height: 24px; } }

/* --- Seitenrahmen ------------------------------------------------------ */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.page { flex: 1; padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }

.topbar { background: var(--dark); }
.topbar__inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 479px) { .topbar__inner { height: 64px; } }
.topbar__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 10px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text);
}
:where(.ui) .topbar__link { color: var(--text); }
:where(.ui) .topbar__link:hover { color: var(--red-text); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 36px; height: 36px; border-radius: var(--r); background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
}
.brand__mark--lg { width: 56px; height: 56px; font-size: 21px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; }
.brand__name span { color: var(--text-3); font-weight: 400; }

.footer { padding: 24px 16px 32px; text-align: center; font-size: 14px; color: var(--text-3); }
.footer--dark { background: var(--dark); color: var(--text-3); text-align: left; padding: 28px 0 32px; }
.footer--dark a { color: var(--text-2); }
.footer--dark a:hover { color: #fff; }

/* Roter Balken vor dem Footer (wie "CFH Newsletter" auf der Webseite) */
.band { background: var(--red); color: #fff; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
:where(.ui) .band h2 { color: #fff; font-size: 22px; }
.band p { color: rgba(255, 255, 255, .92); font-size: 15px; }

/* --- Hero mit Foto (oeffentliche Seiten, Portal) ------------------------- */
.hero { position: relative; background: var(--dark) center / cover no-repeat; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,17,.93) 0%, rgba(15,15,17,.78) 50%, rgba(15,15,17,.45) 100%); }
.hero__inner { position: relative; padding-top: 56px; padding-bottom: 60px; }
.hero__kicker { color: #ff5a60; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
:where(.ui) .hero h1, .hero .display { color: #fff; font-family: var(--font-hero); font-weight: 400; font-size: clamp(28px, 5vw, 50px); margin: 10px 0 14px; letter-spacing: .01em; }
.hero p { max-width: 620px; color: rgba(255, 255, 255, .88); }
.hero--small .hero__inner { padding-top: 36px; padding-bottom: 40px; }
:where(.ui) .hero--small h1 { font-size: clamp(24px, 4vw, 38px); }

/* --- Ueberschriften von Abschnitten ------------------------------------ */
.section { display: flex; flex-direction: column; gap: 12px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__title { font-size: 26px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }

/* --- Karten ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card--pad { padding: 20px; }
@media (min-width: 640px) { .card--pad { padding: 28px; } }
.card--accent { border-top: 3px solid var(--red); }
.card--dark { background: var(--dark-2); }
.card__row { padding: 14px 20px; border-top: 1px solid var(--line); }
.card__row:first-child { border-top: 0; }
.inset { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }

/* Grosse rote Ziffer vor Titeln ("1 / 2" auf der Webseite) */
.bignum { font-family: var(--font-hero); color: var(--red); font-size: 40px; line-height: 1; flex: none; }

.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Buttons: eckig, Grossbuchstaben wie auf der Webseite --------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 0;
  border: 2px solid transparent; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.2; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--surface); }
.on-dark .btn--secondary:hover { color: var(--dark); }
.btn--ghost { color: var(--red-text); padding: 0 10px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 16px; padding: 0 28px; }
.btn--icon { width: var(--tap); padding: 0; }

/* Auswahl-Paar "Kommt / Kommt nicht" */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice form { display: contents; }
.choice__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 12px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 16px; transition: border-color .15s, background-color .15s;
}
.choice__btn:hover { border-color: var(--line-3); }
.choice__btn[aria-pressed="true"] { cursor: default; }
.choice__btn--on[aria-pressed="true"]  { background: var(--ok-soft);   border-color: var(--ok-line);   color: var(--ok); }
.choice__btn--off[aria-pressed="true"] { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.choice--compact .choice__btn { min-height: var(--tap); font-size: 15px; }

/* --- Status-Chips (immer mit Text, nie nur Farbe) ---------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2);
}
.chip--ok   { background: var(--ok-soft);   color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad  { background: var(--red-soft);  color: var(--bad); }
.chip--info { background: var(--info-soft); color: var(--info); }

/* --- Formulare --------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 500; color: var(--ink); }
.hint  { font-size: 13px; color: var(--text-2); }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 16px;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }

/* --- Hinweise / Flash-Meldungen ---------------------------------------- */
.notice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--r); border: 1px solid var(--line-2); border-left-width: 4px; background: var(--surface); font-size: 15px;
}
.notice svg { margin-top: 2px; }
.notice--success { background: var(--ok-soft);   border-color: var(--ok-line);   color: var(--ok); }
.notice--error   { background: var(--red-soft);  border-color: rgba(222, 30, 37, .45); color: var(--bad); }
.notice--warning { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice--info    { background: var(--info-soft); border-color: rgba(29, 79, 145, .35); color: var(--info); }
.notices { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }

/* --- Bausteine: Avatar, Datum, Fortschritt ----------------------------- */
.avatar {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--surface);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.on-dark .avatar { background: var(--surface-2); color: var(--text); }
.avatar--lg { width: 48px; height: 48px; font-size: 16px; }

.datebox {
  width: 56px; height: 56px; border-radius: var(--r); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: var(--surface-2); color: var(--ink);
}
.datebox__dow { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.datebox__day { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.datebox--accent { background: var(--red); color: #fff; }
.datebox--accent .datebox__dow { color: #fff; }
.datebox--sm { width: 48px; height: 48px; }
.datebox--sm .datebox__day { font-size: 22px; }
.datebox--muted { background: transparent; border: 1px dashed var(--line-3); color: var(--text-3); }

.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ok-solid); border-radius: 999px; }

/* Anwesenheits-Kaestchen je Stunde */
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { width: 16px; height: 16px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface-2); }
.dot--present  { background: #8fd3a5; border-color: var(--ok-line); }
.dot--absent   { background: #f3a3a6; border-color: rgba(222, 30, 37, .55); }
.dot--excused  { background: #f6d27a; border-color: var(--warn-line); }
.dot--unmarked { background: var(--surface-2); }
.dot--future   { background: transparent; border-style: dashed; border-color: var(--line-3); }
.dot--none     { background: transparent; border-color: var(--line); opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 12px; height: 12px; border-radius: 2px; }

/* --- Listen-Zeilen ------------------------------------------------------ */
.row { display: flex; align-items: center; gap: 14px; }
.row__main { flex: 1; min-width: 0; }
.row__end { flex: none; text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Login- und Meldeseiten --------------------------------------------- */
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth__box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.auth__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.auth__title { font-size: 30px; }
.auth__icon {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red-text);
}

/* --- Oeffentliche Seiten: Kopfzeile ------------------------------------ */
.brand__sub { display: block; font-size: 13px; color: var(--text-2); font-family: var(--font); font-weight: 500; line-height: 1.2; }
.segmented { display: inline-flex; border: 1px solid var(--line-3); }
.segmented a {
  min-width: 44px; height: 40px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--text-2);
}
.segmented a:hover { color: var(--text); }
.segmented a[aria-current="true"] { background: var(--ink); color: var(--dark); font-weight: 700; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

.container--wide { max-width: 1200px; }

/* --- Anmeldeformular ----------------------------------------------------- */
.layout-aside { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout-aside__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.layout-aside__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .layout-aside__side { position: sticky; top: 24px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--line); }
.steps li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.steps a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px;
  color: var(--text-2); font-family: var(--font-display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
}
:where(.ui) .steps a { color: var(--text-2); }
:where(.ui) .steps a:hover { color: var(--ink); background: var(--surface-3); }
.step-num {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.step-num--accent { background: var(--red); color: #fff; }
.form-card__head .step-num { width: auto; height: auto; background: none; color: var(--red); font-family: var(--font-hero); font-weight: 400; font-size: 36px; line-height: 1; }

.form-card { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.form-card__head { display: flex; align-items: center; gap: 16px; }
.form-card__title { font-size: 26px; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc(50% - 8px)), 1fr)); }
.fields--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.span-all { grid-column: 1 / -1; }
.req { color: var(--red-text); }
.opt { font-weight: 400; color: var(--text-2); }
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input--signature { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }

/* Klassen-Auswahl als Karten (Radio bleibt echtes <input>) */
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.option {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.option:hover { border-color: var(--line-3); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.option__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.option__radio { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--line-3); flex: none; display: flex; align-items: center; justify-content: center; }
.option:has(input:checked) { border: 2px solid var(--red); background: rgba(222, 30, 37, .05); padding: 13px 15px; }
.option:has(input:checked) .option__radio { border-color: var(--red); }
.option:has(input:checked) .option__radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--red); }
.option--full:has(input:checked) { border-color: var(--warn-solid); background: var(--warn-soft); }
.option--full:has(input:checked) .option__radio { border-color: var(--warn-solid); }
.option--full:has(input:checked) .option__radio::after { background: var(--warn-solid); }
.option:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option:has(input:disabled):hover { border-color: var(--line-2); }
.options--sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.options--sm .option__name { font-size: 17px; }

.child-card { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 18px; }

.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-3); cursor: pointer; }
.check-row:hover { border-color: var(--line-3); }
.check-row input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); flex: none; }

/* Aufklappbare Regeln */
.disclosure { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 600; background: var(--surface-2);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary svg { transition: transform .2s; }
.disclosure[open] summary svg { transform: rotate(180deg); }
.disclosure__body { padding: 16px 18px 18px; color: var(--text-2); font-size: 15px; display: flex; flex-direction: column; gap: 14px; }
.disclosure__body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.disclosure__body ul { margin: 6px 0 0; padding-left: 20px; }

/* Seitenleiste: Semester & Termine */
.stat { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); }
.stat__label { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.datelist { max-height: 420px; overflow-y: auto; }
.datelist__item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.datelist__item:first-child { border-top: 0; }
.datelist__item--pause { background: var(--warn-soft); }
.pip { width: 8px; height: 8px; border-radius: 999px; background: var(--red); flex: none; }
.pip--pause { background: var(--warn-solid); }

/* Zentrierte Meldeseiten (Danke, 404) */
.message-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 16px; text-align: center; }
.message-page__box { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.message-page__icon { width: 72px; height: 72px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); }

/* --- Coach-Bereich: Rahmen mit Seitenleiste ------------------------------ */
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.shell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell__content { flex: 1; }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 30; }

.sidebar {
  width: 248px; flex: none; display: flex; flex-direction: column;
  background: var(--dark);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
  transform: translateX(-100%); transition: transform .2s ease;
}
.sidebar.is-open { transform: none; }
.sidebar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 16px 18px 18px; border-bottom: 1px solid var(--line); }
.sidebar__close { display: inline-flex; }
@media (min-width: 768px) {
  .sidebar { position: sticky; height: 100vh; transform: none; transition: none; }
  .sidebar__close { display: none; }
}

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav__group { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 18px 10px 6px; }
.nav__group:first-child { padding-top: 12px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px;
  border-left: 3px solid transparent; color: var(--text-2); font-size: 14px; font-weight: 500;
}
.nav-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav-link.is-active { background: rgba(222, 30, 37, .16); border-left-color: var(--red); color: #fff; font-weight: 600; }
.nav-link.is-active svg { color: #ff5a60; }
.nav-link__badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.userbox { display: flex; align-items: center; gap: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.userbox__name { font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--text); }
.userbox__role { font-size: 13px; color: var(--text-3); }

.mobilebar {
  position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 8px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark);
}
@media (min-width: 768px) { .mobilebar { display: none; } }

.admin-page { width: 100%; max-width: 1344px; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 768px) { .admin-page { padding: 28px 32px 56px; } }
/* Rahmen fuer die Tailwind-Seiten: gleiche Breite und gleicher Rand wie das Cockpit,
   links buendig neben der Seitenleiste (Titel steht auf jeder Seite an derselben Stelle). */
.page-frame { width: 100%; max-width: 1344px; padding: 24px 16px 48px; }
.page-frame--narrow { max-width: 832px; }
@media (min-width: 768px) { .page-frame { padding: 28px 32px 56px; } }
.flash-frame { width: 100%; max-width: 1344px; padding: 16px 16px 0; }
@media (min-width: 768px) { .flash-frame { padding: 20px 32px 0; } }
.admin-footer { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-3); }

/* --- Cockpit ------------------------------------------------------------- */
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--r);
  background: var(--surface); border-top: 3px solid var(--ink); box-shadow: var(--shadow); color: var(--text);
}
a.kpi:hover { border-top-color: var(--red); color: var(--text); }
.kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); }
.kpi__foot { font-size: 13px; color: var(--text-2); }
.kpi__foot--link { color: var(--red-text); font-weight: 600; }
.signal { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--line-3); }
.signal--red { background: var(--red); }
.signal--warn { background: var(--warn-solid); }
.signal--ok { background: var(--ok-solid); }

.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols__main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols__side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; margin: 0; text-transform: uppercase; color: var(--ink); }
.panel__sub { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.panel__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.panel--warn { border-top: 3px solid var(--warn-solid); }

/* Anwesenheit: Zeile je Kind mit Da / Fehlt / Entschuldigt */
.roster-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 20px; border-top: 1px solid var(--line); }
.roster-row:first-child { border-top: 0; }
.roster-row__who { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px;
  border-radius: var(--r); border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.seg__opt span:hover { border-color: var(--line-3); color: var(--text); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.seg__opt--present input:checked + span { background: var(--ok-soft);   border-color: var(--ok-line);   color: var(--ok); }
.seg__opt--absent  input:checked + span { background: var(--red-soft);  border-color: rgba(222, 30, 37, .55); color: var(--bad); }
.seg__opt--excused input:checked + span { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }

/* Gestapelter Balken kommt / ab / offen */
.stack { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); }
.stack > span { display: block; height: 100%; }
.stack__on { background: var(--ok-solid); }
.stack__off { background: var(--warn-solid); }
.stack__open { background: var(--line-3); }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--strike { text-decoration: line-through; }

.bar--neutral > span { background: var(--ink); }
.bar--full > span { background: var(--red); }

/* --- Reiter (z.B. Alle Kinder: Aktuelles Semester / Ehemalige) ------------ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; overflow-y: hidden; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px;
  margin-bottom: -2px; border-bottom: 3px solid transparent; white-space: nowrap;
  color: var(--text-2); font-family: var(--font-display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase;
}
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--red); }
.tab__count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-family: var(--font); font-size: 13px; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; }
.tab[aria-current="page"] .tab__count { background: var(--red); color: #fff; }

/* Logo gross auf Login- und Meldeseiten */
.auth__brand .logo__mark { height: 44px; }
