/* THERIQ Patienten-App – Gestaltung „Ruhige Präzision“ */
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Saira'; font-weight: 800; font-display: swap; src: url(fonts/saira-latin-800-normal.woff2) format('woff2'); }

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --surface-3: #e8e8e4;
  --line: #e4e4df;
  --line-strong: #d2d2cc;
  --ink: #18181b;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #6b6b73;
  --faint: #9a9aa2;
  --lime: #b2e80a;
  --lime-strong: #9bcc00;
  --lime-ink: #1d2600;
  --lime-soft: #f1fbd2;
  --red: #dc2626;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fdf3e2;
  --blue: #2563eb;
  --blue-soft: #e8effd;
  --green: #15803d;
  --green-soft: #e5f5ea;
  --violet: #7c3aed;
  --violet-soft: #f1eafe;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #18181b;
    --surface-2: #202024;
    --surface-3: #2a2a2f;
    --line: #2a2a2f;
    --line-strong: #3a3a40;
    --ink: #f4f4f5;
    --text: #f4f4f5;
    --text-2: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #71717a;
    --lime-soft: #232e07;
    --lime-ink: #1d2600;
    --red: #f87171;
    --red-soft: #3a1717;
    --amber: #fbbf24;
    --amber-soft: #36270b;
    --blue: #7aa2ff;
    --blue-soft: #18233f;
    --green: #4ade80;
    --green-soft: #12301d;
    --violet: #b794f6;
    --violet-soft: #2a1c45;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113;
  --surface: #18181b;
  --surface-2: #202024;
  --surface-3: #2a2a2f;
  --line: #2a2a2f;
  --line-strong: #3a3a40;
  --ink: #f4f4f5;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --lime-soft: #232e07;
  --lime-ink: #1d2600;
  --red: #f87171;
  --red-soft: #3a1717;
  --amber: #fbbf24;
  --amber-soft: #36270b;
  --blue: #7aa2ff;
  --blue-soft: #18233f;
  --green: #4ade80;
  --green-soft: #12301d;
  --violet: #b794f6;
  --violet-soft: #2a1c45;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
#root { min-height: 100%; }

/* ── Knöpfe ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 700; font-size: 15px;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.danger { color: var(--red); }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.link { background: none; border: 0; padding: 8px; color: var(--muted); font-weight: 600; }

/* ── Marke ── */
.marke { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #18181b; color: var(--lime); font: 800 21px/1 'Saira', sans-serif; }
.marke.gross { width: 64px; height: 64px; border-radius: 18px; font-size: 38px; }
.logo { display: flex; align-items: center; gap: 14px; }
.wortmarke { font: 700 26px/1 'Saira', sans-serif; letter-spacing: 0.14em; color: var(--text); }
.wortmarke span { color: var(--lime); }
.logo.praxis { flex-direction: column; align-items: flex-start; gap: 8px; }
.praxis-logo { display: block; max-width: min(260px, 100%); max-height: 84px; object-fit: contain; }
.logo-hinweis { font: 600 11px/1 'Saira', sans-serif; letter-spacing: 0.12em; color: var(--faint); }
.logo-hinweis b { color: #8fbf00; font-weight: 700; }
.kopf-logo { height: 36px; width: auto; max-width: 96px; object-fit: contain; flex: none; }

/* ── Einstieg (Code, Einwilligung, Push) ── */
.einstieg { max-width: 440px; margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 24px 32px; display: flex; flex-direction: column; gap: 18px; }
.einstieg h1 { font-size: 26px; font-weight: 800; }
.einstieg .muted { color: var(--muted); }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.feld input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 20px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.feld input:focus, .eingabe textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.fehler { color: var(--red); font-weight: 600; font-size: 14px; min-height: 1em; }
.oder { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.oder::before, .oder::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.punkte { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.punkte h3 { font-size: 14px; font-weight: 800; }
.punkte p { font-size: 14px; color: var(--text-2); }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.haken input { width: 22px; height: 22px; accent-color: var(--lime-strong); flex: none; margin: 0; }
.rechts { font-size: 13px; color: var(--muted); }

/* ── Hauptansicht ── */
.kopf {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.kopf .titel { flex: 1; min-width: 0; }
.kopf .titel b { display: block; font-size: 16px; font-weight: 800; }
.kopf .titel span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rund { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.rund svg { width: 20px; height: 20px; }

main.inhalt { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.abschnitt { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.leiste button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; border-radius: 12px;
}
.leiste button svg { width: 22px; height: 22px; }
.leiste button.aktiv { color: var(--text); }
.leiste button.aktiv .ico { background: var(--lime); color: var(--lime-ink); }
.leiste .ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; }
.zahl {
  position: absolute; top: 4px; left: calc(50% + 10px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

/* ── Karten ── */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.leer { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.leer b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.termin { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; }
.datum { text-align: center; border-radius: 12px; background: var(--surface-2); padding: 8px 0; }
.datum small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.datum b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.termin.naechster .datum { background: var(--lime); color: var(--lime-ink); }
.termin.naechster .datum small { color: var(--lime-ink); opacity: 0.75; }
.termin .zeit { font-size: 17px; font-weight: 800; }
.termin .info { font-size: 14px; color: var(--text-2); }
.termin .info span + span::before { content: ' · '; color: var(--faint); }
.termin.vorbei { opacity: 0.6; }
.termin.abgesagt .zeit { text-decoration: line-through; color: var(--muted); }

/* ── Termine: Umschalter und Ansichten ── */
.werkzeuge { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.werkzeug-titel { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.segment { flex: 1; min-width: 0; display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segment button { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 6px; white-space: nowrap; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.segment button.aktiv { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segment .anzahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--line); color: var(--text-2); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.segment button.aktiv .anzahl { background: var(--lime); color: var(--lime-ink); }
.ansichten { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ansichten button { width: 34px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--muted); }
.ansichten button svg { width: 18px; height: 18px; }
.ansichten button.aktiv { background: var(--lime); color: var(--lime-ink); }
@media (max-width: 370px) { .segment .anzahl { display: none; } }
.monat { font-size: 15px; font-weight: 800; margin-top: 4px; }

.zeilen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.zeile { display: grid; grid-template-columns: 92px 48px 1fr auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; font-size: 14px; }
.zeile + .zeile { border-top: 1px solid var(--line); }
.zeile .tag { color: var(--muted); font-weight: 700; }
.zeile .uhr { font-weight: 800; font-variant-numeric: tabular-nums; }
.zeile .was { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile.naechster { background: var(--lime-soft); }
.zeile.naechster .tag { color: var(--text); }
.zeile.vorbei { opacity: 0.7; }
.zeile.abgesagt .uhr { text-decoration: line-through; color: var(--muted); }
.marker.klein { margin-top: 0; padding: 2px 8px; font-size: 11px; }

.kalender { padding: 12px; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kal-kopf b { font-size: 16px; }
.kal-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.kal-raster .wtag { font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.kal-raster .tag { position: relative; aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 15px; font-weight: 600; }
.kal-raster .tag.hat { font-weight: 800; }
.kal-raster .tag.heute { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.kal-raster .tag.gewaehlt { background: var(--ink); color: var(--bg); }
.kal-raster .tag .kpunkt { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); }
.kpunkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.kpunkt.kommend { background: var(--lime-strong); }
.kpunkt.vorbei { background: var(--faint); }
.kpunkt.abgesagt { background: var(--red); }
.legende { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.leer.klein { padding: 20px 16px; }

.marker { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.marker.amber { background: var(--amber-soft); color: var(--amber); }
.marker.red { background: var(--red-soft); color: var(--red); }
.marker.green { background: var(--green-soft); color: var(--green); }
.marker.blue { background: var(--blue-soft); color: var(--blue); }
.marker.grau { background: var(--surface-2); color: var(--muted); }

.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.hinweis .punkt { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.hinweis .punkt svg { width: 18px; height: 18px; }
.hinweis.verschoben .punkt { background: var(--amber-soft); color: var(--amber); }
.hinweis.abgesagt .punkt { background: var(--red-soft); color: var(--red); }
.hinweis.neu .punkt { background: var(--green-soft); color: var(--green); }
.hinweis b { display: block; font-size: 14px; }
.hinweis p { font-size: 14px; color: var(--text-2); }
.hinweis small { color: var(--faint); font-size: 12px; }
.hinweis.ungelesen { border-color: var(--amber); }

.banner { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--amber-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); font-size: 14px; }

/* Vorschläge */
.vorschlag { display: flex; flex-direction: column; gap: 12px; }
.vorschlag.offen { border-color: var(--lime-strong); box-shadow: 0 0 0 3px var(--lime-soft); }
.vorschlag .oben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; align-items: center; }
.vorschlag .tag { font-size: 13px; font-weight: 700; color: var(--muted); }
.vorschlag .wann { font-size: 22px; font-weight: 800; line-height: 1.2; }
.vorschlag .notiz { font-size: 14px; color: var(--text-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.vorschlag .knoepfe { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.frist { font-size: 13px; font-weight: 700; color: var(--amber); }

/* Nachrichten */
.chat { display: flex; flex-direction: column; gap: 8px; }
.blase { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.blase small { display: block; margin-top: 4px; font-size: 11px; opacity: 0.7; }
.blase.praxis { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.blase.patient { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.blase .von { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.tagtrenner { align-self: center; font-size: 12px; font-weight: 700; color: var(--faint); margin: 8px 0 2px; }
.eingabe {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--line);
}
.eingabe textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.eingabe .btn { flex: none; width: 44px; padding: 0; }
main.inhalt.mit-eingabe { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

/* Einstellungen */
.blatt { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / 0.4); display: flex; align-items: flex-end; justify-content: center; }
.blatt > div { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.blatt h2 { font-size: 20px; font-weight: 800; }
.zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
.zeile b { display: block; }
.zeile span { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
}

/* Hilfsklassen (keine Inline-Stile wegen der Content-Security-Policy) */
.hinweis-vorschlag { text-align: left; border-color: var(--lime-strong); background: var(--lime-soft); }
.leise { color: var(--text-2); font-size: 14px; }
.klein { font-size: 13px; color: var(--muted); }
.ohne-abstand { margin: 0; }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; }

/* Kurse */
.kurs-karte { box-shadow: inset 4px 0 0 var(--kf), var(--shadow); }
.kurs-reihe { display: grid; gap: 8px; box-shadow: inset 4px 0 0 var(--kf), var(--shadow); }
.kurs-reihe .oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kurs-name { font-size: 17px; }
.kurs-text { font-size: 14px; }
.kurs-reihe .info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.kurs-unten { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.kurs-unten > :last-child { display: inline-flex; gap: 8px; align-items: center; }
.frei { font-size: 13px; font-weight: 700; color: var(--green); }
.frei.knapp { color: var(--amber); }
.frei.voll { color: var(--red); }
.kurs-zeile { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: inset 3px 0 0 var(--kf); }
.kurs-zeile .uhr { font-weight: 800; font-variant-numeric: tabular-nums; }
.kurs-zeile .was { display: grid; gap: 1px; min-width: 0; }
.kurs-zeile .was small { color: var(--muted); font-size: 12px; }
.reha-marke { margin-left: 6px; font-size: 11px; vertical-align: 1px; }
.reha-info { display: grid; gap: 2px; box-shadow: inset 4px 0 0 var(--blue), var(--shadow); }
.reha-info p { margin: 0; }
.reha-info.gesperrt { box-shadow: inset 4px 0 0 var(--red), var(--shadow); background: var(--red-soft); }
.kurs-zeile .frei { font-size: 12px; }
.kurs-knopf { display: grid; gap: 4px; justify-items: end; }
.kurs-knopf .marker { margin-top: 0; }
.tagtrenner.links { text-align: left; margin-top: 4px; }
.hinweis.kurs .punkt { background: var(--lime-soft); color: var(--lime-ink); }
.marker.ohne-abstand { margin-top: 0; }
.marker svg { width: 12px; height: 12px; }

/* Termin absagen / wiederherstellen */
.termin-aktion { margin-top: 10px; }
.termin-aktion:empty { display: none; }
.zeile-rechts { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.btn.mini { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.gefahr { background: var(--red); color: #fff; border-color: var(--red); }
.knoepfe-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hinweis-blatt.warnung h2 { color: var(--amber); }
.hinweis-blatt.fehler h2 { color: var(--red); }

/* Testbetrieb (Server mit TESTBETRIEB=1) */
.testbetrieb { padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600; border: 1px dashed currentColor; }

/* ───────── Start ───────── */
.gruss { margin: 4px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.start-liste { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.start-zeile { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.start-zeile + .start-zeile { border-top: 1px solid var(--line); }
.start-zeile:active { background: var(--surface-2); }
.start-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.start-ico svg { width: 20px; height: 20px; }
.start-text { display: flex; flex-direction: column; min-width: 0; }
.start-text b { font-size: 15px; }
.start-text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-pfeil { color: var(--faint); }
.start-pfeil svg { width: 18px; height: 18px; }
.zahl-inline { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.studio { display: flex; flex-direction: column; gap: 10px; }
.studio-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.studio-ort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.studio-ort svg { width: 18px; height: 18px; }
.studio-zahl { display: flex; align-items: baseline; gap: 10px; }
.studio-zahl b { font-family: 'Saira', 'Manrope', sans-serif; font-size: 44px; line-height: 1; font-weight: 800; }
.studio-zahl span { color: var(--muted); font-size: 14px; }
.studio-balken { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.studio-balken span { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--green); }
.studio-balken.amber span { background: var(--amber); }
.studio-balken.red span { background: var(--red); }
.studio-titel { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.studio-verlauf { display: grid; grid-template-columns: repeat(17, 1fr); align-items: end; gap: 3px; height: 64px; }
.saeule { height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--line-strong); }
.saeule.vorbei { opacity: 0.45; }
.saeule.jetzt { background: var(--lime-strong); }
.studio-achse { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: -4px; }
.studio-fuss:empty { display: none; }
.studio-erklaerung { margin-top: -4px; }
.studio-prozent { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -4px; }
.studio-prozent b { color: var(--text-2); }

/* Absage durch die Praxis */
.absage-termin { font-weight: 700; margin: 4px 0 8px; }
.absage-text { white-space: pre-line; line-height: 1.45; margin: 0 0 14px; }
.absage-text.klein { font-size: 13px; color: var(--text-2, inherit); margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.termin.abgesagt .absage-text { opacity: 1; }

/* Nachrichten löschen */
.chat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.chat-kopf .btn { flex-shrink: 0; white-space: nowrap; }
.blase[role="button"] { cursor: pointer; }
.blase[role="button"]:active { opacity: .75; }
.rechts.version { font-size: 12px; opacity: .6; }

/* Rezept einreichen & Termine buchen */
.start-buchen .start-ico { background: var(--lime); color: var(--lime-ink); }
.rz ul.rz-tipps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.rz-fehler { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; }
.rz-liest { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0; }
.rz-kreis { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--lime-strong); animation: rz-dreh 0.9s linear infinite; }
@keyframes rz-dreh { to { transform: rotate(360deg); } }
.rz-rezept, .rz-liste { display: flex; flex-direction: column; gap: 4px; }
.serien { display: flex; flex-direction: column; gap: 10px; }
.serie { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.serie.aktiv { border-color: var(--lime-strong); background: var(--lime-soft); }
.serie-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.serie-haken { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.serie.aktiv .serie-haken { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.serie-haken svg { width: 14px; height: 14px; }
.serie-termine { display: flex; flex-wrap: wrap; gap: 6px; }
.serie-termine span { padding: 3px 8px; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.rz-rueckruf { display: flex; flex-direction: column; gap: 10px; }
.rz-rueckruf summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-2); padding: 6px 0; }
.rz-rueckruf textarea { width: 100%; margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: inherit; font: inherit; resize: vertical; }

/* ───────── Start: Übersicht ───────── */
.start-kopf { display: flex; flex-direction: column; gap: 2px; }
.start-kopf .gruss { margin: 4px 0 0; }
.start-datum { font-size: 13px; color: var(--muted); font-weight: 600; }
.naechster-termin { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px; border: 0; border-radius: var(--radius); background: var(--lime); color: var(--lime-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.naechster-termin:active { filter: brightness(0.96); }
.naechster-termin.leer { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.nt-oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.nt-countdown { padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.1); letter-spacing: 0; text-transform: none; font-size: 12px; opacity: 1; }
.nt-mitte { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; }
.nt-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 12px; background: rgb(255 255 255 / 0.35); line-height: 1.05; }
.nt-datum b { font-size: 24px; font-weight: 800; }
.nt-datum small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.nt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nt-text b { font-size: 17px; font-weight: 800; }
.nt-text span { font-size: 14px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naechster-termin.leer .nt-text span { color: var(--muted); opacity: 1; }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kachel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.kachel:active { background: var(--surface-2); }
.kachel b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kachel span:last-child { font-size: 13px; color: var(--muted); }
.kachel-ico { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.kachel-ico svg { width: 18px; height: 18px; }
.kachel.neu { border-color: var(--lime-strong); }
.kachel.neu::after { content: ''; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.kachel.neu .kachel-ico { background: var(--lime); color: var(--lime-ink); }
.zeilen .zeile .zeile-rechts:empty { display: none; }

/* Einstellungen: Darstellung */
.darstellung-zeile { flex-wrap: wrap; }
.segment.darstellung { flex: 0 0 auto; width: 210px; }

/* Aktionen der Praxis */
.leiste.eng { padding-left: 4px; padding-right: 4px; }
.leiste.eng button { font-size: 11px; padding-left: 2px; padding-right: 2px; }
.leiste.eng .ico { width: 44px; }
.aktion { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.aktion-bild { aspect-ratio: 4 / 5; background: var(--line); }
.aktion-bild.quadrat { aspect-ratio: 1; }
.aktion-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aktion-text { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.aktion-titel { font-size: 18px; line-height: 1.25; }
.aktion-text p { margin: 0; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.aktion-zeit { font-size: 13px; color: var(--muted); font-weight: 600; }
.aktion-knopf { width: 100%; margin-top: 4px; }
.aktion-dabei { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); }
.aktion-haken { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.aktion-haken svg { width: 18px; height: 18px; }
