@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0d0c;
  --flaeche: #101311;
  --flaeche-2: #151916;
  --linie: #1e2320;
  --linie-2: #2c332f;
  --text: #e7ece8;
  --text-2: #b9c2bc;
  --leise: #8e9892;
  --tau: #8fe3bd;
  --gold: #f0c36a;
  --rot: #f08a7a;
  --r: 10px;
  --r-gross: 12px;
  --schrift: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--schrift); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--tau); text-decoration: none; }
a:hover { color: #b5f0d4; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--tau); outline-offset: 2px; }
.himmel { display: none; }
.glas { background: var(--flaeche); border: 1px solid var(--linie); }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 20px; }
h3 { font-size: 14px; }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* Marke */
.marke { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; }
.tropfen { width: 10px; height: 10px; border-radius: 50%; background: var(--tau); }
.marke.gross { flex-direction: column; gap: 14px; letter-spacing: .14em; }
.marke.gross .tropfen { width: 14px; height: 14px; }

/* Knöpfe */
.knopf { border: 1px solid var(--linie-2); background: none; padding: 9px 15px; border-radius: 8px; font-weight: 500; min-height: 40px; white-space: nowrap; transition: background .15s, border-color .15s; }
.knopf:hover { background: var(--flaeche-2); }
.knopf.primaer { background: var(--tau); color: #0b0d0c; border-color: var(--tau); font-weight: 600; }
.knopf.primaer:hover { background: #a6ebcb; }
.knopf.gold { background: var(--gold); color: #1b1506; border-color: var(--gold); font-weight: 600; min-height: 44px; }
.knopf.gold:hover { background: #f5d08a; }
.knopf.leise-rand { color: var(--leise); }
.knopf:disabled { opacity: .5; cursor: default; }
.leise-knopf { background: none; border: 0; color: var(--leise); padding: 4px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.leise-knopf:hover { color: var(--text); }

/* Anmeldung */
.login { height: 100dvh; overflow-y: auto; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.login .karte { width: min(360px, 100%); padding: 36px 28px; border-radius: var(--r-gross); display: grid; gap: 16px; justify-items: center; text-align: center; }
.login h1 { font-size: 22px; letter-spacing: .14em; }
.login form { display: grid; gap: 12px; width: 100%; }
.login input { width: 100%; text-align: center; font: 500 26px/1 var(--mono); letter-spacing: .4em; padding: 14px; border-radius: 8px; border: 1px solid var(--linie-2); background: var(--bg); }
.login .knopf { width: 100%; min-height: 44px; }
.fehler { color: var(--rot); margin: 0; min-height: 1.5em; font-size: 13px; }

/* Raster */
.app { height: 100dvh; display: grid; grid-template-columns: 232px 1fr; }
.nav { border-right: 1px solid var(--linie); padding: 28px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav.glas { background: none; border-width: 0 1px 0 0; }
.nav .marke { padding: 0 12px 28px; font-size: 17px; }
.nav > button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--leise); text-align: left; position: relative; }
.nav > button:hover { color: var(--text); }
.nav > button.aktiv { background: var(--flaeche-2); color: var(--text); }
.nav .zaehler { margin-left: auto; font-size: 11px; background: var(--gold); color: #1b1506; border-radius: 9px; padding: 0 6px; font-weight: 600; }
.nav-fuss { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--linie); display: grid; gap: 6px; }
.zustand { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--leise); }
.punkt { width: 7px; height: 7px; border-radius: 50%; background: #3a433e; flex: none; }
.zustand.bereit .punkt { background: var(--tau); }
.zustand.arbeitet .punkt { background: var(--gold); animation: puls 1.4s ease-in-out infinite; }
.zustand.getrennt .punkt { background: var(--rot); }

.haupt { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 32px 48px 24px; }
.ansicht { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 1120px; margin: 0 auto; }
#v-gespraech { max-width: 760px; }
.kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 0 22px; flex-wrap: wrap; }
.kopf h2 { font-size: 22px; }
.kopf p { margin: 4px 0 0; }

/* Freigabe */
.freigabe { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--r); border: 1px solid var(--gold); animation: einblenden .25s ease; }
.fg-text { display: grid; gap: 2px; min-width: 0; }
.fg-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.fg-text strong { font-weight: 500; }
.fg-text a { font-size: 13px; }
.fg-knoepfe { display: flex; gap: 8px; }
.fg-knoepfe .knopf.leise-rand { color: var(--text); min-height: 44px; }

/* Verlauf */
.verlauf { flex: 1; min-height: 0; overflow-y: auto; padding: 0 2px 18px; display: flex; flex-direction: column; gap: 22px; overscroll-behavior: contain; }
.verlauf > * { flex-shrink: 0; }
.tag { align-self: center; font-size: 12px; color: var(--leise); }
.nachricht { max-width: 88%; display: flex; flex-direction: column; gap: 6px; animation: einblenden .2s ease; }
.blase { overflow-wrap: anywhere; }
.blase p { margin: 0 0 .6em; } .blase p:last-child { margin-bottom: 0; }
.blase ul, .blase ol { margin: .2em 0 .6em; padding-left: 1.2em; } .blase li { margin: .15em 0; }
.blase code { font: 12.5px var(--mono); background: var(--flaeche-2); padding: 1px 5px; border-radius: 4px; }
.blase pre { font: 12px/1.5 var(--mono); background: var(--flaeche); border: 1px solid var(--linie); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: .4em 0; white-space: pre; }
.blase pre code { background: none; padding: 0; }
.meta { font-size: 11.5px; color: var(--leise); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nachricht.elias { align-self: flex-end; max-width: 78%; align-items: flex-end; }
.nachricht.elias .blase { background: #17201b; padding: 10px 14px; border-radius: 12px; }
.nachricht.agent .meta, .nachricht.routine .meta, .nachricht.fehler .meta { order: -1; }
.nachricht.agent .meta::before, .nachricht.routine .meta::before, .nachricht.fehler .meta::before { content: "TAU"; color: var(--text); font-weight: 500; padding-left: 15px; background: radial-gradient(circle at 3.5px 50%, var(--tau) 3.5px, transparent 4px); }
.nachricht.fehler .meta::before { background: radial-gradient(circle at 3.5px 50%, var(--rot) 3.5px, transparent 4px); }
.nachricht.fehler .blase { color: var(--rot); }
.nachricht.routine { max-width: none; align-self: stretch; padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--r); }
.nachricht.system { align-self: center; } .nachricht.system .blase { color: var(--leise); font-size: 12.5px; }
.nachricht.system .meta { display: none; }
.kanal { font-size: 11.5px; }
.kanal::before { content: "· "; }
.datei-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--linie-2); margin: 6px 6px 0 0; }
.audio-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie-2); background: none; border-radius: 6px; padding: 3px 9px; font-size: 12px; color: var(--leise); min-height: 28px; }
.audio-knopf.spielt { color: var(--tau); border-color: var(--tau); }
.audio-knopf svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* Arbeitskarte */
.arbeit { width: min(560px, 92%); padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--linie); display: grid; gap: 10px; animation: einblenden .2s ease; }
.arbeit-kopf { display: flex; align-items: center; gap: 10px; }
.arbeit-kopf > span:nth-child(2) { font-weight: 500; }
.wellen { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: puls 1.4s infinite; }
.wellen i { display: none; }
.arbeit .zeit { margin-left: auto; font: 12px var(--mono); color: var(--leise); }
.helfer-reihe { display: flex; flex-wrap: wrap; gap: 6px; }
.helfer { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--linie-2); }
.helfer::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: puls 1.4s infinite; }
.helfer.fertig::before { background: var(--tau); animation: none; }

/* Schritte */
.schritte { display: grid; gap: 4px; font-size: 12.5px; }
.schritt { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: baseline; color: var(--leise); min-width: 0; }
.schritt .icon { color: var(--tau); text-align: center; }
.schritt.laeuft .icon { color: var(--gold); }
.schritt.fehler .icon { color: var(--rot); }
.schritt .name { color: var(--text); white-space: nowrap; }
.schritt .det { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11.5px; }
.schritt.text .det { font-family: var(--schrift); white-space: normal; }
.schritt .von { font-size: 11px; color: var(--gold); margin-right: 6px; font-family: var(--schrift); }

/* Eingabe */
.eingabe { border-radius: var(--r-gross); padding: 6px; display: grid; gap: 6px; margin-top: 4px; }
.eingabe-zeile { display: flex; align-items: flex-end; gap: 4px; }
.eingabe textarea { flex: 1; min-width: 0; resize: none; border: 0; background: none; padding: 11px 4px; max-height: 40vh; outline: none; line-height: 1.45; font-size: 15px; }
.eingabe:focus-within { border-color: var(--leise); }
.eingabe textarea::placeholder { color: var(--leise); }
.rund { width: 44px; height: 44px; border-radius: 9px; border: 0; display: grid; place-items: center; background: none; color: var(--leise); position: relative; flex: none; }
.rund:hover { color: var(--text); }
.senden { background: var(--tau); color: #0b0d0c; }
.senden:hover { background: #a6ebcb; color: #0b0d0c; }
.mikro.aufnahme { background: var(--rot); color: #0b0d0c; }
.mikro-zeit { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 11px var(--mono); color: var(--rot); }
.anhaenge { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 0; } .anhaenge:empty { display: none; }
.anhang { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 3px 4px 3px 10px; border-radius: 6px; border: 1px solid var(--linie-2); }
.anhang button { border: 0; background: none; color: var(--leise); padding: 0 6px; min-width: 32px; }

.live { display: none !important; }

/* Marken */
.logo { width: 18px; height: 18px; flex: none; object-fit: contain; }
.logo-claude { stroke: none; }
.logo-codex { color: var(--text); }
.marke-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 7px; border: 1px solid var(--linie-2); border-radius: 6px; font-size: 12px; color: var(--leise); vertical-align: middle; }
.marke-chip.claude { border-color: rgba(217, 119, 87, .35); }
.marke-chip.codex { border-color: rgba(123, 157, 255, .35); }
.org-modell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modell-wahl { appearance: none; -webkit-appearance: none; font: 12px var(--schrift); color: var(--text); background: var(--flaeche-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e9892' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; border: 1px solid var(--linie-2); border-radius: 6px; padding: 5px 28px 5px 9px; min-height: 30px; max-width: 100%; cursor: pointer; }
.modell-wahl:hover { border-color: var(--leise); }
.modell-wahl:disabled { opacity: .5; }
.modell-wahl { min-width: 200px; }
#org-info { display: flex; gap: 8px; flex-wrap: wrap; }
.org-ident span { display: block; }

/* Selbstprüfung */
.gesund { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 22px; }
.gesund-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border: 1px solid var(--linie-2); border-radius: 6px; font-size: 12px; color: var(--leise); }
.gesund-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tau); }
.gesund-chip.nein { color: var(--rot); border-color: var(--rot); } .gesund-chip.nein::before { background: var(--rot); }

/* Organisation */
.org { display: flex; flex-direction: column; gap: 40px; overflow-y: auto; padding: 4px 2px 40px; }
.org > * { flex-shrink: 0; }
.org-block h3 { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 0 0 14px; }
.org-block h3 .leise { text-transform: none; letter-spacing: 0; font-weight: 400; }
.org-tau { padding: 28px 32px; border: 1px solid var(--tau); border-radius: var(--r-gross); background: var(--flaeche); display: grid; gap: 22px; }
.org-tau-kopf { display: flex; align-items: center; gap: 18px; }
.org-tau-titel { display: grid; gap: 2px; flex: 1; min-width: 0; }
.org-tau-titel strong { font-size: 22px; font-weight: 600; }
.rund-tau { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--tau); display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--tau); }
.org-tau-zeile { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.org-zahlen { display: flex; gap: 28px; color: var(--leise); font-size: 13px; }
.org-zahlen b { color: var(--text); font-weight: 600; font-size: 18px; margin-right: 6px; }
.org-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--leise); white-space: nowrap; }
.org-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a433e; }
.org-status.arbeitet, .org-status.wartet { color: var(--gold); } .org-status.arbeitet::before { background: var(--gold); animation: puls 1.4s infinite; } .org-status.wartet::before { background: var(--gold); }
.org-status.bereit::before { background: var(--tau); }
.org-modell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ablauf { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 0; counter-reset: s; }
.ablauf li { flex: 1; display: grid; justify-items: center; gap: 10px; position: relative; min-width: 0; text-align: center; }
.ablauf li i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--linie-2); background: var(--bg); display: grid; place-items: center; font: 500 12px var(--mono); color: var(--leise); position: relative; z-index: 1; }
.ablauf li i::before { counter-increment: s; content: counter(s); }
.ablauf li::before { content: ""; position: absolute; top: 15px; left: 50%; right: -50%; height: 1px; background: var(--linie-2); }
.ablauf li:last-child::before { display: none; }
.ablauf li span { font-size: 12.5px; color: var(--leise); line-height: 1.3; padding: 0 4px; }
.ablauf li.elias i { border-color: var(--tau); color: var(--tau); }
.ablauf li.elias span { color: var(--text); }
.ablauf li.aktiv i { background: var(--gold); border-color: var(--gold); color: #1b1506; animation: puls 1.4s infinite; }
.ablauf li.aktiv span { color: var(--gold); font-weight: 500; }
.org-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.org-reihe-kontrolle { grid-template-columns: minmax(240px, 520px); }
.org-karte { display: grid; gap: 14px; align-content: start; padding: 22px 22px 20px; border: 1px solid var(--linie); border-radius: var(--r-gross); background: var(--flaeche); text-align: left; color: inherit; font: inherit; min-height: 200px; transition: border-color .15s, background .15s; }
.org-karte:hover { border-color: var(--linie-2); background: var(--flaeche-2); }
.org-karte.aktiv { border-color: var(--gold); }
.org-karte.kontrolle { border-style: dashed; border-color: rgba(123, 157, 255, .5); }
.org-karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.org-karte-kopf strong { font-size: 17px; font-weight: 600; }
.org-karte-text { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.org-befehl { padding: 8px 10px; border-radius: 8px; background: var(--flaeche-2); font: 11.5px var(--mono); color: var(--leise); overflow-wrap: anywhere; }
.org-karte-fuss { margin-top: auto; display: grid; gap: 10px; }
.org-regeln { margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.org-regeln dt { color: var(--leise); font-size: 12px; }
.org-regeln dd { margin: 0; }
.org-routinen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.org-routinen li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--linie); border-radius: var(--r); }
.org-routinen .wann { font: 13px var(--mono); color: var(--tau); }

/* Listen */
.liste { display: grid; gap: 8px; overflow-y: auto; padding: 0 0 20px; align-content: start; }
.zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: none; border: 1px solid var(--linie); text-align: left; width: 100%; }
button.zeile:hover { border-color: var(--linie-2); background: var(--flaeche); }
.zeile .titel { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .unter { font-size: 12px; color: var(--leise); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.zeile .rechts { font: 12px var(--mono); color: var(--leise); text-align: right; display: grid; justify-items: end; }
.zeile .rechts .trenner { display: none; }
.status { width: 7px; height: 7px; border-radius: 50%; background: var(--tau); }
.status.nein { background: var(--rot); } .status.laeuft { background: var(--gold); animation: puls 1.4s infinite; }
.leer { text-align: center; padding: 48px 10px; color: var(--leise); }
.leer .marke.gross { margin-bottom: 14px; }
.routine-karte { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--linie); display: grid; gap: 10px; }
.routine-karte .oben { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; min-width: 0; }
.routine-karte .wann { font: 13px var(--mono); color: var(--tau); }
.routine-karte .auftrag, .routine-karte .letzter { font-size: 13px; color: var(--leise); }

/* Gedächtnis */
.gedaechtnis { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 24px; }
.gruppe-titel { font-size: 12px; color: var(--leise); margin: 14px 12px 4px; }
.gruppe-titel:first-child { margin-top: 0; }
.ged-eintrag { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; text-align: left; width: 100%; color: var(--text); }
.ged-eintrag:hover, .ged-eintrag.aktiv { background: var(--flaeche-2); }
.ged-eintrag small { color: var(--leise); font-size: 11.5px; font-family: var(--mono); }
.lesen { border-radius: var(--r-gross); padding: 24px 28px; overflow-y: auto; min-height: 0; }
.ged-meta { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 8px; display: grid; gap: 6px; font-size: 13px; }
.ged-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.ged-meta dt { color: var(--leise); font-family: var(--mono); font-size: 12px; }
.ged-meta dd { margin: 0; }
.lesen pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.65 var(--mono); margin: 0; color: var(--text-2); }
.lesen h3, .ged-meta dd { overflow-wrap: anywhere; }
.konto-mobil { display: none; }
.lesen .zurueck { display: none; }

/* Sprachmodus */
.stimme { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); animation: einblenden .2s; }
.stimme .stimme-zu { position: static; justify-self: end; }
.stimme-mitte { align-self: center; min-height: 0; max-height: 100%; overflow-y: auto; }
.stimme-fuss { align-self: end; align-items: center; }
.stimme-mitte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 0 12px; }
.orb { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #c4f3dd, var(--tau) 45%, #2f8f66 100%); transform: scale(var(--s, 1)); transition: transform .08s linear; will-change: transform; }
.orb i:nth-child(2) { inset: -14px; background: none; border: 1.5px solid rgba(143, 227, 189, .35); transform: scale(var(--s2, 1)); transition: transform .14s linear; }
.orb i:nth-child(3) { inset: -32px; background: none; border: 1px solid rgba(143, 227, 189, .16); transform: scale(var(--s3, 1)); transition: transform .22s linear; }
.stimme.hoert .orb i:first-child { filter: brightness(1.05); }
.stimme.denkt .orb i:first-child { animation: denken 1.6s ease-in-out infinite; background: radial-gradient(circle at 40% 35%, #ffe6a6, var(--gold) 45%, #a8822f 100%); }
.stimme.denkt .orb i:nth-child(2), .stimme.denkt .orb i:nth-child(3) { animation: kreisen 3s linear infinite; border-style: dashed; border-color: rgba(240, 195, 106, .35); }
.stimme.spricht .orb i:first-child { background: radial-gradient(circle at 40% 35%, #dff9ec, var(--tau) 40%, #3fa97a 100%); }
.stimme.versteht .orb i:first-child { animation: denken 1.2s ease-in-out infinite; }
@keyframes denken { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.04); } }
@keyframes kreisen { to { transform: rotate(360deg); } }
.stimme-zustand { font-size: 15px; color: var(--leise); min-height: 1.5em; }
.stimme-text { max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--text); min-height: 2em; overflow-wrap: anywhere; }
.stimme-text .du { color: var(--leise); font-size: 15px; display: block; margin-bottom: 10px; }
.stimme-text .schritt-live { display: block; margin-top: 12px; font: 12.5px var(--mono); color: var(--leise); }
.stimme-fuss { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stimme-fuss .knopf { min-height: 48px; padding: 10px 20px; }
.stimme:not(.hoert) #stimme-stopp { visibility: hidden; }

/* Detail */
.detail { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); animation: einblenden .15s; }
.detail-karte { position: relative; width: min(760px, 100%); max-height: 86dvh; overflow-y: auto; border-radius: var(--r-gross); padding: 24px; display: grid; gap: 12px; }
.schliessen { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--leise); font-size: 24px; line-height: 1; }
.detail h3 { font-size: 16px; margin-right: 40px; }
.detail .schritte { font-size: 13px; }
.detail .schritt .det { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding-top: env(safe-area-inset-top); }
  .haupt { padding: 20px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); grid-row: 1; }
  .audio-knopf, .leise-knopf, .modell-wahl, .ged-eintrag, .anhang button { min-height: 44px; }
  .konto-mobil { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 24px; border-top: 1px solid var(--linie); margin-top: 12px; }
  .nav { grid-row: 2; flex-direction: row; justify-content: space-around; border-width: 1px 0 0 !important; border-top: 1px solid var(--linie); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 0; background: var(--bg) !important; }
  .nav .marke, .nav-fuss { display: none; }
  .nav > button { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 2px; flex: 1; align-items: center; min-height: 48px; }
  .nav > button.aktiv { background: none; color: var(--tau); }
  .nav > button svg { width: 20px; height: 20px; }
  .nav .zaehler { position: absolute; top: 2px; right: 18%; font-size: 10px; }
  .kopf { padding-bottom: 14px; flex-wrap: nowrap; align-items: flex-start; }
  #neu { padding: 8px 12px; }
  .kopf h2 { font-size: 22px; }
  .nachricht { max-width: 94%; } .nachricht.elias { max-width: 84%; }
  .eingabe { margin-bottom: 8px; border-radius: 14px; }
  .fg-knoepfe { width: 100%; } .fg-knoepfe .knopf { flex: 1; }
  .gedaechtnis { grid-template-columns: 1fr; }
  .gedaechtnis.offen .liste { display: none; }
  .lesen { padding: 16px; } .lesen .zurueck { display: inline-block; margin-bottom: 10px; }
  .zeile { grid-template-columns: auto 1fr; } .zeile .rechts { grid-column: 2; text-align: left; display: block; } .zeile .rechts .trenner { display: inline; }
  #v-organisation .kopf { flex-wrap: wrap; }
  .kopf #org-info { flex-basis: 100%; order: 3; }
  .marke-chip span { white-space: nowrap; }
  /* Organisation mobil */
  .org { gap: 28px; }
  .org-tau { padding: 20px; }
  .org-tau-titel strong { font-size: 19px; }
  .org-zahlen { gap: 18px; }
  .ablauf { flex-direction: column; align-items: stretch; gap: 14px; }
  .ablauf li { grid-template-columns: 30px 1fr; justify-items: start; text-align: left; gap: 12px; align-items: center; }
  .ablauf li::before { top: 30px; left: 15px; right: auto; width: 1px; height: 14px; }
  .org-reihe { grid-template-columns: 1fr; }
  .org-karte { min-height: 0; }
}
