
@font-face { font-family: "Bricolage Grotesque"; src: url("/schrift/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* Eine helle Seite hinter der geöffneten Tür. Hell = Farbprofil Nebel (das Tagespaar zu Nacht),
   dunkel = Nacht: so dunkel wie die Vorabseite und wie die App selbst in den Telefonrahmen. */
:root {
  --hg: #eef1f4;
  --karte: #fafbfc;
  --erhoben: #e3e8ee;
  --rand: #c8d1db;
  --text: #232b33;
  --leise: #5a6673;
  --akzent: #1f5f80;
  --akzent-hg: #d7e6ef;
  --auf-akzent: #fafbfc;
  --licht: #7dd3fc;
  --nacht: #14161a;
  --nacht-erhoben: #1d2027;
  --nacht-karte: #23272f;
  --nacht-eigen: #2b4a63;
  --nacht-rand: #2a2e37;
  --nacht-text: #e6e8ec;
  --nacht-leise: #8a90a0;
  --offen-hg: #f2e6c8;
  --offen-text: #544310;
  --schrift: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --breite: 1080px;
  --spalt-platz: clamp(40px, 11vw, 150px);
  color-scheme: light;
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--hg); color: var(--text);
  font-family: var(--schrift); font-size: 18px; line-height: 1.55; overflow-wrap: break-word;
}
button, input { font: inherit; }
[hidden] { display: none !important; }
a { color: var(--akzent); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.innen { max-width: var(--breite); margin: 0 auto; }
section.band { padding-block: clamp(56px, 9vw, 104px); }
.kopfzeile { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.kopfzeile h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; }
.kopfzeile p { color: var(--leise); max-width: 60ch; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; font-size: 19px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.knopf:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(31, 95, 128, .28); }
.leiser-link { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Kopf ---------- */
.kopf { padding-block: max(28px, env(safe-area-inset-top, 0px)) clamp(56px, 8vw, 96px);
  background: radial-gradient(120% 90% at 100% 0%, #ffffff 0%, rgba(255,255,255,0) 60%), var(--hg); }
.oben { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(36px, 6vw, 72px); }
.marke-klein { font-weight: 800; font-size: 26px; color: var(--akzent); letter-spacing: -.02em; line-height: 1; }
.oben nav { display: flex; gap: 20px; font-size: 16px; }
.oben nav a { color: var(--text); text-decoration: none; }
.oben nav a:hover { color: var(--akzent); }
@media (max-width: 640px) { .oben nav a:not(.nav-leitung) { display: none; } }
.oben nav a.nav-leitung { border: 1.5px solid var(--akzent); border-radius: 999px; padding: 5px 14px; margin-block: -6px; background: var(--hg); color: var(--akzent); font-weight: 700; white-space: nowrap; }
.oben nav a.nav-leitung:hover { background: var(--akzent-hg); color: var(--akzent); }
.held { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .held { grid-template-columns: minmax(0, 1fr); } }
.held-text { display: grid; gap: 24px; min-width: 0; }
.held h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; font-weight: 800; }
.held h1 .heute { color: var(--akzent); }
.held .lead { font-size: clamp(19px, 2vw, 22px); max-width: 34ch; color: var(--text); }
.preisblock { display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
.preis-zeile { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.betrag { font-weight: 800; font-size: clamp(34px, 4.6vw, 46px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.betrag-zusatz { color: var(--leise); font-size: 17px; }
.preis-satz { color: var(--leise); font-size: 16px; max-width: 46ch; }
.knopfreihe { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Telefonrahmen: die App selbst, dunkel wie sie ist */
.telefon { justify-self: center; width: min(100%, 320px); aspect-ratio: 390 / 760; max-width: 100%; position: relative;
  background: var(--nacht); border-radius: 38px; padding: 10px; box-sizing: border-box;
  box-shadow: 0 30px 60px rgba(20, 35, 50, .25), 0 0 0 1px rgba(20, 35, 50, .08); }
.telefon-schirm { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: var(--nacht); }
.telefon-schirm video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; background: var(--nacht); }
/* Kopf: Handy mit Video, darunter dauerhaft der KI-Hinweis (KI-VO Art. 50 Abs. 4) */
.held-bild { justify-self: center; width: min(100%, 320px); margin: 0; display: grid; gap: 12px; }
.held-bild .telefon { width: 100%; }
.ki-hinweis { color: var(--leise); font-size: 13px; line-height: 1.4; text-align: center; margin: 0; }
/* Ton-Knopf wie bei einer YouTube-Vorschau; sitzt knapp ueber der Eingabezeile der App, nicht auf ihrem Senden-Knopf */
.ton { position: absolute; right: 10px; bottom: calc(11.5% + 8px); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 20px; line-height: 1;
  background: rgba(10, 12, 15, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.ton:hover { background: rgba(10, 12, 15, .8); }
.ton:focus-visible { outline: 3px solid var(--licht); outline-offset: 2px; }

/* ---------- Zehn Tage ---------- */
.tage { background: var(--karte); border-block: 1px solid var(--rand); }
.bahn-rahmen { display: grid; gap: 18px; }
.bahn { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.bahn::-webkit-scrollbar { display: none; }
.karte-tag { flex: 0 0 min(86%, 340px); scroll-snap-align: start; display: grid; grid-template-rows: auto auto 1fr; gap: 14px;
  background: var(--hg); border: 1px solid var(--rand); border-radius: 22px; padding: 24px; box-sizing: border-box; min-width: 0; }
.karte-tag .schmerz { color: var(--leise); font-size: 17px; line-height: 1.4; }
.karte-tag .antwort { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-top: 1px solid var(--rand); padding-top: 14px; }
.karte-tag .antwort .mehr { margin-top: auto; }
.karte-tag .antwort strong { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.karte-tag .antwort span { font-size: 16px; color: var(--text); }
.steuerung { display: flex; gap: 10px; align-items: center; }
.pfeil { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rand); background: var(--karte); color: var(--text); cursor: pointer; font-size: 22px; line-height: 1; }
.pfeil:hover { border-color: var(--akzent); color: var(--akzent); }
.steuerung .zaehler { color: var(--leise); font-size: 15px; font-variant-numeric: tabular-nums; margin-left: 6px; }

/* ---------- Nutzen: Streifen unter dem Kopf + Kacheln ---------- */
section.band.streifen { background: var(--akzent); color: var(--auf-akzent); padding-block: 0; }
.streifen .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: clamp(22px, 3.4vw, 34px); }
.streifen p { margin: 0; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.streifen p span { display: inline-block; margin-right: .35em; }
.streifen p span:last-child { color: var(--licht); margin-right: 0; }
.streifen a { color: var(--auf-akzent); font-size: 16px; font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.streifen a:focus-visible { outline-color: var(--licht); }
.nutzen { background: var(--karte); border-block: 1px solid var(--rand); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.kachel { background: var(--hg); border: 1px solid var(--rand); border-radius: 22px; padding: clamp(20px, 2.6vw, 28px); display: grid; align-content: start; gap: 12px; }
.kachel h3 { margin: 0; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -.015em; }
.kachel p { margin: 0; font-size: 16.5px; line-height: 1.5; }
.kachel p b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.kachel .vorher { color: var(--leise); }
.kachel .nachher { border-top: 1px solid var(--rand); padding-top: 12px; }
.kachel .nachher b { color: var(--akzent); }
.kachel .zahl { color: var(--text); font-weight: 700; }
.leitung .kachel { background: var(--karte); }
@media (min-width: 720px) { .leitung .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .leitung .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.leitung .fundstelle a { color: inherit; text-underline-offset: 3px; }
.nach-oben { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--akzent); color: var(--auf-akzent); cursor: pointer;
  display: grid; place-items: center; padding: 0; box-shadow: 0 6px 18px rgba(20, 35, 50, .2); transition: transform .15s ease, box-shadow .15s ease; }
.nach-oben:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 35, 50, .26); }
.nach-oben:focus-visible { outline: 3px solid var(--akzent-hg); outline-offset: 3px; }
.antwort-text td:first-child, .antwort-text th:first-child { white-space: nowrap; }
.leitung .kachel .nachher a { color: var(--akzent); text-underline-offset: 3px; }
.leitung-schluss { margin: clamp(28px, 4vw, 40px) 0 0; max-width: 60ch; font-size: 18px; }
.leitung-schluss a { color: var(--akzent); font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.fundstelle { color: var(--leise); font-size: 13px; line-height: 1.45; margin: clamp(18px, 2.4vw, 26px) 0 0; max-width: 72ch; }

/* ---------- Aus der Praxis ---------- */
.szenen { display: grid; gap: clamp(36px, 5vw, 56px); }
.szene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.szene:nth-child(even) img { order: 2; }
.szene img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; display: block; }
.szene-text { display: grid; gap: 14px; }
.szene h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.szene p { margin: 0; font-size: 17px; }
.szene p b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.szene .vorher { color: var(--leise); }
.szene .nachher b { color: var(--akzent); }
.praxis-hinweis { margin-top: 28px; }
@media (max-width: 820px) { .szene { grid-template-columns: minmax(0, 1fr); } .szene:nth-child(even) img { order: 0; } }
.wahl { font-weight: 700; }
.karte-tag .mehr { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--akzent); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.karte-tag .mehr:focus-visible { outline: 3px solid var(--licht); outline-offset: 2px; }

/* Preise: Kaufpreis allein, Zusatzwege aufklappbar (18.11., Jess: erster Blick entscheidet) */
.zusatz-titel { font-size: 23px; line-height: 1.2; font-weight: 800; margin: 0; }
.zusatz-satz { margin: 0; color: var(--leise); }
.zusatz .wahl-zeile { background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 0 18px; margin: 0; }
.wahl-zeile summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; }
.wahl-zeile summary::-webkit-details-marker { display: none; }
.wahl-zeile summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--akzent); }
.wahl-zeile[open] summary::after { content: "–"; }
.wahl-zeile summary:focus-visible { outline: 3px solid var(--licht); outline-offset: 2px; }
.wahl-inhalt { display: grid; gap: 8px; padding-bottom: 16px; }
.wahl-inhalt p { margin: 0; color: var(--leise); font-size: 16px; }
.wahl-inhalt .p { color: var(--text); font-size: 20px; font-weight: 800; }
.wahl-inhalt .stunden div { background: var(--karte); border: 1px solid var(--rand); }

/* ---------- Gast sein: die Demo ---------- */
.gast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .gast { grid-template-columns: minmax(0, 1fr); } }
.gast-text { display: grid; gap: 18px; min-width: 0; }
.gast-text ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--text); }
.stoppuhr { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 40px; color: var(--akzent); line-height: 1; }
.stoppuhr-text { color: var(--leise); font-size: 15px; }
.hinweis-sim { font-size: 14px; color: var(--leise); }
.neustart { justify-self: start; background: none; border: 1px solid var(--akzent); color: var(--akzent); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Die Demo selbst: Farben, Maße und Texte nach der echten App (public/css/app.css, Bildschirmfotos 14.11.).
   Die Farben kommen aus den echten Profilen (profile/*.json) als --d-*, gesetzt vom Skript. */
.sim { --d-hg: #14161a; --d-hg-erhoben: #1d2027; --d-hg-karte: #23272f; --d-eigen: #2b4a63; --d-rand: #2a2e37; --d-text: #e6e8ec;
  --d-text-leise: #8a90a0; --d-akzent: #7dd3fc; --d-akzent-hg: #2b4a63; --d-auf-akzent: #0e1013; --d-aufhell: rgba(255, 255, 255, .08); --d-schleier: #0009;
  --d-signal: rgba(245, 158, 11, .6);
  background: var(--d-hg); color: var(--d-text); display: flex; flex-direction: column;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transition: background .25s ease, color .25s ease; }
.sim button { font: inherit; color: inherit; }
.d-marke { position: absolute; z-index: 9; top: 8px; left: 50%; transform: translateX(-50%); background: var(--d-akzent); color: var(--d-auf-akzent);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; pointer-events: none; }
.d-schritt { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.d-mitte { flex: 1; display: grid; align-content: center; gap: 14px; padding: 22px 20px; }
.d-mitte .gross { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.d-mitte .leise, .d-leise { color: var(--d-text-leise); font-size: 13px; margin: 0; }
.d-knopf { background: var(--d-akzent-hg); color: var(--d-akzent) !important; border: 1px solid var(--d-akzent); border-radius: 10px; padding: 11px; font-weight: 700 !important; cursor: pointer; }
.d-knopf:disabled { opacity: .45; cursor: default; }
.d-knopf.blinkt, .d-eingabe .senden.blinkt { background: var(--d-akzent); color: var(--d-auf-akzent) !important; animation: d-blinken 1s ease-in-out infinite; }
/* Nur der Schein pulsiert: Farben in @keyframes ignorieren !important, die Schrift verschwand sonst auf dem Höhepunkt. */
/* Jess 14.11.: der Schein pulst in einer Signalfarbe, nicht in der Knopffarbe (hellblau auf hellblau sah man schlecht).
   Bernstein; bei warmem Akzent (Mokka, Sandstein, Rosenholz, Malve) ein Türkis, gesetzt in faerben(). */
@keyframes d-blinken { 50% { box-shadow: 0 0 0 6px var(--d-signal); } }

/* QR-Code: Muster wie ein echter, aber nicht scanbar (Jess: niemand soll scannen). */
.d-qr { position: relative; justify-self: center; width: 132px; height: 132px; background: #fff; border-radius: 10px; padding: 8px; box-sizing: border-box; overflow: hidden; }
.d-qr svg { display: block; width: 100%; height: 100%; }
.d-qr .linie { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--d-akzent); box-shadow: 0 0 12px 3px rgba(125, 211, 252, .7); opacity: 0; }
.d-qr.scannt .linie { opacity: 1; animation: d-scan 1.1s ease-in-out 1 forwards; }
@keyframes d-scan { from { top: 0; } to { top: calc(100% - 3px); } }
.d-qr .erkannt { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 22, 26, .78); color: #7ddc9a; font-size: 44px; font-weight: 800; opacity: 0; transition: opacity .25s ease; }
.d-qr.fertig .erkannt { opacity: 1; }

.d-feldname { font-size: 12px; color: var(--d-text-leise); margin: 0 0 -8px; }
.d-feld { background: var(--d-hg); border: 1px solid var(--d-rand); border-radius: 10px; padding: 10px 12px; min-height: 22px; letter-spacing: .14em; color: var(--d-text); }
.d-feld.tippt { outline: 2px solid var(--d-akzent); outline-offset: 1px; }
.d-feld.tippt::after { content: ""; display: inline-block; width: 1px; height: 1.05em; background: var(--d-text); vertical-align: -2px; margin-left: 2px; animation: d-cursor .9s steps(1) infinite; }
@keyframes d-cursor { 50% { opacity: 0; } }

/* Die App: Kopf, Verlauf, Eingabe (app.css .kopf, .verlauf, .nachricht, .eingabe) */
.d-app { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.d-kopf { display: flex; align-items: center; gap: 6px; background: var(--d-hg-erhoben); border-bottom: 1px solid var(--d-rand); padding: 24px 8px 8px; }
.d-symbol { background: none; border: 0; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 17px; line-height: 1; padding: 0; position: relative; flex: none; }
.d-symbol:hover { background: var(--d-aufhell); }
.d-symbol.neues::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--d-akzent); }
.d-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.d-titel strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-titel span { color: var(--d-text-leise); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-verlauf, .d-leiste, .d-tafel, .d-panel { scrollbar-width: none; }
.d-verlauf::-webkit-scrollbar, .d-leiste::-webkit-scrollbar, .d-tafel::-webkit-scrollbar, .d-panel::-webkit-scrollbar { display: none; }
.d-verlauf { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.d-tag { align-self: center; font-size: 11px; color: var(--d-text-leise); background: var(--d-hg-karte); border: 1px solid var(--d-rand); border-radius: 999px; padding: 1px 9px; margin-bottom: 2px; }
.d-sys { color: var(--d-text-leise); font-size: 11px; text-align: center; margin: 0; }
.d-nachricht { max-width: 82%; background: var(--d-hg-karte); border-radius: 14px; padding: 7px 10px; }
.d-nachricht.eigen { align-self: flex-end; background: var(--d-eigen); }
.d-nachricht .absender { font-size: 11px; color: var(--d-akzent); font-weight: 600; }
.d-nachricht .zeit { font-size: 10px; color: var(--d-text-leise); margin-left: 5px; }
.d-nachricht .rumpf { overflow-wrap: anywhere; white-space: pre-wrap; }
/* Quellen sehen aus wie in der App, sind aber nicht anklickbar (Jess 14.11.): niemand verlässt die Demo. */
.d-nachricht .quelle { color: var(--d-akzent); }
/* KI-Gliederung wie app.css: „## Titel“ wird eine fette Zeile mit etwas Luft darüber. */
.d-nachricht .rumpf .ueberschrift { display: inline-block; margin-top: .55em; font-size: 1.02em; font-weight: 700; }
.d-nachricht .rumpf .ueberschrift:first-child { margin-top: 0; }
.d-zeit { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 34px; line-height: 1; color: var(--d-akzent); }
.d-eingabe { display: flex; gap: 6px; padding: 8px; align-items: flex-end; background: var(--d-hg-erhoben); border-top: 1px solid var(--d-rand); }
/* Zwei Zeilen wie die App am Handy: dort passt „Gästezimmer · … liest mit …“ ganz hinein. */
.d-eingabe textarea { flex: 1; min-width: 0; background: var(--d-hg); border: 1px solid var(--d-rand); border-radius: 10px; padding: 7px 10px; color: var(--d-text); font: inherit; font-size: 14px; line-height: 1.35; resize: none; height: 2.7em; box-sizing: content-box; }
.d-eingabe textarea::placeholder { color: var(--d-text-leise); }
.d-eingabe .senden { min-width: 42px; height: 38px; border-radius: 10px; background: var(--d-akzent-hg); color: var(--d-akzent); border: 1px solid var(--d-akzent); cursor: pointer; font-size: 16px; }

.d-klammer { flex: none; width: 34px; height: 38px; background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--d-text-leise) !important; padding: 0; display: grid; place-items: center; }
.d-klammer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-streifen { background: var(--d-hg-erhoben); border-top: 1px solid var(--d-rand); padding: 6px 10px; font-size: 11px; color: var(--d-text-leise); }
.d-datei { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--d-text); font-size: 13px; }
.d-datei small { display: block; color: var(--d-text-leise); font-size: 11px; }
.d-datei .weg { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--d-text-leise) !important; font-size: 15px !important; }
.d-pdf { flex: none; width: 30px; height: 30px; border-radius: 6px; background: var(--d-hg); border: 1px solid var(--d-rand); display: grid; place-items: center; font-size: 8px; font-weight: 700; color: var(--d-text-leise); }
.d-kachel { display: flex; align-items: center; gap: 8px; background: var(--d-hg-karte); border-radius: 10px; padding: 8px; margin-top: 6px; }
.d-kachel small { display: block; color: var(--d-text-leise); font-size: 11px; }
.d-funke { color: var(--d-akzent); font-size: 12px; }
.d-pulst { animation: d-blinken 1s ease-in-out infinite; border-radius: 8px; }
.d-unterzeile { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--d-text-leise) !important; font-size: 11px !important; }
.d-panel { position: absolute; z-index: 3; top: 66px; left: 8px; right: 8px; max-height: calc(100% - 140px); overflow-y: auto; background: var(--d-hg-erhoben); border: 1px solid var(--d-rand);
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: grid; gap: 8px; font-size: 13px; }
.d-panel h4 { font-size: 10px; color: var(--d-text-leise); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.d-panel p { margin: 0; }
.d-panel .links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.d-panel .links button { background: none; border: 0; padding: 0; color: var(--d-text-leise) !important; text-decoration: underline; font-size: 11px !important; cursor: pointer; }
.d-panel .links button.d-pulst { color: var(--d-akzent) !important; }
.d-panel label { font-size: 11px; color: var(--d-text-leise); display: grid; gap: 3px; }
.d-panel select { background: var(--d-hg); color: var(--d-text); border: 1px solid var(--d-rand); border-radius: 8px; padding: 7px; font: inherit; }
.d-panel .erledigt { border-left: 3px solid var(--d-akzent); padding-left: 8px; color: var(--d-text-leise); }
.d-panel .qr-gross { justify-self: center; width: 150px; height: 150px; background: #fff; padding: 8px; border-radius: 6px; box-sizing: border-box; }
.d-panel .qr-gross svg { display: block; width: 100%; height: 100%; }
.d-reihe { display: flex; gap: 8px; }
.d-reihe .d-knopf { flex: 1; padding: 8px; }
.d-linkfeld { background: var(--d-hg); border: 1px solid var(--d-rand); border-radius: 8px; padding: 7px 9px; font-size: 11px; color: var(--d-text-leise); overflow-wrap: anywhere; }
.d-reihe.drei .d-knopf { font-size: 12px; padding: 7px 4px; }
.d-teilen { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; background: var(--d-hg-erhoben); border-top: 1px solid var(--d-rand); border-radius: 16px 16px 0 0;
  padding: 14px 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .4); }
.d-teilen strong { font-size: 14px; }
.d-teilen pre { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; font-size: 12px; background: var(--d-hg); border: 1px solid var(--d-rand); border-radius: 10px; padding: 9px; color: var(--d-text); }
.d-karte a.d-knopf { text-align: center; text-decoration: none; display: block; }
.d-karte .d-reihe .d-knopf { font-size: 12px; padding: 8px 4px; }
.d-dialog { position: absolute; z-index: 6; left: 14px; right: 14px; top: 30%; background: var(--d-hg-karte); border: 1px solid var(--d-rand); border-radius: 12px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.d-dialog p { margin: 0; font-size: 13px; }
.d-kurzmeldung { text-align: center; font-size: 11px; color: var(--d-text-leise); padding: 6px 10px; background: var(--d-hg); }

/* Seitenleiste (app.css .seitenleiste) */
.d-schleier { position: absolute; inset: 0; z-index: 3; background: var(--d-schleier); }
.d-leiste { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 78%; background: var(--d-hg-erhoben); border-right: 1px solid var(--d-rand);
  padding: 26px 10px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.d-leiste h3 { font-size: 11px; color: var(--d-text-leise); text-transform: uppercase; letter-spacing: .05em; margin: 6px 0 4px 4px; }
.d-eintrag { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 8px; cursor: pointer; }
.d-eintrag:hover { background: var(--d-aufhell); }
.d-eintrag.aktiv { background: var(--d-akzent-hg); color: var(--d-akzent); }
.d-eintrag span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-zahl { background: var(--d-akzent); color: var(--d-auf-akzent); border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 18px; padding: 0 5px; text-align: center; line-height: 18px; box-sizing: border-box; }
.d-direktknopf { background: none; border: 0; text-align: left; color: var(--d-text-leise) !important; padding: 6px 8px; cursor: pointer; font-size: 13px !important; }
.d-direktknopf[aria-expanded="true"] { color: var(--d-akzent) !important; }
.d-wahl { background: var(--d-hg-karte); border: 1px solid var(--d-rand); border-radius: 12px; padding: 6px; }
.d-wahl p { color: var(--d-text-leise); font-size: 11px; margin: 2px 6px 4px; }
.d-fuss { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.d-fuss .d-link { background: none; border: 0; color: var(--d-text-leise) !important; text-decoration: underline; font-size: 12px !important; cursor: pointer; padding: 0; }

/* Einstellungen (Bildschirmfoto 14.11.) */
.d-tafel { position: absolute; z-index: 5; inset: 22px 8px 8px; background: var(--d-hg-erhoben); border: 1px solid var(--d-rand); border-radius: 16px;
  padding: 14px 12px; overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.d-tafel-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.d-tafel-kopf strong { font-size: 17px; }
.d-zu { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--d-rand); background: none; cursor: pointer; font-size: 16px !important; }
.d-tafel h4 { font-size: 11px; color: var(--d-text-leise); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.d-tafel p { font-size: 12px; color: var(--d-text-leise); margin: 6px 0 0; }
.d-breit { width: 100%; background: none; border: 1px solid var(--d-rand); border-radius: 10px; padding: 8px; cursor: pointer; }
.d-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.d-profil { display: flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--d-rand); border-radius: 10px; padding: 7px 8px; cursor: pointer; text-align: left; font-size: 13px !important; min-width: 0; }
.d-profil.ganz { grid-column: 1 / -1; }
.d-profil[aria-pressed="true"] { border-color: var(--d-akzent); background: var(--d-akzent-hg); color: var(--d-akzent) !important; }
.d-muster { flex: none; width: 20px; height: 16px; border-radius: 4px; border: 1px solid var(--d-rand); overflow: hidden; display: flex; }
.d-muster i { flex: 1; }
.d-tafel .d-link { background: none; border: 0; color: var(--d-akzent) !important; text-decoration: underline; padding: 4px 0; cursor: pointer; font-size: 13px !important; }
/* Wen rufe ich an? Wie in der App (public/js/anrufwahl.js, app.css .wahlknopf), seit 1.87.0 */
.d-wahlstart { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.d-wahlknopf { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; text-align: left; background: var(--d-hg-karte); border: 1px solid var(--d-rand); border-radius: 10px; cursor: pointer; }
.d-wahlknopf strong { font-size: 14px; }
.d-wahlknopf span { font-size: 12px !important; line-height: 1.4; color: var(--d-text-leise) !important; }
.d-wahlknopf:hover, .d-wahlknopf:focus-visible { border-color: var(--d-akzent); }
.d-personen { list-style: none; margin: 8px 0 10px; padding: 0; }
.d-personen li + li { border-top: 1px solid var(--d-rand); }
.d-personen label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; padding: 4px 2px; cursor: pointer; font-size: 14px; }
.d-personen input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--d-akzent); }
.d-personen input:disabled + span { color: var(--d-text-leise); }
.d-personen small { flex-basis: 100%; padding-left: 28px; margin-top: -4px; color: var(--d-text-leise); font-size: 11px; }
.d-personen .leer { padding: 8px 2px; color: var(--d-text-leise); font-size: 13px; }
.d-anrufen { width: 100%; }
.d-anrufen:disabled { opacity: .45; cursor: default; }

/* Übergang und kurze Hinweise */
.d-karte { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 8px; background: var(--d-hg-karte); border: 1px solid var(--d-akzent); border-radius: 14px;
  padding: 14px; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.d-karte p { margin: 0; }
.d-toast { position: absolute; z-index: 7; left: 12px; right: 12px; top: 70px; background: var(--d-hg-karte); border: 1px solid var(--d-rand); border-radius: 12px;
  padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
/* Lesebestätigung an der eigenen Nachricht (Klinikdemo), wie public/js/gelesen.js */
.d-gelesen { display: block; margin: 2px 0 0 auto; background: none; border: 0; padding: 0; color: var(--d-text-leise); font-size: 10px; cursor: pointer; }
/* Vertrauliches Direktgespräch (SPECS § 4.28; chat.js vertraulichleiste, index.html vertraulichcode) */
.d-schloss { background: none; border: 0; padding: 0 4px 0 0; font-size: inherit; cursor: pointer; }
.d-vleiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; background: var(--d-hg-erhoben); border-top: 1px solid var(--d-rand); padding: 6px 10px; font-size: 11px; color: var(--d-text-leise); }
.d-vleiste .d-link { background: none; border: 0; padding: 0; color: var(--d-akzent) !important; text-decoration: underline; font-size: 11px !important; cursor: pointer; }
.d-plusreihe { display: flex; gap: 2px; }
.d-eintrag.gesperrt { flex-wrap: wrap; opacity: .55; cursor: default; }
.d-eintrag .d-grund { flex-basis: 100%; font-size: 10px; color: var(--d-text-leise); }
.d-code { font-variant-numeric: tabular-nums; font-size: 17px !important; line-height: 1.7; color: var(--d-text) !important; letter-spacing: .03em; margin: 10px 0 !important; }
/* Kein Scrollbalken im Eingabefeld (Jess 29.11.: „ganz hässlich“), scrollen geht weiter */
.d-eingabe textarea { scrollbar-width: none; }
.d-eingabe textarea::-webkit-scrollbar { display: none; }
/* ---------- Stimmen ---------- */
.stimmen { background: var(--nacht); color: var(--nacht-text); }
.stimmen .kopfzeile p { color: var(--nacht-leise); }
.stimmen-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 520px) { .stimmen-raster { grid-template-columns: minmax(0, 1fr); } }
.stimme { display: grid; gap: 14px; align-content: space-between; background: var(--nacht-erhoben); border: 1px solid var(--nacht-rand); border-radius: 20px; padding: 22px; margin: 0; }
.stimme blockquote { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
/* Großes Anführungszeichen über jeder Stimme (16.11., Jess: neben Heidi wirkten die kleinen Stimmen am Handy „mau“) */
.stimme blockquote::before { content: "“"; display: block; color: var(--licht); font-size: 52px; line-height: 1; height: 30px; font-weight: 800; }
.stimme.gross blockquote::before { font-size: 72px; height: 40px; }
.stimme figcaption { color: var(--nacht-leise); font-size: 15px; }
.stimme figcaption b { color: var(--nacht-text); }
.stimme .uebersetzung { color: var(--nacht-leise); font-size: 15px; line-height: 1.45; margin: 0; }
.stimme.gross { grid-column: 1 / -1; padding: clamp(24px, 4vw, 40px); }
.stimme:not(.gross):nth-child(even):last-child { grid-column: 1 / -1; } /* 0.4.17: vierte Stimme nicht halb allein */
.stimme.gross blockquote { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.platzhalter { border: 1px dashed var(--nacht-leise); border-radius: 10px; padding: 8px 10px; color: var(--nacht-leise); font-style: normal; font-size: 15px; }
.stimme.gross .platzhalter { font-size: 18px; font-weight: 400; }

/* ---------- Shop ---------- */
.shop-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .shop-raster { grid-template-columns: minmax(0, 1fr); } }
.kauf { background: var(--karte); border: 2px solid var(--akzent); border-radius: 24px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 20px; }
.kauf h3 { font-size: 22px; }
.kauf ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kauf li { padding-left: 28px; position: relative; }
.kauf li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--akzent); border-bottom: 2.5px solid var(--akzent); transform: rotate(-45deg); }
.zusatz { display: grid; gap: 12px; }
.zeile { background: var(--karte); border: 1px solid var(--rand); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
.zeile b { font-size: 18px; }
.zeile .p { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zeile small { grid-column: 1 / -1; color: var(--leise); font-size: 15px; line-height: 1.4; }
.stunden { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 420px) { .stunden { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stunden div { background: var(--hg); border-radius: 12px; padding: 8px; text-align: center; font-size: 14px; line-height: 1.3; }
.stunden b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.netto { color: var(--leise); font-size: 15px; }
.miete { color: var(--leise); font-size: 16px; }

/* ---------- FAQ ---------- */
.fragen { background: var(--karte); border-top: 1px solid var(--rand); }
.suche { display: grid; gap: 8px; max-width: 46rem; margin-bottom: 28px; }
.suche input { border: 1px solid var(--rand); background: var(--hg); border-radius: 14px; padding: 14px 16px; font-size: 18px; color: var(--text); }
.suche input:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--akzent-hg); }
.suche .treffer { color: var(--leise); font-size: 15px; }
.faq-gruppe { display: grid; gap: 8px; margin-bottom: 30px; max-width: 52rem; }
.faq-gruppe h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); font-weight: 600; margin-bottom: 4px; }
details { border: 1px solid var(--rand); border-radius: 14px; background: var(--hg); }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--akzent); font-weight: 800; }
details[open] summary::after { content: "–"; }
.antwort-text { padding: 0 18px 18px; display: grid; gap: 12px; font-size: 17px; max-width: 65ch; }
.antwort-text ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.antwort-text table { border-collapse: collapse; font-size: 15px; }
.antwort-text td, .antwort-text th { border-bottom: 1px solid var(--rand); padding: 6px 10px 6px 0; text-align: left; vertical-align: top; }
.tabelle { overflow-x: auto; }
.offen { background: var(--offen-hg); color: var(--offen-text); border-radius: 6px; padding: 0 6px; font-size: .92em; }
mark { background: var(--akzent-hg); color: inherit; border-radius: 3px; }

/* ---------- Fuß ---------- */
footer.band { padding-block: 32px 40px; }
.fuss { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--leise); }
.fuss a { color: var(--leise); }
.fuss .hersteller { flex-basis: 100%; }
.firma { font-weight: 700; letter-spacing: .02em; }

/* ---------- Nur im Entwurf ---------- */
.entwurf { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--offen-hg); color: var(--offen-text); border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 14px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 18px rgba(20, 35, 50, .18); max-width: calc(100vw - 24px); box-sizing: border-box; }
.entwurf button { border: 0; background: var(--offen-text); color: var(--offen-hg); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; white-space: nowrap; }

.miete-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; border: 1px solid var(--rand); border-radius: 10px; padding: 14px 16px; margin-top: 4px; }
.miete-box .titel, .wahl .titel { font-weight: 700; }
.miete-box .p, .wahl .p { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; grid-row: span 2; align-self: center; }
.miete-box .satz, .wahl .satz { color: var(--leise); font-size: 16px; }
.wahl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; border: 1px solid var(--rand); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.wahl.vorn { border: 2px solid var(--akzent); }
.wahl.vorn .satz { color: var(--text); }
.termin { font-size: 16px; border-top: 1px solid var(--rand); padding-top: 14px; margin: 6px 0 0; }
.termin a { color: var(--akzent); font-weight: 650; text-underline-offset: 4px; white-space: nowrap; }
.herstellerin { font-size: 16px; color: var(--leise); margin: 6px 0 0; }
.herstellerin b { color: var(--text); }
.zusatz-zwei { margin-top: 18px; }
.miete-box .satz, .wahl .satz, .miete-box .titel, .wahl .titel { font-weight: 400; }
.miete-box .titel, .wahl .titel { font-weight: 700; }
@media (max-width: 560px) {
  .miete-box, .wahl { grid-template-columns: minmax(0, 1fr); }
  .miete-box .p, .wahl .p { grid-row: auto; align-self: start; }
}

.ohne-abstand { margin-bottom: 0; }
