/* AnamneseBox – gemeinsames Stylesheet (Webseite, Praxis, Formular, Tablet, Hersteller).
   Keine externen Schriften, keine Inline-Stile (CSP). Farben als Variablen, hell + dunkel. */

:root {
  --primaer: #0f6e78;
  --primaer-dunkel: #0b545c;
  --primaer-hell: #e3f1f2;
  --primaer-text: #ffffff;
  --akzent: #c9822b;
  --hg: #f6f7f6;
  --hg-flaeche: #ffffff;
  --hg-zweit: #eef1f0;
  --rand: #d7dddc;
  --rand-stark: #b5bfbe;
  --text: #1c2627;
  --text-leise: #5a6869;
  --gut: #2f7d4b;
  --gut-hell: #e4f2e8;
  --warn: #9a6200;
  --warn-hell: #fbf0dc;
  --fehler: #b3261e;
  --fehler-hell: #fbe7e5;
  --info-hell: #e8eef8;
  --schatten: 0 1px 2px rgba(20, 40, 40, .06), 0 4px 16px rgba(20, 40, 40, .06);
  --schatten-gross: 0 10px 40px rgba(15, 40, 45, .16);
  --radius: 10px;
  --radius-gross: 16px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primaer-dunkel: #5fc0c9;
    --primaer-hell: #133a3e;
    --hg: #111718;
    --hg-flaeche: #182122;
    --hg-zweit: #1f2a2b;
    --rand: #2e3b3c;
    --rand-stark: #46595a;
    --text: #e6eeee;
    --text-leise: #9db0b1;
    --gut: #6cc28a;
    --gut-hell: #173022;
    --warn: #e8b45a;
    --warn-hell: #33280f;
    --fehler: #f08a80;
    --fehler-hell: #3a1a17;
    --info-hell: #1a2433;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
    --schatten-gross: 0 10px 40px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--hg);
}
img, svg { max-width: 100%; }
a { color: var(--primaer); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--primaer-dunkel); } }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-size: .92em; }
.unsichtbar, .honig {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.leise { color: var(--text-leise); }
.klein { font-size: .875rem; }
.zentriert { text-align: center; }
.zeile { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.zeile.ende { justify-content: flex-end; }
.zeile.zwischen { justify-content: space-between; }
.spalte { display: flex; flex-direction: column; gap: .75rem; }
.wachsen { flex: 1 1 auto; }
.abstand-oben { margin-top: 1.25rem; }
.abstand-unten { margin-bottom: 1.25rem; }
.umbruch { white-space: pre-wrap; word-break: break-word; }

/* ---------- Knöpfe ---------- */
.knopf, button.knopf, a.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.1rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--rand-stark);
  background: var(--hg-flaeche); color: var(--text); cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.knopf:hover { border-color: var(--primaer); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled, .knopf[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.knopf.primaer { background: var(--primaer); border-color: var(--primaer); color: var(--primaer-text); }
.knopf.primaer:hover { background: var(--primaer-dunkel); border-color: var(--primaer-dunkel); }
@media (prefers-color-scheme: dark) {
  .knopf.primaer:hover { background: #12838e; border-color: #12838e; color: #fff; }
}
.knopf.gefahr { color: var(--fehler); border-color: color-mix(in srgb, var(--fehler) 45%, transparent); }
.knopf.gefahr:hover { background: var(--fehler-hell); border-color: var(--fehler); }
.knopf.still { border-color: transparent; background: transparent; }
.knopf.still:hover { background: var(--hg-zweit); }
.knopf.klein { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }
.knopf.gross { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.1rem; border-radius: 12px; }
.knopf.icon { min-width: 40px; padding: .3rem .5rem; }
.knopf .icon-svg { width: 18px; height: 18px; flex: none; }

/* ---------- Formulare (Verwaltung) ---------- */
label.feld, .feld { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
.feld > span.hinweis, .hinweis { font-weight: 400; font-size: .85rem; color: var(--text-leise); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="date"], input[type="url"], select, textarea {
  font: inherit; font-weight: 400; color: var(--text);
  width: 100%; min-height: 44px; padding: .55rem .75rem;
  background: var(--hg-flaeche); border: 1px solid var(--rand-stark); border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primaer); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primaer) 25%, transparent); }
input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--rand-stark); border-radius: 8px; background: var(--hg-flaeche); }
.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--primaer); flex: none; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
fieldset { border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { font-weight: 700; padding: 0 .4rem; }

/* ---------- Karten, Tabellen, Hinweise ---------- */
.karte { background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1.25rem; box-shadow: var(--schatten); }
.karte > h2:first-child, .karte > h3:first-child { margin-top: 0; }
.karte + .karte { margin-top: 1rem; }
.hinweisbox { border-radius: var(--radius); padding: .85rem 1rem; border: 1px solid var(--rand); background: var(--hg-zweit); }
.hinweisbox.gut { background: var(--gut-hell); border-color: color-mix(in srgb, var(--gut) 35%, transparent); }
.hinweisbox.warn { background: var(--warn-hell); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.hinweisbox.fehler { background: var(--fehler-hell); border-color: color-mix(in srgb, var(--fehler) 40%, transparent); color: var(--text); }
.hinweisbox.info { background: var(--info-hell); }
.hinweisbox ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); background: var(--hg-flaeche); }
table.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
.tabelle th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); background: var(--hg-zweit); font-weight: 700; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td { background: var(--primaer-hell); }
.tabelle td.aktionen { white-space: nowrap; text-align: right; }
.leer { padding: 2.5rem 1rem; text-align: center; color: var(--text-leise); }
.marke {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--hg-zweit); color: var(--text-leise); border: 1px solid var(--rand); white-space: nowrap;
}
.marke.offen { background: var(--info-hell); color: var(--text); }
.marke.patient_fertig, .marke.warn { background: var(--warn-hell); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.marke.abgeschlossen, .marke.gut { background: var(--gut-hell); color: var(--gut); border-color: color-mix(in srgb, var(--gut) 35%, transparent); }
.marke.abgeholt { background: var(--primaer-hell); color: var(--primaer-dunkel); }
.marke.storniert, .marke.fehler { background: var(--fehler-hell); color: var(--fehler); }
@media (prefers-color-scheme: light) { .marke.abgeholt { color: var(--primaer); } }

/* ---------- Dialog ---------- */
dialog.dialog {
  border: 0; border-radius: var(--radius-gross); padding: 0; width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px); background: var(--hg-flaeche); color: var(--text); box-shadow: var(--schatten-gross);
}
dialog.dialog.breit { width: min(960px, calc(100vw - 24px)); }
dialog.dialog::backdrop { background: rgba(10, 25, 28, .5); }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rand); }
.dialog-kopf h2 { margin: 0; font-size: 1.2rem; }
.dialog-inhalt { padding: 1.25rem; overflow: auto; max-height: calc(100vh - 190px); }
.dialog-fuss { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; padding: 1rem 1.25rem; border-top: 1px solid var(--rand); background: var(--hg-zweit); border-radius: 0 0 var(--radius-gross) var(--radius-gross); }

.meldungen { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.meldung { background: var(--text); color: var(--hg); padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--schatten-gross); font-weight: 500; animation: rein .2s ease-out; }
.meldung.fehler { background: var(--fehler); color: #fff; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.code-gross { font-family: var(--mono); font-size: clamp(1.8rem, 7vw, 3rem); letter-spacing: .18em; font-weight: 700; text-align: center; padding: .6rem; border: 2px dashed var(--rand-stark); border-radius: var(--radius); background: var(--hg-zweit); word-break: break-all; }
.schluessel { font-family: var(--mono); font-size: .85rem; word-break: break-all; padding: .8rem; background: var(--hg-zweit); border: 1px solid var(--rand); border-radius: 8px; user-select: all; }
.qr { display: flex; justify-content: center; }
.qr svg { width: 240px; height: 240px; background: #fff; padding: 6px; border-radius: 8px; }
.kennzahlen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kennzahl { background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1rem 1.2rem; }
.kennzahl b { display: block; font-size: 2rem; line-height: 1.1; color: var(--primaer); }
@media (prefers-color-scheme: dark) { .kennzahl b { color: var(--primaer-dunkel); } }
.kennzahl span { color: var(--text-leise); font-size: .9rem; }

/* =====================================================================
   Produktseite
   ===================================================================== */
.huelle { width: min(1160px, 100% - 32px); margin-inline: auto; }
.seitenkopf { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--hg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rand); }
.seitenkopf .huelle { display: flex; align-items: center; gap: 1.25rem; min-height: 66px; }
.marke-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.marke-logo img { width: 34px; height: 34px; }
.marke-logo .box { color: var(--primaer); }
@media (prefers-color-scheme: dark) { .marke-logo .box { color: var(--primaer-dunkel); } }
.hauptnav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; }
.hauptnav a:not(.knopf) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.hauptnav a:not(.knopf):hover { color: var(--primaer); }
@media (max-width: 900px) { .hauptnav a.nav-optional { display: none; } }

.held { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--primaer) 16%, transparent), transparent 70%),
  linear-gradient(180deg, var(--hg-flaeche), var(--hg)); border-bottom: 1px solid var(--rand); }
.held .huelle { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 900px) { .held .huelle { grid-template-columns: 1fr; } }
.held h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: .4em; }
.held h1 em { font-style: normal; color: var(--primaer); }
@media (prefers-color-scheme: dark) { .held h1 em { color: var(--primaer-dunkel); } }
.held .unterzeile { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-leise); max-width: 36em; }
.held .punkte { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.held .punkte li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.held .punkte li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--primaer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.geraet-bild { position: relative; justify-self: center; width: min(440px, 100%); }
.tablet-rahmen { background: #1b2526; border-radius: 28px; padding: 16px; box-shadow: var(--schatten-gross); }
.tablet-schirm { background: #fff; color: #1c2627; border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.tablet-schirm .ts-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #5a6869; }
.tablet-schirm .ts-balken { height: 6px; background: #e6ecec; border-radius: 3px; overflow: hidden; }
.tablet-schirm .ts-balken i { display: block; height: 100%; width: 62%; background: #0f6e78; border-radius: 3px; }
.tablet-schirm .ts-frage { font-weight: 700; font-size: 17px; }
.tablet-schirm .ts-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tablet-schirm .ts-wahl span { border: 2px solid #c9d3d2; border-radius: 10px; padding: 10px; text-align: center; font-weight: 600; }
.tablet-schirm .ts-wahl span.an { border-color: #0f6e78; background: #e3f1f2; color: #0b545c; }
.tablet-schirm .ts-zeile { height: 10px; border-radius: 5px; background: #eef1f0; }
.tablet-schirm .ts-zeile.kurz { width: 60%; }
.tablet-schirm .ts-unterschrift { height: 64px; border: 1.5px dashed #b5bfbe; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tablet-schirm .ts-unterschrift svg { width: 70%; height: 46px; }
.tablet-schirm .ts-knopf { justify-self: end; background: #0f6e78; color: #fff; padding: 8px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.geraet-bild .ts-karte { position: absolute; left: -28px; bottom: -22px; background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 12px 14px; box-shadow: var(--schatten-gross); font-size: 13px; max-width: 250px; }
.geraet-bild .ts-karte b { display: block; font-size: 14px; color: var(--text); }
.geraet-bild .ts-karte code { color: var(--primaer); }
@media (max-width: 520px) { .geraet-bild .ts-karte { position: static; margin-top: 14px; max-width: none; } }

.abschnitt { padding: clamp(3rem, 7vw, 5rem) 0; }
.abschnitt.getoent { background: var(--hg-flaeche); border-block: 1px solid var(--rand); }
.abschnitt-kopf { max-width: 720px; margin-bottom: 2.5rem; }
.abschnitt-kopf .ueber { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--primaer); }
@media (prefers-color-scheme: dark) { .abschnitt-kopf .ueber { color: var(--primaer-dunkel); } }
.abschnitt-kopf h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.02em; margin-top: .3rem; }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.08rem; }

.schritte { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: schritt; }
.schritt { background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1.5rem; position: relative; }
.abschnitt.getoent .schritt { background: var(--hg); }
.schritt::before { counter-increment: schritt; content: counter(schritt); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primaer); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.schritt h3 { font-size: 1.15rem; }
.schritt p { color: var(--text-leise); margin: 0; }

.funktionen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.funktion { padding: 1.35rem; border-radius: var(--radius-gross); border: 1px solid var(--rand); background: var(--hg-flaeche); }
.abschnitt.getoent .funktion { background: var(--hg); }
.funktion .symbol { width: 44px; height: 44px; border-radius: 12px; background: var(--primaer-hell); display: grid; place-items: center; margin-bottom: .9rem; }
.funktion .symbol svg { width: 24px; height: 24px; stroke: var(--primaer); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .funktion .symbol svg { stroke: var(--primaer-dunkel); } }
.funktion h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.funktion p { color: var(--text-leise); margin: 0; font-size: .97rem; }

.zweispaltig { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
.liste-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.liste-haken li { padding-left: 2rem; position: relative; }
.liste-haken li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 20px; height: 20px; border-radius: 6px; background: var(--primaer-hell); border: 1px solid color-mix(in srgb, var(--primaer) 40%, transparent); }
.liste-haken li::after { content: ""; position: absolute; left: 6px; top: .45rem; width: 8px; height: 12px; border: solid var(--primaer); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.liste-haken b { display: block; }
.schnittstellen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.schnittstelle { border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1.25rem; background: var(--hg-flaeche); }
.schnittstelle .kopf { font-family: var(--mono); font-weight: 700; color: var(--primaer); font-size: .95rem; }
@media (prefers-color-scheme: dark) { .schnittstelle .kopf { color: var(--primaer-dunkel); } }
.schnittstelle h3 { margin: .35rem 0; font-size: 1.1rem; }
.schnittstelle p { margin: 0; color: var(--text-leise); font-size: .95rem; }

.katalog-gruppen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.katalog-gruppe { border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1.25rem; background: var(--hg); }
.katalog-gruppe h3 { font-size: 1rem; display: flex; justify-content: space-between; }
.katalog-gruppe ul { margin: 0; padding-left: 1.1rem; color: var(--text-leise); }
.katalog-gruppe li { margin: .25rem 0; }

.preise { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.paket { display: flex; flex-direction: column; border: 1px solid var(--rand); border-radius: 20px; padding: 1.75rem; background: var(--hg-flaeche); position: relative; }
.paket.empfohlen { border: 2px solid var(--primaer); box-shadow: var(--schatten-gross); }
.paket .band { position: absolute; top: -13px; left: 1.5rem; background: var(--primaer); color: #fff; font-size: .78rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.paket h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.paket .preis { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 0; }
.paket .preis small { font-size: 1rem; font-weight: 500; color: var(--text-leise); letter-spacing: 0; }
.paket .steuer { font-size: .85rem; color: var(--text-leise); margin-bottom: 1.2rem; }
.paket ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.paket li { padding-left: 1.6rem; position: relative; }
.paket li::before { content: ""; position: absolute; left: 3px; top: .35rem; width: 7px; height: 12px; border: solid var(--primaer); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (prefers-color-scheme: dark) { .paket li::before { border-color: var(--primaer-dunkel); } }

.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--hg-flaeche); padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primaer); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-leise); }

.kontakt { display: grid; gap: 2.5rem; grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }

.seitenfuss { background: #0d2326; color: #c9dadb; padding: 3rem 0 2rem; }
.seitenfuss a { color: #e9f3f3; }
.seitenfuss .huelle { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 760px) { .seitenfuss .huelle { grid-template-columns: 1fr; } }
.seitenfuss h4 { color: #fff; font-size: .95rem; }
.seitenfuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.seitenfuss .unten { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

.textseite { padding: 3rem 0 4rem; }
.textseite .huelle { max-width: 820px; }
.textseite h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.textseite h2 { font-size: 1.3rem; margin-top: 2rem; }
.textseite h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.textseite address { font-style: normal; }
.textseite .hervor { border: 2px solid var(--primaer); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--primaer-hell); }
.textseite dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; }
.textseite dt { font-weight: 700; }
.textseite dd { margin: 0; }
@media (max-width: 560px) { .textseite dl { grid-template-columns: 1fr; } .textseite dd { margin-bottom: .6rem; } }

.fehlerseite { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem 1rem; }
.fehlerseite .zahl { font-size: clamp(4rem, 15vw, 7rem); font-weight: 800; color: var(--primaer); line-height: 1; letter-spacing: -.04em; }

/* =====================================================================
   Praxis-Oberfläche / Herstellerverwaltung
   ===================================================================== */
.app-kopf { background: var(--hg-flaeche); border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 40; }
.app-kopf .innen { display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; min-height: 60px; flex-wrap: wrap; }
.app-kopf .praxisname { font-weight: 700; }
.app-kopf .benutzer { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.app-nav { display: flex; gap: .25rem; padding: 0 1rem; overflow-x: auto; border-top: 1px solid var(--rand); scrollbar-width: thin; }
.app-nav a { padding: .7rem .9rem; text-decoration: none; color: var(--text-leise); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.app-nav a:hover { color: var(--text); }
.app-nav a.aktiv { color: var(--primaer); border-bottom-color: var(--primaer); }
@media (prefers-color-scheme: dark) { .app-nav a.aktiv { color: var(--primaer-dunkel); border-bottom-color: var(--primaer-dunkel); } }
.app-haupt { padding: 1.25rem 1rem 3rem; max-width: 1400px; margin: 0 auto; }
.app-haupt.voll { max-width: none; }
.seitentitel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.seitentitel h1 { font-size: 1.5rem; margin: 0; }
.lizenzband { background: var(--warn-hell); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); padding: .7rem 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lizenzband b { color: var(--warn); }
.menue { position: relative; }
.menue-liste { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-gross); padding: .35rem; z-index: 60; display: flex; flex-direction: column; }
.menue-liste button, .menue-liste a { text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: .6rem .75rem; border-radius: 6px; cursor: pointer; text-decoration: none; }
.menue-liste button:hover, .menue-liste a:hover { background: var(--hg-zweit); }

.anmelde-seite { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; background:
  radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--primaer) 18%, transparent), transparent 70%), var(--hg); }
.anmelde-karte { width: min(420px, 100%); }
.anmelde-karte .marke-logo { justify-content: center; display: flex; margin-bottom: 1.25rem; }

.filterleiste { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.chip { border: 1px solid var(--rand-stark); background: var(--hg-flaeche); color: var(--text); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.chip .anzahl { opacity: .75; margin-left: .25rem; }
.filterleiste input[type="search"] { max-width: 300px; flex: 1 1 200px; }

.vorlagen-gruppe { margin-bottom: 1.5rem; }
.vorlagen-gruppe h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-leise); margin-bottom: .6rem; }
.vorlagen-raster { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vorlage-karte { text-align: left; font: inherit; color: var(--text); background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; min-height: 48px; }
.vorlage-karte:hover { border-color: var(--primaer); }
.vorlage-karte.gewaehlt { border: 2px solid var(--primaer); background: var(--primaer-hell); }
.vorlage-karte .titel { font-weight: 700; }
.vorlage-karte .meta { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--text-leise); }
.vorlage-karte .beschr { font-size: .88rem; color: var(--text-leise); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vorlage-karte .aktionen { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }

.wegwahl { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wegwahl label { border: 2px solid var(--rand); border-radius: var(--radius); padding: .9rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; font-weight: 400; }
.wegwahl label b { font-size: 1rem; }
.wegwahl label:has(input:checked) { border-color: var(--primaer); background: var(--primaer-hell); }
.wegwahl label.aus { opacity: .5; cursor: not-allowed; }
.wegwahl input { accent-color: var(--primaer); width: 18px; height: 18px; }

.detail-kopf { display: grid; gap: 1rem; grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 720px) { .detail-kopf { grid-template-columns: 1fr; } }
.daten-liste { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.daten-liste dt { color: var(--text-leise); font-size: .9rem; }
.daten-liste dd { margin: 0; font-weight: 500; word-break: break-word; }
.aktentext { white-space: pre-wrap; font-family: var(--mono); font-size: .88rem; background: var(--hg-zweit); padding: 1rem; border-radius: 8px; border: 1px solid var(--rand); max-height: 420px; overflow: auto; margin: 0; }
.antwort-seite { margin-bottom: 1.25rem; }
.antwort-seite h3 { font-size: 1rem; border-bottom: 1px solid var(--rand); padding-bottom: .35rem; margin-bottom: .5rem; }
.antwort-zeile { display: grid; grid-template-columns: minmax(180px, 2fr) 3fr; gap: .25rem 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--rand); }
.antwort-zeile:last-child { border-bottom: 0; }
.antwort-zeile .f { color: var(--text-leise); }
.antwort-zeile .a { font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.antwort-zeile .a.leer { font-weight: 400; color: var(--text-leise); font-style: italic; }
.antwort-zeile svg.unterschrift-bild { width: 220px; max-width: 100%; height: auto; border-bottom: 1px solid var(--rand-stark); }
@media (max-width: 600px) { .antwort-zeile { grid-template-columns: 1fr; } }
.zwei-spalten-detail { display: grid; gap: 1rem; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); align-items: start; }
@media (max-width: 1000px) { .zwei-spalten-detail { grid-template-columns: 1fr; } }

/* ---------- Bogen-Editor ---------- */
.editor { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.editor-vorschau { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; background: var(--hg-zweit); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1rem; }
@media (max-width: 1100px) { .editor-vorschau { position: static; max-height: none; } }
.editor-vorschau .vorschau-titel { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-leise); font-weight: 800; margin-bottom: .6rem; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.editor-leiste { position: sticky; top: 108px; z-index: 30; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; background: color-mix(in srgb, var(--hg) 92%, transparent); backdrop-filter: blur(6px); padding: .6rem 0; margin-bottom: .5rem; }
.seiten-reiter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.seiten-reiter button { font: inherit; font-size: .9rem; font-weight: 600; min-height: 40px; padding: .35rem .8rem; border-radius: 8px; border: 1px solid var(--rand-stark); background: var(--hg-flaeche); color: var(--text); cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seiten-reiter button[aria-current="true"] { background: var(--primaer); color: #fff; border-color: var(--primaer); }
.seiten-reiter button.arzt::after { content: " · Arzt"; font-weight: 500; opacity: .8; }
.typ-leiste { display: flex; flex-wrap: wrap; gap: .4rem; }
.typ-leiste .knopf { min-height: 36px; font-size: .85rem; padding: .3rem .65rem; }
.element-liste { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0; }
.element-karte { background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius); }
.element-karte.offen { border-color: var(--primaer); box-shadow: 0 0 0 1px var(--primaer); }
.element-karte.ziehen { opacity: .45; }
.element-karte.ziel-oben { box-shadow: 0 -3px 0 0 var(--akzent); }
.element-karte.ziel-unten { box-shadow: 0 3px 0 0 var(--akzent); }
.element-zeile { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; }
.griff { cursor: grab; color: var(--text-leise); padding: .4rem .3rem; user-select: none; font-size: 1.1rem; line-height: 1; touch-action: none; }
.element-zeile .titel { flex: 1 1 auto; min-width: 0; cursor: pointer; display: flex; flex-direction: column; background: none; border: 0; font: inherit; color: inherit; text-align: left; padding: .2rem; }
.element-zeile .titel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.element-zeile .titel small { color: var(--text-leise); font-family: var(--mono); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typ-marke { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .18rem .45rem; border-radius: 5px; background: var(--primaer-hell); color: var(--primaer); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .typ-marke { color: var(--primaer-dunkel); } }
.element-knoepfe { display: flex; gap: .15rem; }
.element-knoepfe .knopf { min-height: 34px; min-width: 34px; padding: .2rem .4rem; font-size: .9rem; }
.element-eigenschaften { border-top: 1px solid var(--rand); padding: 1rem; display: grid; gap: .9rem; }
.bedingung-editor { display: grid; gap: .5rem; grid-template-columns: 1.4fr 1fr 1fr; align-items: end; }
@media (max-width: 640px) { .bedingung-editor { grid-template-columns: 1fr; } }
.einfuege-liste { display: flex; flex-wrap: wrap; gap: .3rem; max-height: 160px; overflow: auto; padding: .4rem; border: 1px dashed var(--rand-stark); border-radius: 8px; }
.einfuege-liste button { font-family: var(--mono); font-size: .78rem; padding: .2rem .45rem; border-radius: 5px; border: 1px solid var(--rand); background: var(--hg-zweit); color: var(--text); cursor: pointer; }
.einfuege-liste button:hover { border-color: var(--primaer); }
.formel-ergebnis { font-size: .88rem; }
.formel-ergebnis.gut { color: var(--gut); }
.formel-ergebnis.fehler { color: var(--fehler); }

/* =====================================================================
   Bogen (Patientenformular, Vorschau, Arztansicht)
   ===================================================================== */
.bogen { --bf: 18px; font-size: var(--bf); }
.bogen.kompakt { --bf: 16px; }
.formular-seite { min-height: 100vh; display: flex; flex-direction: column; }
.formular-kopf { background: var(--primaer); color: #fff; }
.formular-kopf .innen { width: min(860px, 100% - 32px); margin: 0 auto; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.formular-kopf .praxis { font-weight: 700; font-size: 1.15rem; }
.formular-kopf .speicherstand { font-size: .9rem; opacity: .9; }
.formular-haupt { width: min(860px, 100% - 32px); margin: 0 auto; padding: 1.5rem 0 7rem; flex: 1; }
.formular-fuss { font-size: .85rem; text-align: center; padding: 1rem; color: var(--text-leise); }

.fortschritt { margin-bottom: 1.5rem; }
.fortschritt .text { display: flex; justify-content: space-between; font-size: .95rem; color: var(--text-leise); margin-bottom: .4rem; gap: 1rem; }
.fortschritt .balken { height: 10px; background: var(--hg-zweit); border-radius: 5px; overflow: hidden; border: 1px solid var(--rand); }
.fortschritt .balken i { display: block; height: 100%; width: 0; background: var(--primaer); border-radius: 5px; transition: width .3s ease; }
.bogen .seite-titel { font-size: 1.6em; margin-bottom: 1rem; letter-spacing: -.02em; }
.bogen-abschnitt + .bogen-abschnitt { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--rand); }
.bogen-abschnitt .arzt-marke { display: inline-block; font-size: .7em; vertical-align: middle; margin-left: .5rem; }

.frage { background: var(--hg-flaeche); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: 1.1rem 1.2rem; margin-bottom: 1rem; scroll-margin-top: 90px; }
.frage.fehlt { border-color: var(--fehler); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fehler) 30%, transparent); }
.frage.gesperrt { background: var(--hg-zweit); }
.frage .frage-text { font-weight: 650; font-size: 1.05em; margin-bottom: .2rem; display: block; }
.frage .pflicht-stern { color: var(--fehler); margin-left: .2rem; }
.frage .frage-hilfe { color: var(--text-leise); font-size: .9em; margin-bottom: .7rem; white-space: pre-wrap; }
.frage .fehler-text { color: var(--fehler); font-size: .9em; font-weight: 600; margin-top: .5rem; }
.frage .eingabe { margin-top: .6rem; }
.bogen input[type="text"], .bogen textarea, .bogen select { font-size: 1em; min-height: 52px; padding: .65rem .9rem; border-radius: 10px; border-width: 1.5px; }
.bogen textarea { min-height: 120px; }
.bogen .zahl-huelle { display: flex; align-items: center; gap: .6rem; max-width: 320px; }
.bogen .zahl-huelle input { max-width: 200px; }
.bogen .datum-eingabe { max-width: 220px; letter-spacing: .04em; }
.bogen .bereich { font-size: .85em; color: var(--text-leise); margin-top: .35rem; }
.bogen-ueberschrift { margin: 1.75rem 0 .75rem; }
.bogen-ueberschrift h3 { font-size: 1.3em; margin: 0 0 .25rem; color: var(--primaer); }
@media (prefers-color-scheme: dark) { .bogen-ueberschrift h3 { color: var(--primaer-dunkel); } }
.bogen-ueberschrift p { color: var(--text-leise); margin: 0; white-space: pre-wrap; }
.info-text { white-space: pre-wrap; line-height: 1.6; }
.info-text p { margin: 0 0 .75em; }
.frage.info { border-left: 5px solid var(--primaer); }

.wahl { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.wahl.ja-nein { grid-template-columns: repeat(2, minmax(0, 200px)); }
.wahl-option { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .65rem 1rem; border: 2px solid var(--rand-stark); border-radius: 12px; background: var(--hg-flaeche); cursor: pointer; font-weight: 500; transition: border-color .12s, background-color .12s; }
.wahl-option:hover { border-color: var(--primaer); }
.wahl-option input { position: absolute; opacity: 0; pointer-events: none; }
.wahl-option .marker { flex: none; width: 24px; height: 24px; border: 2px solid var(--rand-stark); border-radius: 50%; display: grid; place-items: center; background: var(--hg-flaeche); }
.wahl-option.mehr .marker { border-radius: 6px; }
.wahl-option input:checked + .marker { border-color: var(--primaer); background: var(--primaer); }
.wahl-option input:checked + .marker::after { content: ""; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.wahl-option:has(input:checked) { border-color: var(--primaer); background: var(--primaer-hell); font-weight: 700; }
.wahl-option:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 2px; }
.wahl-option:has(input:disabled) { cursor: default; }
.ja-nein .wahl-option { justify-content: center; font-size: 1.05em; }

.skala { display: flex; flex-wrap: wrap; gap: .4rem; }
.skala button { flex: 1 0 48px; min-width: 48px; min-height: 52px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid var(--rand-stark); background: var(--hg-flaeche); color: var(--text); cursor: pointer; }
.skala button:hover { border-color: var(--primaer); }
.skala button[aria-pressed="true"] { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.skala button:disabled { cursor: default; }
.skala-enden { display: flex; justify-content: space-between; font-size: .85em; color: var(--text-leise); margin-top: .35rem; }
.skala input[type="range"] { width: 100%; accent-color: var(--primaer); min-height: 48px; }

.berechnet-wert { font-size: 1.4em; font-weight: 800; color: var(--primaer); padding: .3rem 0; }
@media (prefers-color-scheme: dark) { .berechnet-wert { color: var(--primaer-dunkel); } }
.berechnet-wert.leer { color: var(--text-leise); font-weight: 400; font-size: 1em; font-style: italic; }

.unterschrift-feld { display: flex; flex-direction: column; gap: .5rem; }
.unterschrift-flaeche { position: relative; width: 100%; max-width: 720px; aspect-ratio: 3 / 1; border: 2px dashed var(--rand-stark); border-radius: 12px; background: #fff; touch-action: none; overflow: hidden; }
.unterschrift-flaeche.aktiv { border-style: solid; border-color: var(--primaer); }
.unterschrift-flaeche canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.unterschrift-flaeche .linie { position: absolute; left: 6%; right: 6%; bottom: 24%; border-bottom: 1.5px solid #9aa7a7; pointer-events: none; }
.unterschrift-flaeche .x { position: absolute; left: 6%; bottom: 26%; color: #9aa7a7; font-size: 1.4rem; pointer-events: none; font-weight: 300; }
.unterschrift-flaeche .platzhalter { position: absolute; inset: 0; display: grid; place-items: center; color: #8a9999; pointer-events: none; font-size: .95em; }
.unterschrift-fuss { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; font-size: .9em; color: var(--text-leise); max-width: 720px; }
.frage.gesperrt .unterschrift-flaeche { border-style: solid; }
.frage.gesperrt canvas { cursor: default; }

.koerper { display: flex; flex-direction: column; gap: .75rem; }
.koerper-ansichten { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.koerper-ansicht { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.koerper-ansicht .titel { font-weight: 700; font-size: .9em; color: var(--text-leise); }
.koerper-ansicht svg { width: 190px; height: auto; }
@media (max-width: 420px) { .koerper-ansicht svg { width: 150px; } }
.koerper-ansicht .region { fill: var(--hg-zweit); stroke: var(--rand-stark); stroke-width: 1.5; cursor: pointer; transition: fill .12s; }
.koerper-ansicht .region:hover { fill: color-mix(in srgb, var(--primaer) 22%, var(--hg-zweit)); }
.koerper-ansicht .region.an { fill: var(--akzent); stroke: #8a5513; }
.koerper-ansicht .region:focus { outline: none; }
.koerper-ansicht .region:focus-visible { stroke: var(--akzent); stroke-width: 3; }
.koerper-ansicht .seitenmarke { font-size: 13px; font-weight: 700; fill: var(--text-leise); }
.koerper.gesperrt .region { cursor: default; }
.koerper-gewaehlt { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 36px; align-items: center; }
.koerper-gewaehlt .marke { font-size: .85em; padding: .3rem .7rem; background: var(--warn-hell); color: var(--text); border-color: color-mix(in srgb, var(--akzent) 50%, transparent); }
.koerper-gewaehlt button.marke { cursor: pointer; font: inherit; font-size: .85em; font-weight: 600; }

.bogen-navigation { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--hg-flaeche) 95%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--rand); }
.bogen-navigation .innen { width: min(860px, 100% - 32px); margin: 0 auto; padding: .75rem 0; display: flex; justify-content: space-between; gap: .75rem; }
.bogen-navigation .knopf { min-height: 56px; min-width: 130px; font-size: 1.05rem; }
.bogen-navigation.eingebettet { position: static; background: none; border: 0; backdrop-filter: none; }
.bogen-navigation.eingebettet .innen { width: auto; }
.fehlerliste { margin-bottom: 1.25rem; }
.fehlerliste button { background: none; border: 0; padding: .15rem 0; color: var(--fehler); text-decoration: underline; font: inherit; cursor: pointer; text-align: left; }
.startkarte, .endkarte { text-align: center; padding: clamp(1.5rem, 5vw, 3rem); }
.startkarte h1, .endkarte h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.startkarte p, .endkarte p { font-size: 1.1rem; max-width: 34em; margin-inline: auto; white-space: pre-wrap; }
.endkarte .haken-gross { width: 84px; height: 84px; border-radius: 50%; background: var(--gut); margin: 0 auto 1.25rem; display: grid; place-items: center; }
.endkarte .haken-gross::after { content: ""; width: 22px; height: 40px; border: solid #fff; border-width: 0 6px 6px 0; transform: translateY(-5px) rotate(45deg); }

/* ---------- Tablet ---------- */
.tablet-seite { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1000px 500px at 50% 0%, color-mix(in srgb, var(--primaer) 20%, transparent), transparent 70%), var(--hg); }
.tablet-seite .oben { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; gap: 1rem; }
.tablet-mitte { flex: 1; display: grid; place-items: center; padding: 1.5rem; text-align: center; }
.tablet-mitte h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .4rem; }
.tablet-mitte p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-leise); }
.tablet-uhr { font-size: clamp(3.5rem, 13vw, 7rem); font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: .2rem; }
.tablet-datum { font-size: 1.2rem; color: var(--text-leise); margin-bottom: 2.5rem; }
.puls { display: inline-flex; gap: .45rem; margin-top: 1.5rem; }
.puls i { width: 12px; height: 12px; border-radius: 50%; background: var(--primaer); animation: puls 1.4s infinite ease-in-out; }
.puls i:nth-child(2) { animation-delay: .2s; }
.puls i:nth-child(3) { animation-delay: .4s; }
@keyframes puls { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.kopplung-karte { width: min(480px, 100%); text-align: left; }
.kopplung-karte input.code-eingabe { font-family: var(--mono); font-size: 1.8rem; letter-spacing: .3em; text-align: center; text-transform: uppercase; min-height: 64px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck (QR-Zettel) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .app-kopf, .app-nav, .lizenzband, .dialog-kopf, .dialog-fuss, .meldungen, .nicht-drucken { display: none !important; }
  dialog.dialog { box-shadow: none; position: static; width: 100%; max-height: none; }
  .dialog-inhalt { max-height: none; overflow: visible; }
  .druck-zettel { text-align: center; }
}
a.kennzahl { display: block; text-decoration: none; color: inherit; }
a.kennzahl:hover { border-color: var(--primaer); }
.fehlerseite .zeile { justify-content: center; }
.fehlerliste li button { display: inline; }
.fehlerliste .hinweisbox.zeile { display: flex; }
.frage.gesperrt input[type="text"], .frage.gesperrt textarea { background: var(--hg-zweit); border-style: dashed; }
details.patient-angaben { border: 1px solid var(--rand); border-radius: var(--radius); padding: .25rem 1rem; margin: 1rem 0 1.5rem; background: var(--hg); }
details.patient-angaben > summary { cursor: pointer; font-weight: 700; padding: .6rem 0; }
.seite-titel:focus { outline: none; }
.unterschrift-flaeche .platzhalter { place-items: start center; padding: 9% 1rem 0; text-align: center; }
@media (max-width: 640px) {
  .tabelle thead { display: none; }
  .tabelle tr { display: block; border-bottom: 1px solid var(--rand); padding: .5rem 0; }
  .tabelle tr:last-child { border-bottom: 0; }
  .tabelle td { display: block; border: 0; padding: .2rem .9rem; }
  .tabelle td.aktionen { text-align: left; white-space: normal; padding-top: .5rem; }
  .app-kopf .benutzer { margin-left: 0; }
}
.detail-kopf .spalte { align-items: flex-start; }

/* Online-Link (Einstellungen) und Testanmeldung */
.online-link { display: grid; gap: 1rem; grid-template-columns: 1fr auto; align-items: start; margin-bottom: 1rem; }
.online-link .qr { width: 160px; }
.online-link .qr svg { width: 100%; height: auto; }
@media (max-width: 560px) { .online-link { grid-template-columns: 1fr; } }
.testseite .huelle { max-width: 760px; }
.testseite .unterzeile { font-size: 1.15rem; color: var(--text-leise); }
.testseite .punkte { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.testseite .punkte li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.testseite .punkte li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--primaer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.testseite .anmelde-karte { margin-inline: auto; }
/* ---------- Formular: Sprache, Vorlesen, große Schrift, hoher Kontrast ---------- */
.formular-leiste { background: color-mix(in srgb, var(--primaer) 82%, #000); color: #fff; }
.formular-leiste .innen { width: min(860px, 100% - 32px); margin: 0 auto; padding: .45rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.formular-leiste .gruppe { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.formular-leiste .sprach-label { font-size: .9rem; font-weight: 600; }
.formular-leiste select { width: auto; min-height: 40px; padding: .25rem .6rem; background: #fff; color: #1c2627; border-color: #fff; }
.formular-leiste button { min-height: 40px; min-width: 44px; padding: .2rem .6rem; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 8px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.formular-leiste button.stufe-1 { font-size: 1.15rem; }
.formular-leiste button.stufe-2 { font-size: 1.3rem; }
.formular-leiste button[aria-pressed="true"] { background: #fff; color: #13224a; border-color: #fff; }
.formular-leiste button:focus-visible, .formular-leiste select:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.sprach-start { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .25rem 0 1.25rem; }
.sprach-start .knopf { min-width: 120px; }
.sprach-start .knopf[aria-pressed="true"] { border-color: var(--primaer); background: var(--primaer-hell); font-weight: 800; box-shadow: inset 0 0 0 1px var(--primaer); }
.uebersetzung-hinweis { font-style: italic; }
.vorlese-knopf { float: inline-end; margin-inline-start: .6rem; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--rand-stark); background: var(--hg-flaeche); color: var(--primaer); cursor: pointer; font-size: 1rem; }
.vorlese-knopf .icon-svg { width: 22px; height: 22px; }
.vorlese-knopf:hover { border-color: var(--primaer); }
.vorlese-knopf.spricht { background: var(--primaer); border-color: var(--primaer); color: var(--primaer-text); }
.vorlese-knopf.seite { float: none; display: inline-flex; gap: .5rem; width: auto; height: auto; min-height: 44px; padding: .3rem .95rem; border-radius: 999px; font: inherit; font-size: .85em; font-weight: 600; }
.seite-vorlesen { margin: -.25rem 0 1.1rem; }
.bogen-ueberschrift h3 .vorlese-knopf { font-weight: 400; }
html.schrift-1 { font-size: 118.75%; }
html.schrift-1 body { font-size: 19px; }
html.schrift-1 .bogen { --bf: 22px; }
html.schrift-2 { font-size: 137.5%; }
html.schrift-2 body { font-size: 22px; }
html.schrift-2 .bogen { --bf: 26px; }
html.schrift-2 .wahl { grid-template-columns: 1fr; }
html.schrift-2 .wahl.ja-nein { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.kontrast {
  color-scheme: light;
  --primaer: #00474f !important; --primaer-dunkel: #002f35 !important; --primaer-hell: #d3eef0; --primaer-text: #fff;
  --akzent: #b35c00; --hg: #fff; --hg-flaeche: #fff; --hg-zweit: #ececec; --rand: #000; --rand-stark: #000;
  --text: #000; --text-leise: #1f1f1f; --fehler: #9e0000; --fehler-hell: #ffe3e0; --gut: #145a2c;
}
html.kontrast .formular-kopf, html.kontrast .formular-leiste { background: #000; }
html.kontrast .frage, html.kontrast .karte, html.kontrast .wahl-option { border-width: 2px; }
html.kontrast .frage .frage-hilfe, html.kontrast .leise { color: #1f1f1f; }
html.kontrast :focus-visible { outline: 4px solid #b35c00; outline-offset: 2px; }
/* Editor: Übersetzungen */
.editor-reiter button[aria-selected="true"] { background: var(--primaer); color: #fff; border-color: var(--primaer); }
.ueb-prozent { font-weight: 800; opacity: .85; }
.ueb-prozent.voll::after { content: " ✓"; }
.ueb-tabelle td { width: 50%; }
.ueb-tabelle .ueb-original { white-space: pre-wrap; }
.ueb-tabelle tr.ueb-gruppe th { background: var(--primaer-hell); color: var(--text); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.ueb-tabelle textarea { min-height: 64px; }
/* Rechts-nach-links (Arabisch) */
[dir="rtl"] .frage.info { border-left-width: 1px; border-left-color: var(--rand); border-right: 5px solid var(--primaer); }
[dir="rtl"] .frage .pflicht-stern { margin-left: 0; margin-right: .2rem; }
[dir="rtl"] .bogen-abschnitt .arzt-marke { margin-left: 0; margin-right: .5rem; }
[dir="rtl"] .hinweisbox ul { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .fehlerliste button { text-align: right; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
