/* Gruppenplaner – Design: hell, ruhig, weiße Karten, Akzent Petrol. Keine externen Schriften (Datenschutz). */
:root {
  --petrol-900: #063f43;
  --petrol-700: #0a5a5f;
  --petrol: #0e6e74;
  --petrol-500: #2a8a90;
  --petrol-100: #dcefef;
  --petrol-50: #eef7f7;

  --text: #15232a;
  --text-2: #4a5b62;
  --text-3: #7a8a90;
  --linie: #e3e9eb;
  --linie-2: #cfd9dc;
  --flaeche: #f4f7f8;
  --karte: #ffffff;

  --gruen: #18794e;  --gruen-50: #e9f7ef;  --gruen-200: #a7dfc0;
  --rot: #c0362c;    --rot-50: #fdeeec;    --rot-200: #f3b8b2;
  --gelb: #8a5a00;   --gelb-50: #fff6e0;   --gelb-200: #f3d58a;
  --blau: #2457a6;   --blau-50: #edf3fd;

  --radius: 14px;
  --radius-s: 10px;
  --schatten: 0 1px 2px rgba(16, 36, 44, .05), 0 1px 3px rgba(16, 36, 44, .07);
  --schatten-hoch: 0 10px 30px -12px rgba(16, 36, 44, .25);
  --schrift: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html { background: var(--flaeche); }
body {
  margin: 0; min-height: 100vh; background: var(--flaeche); color: var(--text);
  font: 16px/1.5 var(--schrift); -webkit-font-smoothing: antialiased;
}
a { color: var(--petrol); text-underline-offset: 2px; }
a:hover { color: var(--petrol-700); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 1.7rem; font-weight: 700; }
h2 { font-size: 1.12rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--petrol-500); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 1.25rem; }
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.marke:hover { color: var(--text); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--petrol-500), var(--petrol-700)); display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.logo svg { width: 22px; height: 22px; }
.marke-text { display: flex; flex-direction: column; line-height: 1.1; }
.marke-text strong { font-size: 1rem; }
.marke-text span { font-size: .72rem; color: var(--text-3); letter-spacing: .02em; }
.nav { display: flex; gap: .15rem; margin-left: .5rem; }
.nav a { display: flex; align-items: center; gap: .45rem; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 550; font-size: .94rem; white-space: nowrap; }
.nav a:hover { background: var(--flaeche); color: var(--text); }
.nav a.aktiv { background: var(--petrol-50); color: var(--petrol-700); }
.nav a { position: relative; }
.zaehler { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rot); color: #fff; font-size: .7rem; font-weight: 700; font-style: normal; line-height: 1; }
@media (max-width: 1120px) { .nav .zaehler { position: absolute; top: 2px; right: 0; } }
.tab-icon { position: relative; display: inline-flex; font-style: normal; }
.tab-icon .zaehler { position: absolute; top: -6px; right: -12px; }
iframe.mail-vorschau { display: block; width: 100%; max-width: 100%; min-height: 400px; border: 1px solid var(--linie); border-radius: 12px; margin: 0 auto; background: #eef3f3; transition: width .2s; }
.mailtext { white-space: pre-wrap; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: .75rem .9rem; margin: .5rem 0 0; font-size: .93rem; max-height: 260px; overflow: auto; }
.konto { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-100); color: var(--petrol-700); font-weight: 700; font-size: .82rem; flex: none; }
.avatar.gross, .person .avatar.gross { width: 56px; height: 56px; font-size: 1.15rem; }
.konto-text { display: flex; flex-direction: column; line-height: 1.15; font-size: .85rem; }
.konto-text span { color: var(--text-3); font-size: .75rem; }

/* Tab-Leiste unten (Handy) */
.tabbar { display: none; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------------------------------------------------------------- Seitenkopf */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.seitenkopf .unter { color: var(--text-2); margin: .35rem 0 0; }
.zurueck { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-2); text-decoration: none; font-size: .9rem; margin-bottom: .5rem; }
.zurueck:hover { color: var(--petrol); }

/* ---------------------------------------------------------------- Karten + Raster */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px 22px; margin-bottom: 18px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 14px; }
.karte-kopf .icon-kreis { margin-right: .1rem; }
.karte.flach { box-shadow: none; }
.karte.ohne-rand { padding: 0; overflow: hidden; }
.raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.raster-2-1 { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.stapel > * + * { margin-top: .5rem; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.zeile.zwischen { justify-content: space-between; }
.rechts { text-align: right; }
.gedaempft, .klein:not(button):not(.knopf) { color: var(--text-2); }
.klein:not(button):not(.knopf) { font-size: .88rem; }
.winzig { font-size: .78rem; color: var(--text-3); }
.trenner { height: 1px; background: var(--linie); margin: 16px 0; border: 0; }

/* Kennzahlen */
.kacheln { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.kachel { display: flex; align-items: center; gap: .9rem; padding: 16px 18px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); text-decoration: none; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
a.kachel:hover { transform: translateY(-1px); box-shadow: var(--schatten-hoch); color: var(--text); }
.kachel .zahl { font-size: 1.6rem; font-weight: 750; line-height: 1; letter-spacing: -.02em; }
.kachel .titel { font-size: .82rem; color: var(--text-2); margin-top: .25rem; }
.icon-kreis { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--petrol-50); color: var(--petrol); flex: none; }
.icon-kreis.gelb { background: var(--gelb-50); color: var(--gelb); }
.icon-kreis.gruen { background: var(--gruen-50); color: var(--gruen); }
.icon-kreis.blau { background: var(--blau-50); color: var(--blau); }
.icon-kreis.rot { background: var(--rot-50); color: var(--rot); }
.icon-kreis.klein-k { width: 32px; height: 32px; border-radius: 9px; }

/* ---------------------------------------------------------------- Knöpfe */
.knopf, button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: .62rem 1.05rem; min-height: 42px; border-radius: var(--radius-s);
  border: 1px solid var(--petrol); background: var(--petrol); color: #fff;
  box-shadow: 0 1px 2px rgba(16,36,44,.12); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.knopf:hover, button:hover { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; }
.knopf:active, button:active { transform: translateY(1px); }
.knopf.hell, button.hell { background: #fff; color: var(--text); border-color: var(--linie-2); box-shadow: none; }
.knopf.hell:hover, button.hell:hover { background: var(--flaeche); color: var(--text); border-color: var(--linie-2); }
.knopf.rot, button.rot { background: #fff; color: var(--rot); border-color: var(--rot-200); box-shadow: none; }
.knopf.rot:hover, button.rot:hover { background: var(--rot-50); border-color: var(--rot); color: var(--rot); }
.knopf.text, button.text { background: transparent; border-color: transparent; color: var(--petrol); box-shadow: none; padding-left: .5rem; padding-right: .5rem; }
.knopf.text:hover, button.text:hover { background: var(--petrol-50); color: var(--petrol-700); }
.knopf.gross, button.gross { min-height: 52px; padding: .85rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.knopf.klein, button.klein { min-height: 34px; padding: .4rem .75rem; font-size: .86rem; border-radius: 8px; }
.knopf.breit, button.breit { width: 100%; }
form.inline { display: inline-flex; margin: 0; }

/* Segment-Schalter da / nicht da */
.segment { display: inline-flex; padding: 4px; gap: 4px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; }
.segment form { display: flex; }
.segment button { min-height: 44px; min-width: 104px; border-radius: 9px; border: 0; box-shadow: none; background: transparent; color: var(--text-2); }
.segment button:hover { background: #fff; color: var(--text); }
.segment button.da.gewaehlt { background: var(--gruen); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.segment button.nichtda.gewaehlt { background: var(--rot); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }

/* ---------------------------------------------------------------- Meldungen + Hinweise */
.meldung { display: flex; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 14px; background: var(--petrol-50); color: var(--petrol-900); border: 1px solid var(--petrol-100); }
.meldung.success { background: var(--gruen-50); color: var(--gruen); border-color: var(--gruen-200); }
.meldung.error { background: var(--rot-50); color: var(--rot); border-color: var(--rot-200); }
.meldung .icon { margin-top: .15em; }
.hinweisbox { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 12px; background: var(--gelb-50); border: 1px solid var(--gelb-200); color: #5b3c00; margin-bottom: 16px; }
.hinweisbox.info { background: var(--petrol-50); border-color: var(--petrol-100); color: var(--petrol-900); }
.hinweisbox .icon { margin-top: .2em; }
.hinweisbox > div { flex: 1; }
.hinweisbox p:last-child { margin: 0; }
.hinweise { list-style: none; margin: 0; padding: 0; }
.hinweise li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; padding: 12px 0; border-top: 1px solid var(--linie); }
.hinweise li > .person { flex: 1 1 200px; }
.hinweise .text { flex: 1 1 200px; }
.hinweise li:first-child { border-top: 0; padding-top: 2px; }
.hinweise .text { min-width: 0; }
.hinweise .aktionen { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
aside .hinweise .aktionen { width: 100%; justify-content: flex-start; padding-left: 46px; }

/* ---------------------------------------------------------------- Etiketten */
.etikett { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--flaeche); color: var(--text-2); border: 1px solid var(--linie); white-space: nowrap; }
.etikett::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.etikett.ohne-punkt::before { display: none; }
.etikett.vorschlag, .etikett.eingeladen, .etikett.offen, .etikett.vorgeschlagen, .etikett.stufe-1 { background: var(--gelb-50); color: var(--gelb); border-color: var(--gelb-200); }
.etikett.fest, .etikett.laeuft, .etikett.zugesagt, .etikett.stattgefunden, .etikett.gesendet, .etikett.in_gruppe { background: var(--gruen-50); color: var(--gruen); border-color: var(--gruen-200); }
.etikett.wartet, .etikett.geplant { background: var(--petrol-50); color: var(--petrol-700); border-color: var(--petrol-100); }
.etikett.fehler, .etikett.ausgefallen, .etikett.passt_nicht, .etikett.stufe-2 { background: var(--rot-50); color: var(--rot); border-color: var(--rot-200); }
.etikett.attentioner { background: var(--blau-50); color: var(--blau); border-color: #cddcf5; }
.etikett.stress { background: #f4effb; color: #6a3fa0; border-color: #e0d3f1; }

/* ---------------------------------------------------------------- Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; background: transparent; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfc; }
td.aktionen { text-align: right; white-space: nowrap; }
td.aktionen > * + * { margin-left: .35rem; }
.person { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.person .avatar { width: 34px; height: 34px; font-size: .78rem; }
.person a, .person strong { font-weight: 600; text-decoration: none; color: var(--text); }
.person a:hover { color: var(--petrol); }
.person .winzig { display: block; }

/* Anwesenheit */
table.matrix th, table.matrix td { text-align: center; padding: .4rem .25rem; white-space: nowrap; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; padding-left: 0; position: sticky; left: 0; background: #fff; }
.zelle { width: 34px; height: 34px; min-height: 0; padding: 0; border-radius: 8px; font-size: .95rem; background: #fff; color: var(--text-3); border: 1px dashed var(--linie-2); box-shadow: none; }
.zelle:hover { background: var(--petrol-50); color: var(--petrol); border-color: var(--petrol-500); }
.zelle.ja { background: var(--gruen-50); color: var(--gruen); border: 1px solid var(--gruen-200); }
.zelle.nein { background: var(--rot-50); color: var(--rot); border: 1px solid var(--rot-200); }
span.zelle { display: inline-grid; place-items: center; }

/* Fortschritt */
.fortschritt { height: 8px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden; }
.fortschritt > span { display: block; height: 100%; background: linear-gradient(90deg, var(--petrol-500), var(--petrol)); border-radius: 999px; }

/* Fakten-Liste */
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; margin: 0; }
.fakten div { min-width: 0; }
.fakten dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; margin-bottom: .2rem; }
.fakten dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

/* Termine als Chips */
.termine { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.termin { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: 10px; background: #fff; font-size: .9rem; }
.termin .datum { white-space: nowrap; }
.termin .nr { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--flaeche); color: var(--text-2); flex: none; }
.termin.stattgefunden .nr { background: var(--gruen-50); color: var(--gruen); }
.termin.ausgefallen { background: var(--rot-50); border-color: var(--rot-200); color: var(--rot); }
.termin.ausgefallen .datum { text-decoration: line-through; }
.termin.heute { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--petrol-100); }
.termin .mehr { margin-left: auto; }
.termin .mehr a { color: var(--text-3); font-size: .8rem; text-decoration: none; }
.termin .mehr a:hover { color: var(--rot); }

/* Wochenplan */
.wochenplan-huelle { overflow-x: auto; }
.wochenplan { display: grid; grid-template-columns: 64px repeat(5, minmax(140px, 1fr)); gap: 8px; min-width: 760px; }
.wochenplan .kopfzelle { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; padding: .2rem .25rem; }
.wochenplan .zeitzelle { font-weight: 700; color: var(--text-2); padding-top: .6rem; }
.slot { border: 1px dashed var(--linie-2); border-radius: 12px; padding: 6px; min-height: 96px; display: flex; flex-direction: column; gap: 6px; background: #fbfcfc; }
.slot .leer { margin: auto; color: var(--text-3); font-size: .85rem; }
.slot a { display: block; text-decoration: none; color: var(--text); padding: .5rem .6rem; border-radius: 9px; background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--petrol); font-size: .85rem; transition: box-shadow .15s; }
.slot a:hover { box-shadow: var(--schatten-hoch); color: var(--text); }
.slot a.vorschlag, .slot a.eingeladen { border-left-color: #e0a526; }
.slot a.laeuft, .slot a.fest { border-left-color: var(--gruen); }
.slot a strong { display: block; font-size: .88rem; }
.slot a span { color: var(--text-2); font-size: .78rem; }
.legende { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 12px; font-size: .82rem; color: var(--text-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* Heute */
.sitzung-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.uhrzeit { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; color: var(--petrol-700); background: var(--petrol-50); border-radius: 12px; padding: .35rem .7rem; }
.kind-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: 12px 0; border-top: 1px solid var(--linie); }
.kind-zeile .person strong { font-size: 1.02rem; }
.fussleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--linie); }
.fussleiste .platz { flex: 1; }

/* Leere Zustände */
.leer-zustand { text-align: center; padding: 28px 12px; color: var(--text-2); }
.leer-zustand .icon-kreis { margin: 0 auto 10px; width: 52px; height: 52px; border-radius: 16px; }
.leer-zustand .icon-kreis .icon { width: 24px; height: 24px; }
.leer-zustand strong { display: block; color: var(--text); margin-bottom: .2rem; }

/* ---------------------------------------------------------------- Formulare */
.formular .feld { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--text); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=url], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); padding: .62rem .8rem; min-height: 44px;
  border: 1px solid var(--linie-2); border-radius: var(--radius-s); background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #b4c2c6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol-500); box-shadow: 0 0 0 4px var(--petrol-100); }
textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; line-height: 1.55; }
.feld.fehler input, .feld.fehler select { border-color: var(--rot); }
.errorlist { list-style: none; color: var(--rot); margin: .35rem 0 0; padding: 0; font-size: .86rem; }
.hilfe { font-size: .84rem; color: var(--text-3); margin-top: .3rem; display: block; }
.formular-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.formular-raster .ganz { grid-column: 1 / -1; }
.abschnitt-titel { display: flex; align-items: center; gap: .55rem; font-weight: 650; margin: 4px 0 14px; color: var(--text); }
.check { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); cursor: pointer; font-weight: 550; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--petrol); flex: none; }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.wahl label { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--linie-2); border-radius: 12px; cursor: pointer; font-weight: 600; margin: 0; background: #fff; transition: border-color .15s, background .15s; }
.wahl label:hover { border-color: var(--petrol-500); }
.wahl input { width: 18px; height: 18px; accent-color: var(--petrol); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--petrol); background: var(--petrol-50); box-shadow: 0 0 0 3px var(--petrol-100); }
.formular-fuss { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--linie); }
.suche { position: relative; max-width: 340px; width: 100%; }
.suche .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.suche input { padding-left: 2.3rem; }

/* Reiter */
.reiter { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 20px; overflow-x: auto; box-shadow: var(--schatten); }
.reiter a { display: flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 9px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.reiter a:hover { background: var(--flaeche); color: var(--text); }
.reiter a.aktiv { background: var(--petrol); color: #fff; }

details summary { cursor: pointer; color: var(--petrol); font-weight: 600; font-size: .9rem; }
pre.vorlage { white-space: pre-wrap; background: var(--flaeche); border: 1px solid var(--linie); padding: .85rem; border-radius: 10px; font-size: .84rem; margin: .6rem 0 0; }

/* ---------------------------------------------------------------- Login + Eltern */
.mitte { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.login-karte { width: 100%; max-width: 420px; }
.login-karte .logo { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
.login-karte .logo svg { width: 30px; height: 30px; }
body.einfach { background: radial-gradient(1200px 500px at 50% -120px, var(--petrol-100), transparent 70%), var(--flaeche); }
body.einfach .kopf { background: transparent; border-bottom: 0; backdrop-filter: none; position: static; }
body.einfach .kopf-innen { justify-content: center; }
body.einfach main { max-width: 620px; }
.eltern-fuss { text-align: center; color: var(--text-3); font-size: .82rem; margin-top: 18px; }
.erfolg-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--gruen-50); color: var(--gruen); }
.erfolg-icon .icon { width: 30px; height: 30px; }
.erfolg-icon.neutral { background: var(--petrol-50); color: var(--petrol); }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 1280px) {
  .konto-text { display: none; }
}
@media (max-width: 1120px) {
  .nav a span { display: none; }
  .nav a { padding: .55rem .65rem; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .raster-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.4rem; }
  main { padding: 18px 14px calc(var(--tabbar) + 28px); }
  .kopf-innen { padding: 0 14px; height: 58px; }
  .nav, .konto-text { display: none; }
  .karte { padding: 16px; border-radius: 12px; }
  .tabelle-huelle { margin: 0 -16px; padding: 0 16px; }
  .formular-raster, .wahl { grid-template-columns: 1fr; }
  .kacheln { gap: 10px; }
  .kachel { padding: 12px; gap: .65rem; }
  .kachel .zahl { font-size: 1.3rem; }
  .icon-kreis { width: 36px; height: 36px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--linie);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--text-3); font-size: .66rem; font-weight: 600; min-width: 0; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.aktiv { color: var(--petrol); }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .kind-zeile .segment { width: 100%; }
  .segment form { flex: 1; }
  .segment button { width: 100%; min-width: 0; }
  .fussleiste > * { flex: 1 1 auto; }
  .fussleiste .platz { display: none; }
  .hinweise li { flex-wrap: wrap; }
  .hinweise .aktionen { width: 100%; justify-content: flex-start; padding-left: 46px; }
  /* Tabellen als Karten */
  table.karten-mobil thead { display: none; }
  table.karten-mobil, table.karten-mobil tbody, table.karten-mobil tr, table.karten-mobil td { display: block; width: 100%; }
  table.karten-mobil tr { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  table.karten-mobil tr:last-child { border-bottom: 0; }
  table.karten-mobil td { border: 0; padding: .2rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  table.karten-mobil td::before { content: attr(data-label); color: var(--text-3); font-size: .8rem; text-align: left; }
  table.karten-mobil td.haupt { text-align: left; padding-bottom: .4rem; }
  table.karten-mobil td.haupt::before, table.karten-mobil td.aktionen::before { display: none; }
  table.karten-mobil td.aktionen { justify-content: flex-start; padding-top: .5rem; flex-wrap: wrap; }
  tbody tr:hover td { background: transparent; }
  table.kompakt td:not(.haupt) { display: inline-flex; width: auto; gap: .3rem; margin: .15rem .5rem 0 0; padding: 0; align-items: center; }
  table.kompakt td:not(.haupt)::before { font-size: .74rem; }
  table.kompakt td.haupt { padding-bottom: .25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .kopf, .tabbar, .fussleiste, button, .knopf { display: none !important; } body { background: #fff; } .karte { box-shadow: none; } }
