/* Betreuung -- eigenes Design, ohne CSS-Framework. Handy zuerst, eine Spalte, Menü unten (Daumen).
   Warmes Papier, Petrol als Hauptfarbe, Koralle für „offen“. Jede Person hat ihre eigene Farbe (--farbe). */

@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300 900; font-display: block;
  src: url('../fonts/nunito-latin.woff2?v=1') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300 900; font-display: block;
  src: url('../fonts/nunito-latin-ext.woff2?v=1') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4f1ea; --bg2: #ebe6db;
  --text: #1f2a2c; --text2: #5a6668; --text3: #8d9799;
  --karte: #fffdf9; --rand: rgba(31, 42, 44, .09);
  --akzent: #1f6f6a; --akzent-hell: #dcefec;
  --rot: #c4462f; --rot-hell: #fbe4dd; --gelb: #a8730f; --gelb-hell: #f8ecd0; --gruen: #2f7d4a; --gruen-hell: #e0f0e4;
  --feld: #ffffff; --feld-rand: rgba(31, 42, 44, .2);
  --schatten: 0 10px 28px -18px rgba(31, 52, 50, .45), 0 1px 3px rgba(31, 52, 50, .07);
  --radius: 18px; --leiste: 64px;
  color-scheme: light;
}
[data-bs-theme="dark"] {
  --bg: #141a1c; --bg2: #0f1416;
  --text: #ecf0ef; --text2: #aeb9b8; --text3: #7b8786;
  --karte: #1c2427; --rand: rgba(255, 255, 255, .07);
  --akzent: #6cc3b9; --akzent-hell: #1c3533;
  --rot: #f08f78; --rot-hell: #3e2520; --gelb: #e6b85a; --gelb-hell: #3a301c; --gruen: #7fcf97; --gruen-hell: #1d3324;
  --feld: #12191b; --feld-rand: rgba(255, 255, 255, .16);
  --schatten: 0 14px 34px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
/* Geteilte Bauteile (uhr.css, frage.css) in den Farben dieser App */
:root, [data-bs-theme="dark"] {
  --uhr-akzent: var(--akzent); --uhr-text: var(--text); --uhr-leise: var(--text3); --uhr-flaeche: var(--karte);
  --frage-flaeche: var(--karte); --frage-text: var(--text); --frage-linie: var(--rand); --frage-akzent: var(--akzent);
  --frage-akzent-text: #fff; --frage-radius: var(--radius); --frage-knopf-radius: 999px;
}
[data-bs-theme="dark"] { --frage-akzent-text: #0f1416; --uhr-akzent-text: #0f1416; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg);
  padding-bottom: calc(var(--leiste) + env(safe-area-inset-bottom));
}
a { color: var(--akzent); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.8rem; font-weight: 900; margin: 6px 0 8px; }
h2 { font-size: 1.12rem; font-weight: 800; }
.seite { max-width: 720px; margin: 0 auto; padding: 4px 16px 16px; }
.leise { color: var(--text2); }
.klein { font-size: .88rem; }
.block { display: block; }
.mitte-text { text-align: center; }
.offen-text { color: var(--rot); }
.ok-text { color: var(--gruen); font-weight: 700; }
.gefahr-text { color: var(--rot) !important; }
.fehler-text { color: var(--rot); font-weight: 700; min-height: 1.5em; margin: 8px 0 0; }

/* --- Kopf und Menü --- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 720px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px 4px; }
.marke { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.marke img { width: 32px; height: 32px; }
.kopf form { margin: 0; }
.link-knopf { background: none; border: 0; color: var(--text2); font-size: 1.2rem; padding: 8px; cursor: pointer; border-radius: 999px; font: inherit; }
.link-knopf .bi { font-size: 1.25rem; }
.link-knopf:hover { background: var(--rand); }

.leiste { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--karte) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rand); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.leiste a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text2);
  text-decoration: none; font-size: .74rem; font-weight: 800; padding: 4px 0; border-radius: 14px; min-width: 0; }
.leiste a .bi { font-size: 1.25rem; line-height: 1; padding: 4px 18px; border-radius: 999px; }
.leiste a.aktiv { color: var(--akzent); }
.leiste a.aktiv .bi { background: var(--akzent-hell); }

.zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--text2); text-decoration: none; font-weight: 700;
  font-size: .92rem; margin-top: 4px; padding: 6px 0; }
.titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.titelzeile h1 { margin: 0; }
.titelzeile p { margin: 2px 0 0; }
.blaettern { display: flex; align-items: center; gap: 6px; }
.blaettern.unten { justify-content: center; margin: 8px 0; }
.rund { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--karte);
  border: 1px solid var(--rand); color: var(--text); text-decoration: none; }
.neu-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }

/* --- Karten --- */
.karte { display: block; background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 18px; margin: 0 0 14px; color: inherit; }
.karte-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.karte-kopf p { margin: 2px 0 0; }
.symbol { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--akzent-hell); color: var(--akzent); font-size: 1.1rem; }
.symbol.rot { background: var(--rot-hell); color: var(--rot); }
.symbol.gruen { background: var(--gruen-hell); color: var(--gruen); }
.mitte { min-height: 60dvh; display: grid; place-items: center; }
.held { text-align: center; max-width: 440px; width: 100%; }
.held-bild { width: 88px; height: 88px; margin: 4px auto 8px; display: block; }
.leer { text-align: center; color: var(--text2); }
.leer > .bi { font-size: 2.4rem; color: var(--akzent); }
.leer h2 { color: var(--text); margin: 6px 0; }

/* --- Personen-Farben --- */
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe, var(--text3)); flex: none; }
.punkt.gross { width: 16px; height: 16px; }
.punkt.leer { background: transparent; border: 2px dashed var(--text3); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--farbe) 16%, var(--karte)); color: var(--text); white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; }
.chip.klein { font-size: .8rem; padding: 1px 8px 1px 6px; gap: 5px; }
.chip.klein .punkt { width: 8px; height: 8px; }
.chip.teil { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--farbe) 70%, transparent); }
.chip .nur-teil { font-weight: 600; color: var(--text2); }
.chip.klein .nur-teil { display: none; }
h1 .chip { font-size: 1.4rem; padding: 4px 16px 4px 12px; }
h1 .chip .punkt { width: 14px; height: 14px; }

.abzeichen { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 800;
  padding: 2px 10px; border-radius: 999px; background: var(--bg2); color: var(--text2); white-space: nowrap; }
.abzeichen.rot { background: var(--rot-hell); color: var(--rot); }
.abzeichen.gruen { background: var(--gruen-hell); color: var(--gruen); }
.abzeichen.gelb { background: var(--gelb-hell); color: var(--gelb); }

/* --- Planung: Tage --- */
.tag { margin: 0 0 18px; }
.tag-kopf { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 800; color: var(--text2); margin: 0 0 8px; }
.tag-zahl { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg2);
  color: var(--text); font-size: 1rem; font-weight: 900; flex: none; }
.tag.heute .tag-zahl { background: var(--akzent); color: #fff; }
[data-bs-theme="dark"] .tag.heute .tag-zahl { color: #0f1416; }
.heute-marke { color: var(--akzent); }
.termin { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px 44px; padding: 12px 14px 12px 18px;
  background: var(--karte); border: 1px solid var(--rand); border-radius: 14px; box-shadow: var(--schatten);
  color: inherit; text-decoration: none; overflow: hidden; }
.termin::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--farbe, var(--akzent)); }
.termin.offen::before { background: repeating-linear-gradient(180deg, var(--rot) 0 6px, transparent 6px 10px); }
.termin.ausfall { opacity: .6; box-shadow: none; }
.termin.ausfall .termin-titel { text-decoration: line-through; }
.termin.ausfall::before { background: var(--text3); }
.termin:hover { border-color: var(--feld-rand); }
.termin-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.termin-titel { font-weight: 800; overflow-wrap: anywhere; }
.termin-zeit { color: var(--text2); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.termin-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.verfuegbar { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.kal-ok { color: var(--gruen); }
.kal-wartet { color: var(--gelb); }
.zeiten { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 0 44px; }
.zeiten-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-right: 2px; }
.zeit { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 800; color: var(--text); text-decoration: none;
  padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--rand); background: var(--karte); }
.zeit .leise { font-weight: 600; }
.zeit.ausfall { text-decoration: line-through; opacity: .55; }

/* --- Termin-Seite --- */
.termin-karte { border-top: 6px solid var(--farbe, var(--rand)); }
.ueber { margin: 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); }
.untertitel { margin: 0 0 6px; font-weight: 700; }
.eckdaten { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.eckdaten .bi { color: var(--text3); margin-right: 6px; }
.notiz { white-space: pre-line; background: var(--bg2); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.auswahl { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--rand); border-radius: 14px;
  cursor: pointer; margin: 0; font-size: 1rem; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-name { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.option:has(input:checked) { border-color: var(--farbe, var(--akzent)); background: color-mix(in srgb, var(--farbe, var(--akzent)) 10%, var(--karte));
  box-shadow: 0 0 0 1px var(--farbe, var(--akzent)); }
.option:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.umfang { border: 0; padding: 0; margin: 12px 0 0; }
.umfang legend { font-weight: 800; font-size: .92rem; padding: 0; }
.umfang .haken { margin: 8px 0; }
.unter-karte { justify-content: center; margin: -2px 0 10px; }
.unter-karte form { margin: 0; }

/* --- Meldungen --- */
.meldung { border-radius: 14px; padding: 10px 14px; margin: 8px 0 12px; font-weight: 700; }
.meldung.ok { background: var(--gruen-hell); color: var(--gruen); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.hinweis { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; background: var(--akzent-hell); }
.hinweis.gelb { background: var(--gelb-hell); color: var(--gelb); font-weight: 700; }

/* --- Formulare --- */
label { display: block; font-weight: 700; font-size: .92rem; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=date], input[type=url], input[type=number], input[type=time], select, textarea, .uhr-feld {
  width: 100%; font: inherit; color: var(--text); background: var(--feld); border: 1px solid var(--feld-rand);
  border-radius: 12px; padding: 10px 12px; min-height: 46px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: 1px; border-color: transparent; }
.haken { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 1rem; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--akzent); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { min-width: 0; flex: 1; }
.inline-form .knopf { flex: none; }
form.links { text-align: left; }
.trenner { display: flex; align-items: center; gap: 10px; color: var(--text3); font-size: .85rem; margin: 16px 0 4px; }
.trenner::before, .trenner::after { content: ''; flex: 1; border-top: 1px solid var(--rand); }
.formular > .knopf { margin-top: 18px; }

.personen-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.person-knopf { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--feld-rand); font-weight: 800; font-size: .95rem; cursor: pointer; }
.person-knopf input { position: absolute; opacity: 0; pointer-events: none; }
.person-knopf:has(input:checked) { border-color: var(--farbe); background: color-mix(in srgb, var(--farbe) 16%, var(--karte)); }
.person-knopf:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }

.schalter-zeile { border-top: 1px solid var(--rand); margin-top: 16px; padding-top: 4px; }
.schalter { display: flex; align-items: center; gap: 12px; font-size: 1rem; cursor: pointer; margin: 8px 0; }
.schalter .bi { color: var(--text2); font-size: 1.15rem; }
.schalter input { position: absolute; opacity: 0; }
.schiene { margin-left: auto; width: 52px; height: 32px; border-radius: 999px; background: var(--bg2); border: 2px solid var(--feld-rand);
  position: relative; transition: background .15s; flex: none; }
.schiene::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text3); transition: transform .15s, background .15s; }
.schalter input:checked + .schiene { background: var(--akzent); border-color: var(--akzent); }
.schalter input:checked + .schiene::after { transform: translateX(20px); background: #fff; width: 20px; }
.schalter input:focus-visible + .schiene { outline: 2px solid var(--akzent); outline-offset: 2px; }

.zeitfelder { display: flex; flex-direction: column; gap: 8px; }
.zeitreihe { display: grid; grid-template-columns: 56px minmax(0, 1fr) 100px; gap: 8px; align-items: center; }
.zeitreihe-label { font-weight: 700; font-size: .9rem; color: var(--text2); }
.zeitfelder.ganztaegig .zeitreihe { grid-template-columns: 56px minmax(0, 1fr); }
.zeitfelder.ganztaegig .nur-zeit, .zeitfelder.ganztaegig .uhr-feld { display: none; }
.zeitreihe .uhr-feld { width: 100%; }

.wdh-knopf { display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 0; padding: 12px 2px; font: inherit; font-size: 1rem;
  color: var(--text); background: none; border: 0; border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand);
  cursor: pointer; text-align: left; }
.wdh-knopf .bi { color: var(--text2); font-size: 1.15rem; }
.wdh-knopf span { flex: 1; font-weight: 700; }
.wdh-knopf .weiter { color: var(--text3); font-size: .95rem; }

/* Wiederholung: Auswahlblatt (wie die Liste bei Google) und Vollbild „Benutzerdefiniert“ */
dialog.blatt { width: min(380px, calc(100vw - 32px)); max-width: none; padding: 8px 0; border: 1px solid var(--rand); border-radius: 24px;
  background: var(--karte); color: var(--text); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(10, 16, 18, .45); }
.wahl-liste { margin: 0; }
.radio-zeile { display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 22px; font-size: 1.02rem; font-weight: 600; cursor: pointer; }
.radio-zeile input[type=radio] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--akzent); }
.radio-zeile:hover { background: var(--bg2); }
.karte .radio-zeile { padding: 10px 4px; border-radius: 10px; }
dialog.vollbild { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text); }
.vollbild-kopf { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: var(--karte); border-bottom: 1px solid var(--rand); }
.vollbild-kopf h2 { flex: 1; min-width: 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vollbild-kopf .fertig { font: inherit; font-weight: 800; color: var(--akzent); background: none; border: 0; padding: 8px 12px;
  border-radius: 999px; cursor: pointer; }
.vollbild-kopf .fertig:hover { background: var(--akzent-hell); }
.vollbild-inhalt { max-width: 560px; margin: 0 auto; padding: 16px; }
.feld-titel { font-weight: 700; color: var(--text2); margin: 4px 0 10px; }
.alle-reihe { display: flex; gap: 12px; }
.alle-reihe input { width: 90px; flex: none; text-align: center; }
.alle-reihe select { width: auto; min-width: 140px; }
.vollbild-inhalt hr { border: 0; border-top: 1px solid var(--rand); margin: 18px -16px; }
.vollbild-inhalt .radio-zeile { padding: 10px 0; min-height: 64px; }
.vollbild-inhalt .radio-zeile span { min-width: 3.2em; }
.vollbild-inhalt .radio-zeile input[type=date] { width: auto; flex: 1; max-width: 220px; }
.vollbild-inhalt .radio-zeile input[type=number] { width: 80px; text-align: center; flex: none; }
.vollbild-inhalt .radio-zeile input:disabled { opacity: .45; }

.wochentage { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.wt { margin: 0; cursor: pointer; }
.wt input { position: absolute; opacity: 0; }
.wt span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800;
  border: 1.5px solid var(--feld-rand); color: var(--text2); background: var(--feld); }
.wt input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; }
[data-bs-theme="dark"] .wt input:checked + span { color: #0f1416; }
.wt input:disabled + span { opacity: .75; cursor: default; }
.wt input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.zweispaltig > div { min-width: 0; }
.aufklapp form { margin-top: 4px; }

/* Farbwahl */
.farben { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.farbe { margin: 0; cursor: pointer; }
.farbe input { position: absolute; opacity: 0; }
.farbe span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--farbe); border: 3px solid var(--karte);
  box-shadow: 0 0 0 1px var(--rand); }
.farbe input:checked + span { box-shadow: 0 0 0 2px var(--farbe); }
.farbe input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 3px; }

/* --- Knöpfe --- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800;
  color: #fff; background: var(--akzent); border: 1px solid transparent; border-radius: 999px; padding: 10px 18px;
  min-height: 46px; cursor: pointer; text-decoration: none; }
[data-bs-theme="dark"] .knopf { color: #0f1416; }
.knopf:hover { filter: brightness(1.07); }
.knopf.zweit { background: var(--akzent-hell); color: var(--akzent); }
.knopf.leise { background: transparent; color: var(--akzent); border-color: var(--feld-rand); }
.knopf.breit { width: 100%; }
.knopf.gross { min-height: 54px; font-size: 1.05rem; margin-top: 16px; }
.knopf.klein { padding: 6px 12px; min-height: 38px; font-size: .9rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.knopfreihe form { margin: 0; }

/* --- Listen --- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { border-top: 1px solid var(--rand); }
.liste > li:first-child { border-top: 0; }
.eintrag-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; }
.eintrag-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0 4px; }
.zeile .chip { margin-right: auto; }
.bearbeiten { padding: 0 0 10px; }
.bearbeiten summary { cursor: pointer; list-style: none; display: inline-block; padding: 2px 0; }
.bearbeiten summary::-webkit-details-marker { display: none; }
.bearbeiten form { margin: 8px 0 0; }
.aufklapp > summary { display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--text3); transition: transform .2s; }
.aufklapp[open] > summary::after { transform: rotate(180deg); }
.aufklapp[open] > summary { margin-bottom: 8px; }

.fuss { text-align: center; color: var(--text3); font-size: .8rem; padding: 10px 16px 24px; }

@media (max-width: 400px) {
  .zeitreihe { grid-template-columns: 48px minmax(0, 1fr) 88px; gap: 6px; }
  .termin, .zeiten { margin-left: 0; }
  h1 { font-size: 1.6rem; }
}

/* Desktop: Menü oben statt unten, etwas mehr Luft */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .seite, .kopf { max-width: 820px; }
  .leiste { position: sticky; top: 0; bottom: auto; justify-content: center; gap: 6px; border-top: 0;
    border-bottom: 1px solid var(--rand); padding: 6px 16px; margin-bottom: 10px; }
  .leiste a { flex: none; flex-direction: row; gap: 8px; font-size: .95rem; padding: 6px 16px; border-radius: 999px; }
  .leiste a .bi { padding: 0; background: none !important; font-size: 1.05rem; }
  .leiste a.aktiv { background: var(--akzent-hell); }
  .neu-reihe { display: flex; }
  .termin { flex-direction: row; align-items: center; justify-content: space-between; }
  .termin-kopf { flex-direction: column; gap: 0; }
  .termin-status { justify-content: flex-end; }
  dialog.vollbild { width: min(560px, 100vw); height: auto; max-height: 90dvh; margin: auto; border-radius: 24px; overflow: hidden; }
}
