:root {
  --akzent: #2a7f86; --akzent-hell: #e3f1f2; --bg: #f6f7f8; --text: #1d2327; --leise: #5f6b73;
  --rand: #e3e6e8; --gefahr: #b3261e; --radius: 10px;
  --oben: env(safe-area-inset-top, 0px); --unten: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.4; }
a { color: var(--akzent); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: .8rem; padding: calc(.5rem + var(--oben)) 1rem .5rem; background: #fff; border-bottom: 1px solid var(--rand); min-height: 56px; }
.topbar .logo { height: 32px; display: block; }
.topbar .abmelden { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
main { padding: 1.2rem 1rem calc(2rem + var(--unten)); max-width: 900px; margin: 0 auto; }

/* Bausteine */
.karte { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 1rem; }
.narrow { max-width: 380px; margin: 2rem auto; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=search], select, textarea {
  width: 100%; padding: .65rem .7rem; border: 1px solid #c8ced3; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; /* 16px: kein Auto-Zoom auf iPhones */
}
button { font: inherit; }
.knopf, .narrow button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--akzent); border-radius: 8px; background: var(--akzent); color: #fff; cursor: pointer; white-space: nowrap; text-decoration: none; }
.narrow button[type=submit] { margin-top: 1.2rem; width: 100%; }
.knopf.leise { background: #fff; color: var(--akzent); }
.knopf.gefahr { background: #fff; color: var(--gefahr); border-color: #e4b7b3; }
.knopf.klein { min-height: 36px; padding: .3rem .7rem; font-size: .9rem; }
.knopf.rund { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.error { color: var(--gefahr); }
.hinweis { color: var(--leise); }
.meldungen { max-width: 900px; margin: 1rem auto 0; padding: 0 1rem; }
.meldung { margin: 0 0 .5rem; padding: .7rem 1rem; border-radius: 8px; background: var(--akzent-hell); }
.meldung.error { background: #fbe9e7; color: var(--gefahr); }

/* Startseite */
.kopfzeile { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.kopfzeile h1 { margin: 0; }
.suche { flex: 1 1 240px; max-width: 360px; }
.neu { margin-bottom: 1.2rem; }
.neu label { margin-top: 0; }
.zeile { display: flex; gap: .6rem; }
.zeile input { flex: 1; min-width: 0; }
.patienten, .varianten { list-style: none; margin: 0; padding: 0; }
.patienten > li { margin-bottom: .6rem; padding: 0; }
.patienten summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; min-height: 56px; cursor: pointer; list-style: none; }
.patienten summary::-webkit-details-marker { display: none; }
.patienten summary::after { content: "›"; font-size: 1.4rem; color: var(--leise); transition: transform .15s; }
.patienten details[open] summary::after { transform: rotate(90deg); }
.patienten .nummer { font-weight: 600; font-size: 1.1rem; }
.patienten .anzahl { margin-left: auto; color: var(--leise); font-size: .9rem; }
.varianten { border-top: 1px solid var(--rand); }
.varianten li { display: flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-bottom: 1px solid var(--rand); }
.variante { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: .5rem 0; text-decoration: none; color: var(--text); min-height: 44px; justify-content: center; }
.variante span { font-weight: 600; color: var(--akzent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variante small { color: var(--leise); }
.aktionen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: 1rem; }

/* ===================== Planer ===================== */
.planer-seite { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none; }
.planer-seite main { flex: 1; min-height: 0; max-width: none; padding: 0; margin: 0; }
.planer-seite .topbar .logo { height: 26px; }
.brotkrumen { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brotkrumen .zurueck { text-decoration: none; font-size: 1.1rem; padding: .4rem .2rem; }
.brotkrumen .titel { display: flex; align-items: center; gap: .3rem; min-width: 0; white-space: nowrap; }
.brotkrumen .titel > b, .brotkrumen .titel > span { flex: none; }
/* Variantenname: anklicken zum Umbenennen – nur er wird bei Platzmangel gekürzt */
.titel-variante { min-width: 0; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px dashed var(--rand); padding: .1rem .1rem; margin: 0; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titel-variante:hover, .titel-variante:focus-visible { border-bottom-color: var(--akzent); color: var(--akzent); }
.titel-variante::after { content: " ✎"; font-size: .8em; color: var(--leise); }
.topbar:has(.titel.bearbeiten) .brotkrumen, .brotkrumen .titel.bearbeiten { flex: 1 1 auto; }
@media (max-width: 700px) { .topbar:has(.titel.bearbeiten) .abmelden { display: none; } }
.titel-eingabe { flex: 1 1 auto; width: 0; min-width: 6ch; font: inherit; padding: .15rem .4rem; border: 1px solid var(--akzent); border-radius: 6px; max-width: 28rem; }

.planer { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "werkzeuge" "buehne" "tafel"; }
.werkzeuge { grid-area: werkzeuge; display: flex; align-items: center; gap: .25rem; padding: .35rem .5rem; background: #fff; border-bottom: 1px solid var(--rand); overflow-x: auto; scrollbar-width: none; }
.werkzeug { display: inline-flex; align-items: center; gap: .35rem; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); font-size: 1.15rem; cursor: pointer; flex-shrink: 0; }
.werkzeug span { font-size: .9rem; }
.werkzeug img { width: 22px; height: 22px; }
.werkzeug .symbol { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.werkzeug:hover:not(:disabled) { background: var(--bg); }
.werkzeug[aria-pressed=true] { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent); }
.werkzeug:disabled { opacity: .35; cursor: default; }
.trenner { width: 1px; align-self: stretch; margin: .3rem .2rem; background: var(--rand); flex-shrink: 0; }
.speicherstatus { margin-left: auto; padding: 0 .5rem; font-size: .85rem; color: var(--leise); white-space: nowrap; flex-shrink: 0; }
.speicherstatus[data-art=ok]::before { content: "✓ "; color: var(--akzent); }
.speicherstatus[data-art=fehler] { color: var(--gefahr); font-weight: 600; }

.buehne { grid-area: buehne; position: relative; min-height: 0; overflow: hidden; background: #cfd8d3; }
.buehne canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.laden { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: var(--leise); background: var(--bg); z-index: 1; padding: 1rem; text-align: center; }
.planer.bereit .laden { display: none; }
.schutzhinweis { max-width: 30rem; font-size: .8rem; color: var(--leise); }
.hinweis-tippen { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); margin: 0; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.85); font-size: .85rem; color: var(--leise); pointer-events: none; white-space: nowrap; }
.planer[data-tafel]:not([data-tafel=""]) .hinweis-tippen { display: none; }
/* Ansicht-Knöpfe oben links im 3D-Bild: Kiefer, Kamera zentrieren, PDF */
.buehne-knoepfe { position: absolute; top: .8rem; left: .8rem; z-index: 2; display: flex; flex-direction: column; gap: .5rem; }
.buehne-knopf { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rand); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--akzent); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.buehne-knopf:hover { background: #fff; border-color: var(--akzent); }
.buehne-knopf[aria-pressed=true] { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent-hell), 0 2px 8px rgba(0,0,0,.15); }
.buehne-knopf:disabled { opacity: .5; cursor: wait; }
.planer:not(.bereit) .buehne-knoepfe { display: none; }
/* Variantennamen im Vergleich nicht unter den Knöpfen */
.planer:not(.praesentation) .feld-titel { left: calc(.8rem + 48px + .5rem); }

.tafel { grid-area: tafel; background: #fff; border-top: 1px solid var(--rand); overflow-y: auto; overscroll-behavior: contain; max-height: 48vh; max-height: 48dvh; padding: 0 1rem calc(1rem + var(--unten)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.tafel[hidden] { display: none; }
.tafel-kopf { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .7rem 0 .4rem; background: #fff; }
.tafel h2 { margin: 0; font-size: 1.15rem; }
.tafel h3 { margin: 1rem 0 .4rem; font-size: .95rem; color: var(--leise); }
.tafel .aktuell { margin: 0 0 .6rem; color: var(--leise); font-size: .9rem; }
.tafel .tipp { margin: 1rem 0 0; color: var(--leise); font-size: .8rem; }
.wahlen, .segment { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.wahl { min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--rand); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; text-align: left; }
.wahl:hover { border-color: var(--akzent); }
.wahl.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.tafel details { border-top: 1px solid var(--rand); }
.tafel details details { border: 0; margin-left: .6rem; }
.tafel summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.tafel summary::-webkit-details-marker { display: none; }
.tafel summary::before { content: "›"; display: inline-block; width: 1.2rem; transition: transform .15s; color: var(--leise); }
.tafel details[open] > summary::before { transform: rotate(90deg); }
.feld { margin: .8rem 0; }
.feld span { display: block; margin-bottom: .3rem; }

/* Kleine Bildschirme: nur Symbole in der Werkzeugleiste */
@media (max-width: 699px) {
  .nur-gross, .werkzeug span { display: none; }
  .topbar { gap: .5rem; padding-left: .6rem; padding-right: .6rem; }
  .topbar .abmelden .knopf { min-height: 36px; padding: .2rem .6rem; font-size: .85rem; }
  .werkzeuge { gap: 0; padding: .25rem; }
  .werkzeug { min-width: 40px; padding: 0 .45rem; }
  .trenner { display: none; }
  .speicherstatus { font-size: 0; padding: 0 .3rem; }
  .speicherstatus::before, .speicherstatus[data-art]::after { font-size: .85rem; }
  .speicherstatus[data-art=laeuft]::after { content: "…"; }
  .speicherstatus[data-art=offen]::after { content: "●"; color: #d08a00; }
  .speicherstatus[data-art=fehler]::after { content: "⚠ Nicht gespeichert"; }
}
/* Große Bildschirme: Tafel rechts neben dem Modell */
@media (min-width: 900px) {
  .planer { grid-template-columns: 1fr 360px; grid-template-rows: auto 1fr; grid-template-areas: "werkzeuge werkzeuge" "buehne tafel"; }
  .planer[data-tafel=""] , .planer:not([data-tafel]) { grid-template-columns: 1fr 0; }
  .tafel { max-height: none; border-top: 0; border-left: 1px solid var(--rand); box-shadow: none; }
}

/* Formulare (Registrierung, Passwort) */
.formular-breit { max-width: 640px; margin: 1rem auto; }
.knopf.breit { width: 100%; margin-top: 1rem; }
fieldset { border: 0; border-top: 1px solid var(--rand); margin: 1.2rem 0 0; padding: .6rem 0 0; }
fieldset[hidden] { display: none; }
legend { font-weight: 700; padding-right: .5rem; }
.formfeld { margin-bottom: .2rem; }
.formfeld label { margin-top: .7rem; }
.formfeld .error { margin: .25rem 0 0; font-size: .9rem; }
.hat-fehler input, .hat-fehler select { border-color: var(--gefahr); }
.hilfe { display: block; margin-top: .25rem; color: var(--leise); font-size: .85rem; }
.pflicht { color: var(--gefahr); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
@media (max-width: 480px) { .zwei { grid-template-columns: 1fr; } }
.arten { border-top: 0; margin-top: 0; }
.art-wahl { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: .2rem 0; padding: .5rem .8rem; border: 1px solid var(--rand); border-radius: 8px; font-weight: 500; cursor: pointer; }
.art-wahl:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.haken { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.haken input { width: 22px; height: 22px; margin-top: .1rem; flex-shrink: 0; }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.angaben { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .95rem; }
.topbar .konto-link { text-decoration: none; }
.topbar .hilfe-link { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; font-size: .9rem; line-height: 1; }
.topbar .hilfe-link:hover { background: var(--akzent-hell); }

/* ---- Hilfe (Seite /hilfe/ und Feld im Planer) ---- */
.hilfe-text details { border: 1px solid var(--rand); border-radius: var(--radius); padding: 0 .9rem; margin: .5rem 0; background: #fff; }
.hilfe-text summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.hilfe-text details[open] summary { border-bottom: 1px solid var(--rand); margin-bottom: .4rem; }
.hilfe-text ul, .hilfe-text ol { padding-left: 1.2rem; }
.hilfe-text li { margin: .35rem 0; }
.hilfe-text code { background: var(--akzent-hell); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; white-space: normal; word-break: break-word; }
.hilfe-text kbd { display: inline-block; padding: 0 .35rem; border: 1px solid var(--rand); border-bottom-width: 2px; border-radius: 4px; font: inherit; font-size: .85em; background: #fafafa; }
.hilfe-tasten { border-collapse: collapse; margin: .3rem 0 .8rem; }
.hilfe-tasten td { padding: .3rem .6rem .3rem 0; vertical-align: top; }
.hilfe-einleitung, .hilfe-text .leise { color: var(--leise); }
.hilfe-kontakt { margin-top: 1rem; }
.nur-klein { display: none; }
@media (max-width: 699px) { .nur-klein { display: inline; } }
/* Mein Konto / Praxis */
.konto-seite { max-width: 460px; margin: 2rem auto; display: grid; gap: 1rem; }
.konto-seite h2 { margin-top: 0; }
.konto-seite h3 { margin: 1.4rem 0 .6rem; font-size: 1rem; }
.konto-seite form .knopf, .konto-seite #logo-hochladen .knopf { margin-top: .6rem; }
.logo-vorschau { display: flex; justify-content: center; padding: .8rem; border: 1px dashed var(--rand); border-radius: 8px; background: #fff; }
.logo-vorschau img { max-width: 100%; max-height: 100px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#logo-hochladen label.knopf:focus-within, #logo-datei:focus-visible + * { outline: 2px solid var(--akzent); }
/* Anmeldung, Registrierung, Passwort vergessen: Foto als Hintergrund (wie in der alten App) */
body.mit-hintergrund { background: #e9eef0 url("../img/anmeldung-hintergrund.ca5337b35426.jpg") no-repeat center center / cover fixed; }
body.mit-hintergrund .karte { box-shadow: 0 10px 40px rgba(20, 40, 50, .18); }
@media (max-width: 699px) { body.mit-hintergrund { background-attachment: scroll; } }

/* Fußzeile mit Kontakt und Rechtlichem (auf allen Seiten außer dem Planer) */
.app-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; padding: 1rem 1rem calc(1.2rem + var(--unten)); font-size: .9rem; }
.app-fuss a { color: var(--leise); text-decoration: none; }
.app-fuss a:hover { color: var(--akzent); text-decoration: underline; }
body.mit-hintergrund .app-fuss { background: rgba(255,255,255,.85); }
.rechtstext h2 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.entwurf { background: #fff4d6; border: 1px solid #e8c766; border-radius: 8px; padding: .7rem 1rem; }
mark { background: #fff1a8; }
textarea { resize: vertical; }

/* ---- Planer: Notiz-Schilder, Vergleich, Vorher/Nachher-Schieber ---- */
.schilder { position: absolute; inset: 0; pointer-events: none; }
.schild { position: absolute; left: 0; top: 0; margin: -34px 0 0 -14px; min-width: 28px; height: 24px; padding: 0 6px; border: 0; border-radius: 12px 12px 12px 3px; background: #f2b632; color: #3b2a00; font-size: .75rem; font-weight: 700; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.schild[hidden] { display: none; }
.feld-titel { position: absolute; top: .5rem; left: 0; right: 0; display: none; pointer-events: none; }
.feld-titel[data-art=neben], .feld-titel[data-art=wisch] { display: flex; }
.feld-titel[data-art=neben] span { flex: 1; text-align: center; }
.feld-titel[data-art=wisch] { justify-content: space-between; padding: 0 .6rem; }
.feld-titel span { margin: 0 .3rem; }
.feld-titel span::before { content: ""; }
.feld-titel span { display: inline-block; justify-self: center; }
.feld-titel[data-art=neben] span, .feld-titel[data-art=wisch] span { background: rgba(255,255,255,.88); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.feld-titel[data-art=neben] { justify-content: space-around; }
.schieber { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; display: flex; justify-content: center; }
.schieber[hidden] { display: none; }
.schieber::before { content: ""; width: 3px; height: 100%; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); }
.schieber span { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.schieber span::after { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--akzent); letter-spacing: 2px; }
.schieber:focus-visible span { outline: 3px solid var(--akzent); }
.planer:not(.bereit) .schieber, .planer:not(.bereit) .feld-titel { display: none; }

/* ---- Präsentation (Vollbild, nur Bild und große Knöpfe) ---- */
.praes-leiste, .praes-erklaerungen { display: none; }
.planer.praesentation { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; grid-template-areas: "buehne" !important; height: 100vh; height: 100dvh; background: #cfd8d3; }
.planer.praesentation .werkzeuge, .planer.praesentation .tafel, .planer.praesentation .hinweis-tippen, .planer.praesentation .buehne-knoepfe { display: none !important; }
body.praesentation-aktiv .topbar { display: none; }
.planer.praesentation .praes-leiste { display: flex; position: absolute; left: 50%; bottom: calc(1rem + var(--unten)); transform: translateX(-50%); gap: .5rem; padding: .5rem; background: rgba(255,255,255,.92); border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.2); max-width: calc(100% - 1rem); overflow-x: auto; }
.praes-knopf { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 76px; min-height: 64px; padding: .4rem .6rem; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.praes-knopf span { font-size: 1.5rem; line-height: 1; }
.praes-knopf[aria-pressed=true] { background: var(--akzent-hell); color: var(--akzent); }
.praes-knopf.ende { color: var(--gefahr); }
.planer.praesentation .praes-erklaerungen:not([hidden]) { display: block; position: absolute; top: 1rem; right: 1rem; bottom: calc(7rem + var(--unten)); width: min(420px, calc(100% - 2rem)); overflow-y: auto; background: #fff; border-radius: 16px; padding: 0 1.2rem 1rem; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 1.05rem; }

/* ---- Tafel-Inhalte ---- */
.erklaerung { border: 1px solid var(--rand); border-radius: 10px; padding: 0 .8rem; margin: .5rem 0; }
.erklaerung summary { font-weight: 600; }
.erklaerung ul { margin: .2rem 0 .6rem; padding-left: 1.2rem; }
.erklaerung p { margin: .3rem 0 .6rem; }
.leise { color: var(--leise); font-size: .9rem; }
.ok { color: #1e6b3a; }
.notizliste { padding-left: 1.1rem; margin: .3rem 0; }
.notizliste li { margin: .3rem 0; }
button.link { border: 0; background: none; padding: 0; color: var(--akzent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.auswahlliste { display: flex; flex-direction: column; gap: .2rem; }
.auswahlliste .haken { margin: .3rem 0; }
.kuerzel-meldung ul { margin: .6rem 0; padding-left: 1.1rem; }
.kuerzel-meldung p { margin: .6rem 0; }
.kuerzel-hilfe { width: 100%; border-collapse: collapse; font-size: .85rem; }
.kuerzel-hilfe td { padding: .3rem .4rem .3rem 0; border-bottom: 1px solid var(--rand); vertical-align: top; }
.kuerzel-hilfe code { white-space: normal; color: var(--akzent); }
.tafel .knopf { margin-top: .8rem; }
.unterschrift-feld { margin: .6rem 0; }
.zeile-titel { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.zeile-titel .knopf { margin: 0; }
canvas.unterschrift { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; border: 1px dashed #9aa5ad; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.qr { display: block; margin: .8rem auto; width: 220px; height: 220px; image-rendering: pixelated; }
.link-feld { font-size: .85rem !important; }
.freigabe { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--rand); font-size: .9rem; }
.freigabe .knopf { margin: 0; }

/* ---- Patientenansicht (Link ohne Anmeldung) ---- */
.ansehen-kopf { display: flex; align-items: center; gap: 1rem; padding: calc(.8rem + var(--oben)) 1rem .8rem; background: #fff; border-bottom: 1px solid var(--rand); }
.ansehen-kopf h1 { margin: 0; font-size: 1.25rem; }
.ansehen-kopf p { margin: 0; }
.praxis-logo { max-height: 48px; max-width: 160px; }
.ansehen-inhalt { max-width: 960px; }
.ansicht .buehne { position: relative; height: min(62vh, 560px); border-radius: 14px; overflow: hidden; }
.ansicht .laden { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; }
.ansicht.bereit .laden { display: none; }
.ansicht-knoepfe { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .2rem; }
.ansicht-knoepfe .praes-knopf { background: #fff; border: 1px solid var(--rand); }
.mitte { text-align: center; }
.ansehen-erklaerungen { margin-top: 1.5rem; }
.ansehen-erklaerungen h2 { font-size: 1.2rem; }
