/* Nachtblick — Oberfläche (hell + dunkel), Kämpfer-Farbwelt */

/* Schriften der Marke, lokal (DSGVO: kein externer Font-Host; CSP font-src 'self') */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2'); }

/* Farbwelt: Creme-Papier für den Inhalt, Nachtblau für Navigation und Kopf, Teal als einziger Akzent.
   Messwerte tragen nie eine Wertungsfarbe (Weg A) — Farbe unterscheidet Fläche und Quelle, nicht gut und schlecht.
   Kontraste geprüft: Tinte auf Karte 15,3:1 · Tinte-2 5,9:1 · Teal 5,5:1 · Creme auf Nacht 18,9:1. */
:root {
  --bg: #F5F0E8;
  --karte: #FFFDF9;
  --karte-2: #F7F2E9;
  --linie: #E6DCCC;
  --linie-stark: #D8CCB8;
  --tinte: #14243C;
  --tinte-2: #5B6472;
  --tinte-3: #6B7280;
  --nacht: #0A0F1A;          /* Seitenleiste, Kopfzeile-Akzent, Nachtband */
  --nacht-2: #16202F;
  --nacht-text: #E8E2D6;
  --nacht-text-2: #9AA3B0;
  --teal: #1E7370;
  --teal-dunkel: #185957;
  --teal-hell: #DFEFED;
  --teal-leuchten: #3FB8B5;  /* nur auf dunklem Grund */
  --knopf: #1E7370;
  --knopf-hover: #185957;
  --knopf-text: #FFFDF9;
  --blau: #1A365D;
  --akzent: #1E7370;
  --gut: #146B3A;
  --gut-bg: #DDF5EA;
  --achtung: #B45309;
  --achtung-bg: #FBEBD7;
  --neutral-bg: #F4EAD3;
  --tile-mint: #EAF2EC;   --tile-mint-tinte: #14243C;
  --tile-sky:  #EAEEF4;   --tile-sky-tinte:  #14243C;
  --tile-sand: #F4EDE0;   --tile-sand-tinte: #14243C;
  --tile-lila: #EEEBF2;   --tile-lila-tinte: #14243C;
  --gitter: #EDE6DA;
  --achse: #B9AE9C;
  --schatten: 0 1px 2px rgba(20,36,60,.05), 0 8px 24px -12px rgba(20,36,60,.18);
  --schatten-hoch: 0 2px 4px rgba(20,36,60,.06), 0 18px 40px -20px rgba(20,36,60,.30);
  --radius: 16px;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  /* Ereignisfarben — Zwilling der JS-Palette in src/ui/kern.js (farben().ereignis),
     damit die schematischen Kurven im Glossar dieselbe Sprache sprechen wie die Charts */
  --ereignis-oa: #2a78d6;  --ereignis-za: #eb6834;  --ereignis-hy: #1baf7a;
  --ereignis-au: #eda100;  --ereignis-rera: #e87ba4; --ereignis-pb: #4a3aa7;
  --kurve-puls: #eb6834;   --kurve-spo2: #24487E;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0C121C;
  --karte: #141C29;
  --karte-2: #1A2432;
  --linie: #26303F;
  --linie-stark: #35414F;
  --tinte: #ECE6DA;
  --tinte-2: #A9B2BE;
  --tinte-3: #8E97A3;
  --nacht: #070B13;
  --nacht-2: #121A26;
  --nacht-text: #ECE6DA;
  --nacht-text-2: #98A1AE;
  --teal: #3FB8B5;
  --teal-dunkel: #5CC8C5;
  --teal-hell: #143733;
  --teal-leuchten: #5CC8C5;
  --knopf: #3FB8B5;
  --knopf-hover: #5CC8C5;
  --knopf-text: #0A0F1A;
  --blau: #9BB4D9;
  --akzent: #3FB8B5;
  --gut: #4ADE80;
  --gut-bg: #14352A;
  --achtung: #F0A868;
  --achtung-bg: #3D2A16;
  --neutral-bg: #33301C;
  --tile-mint: #17242B;  --tile-mint-tinte: #ECE6DA;
  --tile-sky:  #16202F;  --tile-sky-tinte:  #ECE6DA;
  --tile-sand: #262032;  --tile-sand-tinte: #ECE6DA;
  --tile-lila: #1D2233;  --tile-lila-tinte: #ECE6DA;
  --gitter: #1D2634;
  --achse: #4A5563;
  --schatten: 0 1px 2px rgba(0,0,0,.5), 0 10px 30px -14px rgba(0,0,0,.7);
  --schatten-hoch: 0 2px 6px rgba(0,0,0,.55), 0 22px 50px -22px rgba(0,0,0,.8);
  --ereignis-oa: #3987e5;  --ereignis-za: #d95926;  --ereignis-hy: #199e70;
  --ereignis-au: #c98500;  --ereignis-rera: #d55181; --ereignis-pb: #9085e9;
  --kurve-puls: #d95926;   --kurve-spo2: #7FA6E0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--tinte);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--tinte); font-weight: 500; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; }
h2 { font-size: 22px; margin: 26px 0 12px; }
h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
button { font: inherit; }
select, textarea, input[type="text"], input[type="date"] {
  font: inherit; color: var(--tinte); background: var(--karte);
  border: 1px solid var(--linie); border-radius: 9px; padding: 7px 10px;
}
select:focus, textarea:focus, input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Nur für Screenreader: visuell versteckt, aber im Zugänglichkeitsbaum (Überschriften je Ansicht, Tabellen-Kopfzellen) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Skip-Link „Zum Inhalt": erster Fokus der Seite, sichtbar nur bei Tastaturfokus */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--knopf); color: var(--knopf-text); padding: 8px 14px; border-radius: 9px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid var(--teal); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.seitenleiste {
  width: 236px; flex: 0 0 236px; background: var(--nacht); color: var(--nacht-text);
  border-right: 1px solid rgba(255,253,249,.07); padding: 20px 14px 16px;
  display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh;
}
.logo { display: flex; align-items: center; gap: 11px; padding: 2px 6px 14px; }
.logo-mark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: var(--teal-leuchten); }
.logo-mark svg, .logo-mark img { width: 34px; height: 34px; display: block; }
.logo strong { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .01em; color: var(--nacht-text); }

.logo strong { display: block; font-size: 15px; }
.logo small { display: block; color: var(--nacht-text-2); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; margin-top: 2px; white-space: nowrap; }
.hauptnav { display: flex; flex-direction: column; gap: 4px; }
.nav-eintrag {
  display: flex; align-items: center; gap: 11px; text-align: left; width: 100%;
  background: transparent; border: 0; color: var(--nacht-text-2); padding: 10px 12px;
  border-radius: 11px; cursor: pointer; font-size: 14.5px; font-family: var(--sans);
  position: relative; transition: color .16s ease, background .16s ease;
}
.nav-eintrag:hover { background: rgba(255,253,249,.06); color: var(--nacht-text); }
.nav-eintrag.aktiv { background: rgba(63,184,181,.13); color: #EAF6F5; font-weight: 500; }
.nav-eintrag.aktiv::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal-leuchten); }
.nav-eintrag .ikon { width: 20px; text-align: center; opacity: .75; }
.nav-eintrag.aktiv .ikon { opacity: 1; color: var(--teal-leuchten); }
.nav-eintrag:focus-visible { outline: 2px solid var(--teal-leuchten); outline-offset: 1px; }
.seitenleiste-fuss { margin-top: auto; }
.seitenleiste .klein-knopf { background: rgba(255,253,249,.07); border-color: rgba(255,253,249,.14); color: var(--nacht-text-2); }
.seitenleiste .klein-knopf:hover { border-color: var(--teal-leuchten); color: var(--nacht-text); }

.inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kopfzeile {
  /* Umbrechen statt die Seite breiter machen: Bis beta.24 stand die Zeile starr nebeneinander und
     zwang das Dokument auf 1222 px — bei jedem Fenster zwischen 920 px (ab da erscheint die feste
     207-px-Seitenleiste) und 1222 px scrollte die GANZE Seite waagerecht. Nachgemessen am 26.08.2026
     bei 920, 940, 960, 980 und 1000 px: durchgehend Überlauf. */
  display: flex; align-items: center; gap: 12px; padding: 13px 22px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 5;
}
.nacht-nav { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
/* min-width statt fester Breite: das Auswahlfeld darf schrumpfen, bevor die Zeile umbricht. */
.nacht-nav select { min-width: 0; width: 220px; max-width: 100%; }
.nacht-nav input[type="date"] { padding: 5px 8px; font-size: 13px; }
.pfeil {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 8px;
  color: var(--tinte-2); width: 34px; height: 34px; cursor: pointer; font-size: 16px;
}
.pfeil:hover { border-color: var(--teal); color: var(--teal-dunkel); }
.geraet-wahl { margin-left: auto; color: var(--tinte-2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 20px 40px; }
.fuss { max-width: 1240px; margin: 0 auto; padding: 0 20px 24px; color: var(--tinte-2); font-size: 12px; }   /* tinte-2: ≥ 5,2:1 auf --bg (tinte-3 wäre 4,44:1) */
.nur-mobil { display: none; }

.klein-knopf {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 8px;
  color: var(--tinte-2); padding: 6px 10px; cursor: pointer; font-size: 13px;
}
.klein-knopf:hover { border-color: var(--teal); color: var(--teal-dunkel); }
.primaer {
  background: var(--knopf); color: var(--knopf-text); border: 0; border-radius: 9px;
  padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.primaer:hover { background: var(--knopf-hover); }
.primaer:disabled { opacity: .45; cursor: not-allowed; }
.primaer:disabled:hover { background: var(--knopf); }
/* Sichtbarer Tastatur-Fokus überall */
button:focus-visible, select:focus-visible, input:focus-visible, .nav-eintrag:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
body.laedt { cursor: progress; }
.lade-hinweis { font-size: 12px; color: var(--tinte-2); display: inline-flex; align-items: center; gap: 6px; }
.lade-hinweis::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--teal); border-top-color: transparent; animation: dreh .8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.leer-karte { text-align: center; color: var(--tinte-2); padding: 26px 16px; }
.leer-karte b { display: block; color: var(--tinte); margin-bottom: 4px; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,32,.45); z-index: 30; }
.backdrop.offen { display: block; }
.link-knopf { background: transparent; border: 0; color: var(--achtung); cursor: pointer; padding: 8px 6px; }
.meldung { background: var(--achtung-bg); border: 1px solid var(--achtung); border-radius: 10px; padding: 12px 14px; }
.hinweis-text { color: var(--tinte-2); font-size: 13px; }   /* tinte-2: ≥ 4,7:1 auch auf --bg (#trend-info) und Sky-Bändern (tinte-3: 4,0–4,4:1) */
/* Hinweis, der eine Folge hat (unverschlüsselte Sicherung, Gerätekennungen): Amber statt Rot —
   Rot gehört nicht in diese Marke, und es ist eine Warnung, kein Fehler. */
.warnung-text { color: var(--achtung); border-left: 3px solid var(--achtung); padding-left: 10px; }

/* ---------- Karten ---------- */
.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 18px 20px;
}
.karten-titel strong { font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .005em; }
.karten-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.karten-kopf.blau { background: var(--tile-sky); margin: -16px -18px 12px; padding: 14px 18px; border-radius: var(--radius) var(--radius) 0 0; }
.karten-kopf.blau h2 { color: var(--tile-sky-tinte); margin: 0; }
.karten-titel { display: flex; align-items: center; gap: 12px; }
.karten-ikon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tile-sky); color: var(--tile-sky-tinte); font-size: 18px; flex: 0 0 auto;
}
.karten-titel strong { display: block; font-size: 14.5px; }
.karten-titel small { color: var(--tinte-3); font-size: 12px; }
.mehr-link { background: transparent; border: 0; color: var(--teal-dunkel); cursor: pointer; padding: 4px 0; font-size: 13px; }

/* (Weg A: keine Score-Karte, keine Bewertungsbalken — Regeln entfernt) */

/* Gesundheits- und KPI-Kacheln */
.gesund-raster, .kpi-raster { display: grid; gap: 12px; margin-bottom: 14px; }
.gesund-raster { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpi-raster { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tile {
  border-radius: var(--radius); padding: 15px 17px 14px; position: relative; overflow: hidden;
  background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten); color: var(--tinte);
}
/* Die Farbnamen bleiben als Haken für die Reihenfolge, tragen aber keine Wertung mehr:
   ein feiner Strich oben statt einer eingefärbten Fläche. */
.tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--linie-stark); }
.tile.mint::before, .tile.sky::before, .tile.sand::before, .tile.lila::before { background: var(--teal); opacity: .55; }
.tile .t-label { font-size: 12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--tinte-2); }
.tile .t-wert { font-size: 30px; font-weight: 700; letter-spacing: -.022em; margin-top: 3px; line-height: 1.08; }
.tile .t-wert small { font-size: 13px; font-weight: 500; color: var(--tinte-2); letter-spacing: 0; }
.tile .t-delta { font-size: 12.5px; margin-top: 5px; display: inline-flex; align-items: center; gap: 4px; color: var(--tinte-2); }
.tile .t-text { font-size: 12.5px; margin-top: 5px; color: var(--tinte-2); }
.tile .t-wasser { position: absolute; right: -4px; bottom: -12px; font-size: 58px; opacity: .06; line-height: 1; }
/* Weg A: Deltas zeigen nur die Richtung (kein gut/achtung) */
.delta-neutral { color: inherit; }   /* ohne Opazität: Kachel-Tinte ≥ 7,6:1 (mit .7 lagen Sand/Sky bei 3,2–4,05:1) */

.drei-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 16px; }
/* Ereignis-Karte: gestapelter Balken statt gefülltem Ring (ein Ring liest sich als Tacho) */
.ev-kopf { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 12px; flex-wrap: wrap; }
.ev-wert { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ev-einheit { font-size: 13px; color: var(--tinte-2); font-weight: 500; }
.ev-einheit small { font-weight: 400; }
.ev-summe { margin-left: auto; font-size: 12.5px; color: var(--tinte-3); }
.ev-balken { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--karte-2); }
.ev-balken span { display: block; height: 100%; }
.ev-legende { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; color: var(--tinte-2); }
.ev-legende i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.ev-legende b { color: var(--tinte); font-variant-numeric: tabular-nums; }

/* Druck als ruhige Zeile statt eigener Kachel (die Zahl stand dreifach auf dem Schirm) */
.druck-zeile { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 18px; margin-bottom: 14px;
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.dz-label { font-size: 13px; color: var(--tinte-2); font-weight: 500; display: inline-flex; align-items: center; }
.dz-wert { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.dz-wert small { font-size: 13px; font-weight: 500; color: var(--tinte-2); }
.dz-delta, .dz-herkunft { font-size: 12.5px; color: var(--tinte-2); }
.dz-herkunft { margin-left: auto; color: var(--tinte-3); }

.donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.donut canvas { width: 160px; height: 160px; flex: none; }
/* Die Seite neben dem Ring darf schrumpfen, aber nicht unter Lesebreite — darunter rutscht sie
   unter den Ring, statt die Legende in Ein-Wort-Spalten zu brechen. */
.donut-seite { flex: 1 1 190px; min-width: 0; }
.donut-seite .ev-legende { margin-top: 0; flex-direction: column; gap: 7px; }
.ev-summe-zeile { margin: 10px 0 0; font-size: 12.5px; color: var(--tinte-3); }
.legende { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tinte-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.kv-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv-tabelle td { padding: 6px 4px; border-bottom: 1px solid var(--linie); white-space: normal; overflow-wrap: break-word; }
/* `anywhere` statt `break-word` trennte eifrig mitten im Wort, um die Spalte schmal zu halten:
   in der Karte „Geräteeinstellungen“ stand „Startdru/ck“ und „Antibakterieller Fil/ter“.
   `break-word` bricht ein Wort nur, wenn es allein nicht in die Zeile passt. */
.kv-tabelle td:first-child { color: var(--tinte-2); }
.kv-tabelle td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.stat-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-tabelle th { color: var(--tinte-3); font-weight: 600; text-align: right; padding: 4px 3px; white-space: nowrap; }   /* 3 px seitlich: mit ⓘ passt die Tabelle bei 1280 px in die Karte */
.stat-tabelle th:first-child { text-align: left; }
.stat-tabelle thead th { background: transparent; position: static; }   /* Karten-Statistik: kein grauer Kopf, nicht klebend */
.stat-tabelle td { padding: 5px 3px; text-align: right; border-top: 1px solid var(--linie); white-space: nowrap; }
.stat-tabelle td:first-child { text-align: left; color: var(--tinte-2); }
.stat-fuss { margin-top: 10px; font-size: 13px; color: var(--tinte-2); }
.stat-fuss b { color: var(--tinte); }
.session-liste { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--tinte-2); }

/* Charts */
/* Leiste über dem Chart-Stapel: Hilfe · Cursor-Zeit · Werkzeuge (⇄ + − ⋮). Klebt unter der Kopfzeile,
   damit die Werkzeuge beim Scrollen durch 12 Charts erreichbar bleiben (SleepHQ hat sie nur oben). */
.chart-leiste {
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 6px 2px;
  position: sticky; top: var(--kopf-h, 59px); z-index: 4; background: var(--bg); border-bottom: 1px solid var(--linie);
}
.zoom-hilfe, .cursor-zeit { font-size: 12px; color: var(--tinte-2); }   /* auf --bg: ≥ 5,7:1 (tinte-3 wäre 4,44:1) */
.zoom-hilfe { flex: 1 1 auto; min-width: 0; }
.cursor-zeit { font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.chart-werkzeuge {
  display: flex; align-items: center; gap: 2px; padding: 2px; flex: 0 0 auto;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 9px; box-shadow: var(--schatten);
}
.chart-werkzeuge > button, .chart-werkzeuge .dropdown > button {
  width: 30px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--tinte-2);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.chart-werkzeuge > button:hover, .chart-werkzeuge .dropdown > button:hover { background: var(--karte-2); color: var(--teal-dunkel); }
.chart-werkzeuge > button[aria-pressed="true"] { background: var(--teal-hell); color: var(--teal-dunkel); box-shadow: inset 0 0 0 1.5px var(--teal); }
.chart-werkzeuge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-werkzeuge svg .voll { fill: currentColor; stroke: none; }
.chart-werkzeuge .dropdown-menue { min-width: 236px; }
.chart-werkzeuge .dropdown-menue button { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.chart-werkzeuge .dropdown-menue svg { width: 16px; height: 16px; color: var(--tinte-3); }
.chart-werkzeuge .dropdown-menue kbd { margin-left: auto; }
kbd {
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tinte-2);
  background: var(--karte-2); border: 1px solid var(--achse); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px;
}
.wz-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 10px; font-size: 12.5px;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 9px; color: var(--tinte-2); cursor: pointer; box-shadow: var(--schatten);
}
.wz-chip:hover { border-color: var(--teal); color: var(--teal-dunkel); }
.kuerzel-schalter { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--tinte-2); }
.kuerzel-schalter input { margin-top: 3px; }
.kuerzel-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kuerzel-tabelle td { padding: 7px 4px; border-bottom: 1px solid var(--linie); text-align: left; white-space: normal; vertical-align: top; }
.kuerzel-tabelle td:first-child { white-space: nowrap; width: 1%; color: var(--tinte-2); }
.kuerzel-tabelle th { text-align: left; background: transparent; position: static; font-size: 11.5px; color: var(--tinte-3); font-weight: 600; padding: 2px 4px 6px; }
.chart {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  margin-bottom: 10px; padding: 8px 10px 6px; box-shadow: var(--schatten); position: relative;
}
.chart-kopf { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 0 2px 4px; }
.chart-titel { font-size: 13px; font-weight: 650; color: var(--tinte); }
.chart-titel small { font-weight: 400; color: var(--tinte-3); }
/* Knopf am Chart-Kopf, mit dem sich die verschiebbare Linie per Zahl setzen lässt — der
   Tastaturweg zu einer Bedienung, die es sonst nur mit dem Zeiger gab. */
.marke-knopf { font-size: 11px; padding: 2px 8px; margin-right: auto; }
.chart-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--tinte-2); }   /* umbrechen statt über den Rand (320 px) */
.chart-legende .chip { display: inline-flex; align-items: center; gap: 5px; }
.chip i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.chip.punkt i { width: 8px; height: 8px; border-radius: 50%; }
.lesewert { font-size: 12px; color: var(--tinte-2); font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }
.chart canvas { width: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
#charts[data-modus="scroll"][data-gezoomt="1"] canvas { cursor: grab; }       /* bei voller Sicht markiert Ziehen → Fadenkreuz bleibt */
#charts[data-modus="scroll"][data-gezoomt="1"] canvas:active { cursor: grabbing; }
.chart-leiste.ohne-charts .chart-werkzeuge, .chart-leiste.ohne-charts .zoom-hilfe, .chart-leiste.ohne-charts .wz-chip { display: none; }

/* Trends */
.werkzeugleiste { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.werkzeugleiste label { display: flex; gap: 8px; align-items: center; color: var(--tinte-2); font-size: 13px; }
.trend-chart { position: relative; }
.tooltip {
  position: fixed; z-index: 20; pointer-events: none; background: var(--karte); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: 8px; padding: 6px 9px; font-size: 12px;
  box-shadow: var(--schatten); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tooltip b { display: block; margin-bottom: 2px; }
.tooltip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.tabellen-rahmen { overflow-x: auto; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.tabellen-rahmen.flach { border: 0; box-shadow: none; border-radius: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; text-align: right; }
.tabellen-rahmen th, .tabellen-rahmen td { white-space: nowrap; }   /* nur Datentabellen (Trends, Berichtsliste) — der Rahmen scrollt waagerecht; Karten-/Berichtstexte dürfen umbrechen */
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--karte-2); color: var(--tinte-2); font-weight: 600; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: var(--karte-2); }
tbody tr.klickbar { cursor: pointer; }
tbody tr.klickbar:hover { background: var(--teal-hell); }
td { font-variant-numeric: tabular-nums; }

/* Dropdown (Berichte + Chart-Menü) */
.dropdown { position: relative; }
.dropdown-menue {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--karte); border: 1px solid var(--linie);
  border-radius: 10px; box-shadow: var(--schatten); display: flex; flex-direction: column; min-width: 240px; z-index: 6; overflow: hidden;
}
.dropdown-menue button { background: transparent; border: 0; text-align: left; padding: 10px 14px; cursor: pointer; color: var(--tinte); }
.dropdown-menue button:hover { background: var(--teal-hell); color: var(--teal-dunkel); }
.dropdown-menue button:focus-visible { outline-offset: -3px; background: var(--teal-hell); color: var(--teal-dunkel); }   /* Ring innen — overflow:hidden würde ihn sonst abschneiden */
#berichte-tabelle th, #berichte-tabelle td { text-align: left; }
#berichte-tabelle a, #berichte-tabelle button.link { color: var(--teal-dunkel); background: transparent; border: 0; cursor: pointer; padding: 0; font: inherit; }
button.link:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
.formular { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 14px; }
.formular-links p { color: var(--tinte-2); font-size: 13.5px; }
.formular-rechts { display: flex; flex-direction: column; gap: 12px; }
.formular-rechts label { display: flex; flex-direction: column; gap: 5px; color: var(--tinte-2); font-size: 13px; }
.formular-rechts select, .formular-rechts input, .formular-rechts textarea { width: 100%; }
.formular-rechts textarea { resize: vertical; }
.datumsbereich { display: flex; gap: 12px; flex-wrap: wrap; }              /* Felder dürfen umbrechen (Von/Bis, Uhren-Abgleich) */
fieldset.datumsbereich { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.datumsbereich legend { flex: 1 1 100%; padding: 0; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--tinte-2); }
.datumsbereich label { flex: 1 1 100px; min-width: 0; }
.datumsbereich input { min-width: 0; width: 100%; }
.formular-knoepfe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }   /* umbrechen statt aus der Karte laufen — seit „Vollständig zurücksetzen" stehen dort drei Knöpfe */
.bericht-werkzeuge { display: flex; justify-content: space-between; margin: 0 0 12px; }
/* Der Bericht ist bewusst immer hell (Papier/PDF). Die Tokens werden hier fest verdrahtet, damit
   im Dark Mode und im Druck aus dem Dark Mode weder Überschriften noch Zebra-Zeilen die dunklen Werte erben. */
.bericht {
  --tinte: #1F2A37; --tinte-2: #5B6875; --tinte-3: #667380; --karte: #fff; --karte-2: #F7F9FB;
  --linie: #E4E8EE; --gitter: #EDF0F4; --achse: #B7C0CB;
  background: #fff; color: #1F2A37; border-radius: 12px; box-shadow: var(--schatten);
  padding: 34px 40px; max-width: 900px; margin: 0 auto; overflow-x: auto;   /* breite Tabellen scrollen im Bericht statt die Seite zu sprengen */
}
.bericht .b-kopf { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #E4E8EE; padding-bottom: 10px; margin-bottom: 20px; }
.bericht .b-marke { font-weight: 800; font-size: 18px; color: #1A365D; }
.bericht .b-marke span { color: #2E9795; }
.bericht .b-zeitraum { font-weight: 700; color: #1F2A37; }
.bericht h1 { font-size: 34px; margin: 18px 0 2px; color: #1F2A37; }
.bericht .b-untertitel { text-transform: uppercase; letter-spacing: .06em; color: #667380; font-size: 12px; font-weight: 700; margin-bottom: 14px; }   /* 4,85:1 auf Weiß (#8A96A3 war 3,0:1) */
.bericht h2 { font-size: 22px; margin: 22px 0 6px; color: #1F2A37; }
.bericht h3 { font-size: 16px; margin: 14px 0 6px; color: #1F2A37; }
.bericht p, .bericht li { font-size: 13.5px; line-height: 1.55; }
.bericht ul { padding-left: 20px; }
.bericht .b-disclaimer { font-style: italic; color: #5B6875; font-size: 12px; margin-top: 12px; }
.bericht table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 18px; }
.bericht th { background: #F3F5F7; color: #1F2A37; text-align: left; padding: 8px 10px; white-space: normal; }
.bericht td { padding: 7px 10px; border-top: 1px solid #E4E8EE; text-align: left; white-space: normal; }
.bericht tbody tr:nth-child(even) { background: #F7F9FB; }
.bericht tr.gruppe td { background: #F3F5F7; font-weight: 600; text-align: center; color: #5B6875; }
.bericht td.aend { text-align: right; font-weight: 600; width: 124px; white-space: nowrap; }
.bericht td.aend.neutral { background: #F3F5F7; color: #5B6875; }
.bericht .b-fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: #667380; font-size: 11px; border-top: 1px solid #E4E8EE; margin-top: 26px; padding-top: 8px; }   /* 4,85:1 auf Weiß */
.bericht .b-seite { page-break-before: always; }
.bericht .b-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.bericht .b-kachel { border: 1px solid #E4E8EE; border-radius: 10px; padding: 10px 12px; }
.bericht .b-kachel .l { color: #5B6875; font-size: 12px; }
.bericht .b-kachel .w { font-size: 20px; font-weight: 700; white-space: nowrap; }

/* Geräte */
.geraete-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.geraet-karte { text-align: center; padding: 22px 16px 0; }
.geraet-ikon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--tile-sky); color: var(--tile-sky-tinte); font-size: 30px; }
.geraet-karte .g-name { font-weight: 650; }
.geraet-karte .g-sn { color: var(--tinte-3); font-size: 12.5px; }
.geraet-karte .g-zuletzt { margin: 12px 0 14px; font-size: 13px; color: var(--tinte-2); }
.pille { display: inline-block; background: var(--gut-bg); color: var(--gut); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600; }
.pille.grau { background: var(--gitter); color: var(--tinte-2); }   /* ≥ 4,9:1 auf --gitter (tinte-3: 4,24:1) */
.pille.fremd { background: rgba(180, 83, 9, .12); color: var(--achtung); margin-left: 8px; }   /* fremde Nacht aus einem Nachtpaket */
.geraet-karte .g-fuss { display: flex; border-top: 1px solid var(--linie); margin: 0 -16px; }
.geraet-karte .g-fuss button { flex: 1; background: transparent; border: 0; padding: 11px; color: var(--tinte-2); cursor: pointer; }
.geraet-karte .g-fuss button + button { border-left: 1px solid var(--linie); }
.geraet-karte .g-fuss button:hover { color: var(--teal-dunkel); }
.import-schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.import-schritt { border: 1px solid var(--linie); border-radius: 10px; padding: 12px; font-size: 13px; }
.import-schritt b { display: block; margin-bottom: 4px; }
.import-schritt code { background: var(--karte-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,32,.55); display: grid; place-items: center; z-index: 50; padding: 12px; }
.modal-box { background: var(--karte); border-radius: 14px; max-width: min(460px, calc(100vw - 24px)); width: 100%; max-height: 85vh; overflow: auto; padding: 18px 20px; box-shadow: var(--schatten); }
.modal-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* Responsiv */
@media (max-width: 900px) {
  /* Geschlossener Drawer: zusätzlich visibility:hidden → raus aus Tab-Reihenfolge und AX-Baum (auch ohne inert);
     beim Öffnen sofort sichtbar, beim Schließen erst nach dem Hinausschieben (.2 s) versteckt. */
  .seitenleiste { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility 0s linear .2s; }
  .seitenleiste.offen { transform: none; visibility: visible; transition: transform .2s, visibility 0s; }
  .nur-mobil { display: inline-block; }
  .nacht-nav { flex: 1 1 auto; min-width: 0; }
  .nacht-nav select { flex: 1 1 auto; min-width: 0; max-width: none; }   /* nutzt die volle Restbreite statt 46vw → Options-Text wird nicht gekappt */
  #nav-erste, #nav-letzte, #nacht-datum { display: none; }
  .geraet-wahl { display: none; }
  main { padding: 14px 12px 30px; }
  .formular { grid-template-columns: 1fr; }
  .bericht { padding: 20px 16px; }
  .lesewert { display: none; }
  .zoom-hilfe { display: none; }         /* Tastatur-Hinweise auf dem Handy überflüssig */
  .chart-werkzeuge > button, .chart-werkzeuge .dropdown > button { width: 40px; height: 38px; }   /* Tippziele */
}
@media (max-width: 600px) {
  .bericht table { font-size: 12px; }                            /* Vergleichstabelle (4 Spalten) passt auf Handybreite */
  .bericht th, .bericht td { padding: 6px 5px; hyphens: auto; }
  .bericht td.aend { width: auto; min-width: 0; }
  .bericht td.aend small { display: block; }                     /* „je Nacht“ eigene Zeile: Messgrößenspalte behält Platz, Prozentzahl bleibt am Stück */
}
@media (max-width: 400px) {
  .kuerzel-tabelle td:first-child { white-space: normal; }   /* Kürzel-Dialog bei 320 px: Tastenspalte darf umbrechen */
  .stat-tabelle { font-size: 12px; }                          /* Statistik-Karte bei 320 px: passt ohne Seiten-Scroll */
  .stat-tabelle td:first-child { white-space: normal; }
}

/* Bewegungsreduktion: Spinner steht, Drawer/Übergänge ohne Animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .lade-hinweis::before { animation: none; border-top-color: var(--teal); }
}

/* Druck: nur der Bericht */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; }
  .seitenleiste, .kopfzeile, .fuss, .bericht-werkzeuge, #berichte-liste-box, #bericht-formular, .meldung, .skip-link { display: none !important; }
  main { padding: 0; max-width: none; }
  .bericht { box-shadow: none; border-radius: 0; padding: 0; max-width: none; overflow: visible; }
  .bericht td.aend.neutral, .bericht td.aend.rauf, .bericht td.aend.runter, .bericht th, .bericht tr.gruppe td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Der erste Block: die Nacht (Weg A: Zahlen, Richtung, Verlauf — keine Wertung) ---------- */
.blick-karte { margin-bottom: 16px; padding: 20px 22px 18px; }
.blick-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.blick-tag { display: block; font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.blick-titel strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.18; letter-spacing: .004em; margin-top: 2px; }
.blick-kopf small { color: var(--tinte-3); font-size: 12.5px; max-width: 46ch; text-align: right; line-height: 1.45; }

/* Nachtband: die ganze Nacht als ein Streifen */
.nachtband { margin: 0 0 20px; }
.nachtband canvas { width: 100%; display: block; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(10,15,26,.55); }
.nb-satz { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--tinte); }
.nb-leer { border: 1px dashed var(--linie-stark); border-radius: 14px; padding: 22px 18px; text-align: center; color: var(--tinte-2); font-size: 13.5px; }
.nb-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.nb-spanne { font-size: 12.5px; font-weight: 500; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.nb-legende { display: flex; gap: 14px; flex-wrap: wrap; }
.nb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tinte-3); }
.nb-punkt { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.nb-punkt.geraet { background: #3FB8B5; }
.nb-punkt.tief { background: #1A365D; }
/* Farbschlüssel der Schlafphasen — dieselben Töne wie im Band (das immer dunklen Grund hat). */
.nb-stufen { display: inline-flex; gap: 2px; }
.nb-stufe { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.nb-stufe.wach { background: #8D9AAC; }
.nb-stufe.rem { background: #5CC8E0; }
.nb-stufe.leicht { background: #4B87DC; }
.nb-stufe.tief { background: #6C63E8; }
.nb-punkt.ereignis { background: #2a78d6; }
.nb-punkt.desat { background: #B45309; }
:root[data-theme="dark"] .nb-punkt.tief { background: #C7DBF7; }

/* Die vier Größen: große Zahl, Richtung, Fläche */
/* Erklärung der Sparklines — steht bei den Kacheln, nicht über dem Nachtband. */
.blick-legende { color: var(--tinte-3); font-size: 12.5px; line-height: 1.45; margin: 12px 0 10px; max-width: 70ch; }
.blick-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 4px 0; }
.blick-groesse { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 2px 20px 2px 0; position: relative; }
.blick-groesse + .blick-groesse { padding-left: 20px; }
.blick-groesse + .blick-groesse::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 10px; width: 1px; background: var(--linie); }
.blick-label { font-size: 13px; color: var(--tinte-2); font-weight: 500; display: flex; align-items: center; }
.blick-wert { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.06; color: var(--tinte); margin-top: 3px; }
.blick-wert small { font-size: 14px; font-weight: 500; color: var(--tinte-2); letter-spacing: 0; margin-left: 2px; }
.blick-ka { font-size: 20px; font-weight: 500; color: var(--tinte-3); letter-spacing: 0; }
.blick-zusatz { font-size: 12.5px; color: var(--tinte-2); margin-top: 3px; }
/* Herkunft der Zahl: laut Gerät oder von Atemleitstand gerechnet. Leise, aber immer da. */
.blick-herkunft { font-size: 11.5px; line-height: 1.35; color: var(--tinte-3); margin-top: 6px; }
.blick-delta .t-delta { color: var(--tinte-2); font-size: 12.5px; }
.blick-verlauf { width: 100%; max-width: 152px; height: 46px; margin-top: 10px; overflow: visible; }
.blick-verlauf.leer { display: block; height: 46px; margin-top: 10px; }
.blick-verlauf .v-balken { fill: var(--tinte); opacity: .20; }
.blick-verlauf .v-balken.jetzt { fill: var(--teal); opacity: 1; }
.blick-verlauf .v-band { fill: var(--tinte); opacity: .07; }
.blick-spanne { font-size: 11.5px; color: var(--tinte-3); margin-top: 3px; }
.t-bezug { color: var(--tinte-3); }
@media (max-width: 900px) {
  .blick-karte { padding: 16px 16px 14px; }
  .blick-kopf small { text-align: left; max-width: none; }
  .blick-titel strong { font-size: 22px; }
  .blick-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .blick-wert { font-size: 32px; }
  .blick-groesse:nth-child(odd) { padding-right: 14px; }
  .blick-groesse:nth-child(even) { padding-left: 16px; }
  .blick-groesse:nth-child(odd)::before { display: none; }
  .blick-groesse:nth-child(even)::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 10px; width: 1px; background: var(--linie); }
  .blick-verlauf { max-width: 130px; height: 40px; }
  .blick-wert { font-size: 34px; }
  .nb-satz { font-size: 14px; }
}

/* ---------- Nachtblick: Import, Glossar, Einstellungen ---------- */
.import-schritte-kopf { display: flex; list-style: none; padding: 0; border-bottom: 1px solid var(--linie); margin: -16px -18px 14px; }   /* <ol>: Schritte als Liste (Screenreader: „1 von 3") */
.import-schritt-kopf { flex: 1; padding: 12px 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-3); border-bottom: 3px solid transparent; }
.import-schritt-kopf span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--linie); margin-right: 8px; font-size: 11px; }
.import-schritt-kopf.aktiv { color: var(--teal-dunkel); border-bottom-color: var(--teal); }
.import-schritt-kopf.aktiv span { background: var(--knopf); color: var(--knopf-text); border-color: var(--knopf); }   /* ≥ 6:1 (Weiß auf --teal war 3,5:1 / dunkel 2,4:1) */
.import-raster { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.dropzone { border: 2px dashed var(--linie); border-radius: 12px; padding: 30px 18px; text-align: center; background: var(--karte-2); transition: border-color .15s, background .15s; }
.dropzone.aktiv { border-color: var(--teal); background: var(--teal-hell); }
.dropzone.gesperrt { opacity: .6; pointer-events: none; }   /* während des Imports gesperrt (import.js) */
.dropzone-ikon { font-size: 34px; color: var(--teal); margin-bottom: 6px; }
.link-label { color: var(--teal-dunkel); cursor: pointer; text-decoration: underline; border-radius: 4px; }
.link-label:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }   /* Datei-Inputs sind .sr-only (fokussierbar), der Ring erscheint am Link-Text */
.pruefliste { list-style: none; padding: 0; margin: 6px 0; }
.pruefliste li { padding: 4px 0; color: var(--tinte-2); }
.pruefliste li.ok { color: var(--tinte); }
button.link { background: transparent; border: 0; color: var(--teal-dunkel); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.import-aktionen { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.import-lauf { margin-top: 16px; }
.import-lauf progress { width: 100%; height: 10px; accent-color: var(--teal); }
.import-log { font-size: 12.5px; color: var(--tinte-2); max-height: 160px; overflow: auto; padding-left: 18px; }
.glossar-eintrag { border-bottom: 1px solid var(--linie); padding: 8px 0; }
.glossar-eintrag summary { cursor: pointer; font-weight: 600; }
.glossar-eintrag p { color: var(--tinte-2); margin: 6px 0 4px; }
/* Glossar-Knopf ⓘ: Trefffläche 24×24 px (WCAG 2.5.8), Ring 18 px als Pseudo-Element, Farbe = umgebender Text
   (Kachel-Tinte ≥ 6:1, Tabellenkopf ≥ 4,8:1). Negative Ränder halten Zeilenhöhe/Tabellenbreite wie beim 16-px-Knopf. */
.info-knopf { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -3px 0 -3px 2px; vertical-align: middle; position: relative;
  border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; padding: 0; }
.info-knopf::before { content: ''; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; }
.info-knopf:hover { color: var(--teal-dunkel); }
.stat-tabelle th .info-knopf { margin-left: 0; margin-right: -6px; }   /* hängt in den Zellrand, damit die 99,5-%-Spalte nicht breiter wird */
.einstellungen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.einstellungen-raster label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--tinte-2); margin-top: 8px; }
/* Uhren-Abgleich: drei Zahlenfelder nebeneinander, umbrechend; mobil untereinander (s. Media-Query unten) */
.versatz-felder { display: flex; gap: 12px; flex-wrap: wrap; }
.versatz-felder label { flex: 1 1 100px; min-width: 0; }
.versatz-felder input { min-width: 0; width: 100%; font: inherit; color: var(--tinte); background: var(--karte); border: 1px solid var(--linie); border-radius: 9px; padding: 7px 10px; }
.fuss a { color: var(--teal-dunkel); }
/* Weg A: Änderungen im Bericht neutral (Richtung, keine Wertung) */
.bericht td.aend.rauf { background: #E4ECFB; color: #1E3A8A; }
.bericht td.aend.runter { background: #DDF1F0; color: #0F4F4E; }
@media (max-width: 900px) {
  .import-raster { grid-template-columns: 1fr; }
  .versatz-felder label { flex-basis: 100%; }   /* Uhren-Abgleich: CPAP / O2 Ring / Watch untereinander */
}

/* ===================== Produkt 1.0: Morgen-Check, Gerätewahl, Pro, Berichte ===================== */
/* Kopfzeile: Morgen-Check-Knopf (immer erreichbar) + Pro-Hinweis */
.morgen-knopf {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  background: var(--teal-hell); color: var(--teal-dunkel); border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.morgen-knopf:hover { border-color: var(--teal); }
.morgen-knopf + .geraet-wahl { margin-left: 0; }
.pro-chip {
  background: var(--tile-sand); color: var(--tile-sand-tinte); border: 0; border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;   /* lieber gekürzt als die Seite sprengen */
}
.pro-chip:hover { filter: brightness(.96); }
.pro-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--tile-sand); color: var(--tile-sand-tinte); letter-spacing: .02em; vertical-align: middle;
}
@media (max-width: 600px) { .morgen-knopf span { display: none; } .morgen-knopf { padding: 6px 10px; } }

/* Dashboard: Morgen-Check-Karte */
.morgen-karte { margin-bottom: 14px; padding: 14px 18px; }
.morgen-leer, .morgen-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.morgen-leer strong, .morgen-kopf strong { display: block; font-size: 14.5px; }
.morgen-leer small, .morgen-kopf small { color: var(--tinte-3); font-size: 12.5px; }
.morgen-werte { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; }
.morgen-wert small { display: block; color: var(--tinte-2); font-size: 12px; font-weight: 600; }
.morgen-wert b { font-size: 20px; font-weight: 750; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.morgen-wert b span { font-size: 12.5px; font-weight: 500; color: var(--tinte-2); }
.morgen-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.morgen-tags .tag { background: var(--karte-2); border: 1px solid var(--linie); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.morgen-notiz { margin: 10px 0 0; font-size: 13.5px; color: var(--tinte-2); white-space: pre-wrap; }
.ansicht.manuell .drei-spalten { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Morgen-Check-Formular (Modal) */
.morgen-formular { display: flex; flex-direction: column; gap: 12px; }
.morgen-formular fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.morgen-formular legend { font-size: 12.5px; font-weight: 600; color: var(--tinte-2); margin-bottom: 6px; padding: 0; }
.morgen-formular legend small { font-weight: 500; color: var(--tinte-3); }
.morgen-formular input[type="number"], .morgen-formular input[type="text"], .morgen-formular input[type="date"], .morgen-formular textarea {
  font: inherit; color: var(--tinte); background: var(--karte); border: 1px solid var(--linie); border-radius: 9px; padding: 7px 10px; width: 100%;
}
.morgen-formular textarea { resize: vertical; }
.morgen-formular input:focus, .morgen-formular textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.morgen-formular .m-datum { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tinte-2); }
.morgen-formular .m-datum input { width: auto; }
.m-geraet { border: 1px dashed var(--linie); border-radius: 10px; padding: 10px 12px; }
details.m-geraet summary { cursor: pointer; font-size: 13px; color: var(--tinte-2); }
.m-zahlen { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.m-zeit { display: flex; align-items: center; gap: 5px; }
.m-zeit input { min-width: 0; }
.m-zeit span { color: var(--tinte-3); font-size: 12.5px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips legend { width: 100%; }
.chip-wahl { position: relative; }
.chip-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip-wahl span {
  display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte-2);
  font-size: 13px; cursor: pointer; user-select: none; line-height: 1.3;
}
.chip-wahl input:checked + span { background: var(--teal-hell); border-color: var(--teal); color: var(--teal-dunkel); font-weight: 600; }
.chip-wahl input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }
.m-eigen { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; font-size: 12.5px; color: var(--tinte-2); }
.m-eigen input { flex: 1; }
.m-notiz { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--tinte-2); }
.m-fehler { color: var(--achtung); }
@media (max-width: 600px) { .m-zahlen { grid-template-columns: 1fr; } }

/* Import: Gerätewahl */
.geraete-wahl { margin: 4px 0 16px; }
.geraete-wahl > p { margin: 0 0 8px; }
.geraete-wahl-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.geraet-karte {
  text-align: left; background: var(--karte-2); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--tinte);
  display: flex; flex-direction: column; gap: 3px;
}
.geraet-karte strong { font-size: 13.5px; }
.geraet-karte small { color: var(--tinte-3); font-size: 12px; line-height: 1.35; }
.geraet-karte:hover { border-color: var(--teal); }
.geraet-karte.aktiv { border-color: var(--teal); background: var(--teal-hell); }
.geraet-karte.aktiv small { color: var(--teal-dunkel); }
.geraet-karte:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.geraete-wahl-hinweis { margin-top: 10px; background: var(--tile-sky); color: var(--tile-sky-tinte); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.geraete-wahl-hinweis p { margin: 0 0 8px; }
.geraete-wahl-hinweis .formular-knoepfe { margin-top: 4px; }

/* Einstellungen: Pro-Karte */
.lizenz-karte { border: 1px solid var(--teal); }
.lizenz-karte textarea { font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tinte); background: var(--karte-2); border: 1px solid var(--linie); border-radius: 9px; padding: 8px 10px; width: 100%; resize: vertical; word-break: break-all; }
.lizenz-karte label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--tinte-2); margin-top: 6px; }
.lizenz-karte a.klein-knopf { text-decoration: none; }
#fuss-version:empty { display: none; }

/* Berichte: Nutzungsnachweis-Kalender, Arztbericht */
.session-liste .session-kurz { color: var(--tinte-3); }
.session-marke { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--karte-2); border: 1px solid var(--linie); color: var(--tinte-2); }

.bericht .b-kalender { table-layout: fixed; margin: 6px 0 8px; }
.bericht .b-kalender th { text-align: center; font-size: 12px; padding: 6px 2px; }
.bericht .b-kalender td { padding: 5px 4px; height: 46px; vertical-align: top; border: 1px solid #E4E8EE; font-size: 11.5px; position: relative; }
.bericht .b-kalender td .d { display: block; color: #667380; white-space: nowrap; }
.bericht .b-kalender td .h { display: block; font-weight: 700; font-size: 13px; margin-top: 1px; white-space: nowrap; }
.bericht .b-kalender td .q { color: #667380; font-size: 11px; }                 /* ✎ hinter dem Datum, überdeckt nichts */
@media (max-width: 400px) { .bericht .b-kalender td { padding: 5px 2px; } .bericht .b-kalender td .q { font-size: 10px; } }   /* „17.08. ✎“ passt in die 43-px-Zelle */
/* Weg A: keine Ampel. Zwei Stufen einer Farbe (Teal kräftig / blass) plus Schriftgewicht, Nächte ohne Aufzeichnung grau.
   Graustufen 224 / 234 / 251: auch auf dem Schwarzweiß-Drucker der Praxis auseinanderzuhalten. */
.bericht .b-kalender td.ab { background: #CFE8E6; }
.bericht .b-kalender td.ab .h { color: #0F4F4E; }
.bericht .b-kalender td.unter { background: #DFEFED; }
.bericht .b-kalender td.unter .h { font-weight: 500; color: #1F2A37; }
.bericht .b-kalender td.ohne { background: #FAFBFC; }
.bericht .b-kalender td.ohne .h { font-weight: 400; color: #8A96A3; }
.bericht .b-kalender td.leer { background: #fff; border-color: transparent; }
.bericht .b-legende { font-size: 12px; color: #5B6875; }
/* Legendenfelder = Zellfarben */
.bericht .b-legende .sw { display: inline-block; width: 12px; height: 12px; border: 1px solid #C9D3DC; border-radius: 2px; vertical-align: -2px; margin-right: 5px; }
.bericht .b-legende .ab { background: #CFE8E6; } .bericht .b-legende .unter { background: #DFEFED; } .bericht .b-legende .ohne { background: #FAFBFC; }
.bericht .b-kalender tr.b-lauf th { display: none; }   /* Laufkopf nur im Druck (wiederholt sich mit dem thead auf jeder Seite) */
.bericht .b-klein { font-size: 11.5px; color: #5B6875; line-height: 1.5; }
.bericht .b-unterschrift { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 6px; font-size: 12.5px; color: #1F2A37; }
.bericht .b-fragen { border: 1px solid #E4E8EE; border-radius: 10px; padding: 10px 12px; min-height: 54px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bericht .b-arzt .b-unterschrift { margin: 4px 0 2px; }                 /* Patient/in + Geburtsdatum direkt unter dem Untertitel */
.bericht .b-einstellungen { font-size: 12.5px; color: #1F2A37; line-height: 1.5; }   /* Geräteeinstellungen in einer Zeile, „Druck min 6,6 cmH₂O · EPR Vollzeit …“ */
@media (max-width: 420px) { .bericht h1 { font-size: 26px; overflow-wrap: anywhere; } .bericht h2 { font-size: 19px; } }
.bericht .b-linien { background: repeating-linear-gradient(to bottom, transparent 0 23px, #E4E8EE 23px 24px); }
@media print {
  .modal, .modal-hintergrund, #modal { display: none !important; }          /* Pro-Modal gehört nie aufs Papier */
  .bericht .b-kalender td.ab, .bericht .b-kalender td.unter, .bericht .b-kalender td.ohne { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bericht .b-kalender td { height: 32px; padding: 3px 4px; }
  .bericht thead { display: table-header-group; }
  .bericht tr { break-inside: avoid; page-break-inside: avoid; }
  .bericht tr.gruppe { break-after: avoid; page-break-after: avoid; }
  .bericht h1, .bericht h2, .bericht h3, .bericht .b-untertitel { break-after: avoid; page-break-after: avoid; }
  :root, :root[data-theme="dark"], :root[data-theme="light"] { color-scheme: light; background: #fff; }   /* Druck aus dem dunklen Theme bleibt weiß */
  .bericht .b-kachel { break-inside: avoid; page-break-inside: avoid; }
  .bericht .b-kacheln { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }   /* bis sechs Kacheln in einer Zeile */
  .bericht .b-kachel { padding: 6px 8px; }
  .bericht .b-kachel .w { font-size: 15px; }
  .bericht .b-kachel .l { font-size: 12px; }                     /* nichts unter 9 pt auf Papier */
  .bericht .b-kachel .l small, .bericht td.aend small, .bericht .b-klein, .bericht .b-kalender td .q { font-size: 12px; }
  .bericht .b-fuss { font-size: 12px; }
  /* Arztbericht und Nutzungsnachweis: eine Seite A4 */
  .bericht .b-arzt h1 { font-size: 26px; margin: 10px 0 0; }
  .bericht .b-arzt h2 { font-size: 16px; margin: 11px 0 4px; }
  .bericht .b-arzt h2 small { font-size: 12px; font-weight: 500; color: #5B6875; }
  .bericht .b-arzt .b-untertitel { margin-bottom: 6px; }
  .bericht .b-arzt .b-kopf { margin-bottom: 8px; padding-bottom: 6px; }
  .bericht .b-arzt .b-kacheln { gap: 6px; margin: 4px 0 6px; }
  .bericht .b-arzt .b-kachel { padding: 5px 9px; }
  .bericht .b-arzt .b-kachel .w { font-size: 16px; }
  .bericht .b-arzt .b-kachel .l { font-size: 12px; line-height: 1.3; }
  .bericht .b-arzt p, .bericht .b-arzt .b-klein { font-size: 13px; line-height: 1.4; margin: 4px 0; }
  .bericht .b-arzt .b-fragen { min-height: 40px; padding: 6px 9px; }
  .bericht .b-arzt .b-disclaimer { font-size: 12px; margin-top: 6px; }
  .bericht .b-arzt .b-unterschrift { margin: 2px 0; font-size: 12px; }
  .bericht .b-arzt .b-einstellungen { font-size: 12px; line-height: 1.4; margin: 2px 0 4px; }
  .bericht .b-arzt .b-fuss { margin-top: 10px; font-size: 12px; }
  .bericht .b-nachweis h1 { font-size: 24px; margin: 6px 0 0; }
  .bericht .b-nachweis .b-kalender th { padding: 3px 2px; font-size: 12px; }
  .bericht .b-nachweis .b-kalender tr.b-lauf th { display: table-cell; text-align: left; font-weight: 500; color: #5B6875; font-size: 12px; padding: 2px 4px; background: transparent; }
  .bericht .b-nachweis .b-untertitel { margin-bottom: 6px; }
  .bericht .b-nachweis .b-kopf { margin-bottom: 8px; padding-bottom: 6px; }
  .bericht .b-nachweis .b-kacheln { gap: 6px; margin: 4px 0 6px; }
  .bericht .b-nachweis .b-kachel { padding: 5px 9px; }
  .bericht .b-nachweis .b-kachel .w { font-size: 16px; }
  .bericht .b-nachweis .b-kachel .l { font-size: 12px; }
  .bericht .b-nachweis .b-kalender { margin: 4px 0 6px; }
  .bericht .b-nachweis .b-kalender td { height: 22px; font-size: 12px; padding: 1px 4px; line-height: 1.25; }
  .bericht .b-nachweis .b-kalender td .h { font-size: 12px; margin-top: 0; }
  .bericht .b-nachweis .b-klein, .bericht .b-nachweis .b-legende { font-size: 12px; line-height: 1.4; margin: 4px 0; }
  .bericht .b-nachweis .b-unterschrift { margin: 8px 0 2px; font-size: 12px; }
  .bericht .b-nachweis .b-disclaimer { font-size: 12px; margin-top: 4px; }
  .bericht .b-nachweis .b-fuss { margin-top: 6px; font-size: 12px; }
}
.bericht h2 small { font-size: 13px; font-weight: 500; color: #5B6875; }
.bericht td.aend small { font-weight: 400; color: #5B6875; font-size: 10px; margin-left: 2px; }
/* Mobil: Kopfzeile gehört der Nacht-Navigation — Pro-Hinweis steht in den Einstellungen */
@media (max-width: 700px) { .pro-chip { display: none; } }

/* Schematische Atemkurven im Glossar (kurven-bilder.js) */
.kurvenbild { display: block; width: 100%; height: auto; overflow: visible; margin: 8px 0 4px; }
.glossar-bild {
  margin: 8px 0 4px; padding: 8px 10px 6px;
  background: var(--karte-2); border: 1px solid var(--linie); border-radius: 10px;
}
.glossar-bild figcaption { font-size: 12px; color: var(--tinte-3); margin-top: 2px; }
@media print { .kurvenbild { break-inside: avoid; } }

/* ---- Nachtpaket: Auswahlliste der Nächte im Karten-Ordner ---- */
.paket-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; max-height: 320px; overflow-y: auto; margin: 10px 0; padding: 2px; }
.paket-nacht { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--karte); cursor: pointer; font-size: 14px; }
.paket-nacht:hover { border-color: var(--teal); }
.paket-nacht:has(input:checked) { border-color: var(--teal); background: var(--teal-flaeche, var(--karte)); }
.paket-nacht:has(input:disabled) { opacity: .45; cursor: default; }
.paket-datum { flex: 1; }
.paket-info { color: var(--tinte-3); font-size: 12.5px; white-space: nowrap; }
.paket-vorschau { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--linie); border-radius: 6px; padding: 10px; background: var(--karte); color: var(--tinte); resize: vertical; }

/* ---------- Illustrationen (src/ui/illustration.js) ----------
   Sie stehen ausschliesslich dort, wo noch keine Daten sind: ueber dem Import-Assistenten und im
   leeren Dashboard. Auf einer Seite mit echten Messkurven hat Zierrat nichts zu suchen. */
.import-karte { overflow: hidden; }
.import-banner { margin: -18px -18px 18px; line-height: 0; }
.import-banner .illu { display: block; width: 100%; height: 132px; }
@media (max-width: 700px) { .import-banner .illu { height: 96px; } }
@media (prefers-reduced-motion: no-preference) {
  .import-banner .illu { animation: illu-auf .5s ease-out both; }
}
@keyframes illu-auf { from { opacity: 0; } to { opacity: 1; } }

/* Leeres Dashboard: Bild und Text nebeneinander, unter 640 px untereinander. */
.leer-karte .leer-bild { flex: 0 0 300px; }
.leer-karte .leer-bild .illu { display: block; width: 100%; height: auto; }
.leer-karte .leer-text { flex: 1 1 260px; min-width: 0; }
#dashboard-leer { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; text-align: left; }
#dashboard-leer .formular-knoepfe { justify-content: flex-start; margin-top: 12px; }
@media (max-width: 640px) { #dashboard-leer { text-align: center; } #dashboard-leer .formular-knoepfe { justify-content: center; } }

/* ---------- Icon-Satz (src/ui/ikonen.js) ----------
   Linien-SVGs statt Text-Glyphen: gleiche Strichstaerke ueberall, Farbe aus currentColor —
   damit sitzen sie in hell und dunkel richtig, ohne eigene Farbregeln je Icon. */
.nav-eintrag .ikon { display: grid; place-items: center; }
.nav-eintrag .ikon svg { width: 18px; height: 18px; }
.karten-ikon svg { width: 20px; height: 20px; }
.geraet-ikon svg { width: 30px; height: 30px; }
.dropzone-ikon svg { width: 38px; height: 38px; }
.klein-knopf .ikon { display: inline-grid; place-items: center; vertical-align: -3px; }
.klein-knopf svg { width: 14px; height: 14px; vertical-align: -2.5px; }
.zeilen-ikon { display: inline-grid; place-items: center; vertical-align: -3px; margin-right: 2px; }
.zeilen-ikon svg { width: 15px; height: 15px; }

/* ---------- Hintergrund der Seitenleiste ----------
   Dieselbe ruhige Atemreihe wie im Import-Banner, als leiser Grund unten in der Leiste. Feste
   Farben statt Variablen: die Leiste ist in beiden Themes dunkel, und eine data-URI kann ohnehin
   keine CSS-Variablen lesen. Bewusst schwach (Deckung im Bild), damit sie Traeger bleibt und
   nicht Inhalt — und hinter dem Fuss-Knopf liegt sie unter z-index 1. */
.seitenleiste { overflow: hidden; }   /* KEIN position hier: die Regel steht hinter dem Drawer aus @media (max-width: 900px) und waere gleich spezifisch — ein wiederholtes position:sticky wuerde dort das position:fixed ueberschreiben, die Leiste bliebe im Fluss und der Inhalt haette auf dem Handy nur noch ~139 px. Die Grundstellung sticky steht oben im Layout-Block. */
.seitenleiste::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  pointer-events: none; z-index: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 236 150"><g fill="none" stroke-linecap="round"><path d="M-8 118c14 0 14-26 28-26s14 26 28 26 14-26 28-26 14 26 28 26 14-26 28-26 14 26 28 26 14-26 28-26 14 26 28 26 14-26 28-26" stroke="%233FB8B5" stroke-opacity=".16" stroke-width="2"/><path d="M-8 132c14 0 14-20 28-20s14 20 28 20 14-20 28-20 14 20 28 20 14-20 28-20 14 20 28 20 14-20 28-20 14 20 28 20 14-20 28-20" stroke="%231E7370" stroke-opacity=".22" stroke-width="2"/><circle cx="36" cy="28" r="1.4" fill="%239AA3B0" fill-opacity=".28"/><circle cx="118" cy="14" r="1.1" fill="%239AA3B0" fill-opacity=".22"/><circle cx="182" cy="40" r="1.3" fill="%239AA3B0" fill-opacity=".26"/><circle cx="86" cy="52" r="1" fill="%239AA3B0" fill-opacity=".2"/></g></svg>') bottom/100% auto no-repeat;
}
.seitenleiste > * { position: relative; z-index: 1; }
.g-fuss button svg { width: 14px; height: 14px; vertical-align: -2.5px; margin-right: 3px; }
