/* ── public/portal.css — der Bausteinkasten des Partnerportals ─────────────────────────────────────
 *
 * Ein Stylesheet für alle Seiten (doc/geruest.md, Teil 3). Seiten schreiben kein eigenes CSS und kein style="…"
 * außer CSS-Variablen (style="--w:40%"); die Proben prüfen das. Neues Aussehen = neuer Baustein hier.
 * Farben und Schriften aus dem Desk (/desk.css, Tokens) und Mechthilds Entwurf Firmenzugang (22.11.2026):
 * Türkisverlauf-Kopf mit gelbem Schein, Flächen mit weichem Schatten, große Kennzahlen, Personenkarten mit
 * Kürzel, Status-Chips nach .meldekasten. Menü: PC Seitenleiste, Tablet Symbolleiste, Handy Leiste unten.
 */

:root {
  /* Farben (desk.css) */
  --bg: #f7f6f1; --surface: #ffffff; --soft: #fbfaf6; --border: #e8e5dd; --border-strong: #d0ccc1;
  --text: #2a2825; --muted: #797268;
  --tq: #37C0AA; --tq-d: #2ea692; --tq-dd: #1f8473; --tq-bg: #e6f7f3; --tq-text: #17695c;
  --gelb: #F0B334; --gelb-bg: #fdf3da; --gelb-text: #7a5200;
  --ok-bg: #E9F5EE; --ok-text: #146138; --ok: #1F9D57;
  --fehler-bg: #FDECEA; --fehler-text: #AB1119; --fehler: #E2001A; --fehler-rand: #F1808D;
  --kopf-auf: #ffffff;
  --schatten: 0 18px 40px -24px rgba(16, 60, 70, .35);
  /* Schrift */
  --display: 'Roboto Slab', Georgia, serif;
  --body: 'Lato', -apple-system, 'Segoe UI', system-ui, sans-serif;
  /* Maße */
  --r: 16px; --r-s: 10px; --leiste-h: 64px; --menue-b: 248px; --schiene-b: 84px;
  --rand: max(16px, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141817; --surface: #1d2221; --soft: #191e1d; --border: #2e3533; --border-strong: #434d4a;
    --text: #ecebe6; --muted: #a49d92;
    --tq: #4fd1bb; --tq-d: #3cb9a4; --tq-dd: #1a6f62; --tq-bg: #163a34; --tq-text: #8fe6d6;
    --gelb: #F0B334; --gelb-bg: #3a2f12; --gelb-text: #ffd27a;
    --ok-bg: rgba(31,157,87,.16); --ok-text: #5FCB8A; --ok: #5FCB8A;
    --fehler-bg: rgba(226,0,26,.16); --fehler-text: #FF6B5E; --fehler: #FF6B5E; --fehler-rand: rgba(255,107,94,.45);
    --schatten: 0 18px 40px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141817; --surface: #1d2221; --soft: #191e1d; --border: #2e3533; --border-strong: #434d4a;
  --text: #ecebe6; --muted: #a49d92;
  --tq: #4fd1bb; --tq-d: #3cb9a4; --tq-dd: #1a6f62; --tq-bg: #163a34; --tq-text: #8fe6d6;
  --gelb: #F0B334; --gelb-bg: #3a2f12; --gelb-text: #ffd27a;
  --ok-bg: rgba(31,157,87,.16); --ok-text: #5FCB8A; --ok: #5FCB8A;
  --fehler-bg: rgba(226,0,26,.16); --fehler-text: #FF6B5E; --fehler: #FF6B5E; --fehler-rand: rgba(255,107,94,.45);
  --schatten: 0 18px 40px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ── Grund ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tq); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; }
.leise { color: var(--muted); }
.klein { font-size: 13px; color: var(--muted); }
.zwischen { margin: 22px 0 10px; font-size: 15px; font-weight: 700; }
.zwischen + .meldung { margin-bottom: 12px; }
.zahlig { font-variant-numeric: tabular-nums; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Band (interne Vorschau) ── */
.band { background: var(--gelb-bg); color: var(--gelb-text); font-weight: 700; font-size: 13px; padding-block: 7px;
  padding-left: var(--rand); padding-right: var(--rand-r); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.band-knopf { margin-left: auto; color: inherit; text-decoration: none; white-space: nowrap; border: 1px solid currentColor;
  border-radius: 999px; padding: 3px 12px; }
.band-knopf:hover, .band-knopf:focus-visible { background: var(--gelb); color: #2a2825; border-color: var(--gelb); }

/* ── Hülle: Leiste oben ── */
.leiste { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--leiste-h); background: var(--surface);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px;
  padding-left: var(--rand); padding-right: var(--rand-r); }
.leiste .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.leiste .logo img { height: 28px; width: auto; display: block; }
.leiste .logo span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--border-strong); padding-left: 12px; white-space: nowrap; }
.leiste .wer { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.leiste .wer .text { display: flex; flex-direction: column; line-height: 1.25; text-align: right; min-width: 0; }
.leiste .wer b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste .wer small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kuerzel { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tq-bg); color: var(--tq-text); font-weight: 700; font-size: 15px; }
.kuerzel.gross { width: 64px; height: 64px; font-size: 22px; }
.abmelden { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: var(--r-s); padding: 7px 12px; white-space: nowrap; }
.abmelden:hover { color: var(--text); border-color: var(--muted); }
/* Schalter hell/dunkel: Mond = jetzt hell (Klick macht dunkel), Sonne = jetzt dunkel */
.thema { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer; padding: 0;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border-strong); border-radius: var(--r-s); }
.thema:hover { color: var(--text); border-color: var(--muted); }
.thema svg { width: 18px; height: 18px; display: block; }
.thema .sonne { display: none; }
.thema[aria-pressed="true"] .sonne { display: block; }
.thema[aria-pressed="true"] .mond { display: none; }
.abmelden svg { width: 16px; height: 16px; }

/* Abmelden ist ein Formular (POST), sieht aber aus wie bisher */
.abmelde-form { margin: 0; display: inline-flex; }
button.abmelden { font: inherit; font-size: 14px; background: var(--surface); cursor: pointer; }

/* ── Hülle: Rahmen und Menü ── */
.rahmen { display: grid; grid-template-columns: var(--menue-b) minmax(0, 1fr); min-height: calc(100vh - var(--leiste-h)); }
.menue { position: sticky; top: calc(var(--leiste-h) + env(safe-area-inset-top, 0px)); align-self: start;
  height: calc(100vh - var(--leiste-h)); background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.menue a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-s); text-decoration: none;
  font-weight: 700; font-size: 15px; color: var(--muted); position: relative; }
.menue a svg { width: 22px; height: 22px; flex: none; }
.menue a:hover { background: var(--soft); color: var(--text); }
.menue a[aria-current="page"] { background: var(--tq-bg); color: var(--tq-text); }
.menue .zahl { margin-left: auto; font-size: 12px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px;
  border-radius: 99px; background: var(--soft); color: var(--muted); border: 1px solid var(--border); }
.menue .zahl.achtung { background: var(--gelb); color: #2a2825; border-color: var(--gelb); }
.menue .fuss { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px 14px 0; border-top: 1px solid var(--border); }
.inhalt { min-width: 0; padding-bottom: 56px; }
.recht { margin-top: 48px; font-size: 13px; color: var(--muted); }
.recht a { color: inherit; }
.rahmen.ohne-menue { grid-template-columns: minmax(0, 1fr); }

/* Tablet: Symbolschiene mit kleiner Beschriftung */
@media (max-width: 1099px) {
  .rahmen { grid-template-columns: var(--schiene-b) minmax(0, 1fr); }
  .menue { padding: 14px 8px; align-items: stretch; }
  .menue a { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 11px; text-align: center; }
  .menue a .zahl { position: absolute; top: 4px; right: 8px; margin: 0; padding: 0 5px; min-width: 18px; font-size: 10px; }
  .menue .fuss { display: none; }
  .leiste .wer .text { display: none; }
}
/* Handy: Leiste unten (wie der Campus) */
@media (max-width: 699px) {
  :root { --leiste-h: 56px; }
  .rahmen { grid-template-columns: minmax(0, 1fr); }
  .menue { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30; flex-direction: row;
    border-right: 0; border-top: 1px solid var(--border); padding: 6px max(6px, env(safe-area-inset-left, 0px))
    calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px)); gap: 2px; }
  .menue a { flex: 1 1 0; min-width: 0; padding: 6px 2px; font-size: 11px; }
  .menue a svg { width: 22px; height: 22px; }
  .menue a .zahl { right: 18%; }
  .inhalt { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .leiste .logo span { display: none; }
  .abmelden .wort { display: none; }
}

/* ── Seitenkopf: Türkisverlauf (Mechthild) ── */
.kopf { background: radial-gradient(ellipse at 105% 20%, rgba(240,179,52,.38), transparent 55%),
    linear-gradient(135deg, var(--tq) 0%, var(--tq-d) 62%, var(--tq-dd) 100%);
  color: var(--kopf-auf); padding: 40px var(--rand-r) 112px var(--rand); }
.kopf .innen { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.kopf .vor { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.kopf h1 { color: var(--kopf-auf); font-size: clamp(28px, 3.6vw, 40px); margin: 6px 0 8px; }
.kopf p { margin: 0; font-size: 17px; opacity: .95; max-width: 46em; }
.kopf .kuerzel { background: rgba(255,255,255,.22); color: var(--kopf-auf); }
.kopf .zurueck { color: var(--kopf-auf); text-decoration: none; font-weight: 700; font-size: 14px; opacity: .92;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.kopf .zurueck svg { width: 16px; height: 16px; }
.haupt { max-width: 1080px; margin: -72px auto 0; display: flex; flex-direction: column; gap: 24px;
  padding-left: var(--rand); padding-right: var(--rand-r); }
@media (max-width: 699px) { .kopf { padding-top: 28px; padding-bottom: 96px; } .haupt { gap: 18px; } }

/* ── Fläche ── */
.flaeche { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 30px;
  box-shadow: var(--schatten); min-width: 0; }
.flaeche > .kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.flaeche h2 { font-size: 22px; }
.flaeche .unter { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.flaeche.text p { max-width: 68ch; margin: 0 0 14px; line-height: 1.75; }
.flaeche.text p:last-child { margin-bottom: 0; }
@media (max-width: 699px) { .flaeche { padding: 20px 18px; } }

/* ── Kennzahlen ── */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.kennzahl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--schatten); display: flex; gap: 16px; align-items: center; min-width: 0; }
.kennzahl b { font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; color: var(--tq-text);
  font-variant-numeric: tabular-nums; }
.kennzahl span { line-height: 1.4; font-size: 15px; }
.kennzahl.achtung b { color: var(--fehler-text); }

/* ── Chips (nach .meldekasten im Desk) ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 700;
  white-space: nowrap; background: var(--soft); color: var(--muted); border: 1px solid var(--border); }
.chip.gut { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.chip.achtung { background: var(--fehler-bg); color: var(--fehler-text); border-color: var(--fehler-rand); }
.chip.hinweis { background: var(--gelb-bg); color: var(--gelb-text); border-color: transparent; }
.chip.tq { background: var(--tq-bg); color: var(--tq-text); border-color: transparent; }

/* ── Balken ── */
.fortschritt { display: flex; flex-direction: column; gap: 6px; }
.fortschritt .zeile { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.balken { height: 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--border); overflow: hidden; }
.balken i { display: block; height: 100%; width: var(--w, 0%); background: var(--tq); border-radius: 99px; }
.balken.gelb i { background: var(--gelb); } .balken.rot i { background: var(--fehler); }
.stapel { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--soft); border: 1px solid var(--border); }
.stapel i { display: block; height: 100%; width: var(--w, 0%); }
.stapel .anw { background: var(--tq); } .stapel .ent { background: var(--gelb); } .stapel .kra { background: #9aa7c7; }
.stapel .une { background: var(--fehler); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 8px 0 0; padding: 0; list-style: none; }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legende .anw { background: var(--tq); } .legende .ent { background: var(--gelb); } .legende .kra { background: #9aa7c7; } .legende .une { background: var(--fehler); }

/* ── Wochenraster: Kurstage je Woche (Personenseite, Anwesenheit) ── */
.wr { display: grid; grid-template-columns: 52px repeat(var(--spalten, 5), minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.wr-tag { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.wr-kw { font-size: 12px; font-weight: 700; color: var(--muted); align-self: center; }
.wr-k { border-radius: var(--r-s); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 1px solid transparent; }
.wr-k b { font-size: 15px; }
.wr-k small { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.wr-k.anw, .wr-legende i.anw { background: var(--ok-bg); color: var(--ok-text); }
.wr-k.spaet, .wr-legende i.spaet { background: var(--gelb-bg); color: var(--gelb-text); }
.wr-k.ent, .wr-legende i.ent { background: var(--tq-bg); color: var(--tq-text); }
.wr-k.une, .wr-legende i.une { background: var(--fehler-bg); color: var(--fehler-text); border: 2px solid var(--fehler-rand); }
.wr-k.une small { font-weight: 700; }
.wr-k.offen, .wr-legende i.offen { background: var(--soft); color: var(--muted); border: 1px dashed var(--border-strong); }
.wr-k.geplant, .wr-legende i.geplant { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.wr-k.heute { box-shadow: inset 0 0 0 2px var(--text); }
.wr-legende { margin-top: 12px; }
.wr-legende i { width: 14px; height: 14px; border-radius: 4px; box-sizing: border-box; }
@media (max-width: 699px) {
  .wr { grid-template-columns: 34px repeat(var(--spalten, 5), minmax(0, 1fr)); gap: 4px; }
  .wr-k { padding: 8px 4px; align-items: center; }
  .wr-k b { font-size: 13px; }
  .wr-k small { display: none; }
}

/* ── Personenkarten (Mechthild) ── */
.personen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.person { border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); text-decoration: none; color: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s; }
a.person:hover { border-color: var(--tq); box-shadow: var(--schatten); }
.person.achtung { border-color: var(--fehler-rand); box-shadow: inset 4px 0 0 var(--fehler); }
.person-kopf { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person-kopf > div { min-width: 0; }
.person-kopf b { display: block; font-size: 17px; line-height: 1.3; }
.person-kopf .klein { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; color: var(--muted); }

/* ── Suche ── */
.suche { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--r-s);
  padding: 0 12px; background: var(--surface); min-width: min(320px, 100%); }
.suche svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.suche input { border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 0; background: transparent; color: var(--text); width: 100%; }
.suche:focus-within { border-color: var(--tq); box-shadow: 0 0 0 3px var(--tq-bg); }
.leer-hinweis { color: var(--muted); margin: 12px 0 0; }

/* ── Zeilenliste ── */
.zeilen { display: flex; flex-direction: column; }
.zeilen > * { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 4px;
  border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.zeilen > *:first-child { border-top: 0; padding-top: 0; }
a.zeile:hover b { color: var(--tq-text); }
.zeile .rechts { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.zeile .unter { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: -2px; }

/* ── Kursfläche ── */
.kurse { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kurs { border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kurs h3 { font-size: 19px; }
.kurs .zeitraum { font-size: 14px; color: var(--muted); }

/* ── Termine nach Monat ── */
.monat + .monat { margin-top: 22px; }
.monat h3 { font-size: 16px; color: var(--tq-text); margin-bottom: 8px; }
.termin { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.termin:first-of-type { border-top: 0; }
.termin .tag { text-align: center; line-height: 1.1; border-radius: var(--r-s); background: var(--tq-bg); color: var(--tq-text); padding: 6px 0; }
.termin .tag b { display: block; font-family: var(--display); font-size: 22px; font-weight: 500; }
.termin .tag small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ── Feldliste ── */
.fortschritt + .felder, .spalten + .felder { margin-top: 18px; }
.felder { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.felder dt { color: var(--muted); } .felder dd { margin: 0; font-weight: 700; }
@media (max-width: 699px) { .felder { grid-template-columns: minmax(0, 1fr); gap: 2px; } .felder dd { margin-bottom: 10px; } }

/* ── Spalten ── */
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.gross-zahl { font-family: var(--display); font-size: 48px; font-weight: 500; line-height: 1; color: var(--tq-text); font-variant-numeric: tabular-nums; }
.gross-zahl small { font-size: 20px; }

/* ── Formular ── */
.formular { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.feld input { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--text); width: 100%; }
.feld input:focus { outline: 3px solid var(--tq-bg); border-color: var(--tq); }
.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 15px; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--tq-dd); cursor: pointer; }
.haken input:focus-visible { outline: 3px solid var(--tq-bg); outline-offset: 2px; }
.haken small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--muted); }
.knopf { align-self: flex-start; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 24px; border: 0; border-radius: var(--r-s);
  background: var(--gelb); color: #2a2825; cursor: pointer; }
.knopf:hover { filter: brightness(.95); }
a.knopf { display: inline-block; text-decoration: none; }
/* Aufklappmenü „Melden ▾“ in einer Zeile und einzeiliges Formular (Meldungen an das Haus, 27.11.2026) */
.knopf.klein { font-size: 13px; padding: 6px 12px; }
.meldemenue { position: relative; display: inline-block; }
.meldemenue > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--r-s); color: var(--text); background: var(--surface); white-space: nowrap; }
.meldemenue > summary::-webkit-details-marker { display: none; }
.meldemenue > summary::after { content: ' ▾'; }
.meldemenue[open] > summary { background: var(--soft); }
.meldemenue[open] > .mm-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; max-width: min(320px, calc(100vw - 40px));
  display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-s); box-shadow: var(--schatten); }
.mm-liste { display: none; }
.mm-eintrag { margin: 0; }
.mm-knopf { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); cursor: pointer; }
.mm-knopf:hover, .mm-knopf:focus-visible { background: var(--soft); }
.mm-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.mm-form:first-child { border-top: 0; margin-top: 0; }
.zeile-formular { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: 16px; }
.zeile-formular .feld { flex: 1 1 200px; max-width: 300px; }
.zeile-formular .knopf { align-self: flex-end; }
.meldung { margin: 0; padding: 14px 16px; border-radius: var(--r-s); font-size: 15px; line-height: 1.6; }
.meldung.hinweis { background: var(--gelb-bg); color: var(--gelb-text); }
.meldung.gut { background: var(--ok-bg); color: var(--ok-text); }
.meldung.achtung { background: var(--fehler-bg); color: var(--fehler-text); }
.meldung a { font-weight: 700; word-break: break-all; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
