/* ===== Kindergeburtstage ATV Haltern – Oberfläche ===== */
/* Dieselben Schriften wie der Vereinsauftritt: Poppins für Überschriften, Montserrat für den Text.
   Selbst ausgeliefert, damit die Regeln für fremde Quellen (siehe helmet in src/app.ts) eng bleiben. */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --navy: #082465; --navy-700: #061b4d; --navy-100: #e3e8f4; --navy-050: #f2f4fa;
  /* Hausregel des Vereinsauftritts: --red ist eine Flächenfarbe, für Schrift auf
     hellem Grund gilt --red-700 (#c2171a erreicht den nötigen Kontrast, #e61d21 nicht). */
  --red: #e61d21; --red-700: #c2171a; --red-050: #fdeeee;
  --gelb: #ffb515;
  --cream: #FFF8F2; --peach: #FFE9DC; --sky: #E8F4FB;
  --bg: #f3f4f8; --surface: #fff; --ink: #1c2130; --ink-2: #454c5e; --muted: #6b7280; --line: #e4e7ee; --line-2: #d3d7e0;
  --good: #1f7a3f; --good-050: #e6f5eb; --warn: #9a5b00; --warn-050: #fff3dc; --danger: #b12222;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 6px 20px rgba(20, 30, 60, .06);
  --shadow-lg: 0 10px 40px rgba(20, 30, 60, .12);
  --focus: 0 0 0 3px rgba(8, 36, 101, .28);
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-feature-settings: "tnum"; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, .btn { font-family: Poppins, system-ui, sans-serif; }
h1 { font-size: 1.5rem; margin: 0 0 .7rem; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; font-weight: 750; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 .4rem; color: var(--navy); }
p { margin: 0 0 .85rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .lead { font-size: 1.05rem; } .warn { color: var(--warn); font-weight: 600; }
.dimmed { opacity: .6; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---- Kopfzeile: nachgebauter Seitenkopf der Vereins-Homepage ----
   Maße und Farben folgen src/components/Kopf.tsx der Homepage: 72rem Inhalts-
   breite, unten eine feine helle Haarlinie (seit 31.10.2026 statt des 4px
   roten Abschlusses), überstehendes Wappen im weißen Ring, Menüpunkte mit 3px
   Unterstrich. Dort Tailwind, hier eigenes CSS – gleiches Ergebnis. */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.kopf-innen { max-width: 72rem; margin: 0 auto; padding: 0 1rem; display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; }
.sprungmarke { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprungmarke:focus { position: absolute; width: auto; height: auto; margin: 0; top: .5rem; left: .5rem; z-index: 50; clip-path: none; background: #fff; color: var(--navy); padding: .5rem 1rem; border-radius: 6px; font-family: Poppins, sans-serif; font-weight: 600; font-size: .875rem; text-decoration: none; }

.kopf-marke { position: relative; z-index: 50; display: flex; flex-shrink: 0; align-items: center; gap: .75rem; padding: .5rem 0; color: #fff; text-decoration: none; }
/* Das Wappen ragt unten über die Leiste hinaus; der weiße Ring fängt seine
   durchsichtigen Ecken ab, der negative Außenabstand hält die Leistenhöhe. */
.kopf-wappen { display: block; flex-shrink: 0; border-radius: 9999px; background: #fff; box-shadow: 0 0 0 2px #fff; }
.kopf-wappen img { display: block; width: 3rem; height: 3rem; border-radius: 9999px; object-fit: contain; }
.kopf-name { font-family: Poppins, sans-serif; line-height: 1.25; }
.kopf-name-haupt { display: block; font-size: 1rem; font-weight: 700; }
.kopf-name-zusatz { display: none; font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.7); }
@media (min-width: 640px) { .kopf-wappen img { width: 3.5rem; height: 3.5rem; } .kopf-name-haupt { font-size: 1.125rem; } .kopf-name-zusatz { display: block; } }

.kopf-nav { display: none; }
.kopf-nav > ul { display: flex; align-items: stretch; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.kopf-nav > ul > li { display: flex; }
.kopf-nav a, .kopf-nav button { display: inline-flex; align-items: center; border: 0; border-bottom: 3px solid transparent; background: none; color: #fff; font-family: Poppins, sans-serif; font-size: .875rem; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: border-color .12s; }
.kopf-nav a:hover, .kopf-nav button:hover { border-bottom-color: rgba(255,255,255,.7); }
/* Wie auf der Homepage trägt Rot den Zustand „hier bist du“; Hover bleibt weiß. */
.kopf-nav a.aktiv { border-bottom-color: var(--red); }
.kopf-nav .pfeil { margin-left: .375rem; font-size: .7rem; }
@media (min-width: 768px) { .kopf-nav { display: flex; } }
@media (min-width: 1024px) { .kopf-nav > ul { gap: 2.25rem; } }

/* Das Bildmenü der Abteilungen klappt über Hover und Fokus auf, wie auf der
   Homepage – ohne JavaScript, damit es auch ohne dieses funktioniert. */
.aufklapp { position: static; }
.aufklapp-liste { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 25px 50px -12px rgba(0,0,0,.45); }
.aufklapp:hover .aufklapp-liste, .aufklapp:focus-within .aufklapp-liste { display: block; }
.aufklapp-innen { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1rem; }
.abteilungs-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
  .abteilungs-gitter.spalten-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .abteilungs-gitter.spalten-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .abteilungs-gitter.spalten-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.kopf .abteilungs-gitter a { position: relative; display: flex; aspect-ratio: 16 / 9; width: 100%; padding: 0; align-items: flex-end; overflow: hidden; border: 0; border-radius: 1rem; background: var(--navy); }
.abteilungs-gitter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.abteilungs-gitter a:hover img, .abteilungs-gitter a:focus-visible img { transform: scale(1.05); }
/* Wie `AbteilungsGitter.tsx`: Der Verlauf deckt nur das untere Drittel, die Mitte des Fotos bleibt frei. */
.abteilungs-gitter .verlauf { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,36,101,.9), rgba(8,36,101,.45) 30%, transparent 60%); transition: opacity .3s; }
.abteilungs-gitter a:hover .verlauf, .abteilungs-gitter a:focus-visible .verlauf { opacity: .8; }
.abteilungs-gitter .name { position: relative; z-index: 10; margin: .625rem; max-width: calc(100% - 1.25rem); font-family: Poppins, sans-serif; font-size: .875rem; line-height: 1.25; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.abteilungs-gitter .zier { display: block; height: 2px; margin-top: .25rem; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.abteilungs-gitter a:hover .zier, .abteilungs-gitter a:focus-visible .zier { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .abteilungs-gitter img, .abteilungs-gitter .zier { transition: none; } }

/* Menü für kleine Bildschirme – dieselbe Umschaltgrenze wie die Homepage. */
.nav-toggle { display: none; }
.nav-toggle-label { display: flex; align-items: center; gap: .5rem; color: #fff; font-family: Poppins, sans-serif; font-size: .875rem; font-weight: 600; line-height: 1; padding: 0 .25rem; cursor: pointer; }
.nav-toggle-label span { font-size: 1.5rem; }
.kopf-nav-mobil { display: none; }
.nav-toggle:checked ~ .kopf-nav-mobil { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); }
.kopf-nav-mobil ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; display: flex; flex-direction: column; }
/* Die Leiste klebt oben, das Menü scrollt also selbst, sonst blieben die letzten Punkte unerreichbar. */
.nav-toggle:checked ~ .kopf-nav-mobil { max-height: calc(100dvh - 4rem); overflow-y: auto; }
.kopf-nav-mobil .abteilungs-gitter.mobil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: .25rem 0 .5rem; }
.kopf-mobil-titel { display: block; padding: .7rem 0 .25rem; font-family: Poppins, sans-serif; color: rgba(255,255,255,.7); }
.kopf-nav-mobil a { display: block; padding: .7rem 0; color: #fff; text-decoration: none; font-family: Poppins, sans-serif; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.15); }
@media (min-width: 768px) { .nav-toggle-label { display: none; } .nav-toggle:checked ~ .kopf-nav-mobil { display: none; } }

/* ---- Bereichsleiste: wo man innerhalb der Kindergeburtstage ist ----
   Dieselbe weiße Pille wie auf der Homepage (`AbschnittsLeiste`, Rolands Wahl
   „2 · Schwebende Pille“, 07.11.2026), hier mit Seiten statt Abschnitten: aktiv ist
   Navy. Ohne Seitenkopf steht sie einfach oben im Inhalt. */
.bereich { padding: .75rem max(1rem, calc((100% - 70rem) / 2)) 0; }
.bereich-innen { display: flex; align-items: center; gap: .125rem; box-sizing: border-box; width: fit-content; max-width: 100%; padding: .375rem; overflow-x: auto; scrollbar-width: none; background: #fff; border-radius: 9999px; box-shadow: 0 10px 28px rgba(8, 36, 101, .22); }
.bereich a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 9999px; color: var(--navy); text-decoration: none; font-family: Poppins, sans-serif; font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; }
.bereich a:hover { background: var(--navy-050); }
.bereich a.active { color: #fff; background: var(--navy); }
.bereich-rechts { display: flex; align-items: center; gap: .125rem; margin-left: .75rem; white-space: nowrap; }
.bereich-rechts .user { padding-left: .5rem; color: var(--ink-2); font-size: .85rem; }
/* Auf der Kante des Seitenkopfs: Die Hülle hat keine Höhe, die Pille liegt zur Hälfte
   über dem Blau und bleibt beim Scrollen unter dem Menü stehen (Menühöhe + Luft + halbe Pille).
   `vw` statt Prozent: Die Hülle reicht über die ganze Breite, Prozent zählten vom schmalen Inhalt. */
.seitenkopf + .bereich { position: sticky; top: calc(4rem + 37px); z-index: 40; height: 0; padding: 0 max(1rem, calc((100vw - 70rem) / 2)); margin: -1.5rem calc(50% - 50vw) 3rem; pointer-events: none; }
.seitenkopf + .bereich .bereich-innen { pointer-events: auto; transform: translateY(-50%); }
.seitenkopf:has(+ .bereich) .seitenkopf-band { padding-bottom: 3.5rem; }
html:has(.seitenkopf + .bereich) { scroll-padding-top: 8.5rem; }
@media (min-width: 640px) { .seitenkopf + .bereich { top: calc(4.5rem + 37px); } }

.subnav { position: relative; z-index: 1; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: .1rem; overflow-x: auto; max-width: 72rem; margin: 0 auto; padding: 0 .6rem; }
.subnav a { text-decoration: none; padding: .7rem .42rem; font-size: .94rem; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.subnav a:hover { color: var(--navy); }
.subnav a.active { color: var(--navy); border-color: var(--navy); font-weight: 700; }
/* Ab Tablet bricht die Leiste um – seitliches Scrollen versteckte rechts Punkte („Einstellungen“, „Protokoll“). */
@media (min-width: 768px) { .subnav { flex-wrap: wrap; overflow-x: visible; } }

/* ---- Layout ---- */
.container { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: .9rem; border: 1px solid rgba(20,30,60,.04); }
.card.narrow { max-width: 740px; margin-left: auto; margin-right: auto; }
.card:has(> .table) { overflow-x: auto; }
/* Tabellen in einem Aufklappbereich (Verlauf, E-Mails am Termin) scrollen selbst, statt die Seite zu verbreitern. */
.log-details { overflow-x: auto; }
.table.vorschlaege td:first-child { width: 2rem; } .table.vorschlaege label { display: inline; margin: 0; } .table.vorschlaege .badge { white-space: normal; margin-left: .3rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h1, .card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- Startseite ---- */
body:has(.landing) { background: var(--surface); overflow-x: hidden; }
.landing { max-width: none; margin: 0; }

/* ---- Seitenkopf im Muster der Homepage ----
   Navy-Band wie `KurzKopf`: über die ganze Breite direkt unter dem Menü, links der Text,
   rechts das Fotoalbum (seit 07.11.2026, docs/design/system.md). */
.seitenkopf { position: relative; background: var(--navy); color: #fff; margin: -1.5rem calc(50% - 50vw) 1.5rem; }
.seitenkopf-band { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; display: grid; gap: 1.5rem; }
.seitenkopf-innen { position: relative; min-width: 0; }
@media (min-width: 768px) { .seitenkopf-band { padding-block: 2.5rem; } }
@media (min-width: 1024px) { .seitenkopf.mit-album .seitenkopf-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: center; } }

/* Fotoalbum wie `FotoAlbum` der Homepage: drei gedrehte Karten, die in der Fläche
   bleiben, weil unten die Bereichsleiste liegt. Prozent, damit es in jede Breite passt;
   die Breite selbst folgt dem Fenster wie dort: unter 1024 px begrenzt, darüber mindestens
   die Spalte und mit dem Fenster über die Inhaltskante hinaus. */
.foto-album { position: relative; z-index: 2; width: 100%; max-width: 36rem; aspect-ratio: 2 / 1; }
@media (min-width: 1024px) { .seitenkopf.mit-album .foto-album { width: max(100%, min(42vw, 46rem)); max-width: none; } }
.album-karte { position: absolute; aspect-ratio: 4 / 3; box-sizing: border-box; padding: .375rem; background: #fff; border-radius: .75rem; box-shadow: 0 12px 28px rgba(8, 36, 101, .3); }
.album-karte img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: .5rem; }
.album-karte:nth-child(1) { left: 0; top: 0; z-index: 3; width: 46%; rotate: 3deg; }
.album-karte:nth-child(2) { left: 33%; top: 30%; z-index: 2; width: 42%; rotate: -4deg; }
.album-karte:nth-child(3) { right: 0; top: 4%; z-index: 1; width: 42%; rotate: 5deg; }

.seitenkopf.schmal h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.seitenkopf.schmal .vorspann { font-size: 1rem; }

.brotkrumen { font-size: .875rem; color: rgba(255,255,255,.75); }
.brotkrumen ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.brotkrumen a { color: rgba(255,255,255,.75); text-decoration: none; }
.brotkrumen a:hover { color: #fff; }
.brotkrumen li[aria-current] { color: #fff; }

.vorzeile { display: block; margin-top: 1.5rem; font-family: Poppins, sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gelb); }
.seitenkopf h1 { margin: .75rem 0 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; color: #fff; }
.vorspann { margin: 1rem 0 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,.9); }
@media (min-width: 768px) { .vorspann { font-size: 1.125rem; } }

.kopf-kacheln { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .kopf-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kopf-kacheln li { display: flex; flex-direction: column; gap: .25rem; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); border-radius: 8px; padding: 1rem; }
.kachel-vorzeile { font-family: Poppins, sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gelb); }
.kachel-wert { font-family: Poppins, sans-serif; font-size: 1.125rem; font-weight: 700; color: #fff; }
.kachel-zusatz { font-size: .875rem; color: rgba(255,255,255,.8); }

.kopf-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.75rem 0 0; }
.kopf-textlink { font-family: Poppins, sans-serif; font-size: .9375rem; font-weight: 600; color: #fff; text-decoration: none; }
.kopf-textlink:hover { color: var(--gelb); }
.kopf-fussnote { margin: 1rem 0 0; font-size: .875rem; color: rgba(255,255,255,.7); }
.kopf-fussnote a { color: #fff; }

@media (prefers-reduced-motion: reduce) { .seitenkopf-medien img { transition: none; } }
@media (max-width: 1023px) { .seitenkopf-medien { position: relative; width: auto; height: 220px; } }

/* ---- Abschnitte im Rhythmus der Homepage ----
   py-16 / md:py-24, 72rem Breite, Überschrift in Navy, abwechselnd weiß und hell. */
.landing-section { padding: 4rem 0; }
@media (min-width: 768px) { .landing-section { padding: 6rem 0; } }
/* Jeder zweite Abschnitt liegt auf hellem Grund und reicht dafür über die
   Inhaltsbreite hinaus – wie der Wechsel `weiss`/`hell` der Homepage. */
.landing-section:nth-of-type(even) { background: var(--bg); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.landing h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; margin-bottom: 1rem; }
.landing-section h2 { font-size: 1.875rem; margin: 0 0 .75rem; color: var(--navy); }
@media (min-width: 768px) { .landing-section h2 { font-size: 2.25rem; } }
.landing-section > h2 + * { margin-top: 2.5rem; }
.landing .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 1.3rem; }
.landing p { max-width: 62ch; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.date-list { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: grid; gap: .6rem; }
.date-list a { display: flex; align-items: center; gap: 1rem; padding: .7rem .9rem .7rem .7rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s, box-shadow .12s; }
.date-list a:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.date-sheet { flex: none; width: 3.6rem; text-align: center; background: var(--navy-050); color: var(--navy); border-radius: 10px; padding: .35rem 0 .4rem; border-top: 4px solid var(--red); line-height: 1.05; }
.date-sheet b { display: block; font-size: 1.5rem; }
.date-sheet span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.date-main { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.date-main strong { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.date-action { flex: none; font-weight: 600; color: var(--navy); background: var(--navy-050); border-radius: 999px; padding: .5rem 1rem; font-size: .92rem; }
.date-list a:hover .date-action { background: var(--navy); color: #fff; }
/* ---- Aktivprogramm: Text, Preisliste und Goldene Regeln (19.11.2026) ---- */
.lead-klein { font-size: 1.12rem; font-weight: 600; color: var(--navy); }
.haken-liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.haken-liste li { position: relative; padding-left: 1.6rem; }
.haken-liste li::before { content: ""; position: absolute; left: .2rem; top: .45rem; width: .55rem; height: .3rem; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.preisliste { width: 100%; border-collapse: collapse; margin: .2rem 0 .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-variant-numeric: tabular-nums; }
.preisliste th, .preisliste td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.preisliste thead th { background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; }
.preisliste tbody th { color: var(--navy); font-weight: 600; }
.preisliste td { font-weight: 700; font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.preisliste tbody tr:last-child th, .preisliste tbody tr:last-child td { border-bottom: 0; }
/* Spalten statt Raster: 1–6 links, 7–12 rechts – nummerierte Regeln liest man von oben nach unten. */
.goldene-regeln { margin: 0; padding: 0; list-style: none; counter-reset: regel; columns: 2 22rem; column-gap: 2.5rem; }
/* Nummer als eigene Rasterspalte statt absolut gesetzt: Ein überstehender Kreis zerbrach am Spaltenumbruch (Rolands Bildschirmfoto, 19.11.2026). */
.goldene-regeln li { counter-increment: regel; display: grid; grid-template-columns: 1.9rem 1fr; column-gap: .7rem; align-items: start; padding: 0 0 1rem; color: var(--ink-2); max-width: 62ch; break-inside: avoid; page-break-inside: avoid; }
.goldene-regeln li::before { content: counter(regel); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--gelb); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: .95rem; line-height: 1; }
.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; }
/* ---- Freie Termine: Kacheln, Liste oder Kalender ---- */
.date-views { margin-top: .6rem; }
.date-views > .view-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.date-views > .view { display: none; }
#ansicht-kacheln:checked ~ #ansicht-kacheln-pane,
#ansicht-liste:checked ~ #ansicht-liste-pane,
#ansicht-kalender:checked ~ #ansicht-kalender-pane { display: block; }
.view-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .9rem; }
.view-switch label { cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.view-switch label:hover { border-color: var(--navy); }
#ansicht-kacheln:checked ~ .view-switch label[for="ansicht-kacheln"],
#ansicht-liste:checked ~ .view-switch label[for="ansicht-liste"],
#ansicht-kalender:checked ~ .view-switch label[for="ansicht-kalender"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.date-views > .view-radio:focus-visible ~ .view-switch { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 999px; }
.date-month { margin: 1.1rem 0 .5rem; font-size: 1rem; color: var(--navy); }
.date-month:first-child { margin-top: 0; }
.date-month small { font-weight: 500; font-size: .8rem; }
.date-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .6rem; }
.date-tiles a { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .65rem .75rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s, box-shadow .12s; }
.date-tiles a:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.tile-main { display: flex; flex-direction: column; gap: .05rem; flex: 1; min-width: 0; }
.tile-main strong { color: var(--navy); font-weight: 600; }
.tile-go { flex: none; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.date-tiles a:hover .tile-go { color: var(--red-700); }
@media (max-width: 820px) {
  .two-up { grid-template-columns: 1fr; gap: 1.8rem; }
  .date-list a { display: grid; grid-template-columns: 3.6rem 1fr; gap: .5rem 1rem; align-items: center; }
  .date-action { grid-column: 2; justify-self: start; }
}
.month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.month h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--navy); text-align: center; }
.month h3 small { font-size: .72rem; font-weight: 500; }
.included { background: var(--navy-050); border: 1px solid var(--navy-100); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1rem; }
.included ul { margin: .3rem 0; padding-left: 1.2rem; }

/* ---- Kalender ---- */
/* Drei statt vier Monate je Zeile: Ein geteilter Tag (vorm./nachm.) braucht rund 44 px, sonst ist er nicht lesbar. */
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .8rem; margin: .6rem 0 .4rem; }
/* minmax(0, 1fr): Sonst macht ein freier Tag mit „nachm.“ seine Spalte breiter, und der Sonntag ragt über den Monatsrahmen (Rolands Bildschirmfoto, 19.11.2026). */
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .3rem; }
/* Ein Quadrat, das nie über seine Spalte hinauswächst: Tag und „nachm.“ passen mit enger Zeilenhöhe hinein. */
.day { aspect-ratio: 1; min-width: 0; min-height: 0; overflow: hidden; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; font-size: .85rem; color: var(--ink-2); background: var(--navy-050); }
.day.blank { background: transparent; } .day.past { color: #c3c7d1; background: transparent; }
.day.free { background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; transition: background .1s; }
.day.free:hover { background: var(--red-700); transform: translateY(-1px); }
/* Geteilter Tag: Zahl oben, darunter zwei Hälften – je ein Link auf den Vormittags- und den Nachmittagstermin. */
.day.geteilt { justify-content: flex-start; gap: 0; padding: 1px; }
.day.geteilt b { font-size: .78rem; line-height: 1; padding: 1px 0; }
.day.geteilt a { flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; color: #fff; text-decoration: none; font-size: .6rem; font-weight: 600; line-height: 1; border-radius: 4px; }
.day.geteilt a + a { border-top: 1px solid rgba(255, 255, 255, .35); }
.day.geteilt a:hover, .day.geteilt a:focus-visible { background: var(--red-700); }
.day.geteilt:hover { background: var(--navy); transform: none; }
.day.free small { font-size: .62rem; line-height: 1; font-weight: 500; opacity: .95; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.event-list li:first-child { border-top: 0; }

/* ---- Meldungen ---- */
/* Fließtext mit dem Zeichen links davor – als Flex-Zeile wurde jedes Textstück und jedes <strong> eine eigene Spalte. */
.flash { position: relative; padding: .8rem 1rem .8rem 2.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid; }
.flash::before { position: absolute; left: 1rem; top: .8rem; font-weight: 700; }
.flash-success { background: var(--good-050); border-color: #b7dfc3; color: #14532d; } .flash-success::before { content: "✓"; }
.flash-info { background: var(--sky); border-color: #b9d9ea; color: #123a5a; } .flash-info::before { content: "i"; }
.flash-error { background: var(--red-050); border-color: #f2b8b8; color: #7a1414; } .flash-error::before { content: "!"; }
.next-step { background: var(--sky); border-left: 4px solid var(--navy); padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.next-step > strong { display: block; margin-bottom: .15rem; }
/* GiroCode: weißer Grund, damit Banking-Apps ihn auch auf getöntem Kasten lesen */
.girocode { margin: .6rem 0; }
.girocode svg { width: 160px; height: 160px; background: #fff; display: block; }
.alerts { display: grid; gap: .5rem; margin-bottom: 1rem; }
.alert { display: block; padding: .75rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; border: 1px solid; }
.alert .icon { margin-right: .4rem; }
.alert-danger { background: var(--red-050); border-color: #f2b8b8; color: #7a1414; }
.alert-warning { background: var(--warn-050); border-color: #f2d59b; color: #7a4b00; }

/* ---- Knöpfe ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: 4px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-family: Poppins, sans-serif; font-weight: 600; cursor: pointer; text-decoration: none; font-size: .95rem; line-height: 1.25; transition: background .12s, color .12s; }
.btn:hover { background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-050); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover { background: var(--red-700); }
.btn-danger-outline { border-color: var(--red-700); color: var(--red-700); } .btn-danger-outline:hover { background: var(--red-050); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1.05rem; } .btn-sm { padding: .35rem .75rem; font-size: .85rem; }
summary.btn { list-style: none; } summary.btn::-webkit-details-marker { display: none; }
details[open] > summary.btn { background: var(--navy-050); }
details > .form, details > .btn + * { margin-top: .7rem; }
form.inline { display: inline-block; margin-right: .5rem; }
/* Monatswahl der Abrechnung: wie die übrigen Felder statt Systemschrift mit grauem 3D-Rahmen. */
form.inline input[type=month] { padding: .5rem .7rem; border: 2px solid var(--line-2); border-radius: 4px; font: inherit; background: #fff; color: var(--ink); vertical-align: middle; }

/* ---- Formulare ---- */
/* Felder wie der Baustein `Feld` der Homepage: 2px Rahmen, 4px Radius,
   großzügige Innenabstände, Navy als Fokusfarbe. Die Beschriftung bleibt in
   Satzschreibung – anders als auf der Homepage stehen hier lange, erklärende
   Beschriftungen, die in Versalien schwer zu lesen wären. */
.form label { display: block; margin-bottom: 1.1rem; font-family: Poppins, sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .table input, .table-search { display: block; width: 100%; margin-top: .45rem; padding: .75rem 1rem; border: 2px solid var(--line-2); border-radius: 4px; font: inherit; font-family: Montserrat, system-ui, sans-serif; font-weight: 400; background: #fff; color: var(--ink); transition: border-color .12s; }
.form input:not([type=checkbox]):not([type=radio]):hover, .form select:hover, .form textarea:hover { border-color: #b3b9c4; }
.form input:focus, .form textarea:focus, .form select:focus, .table-search:focus { outline: none; box-shadow: none; border-color: var(--navy); }
.form input::placeholder, .form textarea::placeholder, .table-search::placeholder { color: #a5aab6; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 1rem; align-items: end; /* zweizeilige Beschriftung schiebt das Feld sonst aus der Reihe */ }

/* Jeder Abschnitt ist eine eigene weiße Karte – wie die Karten der Homepage. */
.form fieldset { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 1.4rem 1.5rem .4rem; margin: 0 0 1rem; min-width: 0; }
.form legend { float: left; width: 100%; font-family: Poppins, sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--navy); padding: 0; margin: 0 0 1.1rem; }
/* Die Legende ist ein Float ueber die volle Breite. Ein Block, der daneben einen
   eigenen Formatierungskontext aufmacht (Flex, Grid, overflow), rutscht nicht
   darunter, sondern schrumpft auf die Restbreite - und die ist null. So standen
   die drei Betraege des Gutscheins als Saeule am rechten Rand, mit einem
   leeren Feld daneben. Alles nach der Legende beginnt deshalb unter ihr. */
.form fieldset > :not(legend) { clear: both; }
/* Thema als Auswahlknöpfe im Formular (16.11.2026): innerer Rahmen ohne eigene Fläche, kleinere Überschrift. */
.form fieldset.themen { border: 0; background: transparent; padding: 0; margin: 0 0 .6rem; }
.form fieldset.themen legend { font-family: Montserrat, system-ui, sans-serif; font-size: .95rem; font-weight: 600; margin-bottom: .6rem; }
.form .themen-idee { margin: -.2rem 0 .8rem 2.6rem; }

/* Ankreuzfelder als anklickbare Zeilen, die ihren Zustand zeigen. */
.form .check { font-family: Montserrat, system-ui, sans-serif; font-weight: 400; font-size: .95rem; display: block; position: relative; padding: .7rem .9rem .7rem 2.6rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .12s, background .12s; }
.form .check:hover { border-color: var(--navy-100); background: var(--navy-050); }
.form .check:has(> input:checked) { border-color: var(--navy); background: var(--navy-050); }
.form .check > input[type=checkbox], .form .check > input[type=radio] { position: absolute; left: .9rem; top: .85rem; margin: 0; width: 1.15rem; height: 1.15rem; accent-color: var(--navy); }
.form button { margin-top: .5rem; }
.table-search { margin: 0 0 .8rem; max-width: 420px; }

/* ---- Fakten, Badges ---- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.facts dt { font-weight: 600; color: var(--ink-2); } .facts dd { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #e9ecf3; color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-lg { font-size: .95rem; padding: .3rem .85rem; }
.badge-planned, .badge-pending { background: var(--warn-050); color: #7a4b00; }
.badge-bookable, .badge-a-assigned, .badge-a-confirmed { background: var(--good-050); color: #14532d; }
.badge-booked, .badge-paid, .badge-a-accepted { background: #dbe7ff; color: #1e3a8a; }
.badge-done { background: #e6e6f5; color: #3b3b78; }
.badge-cancelled, .badge-expired, .badge-abandoned, .badge-refunded, .badge-blocked { background: #f3f4f6; color: #6b7280; }
.badge-a-declined, .badge-a-withdrawn { background: var(--red-050); color: #7a1414; }
.count { display: inline-block; min-width: 1.7em; padding: 0 .45em; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; text-align: center; vertical-align: middle; line-height: 1.7em; }

/* ---- Tabellen ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table tbody tr:hover { background: var(--navy-050); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.small { font-size: .85rem; }
.table pre { white-space: pre-wrap; font: inherit; background: var(--bg); padding: .5rem; border-radius: 6px; }
.table tr.group-row td { background: var(--navy-050); color: var(--navy); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: .45rem .6rem; }
.table tr.group-row:hover td { background: var(--navy-050); }
.actions-cell form { display: inline-block; margin: 0 .2rem .2rem 0; }

/* ---- Listen ---- */
.item { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item:first-of-type { border-top: 0; }
.actions { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.actions.wrap > * { margin-bottom: .4rem; }
.booking-info { margin-top: .5rem; padding: .7rem .9rem; background: var(--sky); border-radius: var(--radius-sm); font-size: .92rem; }
.todo-list { margin: 0; padding-left: 1.2rem; } .todo-list li { margin: .35rem 0; }
.card.todo { border-left: 5px solid var(--red); }

/* ---- Kennzahlen ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; border-top: 4px solid var(--navy-100); }
.tile-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tile-value { font-size: 1.75rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile-note { font-size: .78rem; color: var(--muted); }

/* ---- Statusleiste ---- */
.stepper { display: flex; gap: .3rem; margin: .5rem 0 .8rem; flex-wrap: wrap; }
.step { flex: 1 1 130px; display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid var(--line); color: var(--muted); font-size: .9rem; }
.step .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e9ecf3; font-weight: 700; font-size: .8rem; flex: none; }
.step.done { color: var(--good); border-color: #b7dfc3; background: var(--good-050); } .step.done .dot { background: #fff; color: var(--good); }
.step.current { color: var(--navy); border-color: var(--navy); font-weight: 700; background: var(--navy-050); } .step.current .dot { background: var(--navy); color: #fff; }

/* ---- Sonstiges ---- */
.filters { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.chip { padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid var(--line-2); text-decoration: none; color: var(--ink-2); background: #fff; font-size: .9rem; font-weight: 500; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.danger-zone { margin-top: 1.2rem; padding: .9rem 1.1rem; border: 1px solid #f2b8b8; border-radius: var(--radius-sm); background: #fff7f7; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--red-700); }
.manual-booking { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
/* Fußzeile der Vereins-Homepage (src/components/Fuss.tsx): Navy, drei bis vier
   Spalten in 72rem Breite, rote Zierlinie unter dem Vereinsnamen, Gelb beim
   Überfahren der Links. */
.fuss { background: var(--navy); color: #fff; }
.fuss-innen { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .fuss-innen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fuss-titel { font-family: Poppins, sans-serif; font-size: 1.125rem; font-weight: 700; color: #fff; margin: 0; }
.fuss-strich { display: block; width: 3rem; height: 4px; margin-top: .75rem; background: var(--red); }
.fuss-adresse { margin: 1rem 0 0; font-size: .875rem; line-height: 1.625; white-space: pre-line; color: rgba(255,255,255,.8); }
.fuss-spalte { font-family: Poppins, sans-serif; font-size: .875rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0; }
.fuss ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.fuss a { color: #fff; text-decoration: none; transition: color .12s; }
.fuss a:hover { color: var(--gelb); }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.15); }
.fuss-unten p { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem; font-size: .875rem; color: rgba(255,255,255,.6); }

/* ---- Handy ---- */
@media (max-width: 720px) {
  .nav-toggle-label { display: block; margin-left: auto; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 .2rem; }
  .nav a { padding: .65rem .8rem; border-radius: 8px; }
  .nav .user { border-left: 0; margin: .3rem 0 0; padding: .3rem .8rem; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .container { padding: 1rem .9rem 2.5rem; }
  .seitenkopf { margin-top: -1rem; }
  .card { padding: 1rem; border-radius: 12px; }
  h1 { font-size: 1.4rem; } .hero { padding: 1.3rem 1.2rem; } .hero h1 { font-size: 1.5rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem .5rem; } .facts dt { margin-top: .4rem; }
  .btn-lg { width: 100%; justify-content: center; }
}
@media print { .kopf, .bereich, .subnav, .fuss, .test-banner, .btn, .actions, details { display: none !important; } .card { box-shadow: none; border: 1px solid #ccc; } }
/* Gedruckt wird immer die Liste, unabhängig von der gewählten Ansicht */
@media print { .view-switch { display: none !important; } .date-views > .view { display: none !important; } #ansicht-liste-pane { display: block !important; } }

/* ---- Neue Funktionen ---- */
.form-inline .row { margin-bottom: 0; }
.extras label.check { margin-bottom: .4rem; }
.price-box { background: var(--navy-050); border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 0 0 .9rem; font-size: 1.05rem; }
.price-total { color: var(--navy); font-size: 1.25rem; }
.voucher-hint { display: block; margin-top: .3rem; }
.amount-choice { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: inline-block; padding: .6rem 1.1rem; border: 2px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 700; color: var(--navy); cursor: pointer; }
.amount input:checked + span { border-color: var(--navy); background: var(--navy-050); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .tiles-3 { grid-template-columns: 1fr 1fr; } }
.avail-month { margin-bottom: .6rem; }
.avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.avail-tag { display: grid; gap: .25rem; }
.avail-tag > span { font-weight: 600; font-size: .9rem; }
.avail-day { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; font-size: .9rem; }
.avail-day.on, .avail-day:has(input:checked) { border-color: var(--good); background: var(--good-050); }
.avail-day input { accent-color: var(--good); }
.avail-box { background: var(--good-050); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .6rem 0; font-size: .92rem; display: flex; flex-direction: column; gap: .4rem; }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* ---- Zweiter Design-Durchgang ---- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.75rem; align-items: start; }
.formular-spalte { min-width: 0; }
.formular-spalte > h1 { font-size: 1.5rem; margin-bottom: 1rem; }
/* Die Kopfzeile klebt oben (~6rem); die Seitenspalte muss darunter bleiben. */
.page-grid > aside { position: sticky; top: 7.5rem; }
@media (max-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr); /* 1fr wüchse mit der breitesten Tabelle über den Bildschirm */ } .page-grid > aside { display: contents; } .page-grid > aside > .summary-card { order: -1; } .page-grid > aside > .aside-after { order: 1; } }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.summary-card .big-date { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); }
.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .8rem; margin: .8rem 0 0; font-size: .92rem; }
.summary-list dt { color: var(--ink-2); } .summary-list dd { margin: 0; }
.progress { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1.75rem 0 1.25rem; counter-reset: p; }
.progress li { flex: 1; counter-increment: p; font-family: Poppins, sans-serif; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .6rem; border-top: 4px solid var(--line-2); }
.progress li::before { content: counter(p) " · "; font-weight: 700; }
.progress li.done { border-color: var(--gruen, #00ca65); color: var(--good); }
.progress li.current { border-color: var(--navy); color: var(--navy); font-weight: 700; }
@media (max-width: 600px) { .progress li:not(.current) { font-size: 0; } .progress li:not(.current)::before { font-size: .8rem; content: counter(p); } }
.tile { border-top-width: 4px; }
.tile.accent-green { border-top-color: #4caf72; } .tile.accent-blue { border-top-color: #4f7ee8; } .tile.accent-amber { border-top-color: #e0a63a; } .tile.accent-red { border-top-color: var(--red); } .tile.accent-navy { border-top-color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.date-pill { text-align: center; background: var(--navy-050); border-radius: 10px; padding: .3rem 0; line-height: 1.1; }
.date-pill b { display: block; font-size: 1.25rem; color: var(--navy); }
.date-pill span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.timeline .meta { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 56px 1fr; row-gap: .3rem; } .timeline li > .badge { grid-column: 2; justify-self: start; } }
.bar { height: 8px; background: var(--navy-050); border-radius: 999px; overflow: hidden; min-width: 120px; }
.bar > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.load-row { display: grid; grid-template-columns: 1fr 140px 60px; gap: .8rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.load-row:first-child { border-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "→"; color: var(--navy); font-weight: 700; flex: none; }
.checklist a { text-decoration: none; font-weight: 500; } .checklist a:hover { text-decoration: underline; }
.trainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.trainer-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.trainer-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.trainer-card header { display: flex; gap: .7rem; align-items: center; }
.trainer-card header > div { min-width: 0; overflow-wrap: anywhere; }
.trainer-card header strong { display: block; }
.trainer-card .stats { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .82rem; color: var(--muted); }
.meta-stack > span { display: block; }
.nowrap { white-space: nowrap; } .umbruch { overflow-wrap: anywhere; }
.edit-details { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line-2); }
.trainer-card.inactive { opacity: .6; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(243,244,248,.92); backdrop-filter: blur(6px); padding: .7rem 0; margin-top: .5rem; display: flex; gap: .6rem; align-items: center; border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); font-size: .88rem; margin: -.3rem 0 .8rem; }
.einsatz-card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem .9rem 1.2rem; margin-bottom: .7rem; border-left: 5px solid var(--line-2); }
/* Rand wie das Band (17.11.2026): grün = fester Einsatz (gebucht), gelb = vorgemerkt (online oder in Planung). */
.einsatz-card.status-booked { border-left-color: #4caf72; } .einsatz-card.status-bookable { border-left-color: #e0a63a; } .einsatz-card.status-planned { border-left-color: #e0a63a; } .einsatz-card.status-done { border-left-color: var(--navy); }
.einsatz-card .when { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.einsatz-card .actions { margin-top: .6rem; }
.status-hero { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.status-hero .big-date { font-size: 1.4rem; font-weight: 750; color: var(--navy); letter-spacing: -.02em; }
.log-details summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: .3rem 0; }
.table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; font-size: .92rem; margin: .3rem 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
/* Buchung am Termin: Angaben beschriftet in zwei Spalten, Knöpfe darunter, Hinweise der Eltern hervorgehoben. */
.item.buchung .buchung-info { flex: 1 1 100%; min-width: 0; }
.buchung-kopf { margin: 0 0 .4rem; }
.item.buchung .grid-2 { gap: .2rem 1.2rem; }
.kv dd.umbruch, .kv dd.umbruch a { overflow-wrap: anywhere; }
.hinweis-eltern { margin-top: .5rem; padding: .55rem .8rem; border-left: 4px solid var(--warn); background: var(--warn-050); border-radius: var(--radius-sm); }
.hinweis-eltern p { margin: .15rem 0 0; white-space: pre-line; }
.included.aside { margin: .8rem 0 0; }

/* ---- Rechtstexte und Bestellübersicht ---- */
.legal h2 { margin-top: 1.4rem; font-size: 1rem; }
.legal p { max-width: 70ch; }
.legal-links { margin-top: 1.6rem; }
.order-summary { background: var(--navy-050); border: 1px solid var(--navy-100); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1rem 0; }
.order-summary > strong { font-family: Poppins, sans-serif; font-size: 1rem; color: var(--navy); }
.order-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .4rem 0 0; }
.order-summary dt { color: var(--muted); align-self: baseline; } .order-summary dd { margin: 0; }
.order-summary .price-total { font-family: Poppins, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
@media (max-width: 600px) { .order-summary dl { grid-template-columns: 1fr; gap: .1rem; } .order-summary dt { margin-top: .4rem; } }

/* ---- Testbetrieb ---- */
.test-banner { background: var(--warn-050); color: var(--warn); border-bottom: 1px solid #f0d9a8; padding: .45rem 1.25rem; font-size: .85rem; font-weight: 600; text-align: center; }
.gate { max-width: 460px; margin-top: 2.5rem; }
.gate .lead { color: var(--ink-2); }

.reveal { margin-top: .4rem; }
.reveal[hidden] { display: none; }

/* Listen im Verwaltungsbereich: Filterleiste, sortierbare Spalten, Blättern */
.list-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: .9rem; }
.list-bar .filters { margin-bottom: 0; }
.chip-count { display: inline-block; margin-left: .3rem; padding: 0 .35rem; border-radius: 999px; background: rgba(0, 0, 0, .08); font-size: .8em; font-variant-numeric: tabular-nums; }
.chip.active .chip-count { background: rgba(255, 255, 255, .25); }
.list-search { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-end; }
.list-search input[type=search] { min-width: 15rem; flex: 1 1 15rem; margin: 0; padding: .5rem .7rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.list-search input[type=search]:focus, .list-search input[type=date]:focus { outline: none; box-shadow: var(--focus); border-color: var(--navy); }
.list-date { display: flex; flex-direction: column; gap: .15rem; }
.list-date input[type=date] { margin: 0; padding: .45rem .5rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.table thead th a { color: inherit; text-decoration: none; white-space: nowrap; }
.table thead th a:hover { text-decoration: underline; }
.pager { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.pager-right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pager-pages { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
@media (max-width: 640px) {
  .list-bar, .list-search { flex-direction: column; align-items: stretch; }
  .list-search input[type=search] { min-width: 0; }
  .pager { flex-direction: column; align-items: flex-start; }
}

/* Kommunikation am Vorgang: Verlauf und Sichtbarkeit */
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.thread-item { padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--cream, #faf7f2); border-left: 4px solid var(--line-2); }
.thread-item.audience-internal { border-left-color: #8a8f9c; }
.thread-item.audience-trainers { border-left-color: var(--navy); }
.thread-item.audience-parents { border-left-color: #2e7d5b; }
.thread-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; margin-bottom: .25rem; }
.thread-body { margin: 0; white-space: pre-wrap; }
.badge-internal { background: #eceef2; color: #4a4f5c; }
.badge-trainers { background: #e5ebf5; color: var(--navy); }
.badge-parents { background: #e3f1ea; color: #1f5f45; }
.thread-form { margin-top: .4rem; }
.radio-row { border: 0; padding: 0; margin: .2rem 0 .8rem; display: flex; flex-direction: column; gap: .3rem; }
.radio-row legend { padding: 0; margin-bottom: .2rem; }
.thread-compact { margin-top: .5rem; padding: .5rem .7rem; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: .2rem; }
.messages-open { border-left: 4px solid #2e7d5b; }
.open-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.open-messages > li { padding: .7rem .9rem; border-radius: var(--radius-sm); background: #f3f8f5; }
.notice-warn { margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: #fff6e5; border-left: 4px solid #c47f00; }
/* Zusatz des Vereinsnamens („von 1882 e.V.“) tritt neben dem Rufnamen zurück */
.name-suffix { font-size: .85em; opacity: .75; font-weight: inherit; white-space: nowrap; }

/* Band über dem Kopf, nur im Testsystem (lib/stand.ts) – Farben wie auf der Homepage */
.stand-band {
  background: #ffb515;
  color: #212529;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.25rem 1rem;
}

/* Anmeldeseite im Teams-Fenster (views/teams/seite.ejs) */
#teams { max-width: 26rem; margin: 3rem auto; padding: 0 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
#teams h1 { margin: 0; }
#teams p { margin: 0; }
#teams button { padding: .75rem 1.5rem; border-radius: 4px; border: 2px solid var(--red); background: var(--red); color: #fff; font-family: Poppins, sans-serif; font-weight: 600; font-size: .95rem; cursor: pointer; }
#teams button:disabled { opacity: .6; cursor: wait; }
#hinweis:empty { display: none; }

/* „Meine Einsätze“: Planung oder fester Einsatz als Band oben auf der Karte (17.11.2026). */
.einsatz-stand { display: inline-block; font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .35rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.einsatz-stand--vorgemerkt { background: var(--warn-050); border-color: #f2d59b; color: #7a4b00; }
.einsatz-stand--fest { background: var(--good-050); border-color: #b7dfc3; color: #14532d; }
.einsatz-stand--anfrage { background: var(--red-050); border-color: #f2b8b8; color: #7a1414; }
