/* KI-Labor: Gestaltung fuer Einsteiger. Baut auf style.css auf (gleiche Variablen, Glas nur fuer schwebende Elemente):
   Einwilligung (Dialog), Warte- und Fehlerzustaende, Startseite fuer Laien, sichtbare Fachwort-Markierung, Suchergebnisse,
   Zurueck-Knopf, Skip-Link, Checkliste, Handy-Kopf, Touch-Ziele. Wird als letztes Stylesheet geladen. */

/* ---------- Skip-Link: erscheint nur bei Tastaturfokus ---------- */
.skip{position:fixed;left:16px;top:-80px;z-index:100;display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:99px;background:var(--akzent-fl);color:var(--auf-akzent);font-weight:600;transition:top .25s var(--feder)}
.skip:focus{top:16px;text-decoration:none}

/* ---------- Fachwoerter: sichtbar markiert (Tint, Unterstrich, kleines Fragezeichen) ---------- */
.gl{background:color-mix(in srgb,var(--akzent) 11%,transparent);border-bottom:0;border-radius:6px;padding:0 3px;font-weight:500;
  text-decoration:underline;text-decoration-color:var(--akzent);text-decoration-thickness:1.5px;text-underline-offset:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.gl::after{content:"?";content:"?" / "";display:inline-grid;place-items:center;width:1.05em;height:1.05em;margin-left:.25em;border-radius:50%;background:var(--akzent-fl);color:#fff;
  font-size:.66em;font-weight:700;line-height:1;vertical-align:.14em;text-decoration:none}
.gl:hover,.gl:focus-visible{background:color-mix(in srgb,var(--akzent) 20%,transparent)}

/* ---------- Seitenleiste: groessere Gruppen, Einsteiger-Marke, "in Arbeit" ---------- */
.navkopf{min-height:40px;font-size:15px;font-weight:600;color:var(--text)}
.nav .nav-text{min-width:0}
.nav .einst{margin-left:auto;flex:none;font-size:11px;font-weight:600;color:var(--gruen);background:color-mix(in srgb,var(--gruen) 14%,transparent);padding:1px 8px;border-radius:99px;white-space:nowrap}
.nav .einst + .ok,.nav .einst + .bald{margin-left:6px}
.nav .bald{white-space:nowrap}
.seite:focus-within .nav[aria-current=page] .einst{background:rgba(255,255,255,.25);color:#fff}

/* ---------- Suche: Begriffe, leerer Treffer mit Vorschlaegen ---------- */
.such-ergebnis{margin:0 0 8px;padding:12px;border-radius:14px;background:var(--fuell);font-size:14px;line-height:1.4}
.such-ergebnis[hidden]{display:none}
.such-kopf{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--leise)}
.such-begriff+.such-begriff{margin-top:10px;padding-top:10px;border-top:.5px solid var(--linie)}
.such-begriff b{font-size:15px}
.such-begriff p,.such-leer p{margin:2px 0 6px;color:var(--leise)}
.such-leer p b{color:var(--text)}
.such-wo a{text-decoration:underline}
.such-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}

/* ---------- Seitenkopf: Zurueck, Lesehilfe, "in Arbeit" ---------- */
.zurueck-zeile{margin:0 0 8px}
.zurueck{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px 0 12px;border-radius:99px;background:var(--flaeche);color:var(--text);font-weight:500;font-size:16px}
.zurueck:hover{background:var(--flaeche3);text-decoration:none}
.zurueck svg.ic{color:var(--akzent)}
.text .lese-hilfe{display:flex;gap:10px;align-items:flex-start;margin:0 0 8px;padding:12px 16px;border-radius:14px;background:var(--flaeche);font-size:15px;line-height:1.45;color:var(--leise);max-width:66ch}
.lese-hilfe svg.ic{margin-top:2px;color:var(--akzent)}
.in-arbeit{display:flex;gap:10px;align-items:center;margin:0 0 16px;padding:12px 16px;border-radius:14px;background:color-mix(in srgb,var(--orange) 12%,var(--flaeche));font-size:16px}
.in-arbeit svg.ic{color:var(--orange)}
.lesemodus button{min-height:44px}
#ausprobieren{scroll-margin-top:calc(var(--leiste) + 8px)}

/* ---------- Startseite fuer Einsteiger ---------- */
.hero-knoepfe{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.start-lead{margin:-4px 0 16px;max-width:62ch;font-size:17px;line-height:1.45;color:var(--leise)}
.start-schritte{list-style:none;margin:0;padding:0;background:var(--flaeche);border-radius:var(--r);overflow:hidden}
.start-schritte li+li{border-top:.5px solid var(--linie)}
.start-schritte a{display:flex;align-items:center;gap:16px;min-height:72px;padding:16px 24px;color:var(--text);transition:background .2s var(--feder)}
.start-schritte a:hover{background:var(--fuell);text-decoration:none}
.start-schritte .nummer{flex:none;width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--akzent) 14%,transparent);color:var(--akzent);display:grid;place-items:center;font-size:17px;font-weight:700}
.start-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.start-text b{font-size:19px;line-height:1.25;font-weight:600;letter-spacing:-.02em}
.start-text span{font-size:15px;line-height:1.4;color:var(--leise)}
.start-text .start-min{font-size:13px;color:var(--akzent)}
.start-schritte svg.ic:last-child{color:var(--leise)}
.start-schritte .ok{flex:none;width:20px;height:20px;border-radius:50%;background:color-mix(in srgb,var(--gruen) 20%,transparent);color:var(--gruen);display:grid;place-items:center}
.start-schritte .ok svg{width:12px;height:12px;stroke-width:3}
.entscheider-box{padding:24px;border-radius:var(--r3);background:color-mix(in srgb,var(--akzent) 9%,var(--flaeche))}
.entscheider-fuss{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-size:15px;color:var(--leise)}
.start-fuss{display:grid;gap:16px}
.hinweis a{text-decoration:underline;text-underline-offset:3px}

/* ---------- Checkliste "In 3 Schritten bei dir" ---------- */
.drei-lead{margin:0 0 16px;color:var(--leise);font-size:16px}
.drei-schritte{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.drei-schritte input{position:absolute;opacity:0;width:1px;height:1px}
.drei-schritte label{display:flex;gap:16px;align-items:flex-start;min-height:44px;padding:14px 16px;border-radius:14px;background:var(--flaeche2);font-size:16px;line-height:1.45;cursor:pointer;transition:background .2s var(--feder)}
.drei-schritte .nr{flex:none;width:28px;height:28px;border-radius:50%;background:var(--akzent-fl);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:700}
.drei-schritte input:checked + label{background:color-mix(in srgb,var(--gruen) 12%,var(--flaeche2))}
.drei-schritte input:checked + label .nr{background:var(--gruen);font-size:0}
.drei-schritte input:checked + label .nr::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.drei-schritte input:focus-visible + label{outline:3px solid color-mix(in srgb,var(--akzent) 60%,transparent);outline-offset:2px}
.drei-schritte a{text-decoration:underline;text-underline-offset:3px}

/* ---------- Einwilligung vor Kamera und Mikrofon (Dialog) ---------- */
dialog.einw{border:0;padding:0;border-radius:var(--r3);width:calc(100% - 32px);max-width:520px;max-height:calc(100dvh - 32px);overflow:auto;color:var(--text);
  background:var(--glas-dicht);backdrop-filter:blur(28px) saturate(1.5);-webkit-backdrop-filter:blur(28px) saturate(1.5);box-shadow:inset 0 0 0 1px var(--glas-kante),var(--schatten)}
dialog.einw::backdrop{background:rgba(0,0,0,.42)}
.einw-kopf{display:flex;align-items:center;gap:16px;padding:28px 28px 0}
.einw-kopf h2{margin:0;font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.024em}
.einw-icon{flex:none;width:52px;height:52px;border-radius:16px;background:var(--akzent-fl);color:#fff;display:grid;place-items:center}
.einw-icon svg.ic{width:26px;height:26px}
.einw-lead{margin:16px 28px 8px;font-size:16px;color:var(--leise)}
.einw-liste{list-style:none;margin:0;padding:0 28px;display:grid;gap:14px}
.einw-liste li{display:flex;gap:14px;align-items:flex-start}
.einw-ic{flex:none;width:36px;height:36px;border-radius:12px;background:var(--fuell);color:var(--akzent);display:grid;place-items:center}
.einw-liste b{display:block;font-size:15px;font-weight:600}
.einw-liste li span:not(.einw-ic){display:block;font-size:15px;line-height:1.4;color:var(--leise)}
.einw-klein{margin:16px 28px 0;font-size:14px;line-height:1.4;color:var(--leise)}
.einw-klein a{text-decoration:underline;text-underline-offset:3px}
.einw-aktion{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:20px 28px 28px}
.einw-beispiele{padding:0 28px 24px}
.einw-beispiele .einw-klein{margin:0 0 8px}
.einw-bsp{display:flex;flex-wrap:wrap;gap:8px}
.einw-bsp a.chip{min-height:44px;color:var(--text);text-decoration:none}
@media(max-width:560px){
  .einw-aktion{flex-direction:column-reverse}
  .einw-aktion .btn{width:100%}
}

/* ---------- Last: freundliche Wartezustaende und Fehler mit Wiederholknopf ---------- */
.last-box{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--r2);background:color-mix(in srgb,var(--orange) 10%,var(--flaeche2))}
.last-box svg.ic{margin-top:2px;color:var(--orange)}
.last-text p{margin:0 0 8px;font-size:15px;line-height:1.45}
.d-meldung{flex-wrap:wrap}
.d-meldung .btn{margin-left:auto;flex:none}
.msg .meta .btn{margin-top:4px}

/* ---------- Naechster Schritt hervorgehoben (Beispiel starten) ---------- */
@keyframes puls{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--akzent) 55%,transparent)}100%{box-shadow:0 0 0 16px transparent}}
.d-hervor{box-shadow:0 0 0 4px color-mix(in srgb,var(--akzent) 35%,transparent);animation:puls 1.6s ease-out 3}

/* ---------- Touch-Ziele mindestens 44 px ---------- */
button.chip,button.klasse-btn.klasse-btn,.pfad-nav button,.btn.klein,.video .kapitel li button{min-height:44px}
@media(pointer:coarse){
  .nav,.navkopf{min-height:44px}
  details.mehr>summary{min-height:44px}
}

/* ---------- Handy: Kopf kurz, Lesemodus laeuft mit dem Text weg, Labor zuerst ---------- */
@media(max-width:960px){
  .leiste{position:relative;top:auto;height:auto;margin-bottom:0;pointer-events:auto}
  .leiste::before{display:none}
  .leiste-in{height:auto;padding:8px 16px 0}
  .leiste-titel{display:none}
  .leiste-rechts{grid-column:1/-1;justify-self:start}
  main{padding-top:8px}
  .hero-knoepfe .btn{flex:1 1 100%}
}
@media(max-width:600px){
  .zurueck-zeile{margin-bottom:0}
  .hero{padding:4px 0 24px}
  .hero-icon{display:none}
  .ueber{font-size:15px;margin-bottom:4px}
  h1{font-size:30px;margin-bottom:8px}
  .lead{font-size:17px}
  .hero:not(.gross) .kennzahlen{display:none}
  .hero.gross .hero-icon{display:grid;width:64px;height:64px;margin-bottom:16px}
  .hero.gross h1{font-size:34px}
  .block{margin-top:32px}
  .entscheider-box{padding:16px}
  .start-schritte a{padding:14px 16px;gap:12px}
}

/* ---------- Ausdrueckliche Einwilligung (biometrisch): Kontrollkaestchen, nicht vorbelegt ---------- */
.einw-box{display:flex;gap:12px;align-items:flex-start;margin:20px 28px 0;padding:14px 16px;border-radius:14px;background:var(--fuell);font-size:15px;line-height:1.4;cursor:pointer}
.einw-box input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--akzent-fl)}
.fuss-widerruf{margin:12px auto 0}
.fuss-widerruf[hidden]{display:none}
