/* ============================================================
   Drollinge – Design-System
   Farben & Font entsprechen der aktuellen WordPress-Seite
   (Theme Twenty Twenty-Five, Font Manrope).
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont-wght.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben (aus der Vorlage übernommen) */
  --purple: #503AA8;      /* Accent 3 – Primär */
  --yellow: #FFEE58;      /* Accent 1 – Highlight */
  --pink:   #F6CFF4;      /* Accent 2 – sanfter Akzent */
  --base:   #FFFFFF;      /* Hintergrund */
  --ink:    #111111;      /* Text / Kontrast */
  --gray:   #686868;      /* Sekundärtext */
  --line:   #e7e5f0;
  --soft:   #FBFAF3;      /* sanfter Flächenhintergrund */

  --radius: 14px;          /* Kacheln: Karte, Liste, Eintrag, Menü, Dialog */
  --radius-sm: 10px;       /* kleine Elemente: Felder, Meldungen, Bilder, Kalenderzellen */

  /* Schriftskala – nur diese fünf Größen (CLAUDE.md §2) */
  --fs-lead:  1.2rem;      /* Einleitungen (.lead) */
  --fs-body:  1.0625rem;   /* Fließtext */
  --fs-ui:    .9rem;       /* Bedienung: Buttons, Labels, Menüs, Meldungen, Umschalter */
  --fs-small: .8rem;       /* Kleingedrucktes: Hinweise, Metazeilen, Bildunterschriften, Pillen */
  --fs-micro: .72rem;      /* nur Großbuchstaben-Etiketten: Rollen, Menügruppen, Wochentage */

  /* Buttonhöhen – unabhängig von Link/Knopf/Umriss */
  --btn-h: 44px;
  --btn-h-sm: 34px;
  --maxw: 1080px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 6px 24px rgba(20, 16, 60, .08);
  --shadow-lg: 0 12px 40px rgba(20, 16, 60, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.65;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
}

/* Lange Wörter (z. B. „Datenschutzerklärung“) trennen statt seitlich überstehen */
body { overflow-wrap: break-word; }
h1, h2, h3, h4 { hyphens: auto; line-height: 1.2; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* ---------- Layout-Helfer ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.center { text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--gray); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-size: 1.05rem; }
.brand small { display: block; font-weight: 600; font-size: var(--fs-micro); color: var(--gray); letter-spacing: .02em; }

/* Kopfzeile etwas breiter als der Inhalt, damit Vereinsname und alle
   Menüpunkte (eingeloggt: acht) in eine Zeile passen. */
.site-header .wrap { max-width: 1280px; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: var(--fs-ui); white-space: nowrap; }
.nav-links a.active { color: var(--purple); }
.nav.member .nav-links { gap: 1.2rem; }
.nav-links a.nav-logout { color: var(--purple); font-weight: 700; }
.nav-links a:hover { color: var(--purple); text-decoration: none; }
.nav-cta {
  background: var(--purple); color: #fff !important; padding: .55rem 1.1rem;
  border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: #3f2d86; text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--pink) 0%, var(--soft) 55%); padding: 4.5rem 0 3.5rem; }
.hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Karten / Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
/* Grid-Elemente dürfen unter ihre Content-Breite schrumpfen, sonst reißt
   ein breites Content-Element (z. B. eine 560-px-Tabelle) das Grid und
   damit die ganze Seite horizontal auseinander (CLAUDE.md §2). */
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* ---------- Einheitliche Bilder (CLAUDE.md §2) ----------
   Wie auf der bisherigen Website: natürliches Seitenverhältnis, nichts beschnitten,
   zentriert und einheitlich 280 px breit (kleinere Bilder werden hochskaliert; auf
   schmalen Bildschirmen höchstens volle Breite). Betrifft figure/.media und Karten. */
figure, .media { margin: 0; text-align: center; }
figure img,
.media img,
.card > img {
  display: inline-block;
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  vertical-align: bottom;
}
/* Teamkarten: gleiche Bildhöhe, damit die Namen auf einer Linie stehen – ohne Beschnitt. */
.card > img { display: block; margin: 0 auto 1rem; width: auto; height: 356px; object-fit: contain; }

/* ---------- Buttons ---------- */
/* Feste Höhen: Link-, Knopf- und Umriss-Buttons sind gleich hoch (transparenter Rand). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--btn-h); padding: 0 1.3rem; border-radius: 999px;
  background: var(--purple); color: #fff !important; font: inherit; font-weight: 700;
  font-size: var(--fs-ui); line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #3f2d86; text-decoration: none; }
.btn.secondary { background: #fff; color: var(--purple) !important; border-color: var(--purple); }
.btn.secondary:hover { background: var(--soft); }
.btn.small { min-height: var(--btn-h-sm); padding: 0 .9rem; }
.btn.danger { background: #b3261e; }
.btn.danger:hover { background: #8f1d17; }

/* ---------- Formen ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 700; font-size: var(--fs-ui); margin-bottom: .35rem; }
.field label.check { display: flex; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .6rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(80,58,168,.15);
}
.field .hint { font-size: var(--fs-small); color: var(--gray); margin-top: .3rem; }

/* ---------- Login-/Registrierungs-Karte ---------- */
.auth-card { max-width: 420px; margin: 3rem auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
/* Abstandseinstellungen für Hinweistexte in der Auth-Karte */
.auth-card .sub-gap    { margin-top: 1.2rem; margin-bottom: 1.5rem; }
.auth-card .sub-bottom { margin-top: 1.5rem; margin-bottom: 0; }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .sub { color: var(--gray); margin-bottom: 1.5rem; }
/* Meldungen und Aufgaben-Box: gleiche Größe, gleicher Innenabstand */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: var(--fs-ui); }
.alert.err { background: #fdecea; color: #b3261e; }
.alert.ok  { background: #e7f6ec; color: #1d7a3a; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
/* Hauptbereich darf schrumpfen; nicht umbrechenbare Zeichenketten
   (z. B. E-Mail-Adressen) brechen innerhalb der Karten, statt die
   Seite horizontal zu verbreitern (overflow-wrap wird vererbt). */
.dash-main { min-width: 0; overflow-wrap: break-word; }
/* Bei niedrigen Fenstern scrollt das Menü selbst, damit alle Punkte erreichbar sind. */
.dash-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.dash-side ul { list-style: none; padding: 0; margin: 0; }
.dash-side li { margin-bottom: .25rem; }
.dash-group { margin: 1rem 0 .25rem; padding: 0 .9rem; font-size: var(--fs-micro); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.dash-side a {
  display: block; padding: .6rem .9rem; border-radius: var(--radius-sm); color: var(--ink);
  font-weight: 600; font-size: var(--fs-ui);
}
.dash-side a:hover { background: var(--soft); text-decoration: none; }
.dash-side a.active { background: var(--purple); color: #fff; }
.dash-menu-toggle { display: none; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.role-badge { font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--pink); color: var(--purple); padding: .25rem .6rem; border-radius: 999px; }

/* Auswahl-Felder in Daten-Tabellen (z. B. „Familie“ in der Nutzerverwaltung) */
table.data select {
  padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--fs-ui); color: var(--ink); background: #fff; max-width: 100%;
}
table.data select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(80,58,168,.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfe6; margin-top: 4rem; padding: 2.5rem 0; font-size: var(--fs-ui); }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-grid h4 { color: #fff; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }

/* ============================================================
   Utility / Komponenten – zentrales Design, keine Inline-Styles in HTML
   (CLAUDE.md §2 „Keine Stilkonfiguration in HTML")
   ============================================================ */
.hidden { display: none !important; }

/* Abstände */
.m-0   { margin: 0; }
.mt-xs { margin-top: .4rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-0  { margin-bottom: 0; }

/* Text */
.muted   { color: var(--gray); }
.sm      { font-size: var(--fs-small); }
.lead.soft  { font-weight: 400; }
.lead.tight { margin: .4rem 0 0; }

/* Buttons */
.btn.block { display: flex; width: 100%; }

/* Karten */
.card.narrow    { max-width: 640px; }
.card.narrow-lg { max-width: 680px; }
.card.mb        { margin-bottom: 1rem; }
.card.mb-md     { margin-bottom: 1.25rem; }
.card.link      { text-decoration: none; color: inherit; }
.card.link h3, .card.link p { color: inherit; }
/* Kartenkopf: Titel links, Handlungsbutton rechts (z. B. „+ hinzufügen") */
.card-head { display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
/* Listeneinträge innerhalb einer Karte (z. B. Kinder/Notfallkontakte in
   „Meine Stammdaten“): weiche Fläche statt verschachtelter Karte. */
.entry { background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem; }
.entry + .entry { margin-top: 1rem; }

/* Textseiten (class="prose"): einheitlicher Abstand vor jeder H2, lesbare
   Zeilenlänge für Fließtext; Bilder, Raster und Karten nutzen die volle Breite. */
.prose > h2 { margin-top: 2.5rem; }
.prose > h1 + h2 { margin-top: 0; }
.prose > :where(p, ul, ol, h2, h3, address) { max-width: 70ch; }
.prose .faq { max-width: 70ch; }

/* Bildunterschriften in Figuren */
figure figcaption { color: var(--gray); font-size: var(--fs-small); margin-top: .5rem; }

/* Grid-Ausrichtung */
.grid.align-start { align-items: start; }

/* Tabellen scrollen nie seitlich (CLAUDE.md §2): Jede Zeile ist ein Raster aus
   Überschrift (data-label, siehe app.js) und Wert, das sich dem Platz anpasst –
   am Desktop nebeneinander, am Smartphone untereinander.
   .cards = lange Werte: breitere Felder, erster Wert in eigener Zeile. */
table.data, table.data tbody { display: block; }
table.data thead { display: none; }
table.data tr { display: grid; gap: .35rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
table.data.cards tr { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
table.data tr:last-child { border-bottom: 0; }
table.data td { display: block; padding: 0; min-width: 0; overflow-wrap: anywhere; }
table.data td[colspan], table.data.cards td:first-child { grid-column: 1 / -1; }
table.data td::before { display: block; font-size: var(--fs-micro); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gray); }
table.data td[data-label]:not([data-label=""])::before { content: attr(data-label); }
/* Schaltflächen in Tabellen dürfen umbrechen */
table.data .btn { margin: .1rem 0; white-space: nowrap; }

/* Kompakte Liste (Kinder & Eltern): eine Zeile je Familie */
.list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--soft); }
.list-row .main { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.list-row a.name { font-weight: 700; color: var(--ink); }
.list-row a.name:hover { color: var(--purple); }
.list-row .sub { color: var(--gray); font-size: var(--fs-small); }
.warn { display: inline-block; background: #fff4d6; color: #6b4a00; border-radius: 999px; padding: .1rem .6rem;
  font-size: var(--fs-small); font-weight: 600; margin: .2rem .3rem 0 0; }
/* Hinweis-Stufen (CLAUDE.md §2): .muted = neutral/leer, .tag = neutraler Zustand,
   .warn = fehlt oder offen, .notice = Aufgabe mit Link (nur Übersicht). */
.tag { display: inline-block; background: #f1f0f5; color: var(--gray); border-radius: 999px; padding: .1rem .6rem;
  font-size: var(--fs-small); font-weight: 600; margin: .2rem .3rem 0 0; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  background: #fff4d6; color: #6b4a00; border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem;
  font-size: var(--fs-ui); }
.notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.page-head h1 { margin: 0; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.toolbar input[type="search"] { flex: 1 1 14rem; min-width: 0; padding: .6rem .85rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.toolbar input[type="search"]:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(80,58,168,.15); }
.view-toggle { flex-wrap: wrap; }

/* Auswahl mit Kurzbeschreibung (Rollen) */
.check-list { display: grid; gap: .6rem; }
.check-list .check { align-items: flex-start; }
.check-list .check input { margin-top: .35rem; }
.check-list small { display: block; color: var(--gray); font-weight: 400; font-size: var(--fs-small); }
details.menu.solid > summary { background: var(--purple); color: #fff; min-height: var(--btn-h); padding: 0 1.3rem; }
input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Filterleiste (Protokoll) */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem 1rem; align-items: end; }
.filters input, .filters select { min-width: 0; }

/* Menü „Mehr“ für seltene Aktionen */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  min-height: var(--btn-h-sm); padding: 0 .9rem; line-height: 1.2;
  border: 1.5px solid var(--purple); border-radius: 999px; color: var(--purple); font-weight: 700; font-size: var(--fs-ui); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > div { position: absolute; right: 0; z-index: 20; min-width: 15rem; max-width: 80vw; margin-top: .4rem; padding: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
details.menu > div > * { display: block; width: 100%; text-align: left; padding: .55rem .8rem; border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; font-size: var(--fs-ui); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
details.menu > div > *:hover { background: var(--soft); text-decoration: none; }
details.menu > div > .red { color: #b3261e; }
/* Schmal: Menü über die ganze Breite unter dem Seitenkopf */
@media (max-width: 600px) {
  .page-head { position: relative; }
  .page-head details.menu { position: static; }
  .page-head details.menu > div { left: 0; right: 0; top: 100%; max-width: none; }
}

/* Einladungslink zum Kopieren */
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.invite input { flex: 1 1 16rem; min-width: 0; padding: .5rem .7rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-ui); color: var(--ink); }
.invite .full { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.invite-mail { display: flex; flex: 1 1 18rem; flex-wrap: wrap; gap: .5rem; margin: 0; }
.invite-mail input { flex: 1 1 12rem; min-width: 0; padding: .5rem .7rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: var(--fs-ui); color: var(--ink); background: #fff; }
.invite-mail input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(80,58,168,.15); }
.invite summary, details.block > summary { cursor: pointer; }
details.block > summary { font-weight: 700; color: var(--purple); }
.invite + .invite { border-top: 1px solid var(--line); padding-top: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

/* Dialog (z. B. erneute Anmeldung) */
dialog.dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; width: min(26rem, calc(100vw - 2rem)); box-shadow: var(--shadow-lg); }
dialog.dialog::backdrop { background: rgba(17,17,17,.6); }
dialog.dialog h2 { font-size: 1.4rem; }
dialog.dialog .dialog-text { margin-top: 0; overflow-wrap: anywhere; }
.link-btn { border: 0; background: none; padding: .3rem 0; font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--purple); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .6rem 0 0; }

/* Großansicht eines Bildes (Link mit data-lightbox) */
a[data-lightbox] { display: block; cursor: zoom-in; }
dialog.lightbox { border: 0; border-radius: var(--radius); padding: 1rem; background: #fff;
  box-shadow: var(--shadow-lg); max-width: 94vw; max-height: 94vh; overflow: auto; text-align: right; }
dialog.lightbox::backdrop { background: rgba(17,17,17,.6); }
dialog.lightbox img { width: min(548px, calc(94vw - 2rem)); max-width: 100%; height: auto; margin-top: .75rem;
  border-radius: 0; cursor: zoom-out; }
.alert.inline { display: inline; }

/* Formular-Helfer */
.check { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.check input { width: auto; }
/* Mehrere Rollen pro Person: Checkboxen in einer Zeile (bei wenig Platz umbrechen) */
.roles-cell { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
input:read-only { background: var(--soft); }
.block   { margin-bottom: 2rem; }
.actions { display: flex; align-items: end; gap: .5rem; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Ansichtstypen (Kalender / Liste) ---------- */
.view-toggle { display: inline-flex; gap: .25rem; background: var(--soft); border-radius: 999px; padding: .25rem; }
.view-toggle button {
  border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px;
  font: inherit; font-size: var(--fs-ui); font-weight: 700; color: var(--gray); cursor: pointer;
}
.view-toggle button.active { background: var(--purple); color: #fff; }

/* ---------- Kalender (Veranstaltungen) ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-head h3 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.cal-dow { font-size: var(--fs-micro); font-weight: 700; color: var(--gray);
  text-transform: uppercase; text-align: center; padding: .25rem 0; }
.cal-cell { min-height: 68px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .35rem .4rem; font-size: var(--fs-small); background: #fff; }
.cal-cell.out { background: var(--soft); }
.cal-cell.today { border-color: var(--purple); background: #f7f4fd; }
.cal-cell.out .d { color: #b9b6c8; }
.cal-cell .d { font-weight: 700; font-size: var(--fs-small); color: var(--gray); }
.cal-agenda { display: none; margin-top: 1rem; }
button.list-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit;
  text-align: left; color: inherit; cursor: pointer; }
button.list-row .sub { display: block; }
button.cal-event { width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.cal-event {
  display: block; margin-top: .2rem; background: var(--pink); color: var(--purple);
  border-radius: 6px; padding: .12rem .35rem; font-size: var(--fs-micro); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default;
}

/* ---------- Responsiv ---------- */
/* Eingeloggt hat das öffentliche Menü mehr Punkte und klappt früher ein. */
@media (max-width: 1279px) {
  .nav.member .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line); gap: .3rem;
  }
  .nav.member .nav-links.open { display: flex; }
  .nav.member .nav-toggle { display: block; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line); gap: .3rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; max-height: none; }
  .dash-menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%;
    padding: .65rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
    font: inherit; font-size: var(--fs-ui); color: var(--ink); cursor: pointer; }
  .dash-menu-toggle strong { margin-right: auto; }
  .dash-menu-toggle::after { content: "▾"; color: var(--purple); font-size: 1.2rem; line-height: 1; }
  .dash-side.open .dash-menu-toggle::after { content: "▴"; }
  .dash-side ul { display: none; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
  .dash-side.open ul { display: flex; }
  .dash-side li { margin: 0; }
  .dash-side .dash-group { flex-basis: 100%; margin-top: .4rem; padding: 0; }
  .dash-side a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-ui); }
  .dash-top { flex-wrap: wrap; }
  .cal-cell { min-height: 56px; }
  .cal-grid { gap: .2rem; }
  .cal-cell { padding: .25rem; overflow: hidden; }
  /* Termine als Punkte, Titel stehen in der Liste darunter */
  .cal-event > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  button.cal-event { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: var(--purple); display: inline-block; margin: .15rem .1rem 0 0; }
  .cal-agenda { display: block; }
  .today-label { display: none; }
}
