/* Realdar Web-App (/app): 1:1 wie die iOS-App. Theme wie die Website (C5, Robin 04.12.): hell Standard, dunkel nach System
   (Vor-Skript /assets/vor.*.js setzt data-theme). FARBEN NUR ÜBER TOKENS aus src/web/theme.css (der Bau verlinkt sie gehasht):
   grep -nE "#[0-9a-fA-F]{3,8}\b|rgba?\(" public/app/webapp.css muss leer sein. Lokale Kurz-Namen unten zeigen nur auf Tokens. */
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/InstrumentSans.ttf) format('truetype'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --hair: var(--line); --ink: var(--text); --ink2: var(--t2); --ink3: var(--t3); --seg: var(--inactive);
  --primary-press: var(--primary-hover); --glass: color-mix(in srgb, var(--surface) 80%, transparent);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: var(--tab-shadow); --sh-2: var(--soft-shadow); --sh-3: var(--card-shadow);
  --ease-out: cubic-bezier(.16,.68,.24,1); --ease-spring: cubic-bezier(.34,1.45,.64,1); --ease-inout: cubic-bezier(.65,0,.35,1);
  --t-press: 120ms; --t-hover: 240ms; --t-ui: 420ms; --t-pop: 650ms; --t-reveal: 950ms; --t-draw: 1400ms;
  --breite: 544px; --rand: 20px;
  --oben: env(safe-area-inset-top, 0px); --unten: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
html.blatt-offen { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: transparent;
  font: 400 16px/1.45 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden; overflow-wrap: anywhere;
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 18%, var(--bg) 100%); }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
img, svg, canvas { display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 24px; height: 24px; flex: none; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ohne-js { max-width: 420px; margin: 40px auto; padding: 0 20px; text-align: center; color: var(--ink2); }

/* Statusleisten-Kante (Safe Area): Inhalt läuft weich darunter weg */
.kante-oben { position: fixed; inset: 0 0 auto; height: var(--oben); z-index: 45; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* ── Kopf ─────────────────────────────────────────────────────────────────────────────────────────────── */
.kopf { padding: calc(var(--oben) + 14px) max(var(--rand), env(safe-area-inset-right)) 0 max(var(--rand), env(safe-area-inset-left)); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke { display: inline-flex; border-radius: 8px; margin-inline-end: auto; }
.marke .logo-d, html[data-theme="dark"] .marke .logo-l { display: none; }
html[data-theme="dark"] .marke .logo-d { display: block; }
.marke img { height: 28px; width: auto; }
.kopf-nav, .kopf-web, .kopf-sprache { display: none; }
.kopf-luna { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 2px; border: 0; background: none; font: 500 15px/1 inherit; color: var(--ink2); cursor: pointer; transition: color var(--t-hover); }
.kopf-luna:hover { color: var(--ink); }
.kopf-luna canvas { flex: none; }
.kopf-luna .l-d { display: none; }
/* Menü (schmal, wie der v3-Kopf der Website): zwei feine Linien, Blatt mit Haarlinien statt Kästen */
.kopf-menue { position: static; }
.kopf-menue summary { position: relative; width: 44px; height: 44px; margin-inline-end: -10px; list-style: none; cursor: pointer; color: var(--ink); }
.kopf-menue summary::-webkit-details-marker { display: none; }
.kopf-menue summary i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--rd-spring-tab-dur) var(--rd-spring-tab); }
.kopf-menue summary i:first-child { top: 18px; } .kopf-menue summary i:last-child { top: 25px; }
.kopf-menue[open] summary i:first-child { transform: translateY(3.5px) rotate(45deg); }
.kopf-menue[open] summary i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.kopf-blatt { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; padding: 8px var(--rand) 28px; background: var(--bg); border-bottom: 1px solid var(--hair); box-shadow: var(--sh-3); animation: ansicht var(--t-ui) var(--ease-out) both; }
.kopf-blatt ul { list-style: none; margin: 0; padding: 0; }
.kopf-blatt-links li { border-bottom: 1px solid var(--hair); }
.kopf-blatt-links a { display: flex; align-items: center; min-height: 56px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.kopf-blatt-titel { margin: 26px 0 6px; font-size: 13px; font-weight: 500; color: var(--ink3); }
.kopf-blatt-sprachen { display: flex; flex-wrap: wrap; gap: 0 22px; }
.kopf-blatt-sprachen a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15.5px; color: var(--ink2); text-decoration: none; }
.kopf-blatt-sprachen a[aria-current] { color: var(--ink); font-weight: 600; }
.kopf { position: relative; }
.laeden { display: flex; gap: 8px; }
.laden {
  height: 40px; padding: 0 14px 0 12px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.05; transition: transform var(--t-hover) var(--ease-spring);
}
.laden:hover { transform: translateY(-1px); }
.laden:active { transform: scale(.97); }
.laden .ic { width: 18px; height: 18px; }
.laden small { display: block; font-size: 9.5px; font-weight: 500; opacity: .8; letter-spacing: .01em; }
.laden b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
body:not([data-view=check]) .kopf, body[data-chat] .kopf { display: none; }

/* ── Bühne ────────────────────────────────────────────────────────────────────────────────────────────── */
.buehne { padding: 0 max(var(--rand), env(safe-area-inset-right)) calc(170px + var(--unten)) max(var(--rand), env(safe-area-inset-left)); }
body:not([data-view=check]) .buehne { padding-top: calc(var(--oben) + 14px); padding-bottom: calc(110px + var(--unten)); }
.ansicht { max-width: var(--breite); margin: 0 auto; animation: ansicht var(--t-ui) var(--ease-out) both; }
@keyframes ansicht { from { opacity: 0; transform: translateY(10px); } }

.titel { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; margin: 18px 0 0; overflow: hidden; padding-bottom: .08em; }
.titel span { display: inline-block; animation: maske 1050ms var(--ease-out) both; }
@keyframes maske { from { transform: translateY(105%); } }
.seitentitel { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 0; }

/* Vier runde Medien-Knöpfe */
.medien { display: flex; justify-content: space-between; gap: 8px; margin: 28px 0 0; padding: 0 6px; }
.medien[data-n="1"], .medien[data-n="2"], .medien[data-n="3"] { justify-content: flex-start; gap: 26px; }
.medium { display: grid; justify-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; min-width: 68px; border-radius: 20px; animation: herein var(--t-pop) var(--ease-spring) both; }
.medium:nth-child(2) { animation-delay: 60ms; } .medium:nth-child(3) { animation-delay: 120ms; } .medium:nth-child(4) { animation-delay: 180ms; }
@keyframes herein { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.medium i {
  width: 68px; height: 68px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  border: 1px solid var(--hair); box-shadow: var(--sh-2);
  transition: transform var(--t-ui) var(--ease-spring), box-shadow var(--t-hover) var(--ease-out), color var(--t-hover);
}
.medium .ic { width: 27px; height: 27px; }
.medium:hover i { transform: translateY(-3px) scale(1.05); color: var(--accent); box-shadow: var(--sh-3); }
.medium:active i { transform: scale(.94); transition-duration: var(--t-press); }

/* Fünf Knöpfe (mit „Text“): etwas kleiner, damit sie auf 320 bis 430 px in eine Reihe passen */
.medien[data-n="5"] { gap: 4px; padding: 0; }
.medien[data-n="5"] .medium { flex: 1 1 0; min-width: 0; font-size: 14px; }
.medien[data-n="5"] .medium i { width: 58px; height: 58px; }
.medien[data-n="5"] .medium .ic { width: 25px; height: 25px; }
/* „Text“ noch nicht offen: grau mit „Soon“, wie die Website (549c526); ein Tipp zeigt 3,5 s die Sprechblase darunter */
.medien { position: relative; }
.medium.bald { color: var(--ink3); cursor: default; }
.medium.bald i { position: relative; background: var(--fill); border-color: transparent; box-shadow: none; color: var(--ink3); }
.medium.bald:hover i, .medium.bald:active i { transform: none; color: var(--ink3); box-shadow: none; }
.medium.bald em { position: absolute; top: -8px; right: -10px; font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.35; color: var(--ink2); }
.medium.plopp i { animation: plopp var(--t-ui) var(--ease-spring); }
@keyframes plopp { 50% { transform: scale(1.06); } }
.text-bald-hinweis { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; max-width: min(300px, 100%); padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; box-shadow: var(--sh-2); animation: blase var(--t-ui) var(--ease-spring) both; }

/* Luna-Gruß */
.gruss { display: grid; justify-items: start; text-align: start; margin: 34px 0 0; animation: ansicht var(--t-reveal) var(--ease-out) 160ms both; }
.gruss canvas { margin: -14px 0 -8px -14px; }
.kugel-knopf { border-radius: 50%; transition: transform var(--t-pop) var(--ease-spring); }
.kugel-knopf:hover { transform: scale(1.05); }
.gruss h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.gruss p { font-size: 17px; line-height: 1.4; color: var(--ink2); max-width: 30em; margin-top: 6px; }
.kennzeichen { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink3); margin-top: 10px; }
.kennzeichen::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--real); }
.chips { display: grid; width: 100%; max-width: 420px; margin-top: 20px; border-top: 1px solid var(--hair); }
.chip {
  min-height: 50px; padding: 12px 4px; border-radius: 0; background: none; border-bottom: 1px solid var(--hair); font-size: 15.5px; font-weight: 500; letter-spacing: -.005em; color: var(--ink);
  display: flex; align-items: center; gap: 10px; text-align: start; text-decoration: none; transition: background-color var(--t-hover);
}
.chip::after { content: "\2192"; margin-inline-start: auto; padding-inline-start: 12px; font-size: 16px; color: var(--ink3); transition: transform var(--t-ui) var(--ease-spring), color var(--t-hover); }
[dir="rtl"] .chip::after { content: "\2190"; }
.chip .ic { width: 18px; height: 18px; }
.chip:hover { background: var(--row-hover); }
.chip:hover::after { color: var(--accent); transform: translateX(3px); }
.chip:active { opacity: .7; transition-duration: var(--t-press); }

/* ── Chat ─────────────────────────────────────────────────────────────────────────────────────────────── */
.chat-kopf {
  position: sticky; top: 0; z-index: 46; display: flex; align-items: center; gap: 12px; margin: 0 calc(-1 * var(--rand)); padding: calc(var(--oben) + 8px) var(--rand) 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--hair);
}
.chat-kopf canvas { margin: -9px; }
.chat-kopf div { flex: 1; min-width: 0; line-height: 1.2; }
.chat-kopf b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.chat-kopf small { font-size: 13px; color: var(--ink2); }
.rund {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-1);
  transition: transform var(--t-ui) var(--ease-spring), box-shadow var(--t-hover);
}
.rund:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.rund:active { transform: scale(.94); transition-duration: var(--t-press); }
.rund.nackt { background: none; border-color: transparent; box-shadow: none; }
.rund .ic { width: 22px; height: 22px; }

.strom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; }
.strom > * { animation: blase var(--t-ui) var(--ease-out) both; }
@keyframes blase { from { opacity: 0; transform: translateY(8px); } }
.blase { max-width: 86%; padding: 11px 16px; border-radius: 20px; font-size: 16.5px; line-height: 1.38; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.blase.ich { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-color: transparent; border-bottom-right-radius: 7px; margin-top: 8px; }
.blase.luna { border-bottom-left-radius: 7px; }
.blase a { color: var(--accent); }
.tippt { display: inline-flex; gap: 5px; padding: 16px 16px; }
.tippt i { width: 7px; height: 7px; border-radius: 50%; background: var(--seg); animation: tippt 1.1s ease-in-out infinite; }
.tippt i:nth-child(2) { animation-delay: .15s; } .tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tippt { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.strom .chips { margin: 4px 0 6px; max-width: 460px; }

/* Auftrags-Karte (Übersicht) */
.karte { width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 18px 8px 14px; margin: 4px 0; }
.karte h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; padding: 0 12px; }
.karte .neben { font-size: 13px; color: var(--ink2); padding: 2px 12px 0; }
.verteilung { display: flex; gap: 4px; padding: 12px 12px 6px; }
.verteilung span { flex: 1; height: 5px; border-radius: 3px; background: var(--seg); transition: background-color var(--t-ui) var(--ease-out); }
.verteilung .laeuft { background: none; box-shadow: inset 0 0 0 1px var(--dashed); }
.s-ai { --stufe: var(--ai-text); --stufe-f: var(--ai); } .s-possibly { --stufe: var(--poss-text); --stufe-f: var(--poss); }
.s-unclear { --stufe: var(--unclear-text); --stufe-f: var(--unclear); } .s-real { --stufe: var(--real-text); --stufe-f: var(--real); }
.verteilung [class^="s-"] { background: var(--stufe-f); }
.spaltenkopf { display: flex; justify-content: space-between; padding: 6px 12px 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink3); }
.zeile { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); text-align: left; transition: background-color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
button.zeile:not(:disabled):hover { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
button.zeile:not(:disabled):active { transform: scale(.985); transition-duration: var(--t-press); }
.zeile:disabled { cursor: default; }
li + li > .zeile { position: relative; }
li + li > .zeile::before { content: ''; position: absolute; left: 72px; right: 12px; top: 0; height: 1px; background: var(--hair); }
.bild { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--fill); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink2); position: relative; box-shadow: inset 0 0 0 1px var(--hair); }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bild .ic { width: 22px; height: 22px; }
.zeile-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.zeile-stufe { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.zeile-meta { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-zahl { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.zeile > .ic { width: 16px; height: 16px; color: var(--seg); margin-left: -6px; }
.kreis { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink2); animation: dreh .8s linear infinite; flex: none; }
@keyframes dreh { to { transform: rotate(360deg); } }
/* Mini-Skala wie die Website (Audit A8): vier Segmente 8×3 px, das aktive in Stufenfarbe */
.pos-skala { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pos-skala i, .pos-skala i.an { width: 8px; height: 3px; border-radius: 1.5px; }
.pos-skala i { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.pos-skala i.an { background: var(--stufe-f); }
.pflicht { font-size: 13px; line-height: 1.4; color: var(--ink2); }
.karte .pflicht { padding: 10px 12px 0; }

/* Preiskarte (Luna show_price) */
.staffel { padding: 8px 4px 0; display: grid; }
.staffel li { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 15px; color: var(--ink2); }
.staffel li.gewaehlt { background: var(--fill); color: var(--ink); font-weight: 600; }

/* ── Unten: Luna-Leiste + Reiter ──────────────────────────────────────────────────────────────────────── */
.unten {
  position: fixed; inset: auto 0 0; z-index: 40; pointer-events: none; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px;
  padding: 28px max(12px, env(safe-area-inset-right)) calc(8px + var(--unten)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(0deg, var(--bg) 0, var(--bg) calc(100% - 44px), color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.unten > * { pointer-events: auto; }
.luna-leiste { display: flex; align-items: center; gap: 8px; width: 100%; max-width: var(--breite); }
body:not([data-view=check]) .luna-leiste { display: none; }
.luna-leiste .rund { width: 48px; height: 48px; box-shadow: var(--sh-2); }
.luna-leiste .feld { flex: 1; min-width: 0; height: 48px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--sh-2); padding: 0 6px 0 18px; transition: box-shadow var(--t-hover), border-color var(--t-hover); }
.luna-leiste .feld:focus-within { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--sh-2), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.luna-leiste input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16.5px; outline: none; }
.luna-leiste input::placeholder { color: var(--ink3); opacity: 1; }
.senden { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); flex: none; transition: transform var(--t-ui) var(--ease-spring), background-color var(--t-hover), opacity var(--t-hover); }
.senden .ic { width: 20px; height: 20px; }
.senden:disabled { background: var(--dashed); cursor: default; }
.senden:not(:disabled):hover { transform: scale(1.06); }
.senden:not(:disabled):active { transform: scale(.92); transition-duration: var(--t-press); }

.leiste { display: flex; gap: 2px; padding: 4px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--sh-2), 0 0 0 1px var(--hair); }
.leiste a { width: 86px; height: 52px; border-radius: 16px; display: grid; justify-items: center; align-content: center; gap: 1px; font-size: 11.5px; font-weight: 600; text-decoration: none; transition: background-color var(--t-hover), color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
.leiste a .ic { width: 23px; height: 23px; }
.leiste a:active { transform: scale(.94); transition-duration: var(--t-press); }
.leiste a[aria-current=page] { color: var(--accent); }

/* ── Knöpfe ───────────────────────────────────────────────────────────────────────────────────────────── */
.knopf {
  min-height: 54px; padding: 0 28px; border-radius: var(--radius-knopf); background: var(--primary); color: var(--on-primary); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; text-align: center;
  box-shadow: var(--sh-1), 0 8px 20px -6px color-mix(in srgb, var(--primary) 45%, transparent);
  transition: transform var(--t-hover) var(--ease-spring), box-shadow var(--t-hover) var(--ease-out), background-color var(--t-hover), opacity var(--t-hover);
}
.knopf:hover { transform: translateY(-1px); box-shadow: var(--sh-1), 0 14px 28px -8px color-mix(in srgb, var(--primary) 50%, transparent); }
.knopf:active { transform: scale(.97); background: var(--primary-press); transition-duration: var(--t-press); }
.knopf[aria-disabled=true] { opacity: .45; box-shadow: none; }
.knopf:disabled { opacity: .6; cursor: default; transform: none; }
.knopf .kreis { border-color: color-mix(in srgb, var(--on-primary) 35%, transparent); border-top-color: var(--on-primary); }
.knopf.breit { width: 100%; }
.knopf-zweit { min-height: 44px; padding: 0 20px; border-radius: var(--radius-knopf); background: var(--surface); border: 1px solid var(--line-strong); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: border-color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
.knopf-zweit:hover { border-color: var(--t3); }
.knopf-zweit:active { transform: scale(.97); transition-duration: var(--t-press); }
.knopf-zweit .ic { width: 18px; height: 18px; }
.textlink { font-size: 14.5px; color: var(--ink2); padding: 8px 12px; border-radius: 10px; text-decoration: none; transition: color var(--t-hover); }
.textlink:hover { color: var(--ink); }
.textlink.rot { color: var(--ai-text); }

/* ── Blatt ────────────────────────────────────────────────────────────────────────────────────────────── */
.schleier {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  padding: calc(var(--oben) + 16px) 8px calc(8px + var(--unten)); background: transparent;
  transition: background-color var(--t-ui) var(--ease-out), backdrop-filter var(--t-ui) var(--ease-out), -webkit-backdrop-filter var(--t-ui) var(--ease-out);
}
.schleier.mitte { align-items: center; padding-left: 20px; padding-right: 20px; }
.schleier.offen { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.blatt {
  position: relative; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 26px 22px 20px;
  transform: translateY(calc(100% + 40px)); transition: transform 520ms var(--ease-out);
}
.blatt::-webkit-scrollbar { display: none; }
.schleier.offen .blatt { transform: none; }
.schleier.mitte .blatt { max-width: 400px; transform: translateY(12px) scale(.96); opacity: 0; transition: transform var(--t-pop) var(--ease-spring), opacity var(--t-hover) var(--ease-out); }
.schleier.mitte.offen .blatt { transform: none; opacity: 1; }
.griff { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line-strong); }
.schleier.mitte .griff { display: none; }
.blatt-zu { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; z-index: 2; transition: transform var(--t-ui) var(--ease-spring), background-color var(--t-hover); }
.blatt-zu .ic { width: 16px; height: 16px; }
.blatt-zu:hover { background: color-mix(in srgb, var(--text) 7%, var(--fill)); transform: scale(1.06); }
.blatt h2 { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.025em; padding-right: 40px; }
.blatt-unter { font-size: 16.5px; line-height: 1.4; margin-top: 10px; }
.blatt-unter.leise, .leise { color: var(--ink2); }
.blatt-knoepfe { display: grid; justify-items: center; gap: 4px; margin-top: 22px; }
.blatt-fuss { font-size: 12.5px; line-height: 1.6; color: var(--ink3); text-align: center; margin-top: 12px; }
.blatt-fuss a { text-underline-offset: 2px; }
.blatt-kugel { display: grid; justify-items: center; margin: -6px 0 6px; }
.marke-test { position: absolute; top: 22px; right: 58px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.punkte { margin: 12px 0 0; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.35; }
.punkte li { display: flex; gap: 10px; }
.punkte li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-top: .5em; flex: none; }

/* Bezahlblatt „Ready to check“ */
.preiskarte { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; margin-top: 18px; padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--zone)); box-shadow: var(--sh-1); }
.preiskarte b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.preiskarte span { display: block; font-size: 14.5px; color: var(--ink2); margin-top: 2px; }
.preiskarte .summe { text-align: right; flex: 0 0 auto; max-width: 62%; }   /* Landeswährung: langer Betrag schrumpft (webapp.js fitAll), nie umbrechen */
[data-fit] { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.preiskarte .summe b { font-size: 34px; line-height: 1; letter-spacing: -.03em; animation: preis var(--t-pop) var(--ease-spring) both; }
@keyframes preis { from { opacity: 0; transform: translateY(6px) scale(.92); } }
.preiskarte .summe span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.preiskarte .laedt { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink2); margin: 0; }
.ruhig { margin-top: 20px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.kacheln { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kachel { position: relative; width: 68px; height: 68px; animation: herein var(--t-pop) var(--ease-spring) both; }
.kachel .bild { width: 100%; height: 100%; border-radius: var(--r-md); }
.kachel .bild .ic { width: 26px; height: 26px; }
.kachel.d-rejected .bild { box-shadow: inset 0 0 0 1.5px var(--ai); }
.kachel.d-rejected .bild img { opacity: .35; }
.kachel .dauer { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 600; color: var(--photo-text); background: var(--photo-label); padding: 1px 5px; border-radius: 6px; }
.kachel .balken { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--photo-text) 75%, transparent); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.kachel .balken span { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width 300ms var(--ease-out); }
.kachel .weg { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1), 0 0 0 1px var(--hair); display: grid; place-items: center; transition: transform var(--t-ui) var(--ease-spring); }
.kachel .weg::after { content: ''; position: absolute; inset: -8px; }
.kachel .weg:hover { transform: scale(1.12); }
.kachel .weg .ic { width: 12px; height: 12px; }
.kachel.dazu { border-radius: var(--r-md); border: 1.5px dashed var(--dashed); background: var(--zone); display: grid; place-items: center; color: var(--ink2); transition: border-color var(--t-hover), color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
.kachel.dazu:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.04); }
.fehlerliste { margin-top: 12px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ai-text); }
.fehlerliste b { font-weight: 600; color: var(--ink); }
.warnliste b { color: inherit; }
.warnliste { color: var(--poss-text); }
.hilfe { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.hilfe summary { cursor: pointer; font-weight: 600; margin-top: 6px; }
.hilfe ul { display: grid; gap: 4px; margin-top: 6px; }
.recht { font-size: 13px; line-height: 1.42; color: var(--ink2); margin-top: 16px; }
.recht strong { color: var(--ink); font-weight: 600; }
.haken { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--zone); font-size: 13.5px; line-height: 1.42; cursor: pointer; transition: background-color var(--t-hover); }
.haken:hover { background: var(--fill); }
.haken input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--dashed); background: var(--surface) center/14px no-repeat; flex: none; cursor: pointer; transition: background-color var(--t-hover), border-color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
.haken input:checked { background-color: var(--primary); border-color: var(--primary); transform: scale(1.04); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.haken-hinweis { font-size: 13.5px; font-weight: 600; color: var(--ai-text); margin-top: 8px; animation: blase var(--t-ui) var(--ease-out) both; }
.blatt .knopf.breit { margin-top: 16px; }
.blatt-test { font-size: 12.5px; color: var(--ink3); text-align: center; margin-top: 10px; }
.lade { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 36px 0 30px; }
.lade .kreis { width: 30px; height: 30px; border-width: 3px; }
.lade h2 { padding: 0; }

/* Ergebnis-Blatt */
.blatt.ergebnis { padding-top: 18px; max-width: 480px; }
.erg-oben { display: flex; justify-content: space-between; align-items: center; }
.erg-oben .pille { height: 44px; padding: 0 18px 0 14px; border-radius: var(--radius-knopf); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-1); display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; transition: transform var(--t-ui) var(--ease-spring), box-shadow var(--t-hover); }
.erg-oben .pille:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.erg-oben .pille .ic { width: 19px; height: 19px; }
.erg-datei { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.erg-datei div:last-child { min-width: 0; }
.erg-datei b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erg-datei span { font-size: 13.5px; color: var(--ink2); }
.ring { position: relative; width: 252px; height: 252px; margin: 12px auto 0; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-knopf { transform-box: fill-box; transform-origin: center; animation: knopf var(--t-pop) var(--ease-spring) 120ms both; }
@keyframes knopf { from { transform: scale(.6); opacity: 0; } }
.ring-mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-mitte small { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink2); }
.ring-mitte b { font-size: 64px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.ring-mitte b i { font-style: normal; font-size: 26px; letter-spacing: 0; }
.urteil { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: -8px; font-size: 27px; font-weight: 600; letter-spacing: -.025em; color: var(--stufe); text-align: center; animation: ansicht var(--t-reveal) var(--ease-out) 1100ms both; }
.urteil .pos-skala i, .urteil .pos-skala i.an { width: 10px; height: 3px; }
.urteil-zeile { text-align: center; font-size: 15.5px; line-height: 1.4; color: var(--ink2); margin: 8px auto 0; max-width: 340px; animation: ansicht var(--t-reveal) var(--ease-out) 1200ms both; }
.sofort .urteil, .sofort .urteil-zeile, .sofort .ring-knopf { animation: none; }
.zeitleiste { display: flex; align-items: flex-end; gap: 2px; height: 36px; margin: 18px 4px 0; }
.zeitleiste span { flex: 1; min-width: 1px; border-radius: 2px; background: var(--seg); }
.zeitleiste span.mittel { background: var(--poss); } .zeitleiste span.hoch { background: var(--ai); }
.zeitleiste.band { height: 8px; gap: 3px; align-items: stretch; margin-top: 22px; }
.zeitleiste.band span { border-radius: 4px; height: auto !important; }
.zeitachse { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); margin: 4px 4px 0; }
.warum { margin-top: 22px; }
.warum h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.warum li { padding: 12px 0; font-size: 16px; line-height: 1.35; border-bottom: 1px solid var(--hair); }
.warum li:last-child { border-bottom: 0; }
.ergebnis .pflicht { margin-top: 8px; }
.ergebnis .pflicht + .pflicht { margin-top: 6px; }

/* Pop-out-Menü */
.popout { position: fixed; z-index: 70; min-width: 210px; padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--sh-3), 0 0 0 1px var(--hair); transform-origin: var(--ursprung, bottom left); animation: popout var(--t-pop) var(--ease-spring) both; }
@keyframes popout { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.popout button, .popout a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; transition: background-color var(--t-hover); }
.popout button:hover, .popout a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.popout .ic { width: 20px; height: 20px; }

/* Ablage über dem ganzen Fenster */
.ablage-schleier { position: fixed; inset: 0; z-index: 80; padding: 16px; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: einblenden var(--t-hover) var(--ease-out) both; pointer-events: none; }
@keyframes einblenden { from { opacity: 0; } }
.ablage-schleier > div { height: 100%; border-radius: var(--r-xl); border: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent); }
.ablage-schleier .ic { width: 40px; height: 40px; animation: heben var(--t-pop) var(--ease-spring) both; }
@keyframes heben { from { transform: translateY(8px); } }
.ablage-schleier b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-top: 6px; }
.ablage-schleier small { font-size: 14.5px; color: var(--ink2); }

/* ── Verlauf ──────────────────────────────────────────────────────────────────────────────────────────── */
.unterzeile { font-size: 14px; color: var(--ink2); margin-top: 6px; }
.verlauf { margin: 14px -12px 0; }
.leer { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 22vh; color: var(--ink2); }
.leer .ic { width: 40px; height: 40px; stroke-width: 1.3; margin-bottom: 6px; }
.leer b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.leer .knopf { margin-top: 16px; }

/* ── Mehr ─────────────────────────────────────────────────────────────────────────────────────────────── */
.kopfkarte { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
.kopfkarte i { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--text) 4%, transparent); flex: none; position: relative; }
.kopfkarte i canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.kopfkarte b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.kopfkarte span { font-size: 14px; line-height: 1.35; color: var(--ink2); }
.abschnitt { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); padding: 34px 12px 4px; }
.menue li + li { border-top: 1px solid var(--hair); }
.menue li.klein { border-top: 0; margin-top: -10px; padding: 0 12px 10px 51px; }
.menue li.klein a { font-size: 13.5px; color: var(--ink2); text-decoration: none; }
.menue li.klein a:hover { color: var(--ink); }
.menue-zeile { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 8px 12px; border-radius: var(--r-md); font-size: 17px; text-align: left; text-decoration: none; transition: background-color var(--t-hover), transform var(--t-ui) var(--ease-spring); }
.menue-zeile:hover { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.menue-zeile:active { transform: scale(.985); transition-duration: var(--t-press); }
.menue-zeile > .ic:first-child { width: 23px; height: 23px; stroke-width: 1.5; }
.menue-zeile > span { flex: 1; min-width: 0; }
.menue-zeile small { display: block; font-size: 13.5px; color: var(--ink2); }
.menue-zeile em { font-style: normal; font-size: 15px; color: var(--ink2); }
.menue-zeile > .ic:last-child { width: 16px; height: 16px; color: var(--seg); }
.fuss-version { font-size: 12px; color: var(--ink3); padding: 30px 12px 0; }
.schalter { -webkit-appearance: none; appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--inactive); position: relative; margin: 0; flex: none; cursor: pointer; transition: background-color var(--t-hover); }
.schalter::after { content: ''; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--on-primary); box-shadow: var(--tab-shadow); transition: transform var(--t-ui) var(--ease-spring); }
.schalter:checked { background: var(--primary); }
.schalter:checked::after { transform: translateX(20px); }
.zwecke { margin-top: 14px; }
.zwecke li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hair); }
.zwecke li > span { flex: 1; }
.zwecke strong { display: block; font-size: 16px; font-weight: 600; }
.zwecke small { display: block; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.zwecke em { font-style: normal; font-size: 13px; color: var(--ink3); }

/* ── Schreibtisch ─────────────────────────────────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root { --breite: 560px; }
  .kopf, body:not([data-view=check]) .kopf, body[data-chat] .kopf {
    display: block; position: sticky; top: 0; z-index: 50; padding: 0 32px; background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--hair);
  }
  .kopf-innen { max-width: 1180px; height: 64px; display: flex; align-items: center; gap: 28px; }
  .laeden, .kopf-menue { display: none; }
  /* v3-Kopf der Website (Robin 04.12.: gleicher Kopf überall): Guides · How we test · Business (Grau --brand-sub, Haarlinie beim Hover) · Ask Luna · Sprache */
  .kopf-web { display: flex; align-items: center; gap: 32px; }
  .kopf-web a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink2); text-decoration: none; transition: color var(--t-hover); }
  .kopf-web a:hover { color: var(--ink); }
  /* „Business“ (Robin 04.12.): elegantes Grau wie das Lockup, Haarlinie davor, nicht unterstrichen; Hover zeichnet die Linie ein */
  .kopf-web .kopf-teams { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-sub); text-shadow: var(--brand-sub-glow); }
  .kopf-web .kopf-teams > i { width: 1px; height: 16px; background: var(--line-strong); }
  .kopf-web .kopf-teams::after { content: ""; position: absolute; inset-inline-start: 13px; inset-inline-end: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .kopf-web .kopf-teams:hover::after, .kopf-web .kopf-teams:focus-visible::after { transform: scaleX(1); }
  .kopf-luna .l-d { display: inline; } .kopf-luna .l-m { display: none; }
  .kopf-sprache { display: block; position: relative; }
  .kopf-sprache summary { display: inline-flex; align-items: center; gap: 7px; height: 36px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink2); transition: color var(--t-hover); }
  .kopf-sprache summary::-webkit-details-marker { display: none; }
  .kopf-sprache summary:hover, .kopf-sprache[open] summary { color: var(--ink); }
  .kopf-sprache summary .ic { width: 18px; height: 18px; }
  .kopf-sprache ul { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-3), 0 0 0 1px var(--hair); }
  .kopf-sprache a { display: flex; min-height: 40px; align-items: center; padding: 0 12px; border-radius: 9px; font-size: 15px; color: var(--ink); text-decoration: none; }
  .kopf-sprache a:hover { background: var(--row-hover); }
  .kopf-sprache a[aria-current] { font-weight: 600; }
  /* App-Reiter als zweite Ebene: Text, aktive Zeile mit gleitender 2-px-Linie in Akzent (webapp.js reiterMarke) */
  .kopf-nav { position: relative; display: flex; gap: 28px; max-width: 1180px; height: 44px; margin: 0 auto; align-items: stretch; }
  .kopf-nav a { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink2); transition: color var(--t-hover); }
  .kopf-nav a:hover, .kopf-nav a[aria-current=page] { color: var(--ink); }
  .kopf-nav-ind { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; border-radius: 1px; background: var(--accent); opacity: 0; transform-origin: 0 50%; }
  .kopf-nav-ind.da { opacity: 1; transition: transform var(--rd-spring-tab-dur) var(--rd-spring-tab), width var(--rd-spring-tab-dur) var(--rd-spring-tab); }
  .kante-oben, .leiste { display: none; }
  .buehne, body:not([data-view=check]) .buehne { padding-top: 0; padding-bottom: 150px; }
  body:not([data-view=check]) .buehne { padding-top: 44px; padding-bottom: 80px; }
  .titel { font-size: 56px; text-align: center; margin-top: 9vh; }
  .medien { justify-content: center; gap: 34px; margin-top: 40px; }
  .medien[data-n] { justify-content: center; gap: 34px; }
  .medium i { width: 80px; height: 80px; } .medium .ic { width: 30px; height: 30px; }
  .medien[data-n="5"] { gap: 22px; }
  .medien[data-n="5"] .medium { flex: none; min-width: 68px; font-size: 15px; }
  .medien[data-n="5"] .medium i { width: 80px; height: 80px; } .medien[data-n="5"] .medium .ic { width: 30px; height: 30px; }
  .gruss { margin-top: 48px; }
  .gruss p { max-width: 360px; }
  .seitentitel { font-size: 40px; }
  .chat-kopf { top: 109px; z-index: 30; margin: 0 -16px; padding: 10px 16px; border-radius: 0 0 20px 20px; box-shadow: none; background: color-mix(in srgb, var(--surface) 86%, transparent); }
  .strom { padding-top: 12px; }
  .unten { padding: 40px 24px 28px; background: linear-gradient(0deg, var(--bg) 0, var(--bg) 50%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
  body:not([data-view=check]) .unten { display: none; }
  .luna-leiste .rund { width: 54px; height: 54px; }
  .luna-leiste .feld { height: 54px; padding-left: 22px; }
  .senden { width: 40px; height: 40px; }
  .schleier { align-items: center; padding: 32px; }
  .blatt { padding: 30px 28px 24px; transform: translateY(12px) scale(.96); opacity: 0; transition: transform var(--t-pop) var(--ease-spring), opacity var(--t-hover) var(--ease-out); }
  .schleier.offen .blatt { opacity: 1; }
  .griff { display: none; }
  .blatt-zu { top: 18px; right: 18px; }
  .marke-test { top: 24px; right: 62px; }
  .kachel { width: 72px; height: 72px; }
  .leer { padding-top: 16vh; }
}
@media (min-width: 900px) and (max-height: 960px) {
  .blatt.ergebnis { padding-top: 22px; }
  .ring { width: 212px; height: 212px; margin-top: 4px; }
  .ring-mitte b { font-size: 54px; }
  .warum { margin-top: 16px; } .warum li { padding: 10px 0; font-size: 15.5px; }
  .blatt.ergebnis .blatt-knoepfe { margin-top: 14px; }
}
@media (max-width: 359px) {
  .medium { min-width: 0; } .medium i { width: 60px; height: 60px; }
  .medien[data-n="5"] .medium i { width: 50px; height: 50px; } .medien[data-n="5"] .medium { font-size: 13px; }
  .leiste a { width: 76px; }
  .ring { width: 210px; height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .kreis, .tippt i { animation-duration: .8s !important; }
}
/* Einwilligungsfenster (PM 05.12.): „Decline“ und „Settings“ klein als Textknöpfe in der Fußzeile */
.textknopf { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ── Text-Prüfung (TEXT-API-VERTRAG §10): Karten je Text links, Kasse bzw. Ergebnis rechts (Handy darunter) ─────────────── */
.text-kopf { display: flex; align-items: flex-start; gap: 6px; }
.text-kopf .rund { margin: 2px 0 0 -12px; }
.text-kopf .seitentitel { margin: 0; }
.text-kopf .unterzeile { font-size: 15.5px; line-height: 1.4; max-width: 34em; }
.text-pult { display: grid; gap: 18px; margin-top: 20px; }
.text-karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tkarte { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 10px 12px 14px 16px; scroll-margin-top: 90px; }
.tkarte.muss-pruefen { box-shadow: var(--sh-1), 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent); }
.tkarte.blitz { animation: haken-zeigen 1100ms var(--ease-out) backwards; }
.tkarte-kopf { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.tkarte-name { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; padding: 6px 8px; margin-left: -8px; border-radius: 10px; transition: background-color var(--t-hover); }
.tkarte-name::placeholder { color: var(--ink); opacity: 1; }
.tkarte-name:hover, .tkarte-name:focus { background: var(--fill); outline: none; }
.tkarte-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.tkarte-titel { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkarte-zahl { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.rund.klein { width: 34px; height: 34px; }
.rund.klein .ic { width: 16px; height: 16px; }
.tkarte-feld { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--zone); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; min-height: 140px; transition: border-color var(--t-hover), box-shadow var(--t-hover), background-color var(--t-hover); }
.tkarte-feld::placeholder { color: var(--ink3); opacity: 1; }
.tkarte-feld:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); background: var(--surface); }
.tkarte-ocr { font-size: 13.5px; line-height: 1.4; font-weight: 600; margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.tkarte .haken { margin-top: 10px; }
.tkarte-kurz { font-size: 13.5px; color: var(--poss-text); margin-top: 8px; }
.tkarte-fehler { font-size: 13.5px; line-height: 1.4; color: var(--ai-text); margin-top: 8px; }
.tkarte-lesen { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); padding: 20px 2px 8px; }
.text-dazu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.text-formate { font-size: 13px; line-height: 1.4; color: var(--ink2); margin-top: 10px; }
.text-kasse { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 22px 20px 18px; }
.text-kasse h2 { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.text-kasse > .leise { margin-top: 8px; font-size: 15px; }
.text-kasse .knopf.breit { margin-top: 12px; }
.text-kasse .bestellzeile { margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--ink2); text-align: left; }
.text-paket { font-size: 13.5px; color: var(--ink2); margin: 8px 4px 2px; }
.text-kasse .bestellzeile strong { font-weight: 600; }
.text-kasse .blatt-knoepfe { margin-top: 16px; }
.text-kasse .pflicht { margin-top: 12px; }
.text-liste { margin: 10px -10px 0; }
.text-pult.mit-ergebnis .text-rechts { order: -1; }   /* Handy: Ergebnisliste zuerst, Karten mit markierten Sätzen darunter */
.text-liste .zeile .kreis { margin-left: auto; }
.tkarte-urteil { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.tkarte-urteil .zeile-stufe { font-size: 19px; color: var(--stufe); }
.tkarte-urteil b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.tkarte-zeile { font-size: 14.5px; line-height: 1.4; color: var(--ink2); margin-top: 2px; }
.tkarte-hinweis { font-size: 13.5px; line-height: 1.4; margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--dashed); }
.tkarte-text { margin-top: 12px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; border-radius: var(--r-md); background: var(--zone); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.tkarte-text mark { color: inherit; border-radius: 3px; padding: 1px 0; }
.tkarte-text mark.hoch { background: color-mix(in srgb, var(--ai) 15%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ai) 45%, transparent); }
.tkarte-text mark.mittel { background: color-mix(in srgb, var(--poss) 13%, transparent); }
.tkarte-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); margin-top: 8px; }
.tkarte-legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tkarte-legende .hoch::before { background: color-mix(in srgb, var(--ai) 40%, transparent); }
.tkarte-legende .mittel::before { background: color-mix(in srgb, var(--poss) 32%, transparent); }

/* ── Schreibtisch ab 1024 px (Robin 04.12.): echtes Desktop-Layout statt gestreckter Handy-Spalte ─────────────────────────────
   Unter 1024 px gilt alles oben unverändert (Handy und Tablet abgenommen). Seite max. 1240 px, Kante 32 px wie der Kopf.
   Check: Ablage-Fläche links, Luna als feste Spalte rechts (Breiten tauschen, sobald das Gespräch läuft). History: Liste + Detail.
   More: drei Spalten in einer Karte. Ergebnis: Medium links groß, Ring und Gründe rechts. Kasse bleibt das mittige Fenster (≥ 900 px). */
@media (min-width: 1024px) {
  :root { --seite: 1240px; --kante: 32px; --kopf-h: 109px; --luna-b: clamp(360px, 30vw, 420px); }
  .kopf { padding: 0 max(var(--kante), env(safe-area-inset-right)) 0 max(var(--kante), env(safe-area-inset-left)); }
  .kopf-innen, .kopf-nav { max-width: var(--seite); }
  .buehne, body:not([data-view=check]) .buehne { padding: 28px max(var(--kante), env(safe-area-inset-right)) calc(32px + var(--unten)) max(var(--kante), env(safe-area-inset-left)); }
  .ansicht { max-width: var(--seite); }
  .unten { display: none; }
  .start { display: none; }

  /* Check: zwei Spalten über die ganze Höhe */
  .pult {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--luna-b); gap: 24px;
    height: calc(100vh - var(--kopf-h) - 60px); height: calc(100dvh - var(--kopf-h) - 60px); min-height: 560px;
    transition: grid-template-columns var(--t-reveal) var(--ease-out);
  }
  body[data-chat] .pult { grid-template-columns: 232px minmax(0, 1fr); }
  .ablage-feld {
    position: relative; isolation: isolate; overflow: hidden; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 40px 32px; border-radius: 24px; border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--panel-shadow);
    transition: border-color var(--t-hover);
  }
  .ablage-feld::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-position: center;
    -webkit-mask-image: radial-gradient(closest-side, currentColor 35%, transparent); mask-image: radial-gradient(closest-side, currentColor 35%, transparent); }
  .ablage-feld::after { content: ""; position: absolute; inset: 18px; pointer-events: none; --e: 18px; --d: 1.5px;
    background: linear-gradient(var(--corner), var(--corner)) left top / var(--e) var(--d), linear-gradient(var(--corner), var(--corner)) left top / var(--d) var(--e),
      linear-gradient(var(--corner), var(--corner)) right top / var(--e) var(--d), linear-gradient(var(--corner), var(--corner)) right top / var(--d) var(--e),
      linear-gradient(var(--corner), var(--corner)) left bottom / var(--e) var(--d), linear-gradient(var(--corner), var(--corner)) left bottom / var(--d) var(--e),
      linear-gradient(var(--corner), var(--corner)) right bottom / var(--e) var(--d), linear-gradient(var(--corner), var(--corner)) right bottom / var(--d) var(--e);
    background-repeat: no-repeat; opacity: .7; }
  .ablage-feld:hover { border-color: var(--line-strong); }
  .ablage-mitte { display: grid; justify-items: center; max-width: 600px; }
  .ablage-feld .titel { font-size: clamp(56px, 4.4vw, 72px); margin: 0; text-align: center; }
  .ablage-lead { font-size: 19px; line-height: 1.45; color: var(--ink2); margin-top: 16px; max-width: 26em; text-wrap: balance; }
  .ablage-feld .medien { margin-top: 40px; gap: 32px; }
  .ablage-feld .medien[data-n="5"] { gap: 22px; }
  .ablage-wahl { display: grid; justify-items: center; gap: 12px; margin-top: 40px; }
  .ablage-wahl .knopf { padding: 0 30px 0 26px; }
  .ablage-wahl .knopf .ic { width: 20px; height: 20px; }
  .ablage-tipp { font-size: 14px; color: var(--ink2); }
  .ablage-ruhig { margin: 6px 0 0; max-width: 34em; font-size: 13.5px; line-height: 1.45; color: var(--ink2); text-wrap: balance; }
  .ablage-max { display: none; font-size: 13px; color: var(--ink2); }
  .ablage-wahl .nur-schmal { display: none; }
  /* Gespräch läuft: Ablage wird schmal und ruhig (nur „Add files“), bleibt Ziel für weitere Dateien */
  body[data-chat] .ablage-feld { justify-content: flex-start; padding: 24px 16px; }
  body[data-chat] .ablage-feld .titel, body[data-chat] .ablage-lead, body[data-chat] .ablage-feld .medien,
  body[data-chat] .ablage-tipp, body[data-chat] .ablage-ruhig, body[data-chat] .ablage-wahl .nur-weit { display: none; }
  body[data-chat] .ablage-wahl { margin: 0; gap: 10px; }
  body[data-chat] .ablage-wahl .nur-schmal, body[data-chat] .ablage-max { display: inline; }
  body[data-chat] .ablage-wahl .knopf { min-height: 46px; padding: 0 22px 0 18px; font-size: 15.5px; }

  /* Luna-Spalte */
  .luna-spalte { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }
  .luna-spalte .chat-kopf { position: static; flex: none; margin: 0; padding: 12px 14px 12px 18px; border-radius: 0; background: none; box-shadow: 0 1px 0 var(--hair); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .luna-spalte .gruss { flex: 1; min-height: 0; margin: 0; padding: 32px 24px 8px; align-content: end; overflow-y: auto; }
  .luna-spalte .gruss .kennzeichen { display: none; }
  .luna-spalte .gruss > p { font-size: 15.5px; }
  .luna-spalte .gruss .chips { margin-top: 18px; max-width: none; }
  body[data-chat] .luna-spalte .gruss { display: none; }
  .luna-spalte .strom { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 16px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .luna-spalte .blase { max-width: min(86%, 620px); }
  .luna-spalte .strom .karte { max-width: 700px; }
  .luna-spalte .luna-leiste { flex: none; max-width: none; padding: 10px 14px 14px; }
  .luna-spalte .luna-leiste .rund { width: 48px; height: 48px; box-shadow: var(--sh-1); }
  .luna-spalte .luna-leiste .feld { height: 48px; padding-left: 18px; background: var(--zone); box-shadow: none; }
  .luna-spalte .luna-leiste .feld:focus-within { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
  .luna-spalte .senden { width: 36px; height: 36px; }

  /* Ablage über dem Fenster: größer, gleiche Aussage */
  .ablage-schleier { padding: 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .ablage-schleier > div { background: color-mix(in srgb, var(--accent) 4%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 80px -20px color-mix(in srgb, var(--accent) 35%, transparent); }
  .ablage-schleier .ic { width: 52px; height: 52px; }
  .ablage-schleier b { font-size: 30px; }
  .ablage-schleier small { font-size: 16px; }

  /* Ergebnis: Medium links groß, Ring und Gründe rechts */
  .blatt.ergebnis.desk { max-width: 1000px; padding: 28px; }
  .erg-desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .erg-links { display: grid; gap: 18px; min-width: 0; }
  .erg-rechts { min-width: 0; }
  .erg-buehne { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--bg); display: grid; place-items: center; isolation: isolate; box-shadow: inset 0 0 0 1px var(--hair); }
  .erg-buehne .hinter { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); object-fit: cover; filter: blur(36px) saturate(1.2); opacity: .5; z-index: -1; }
  .erg-buehne .vorn { width: 100%; height: 100%; object-fit: contain; }
  .erg-buehne.klein .vorn { width: 44%; height: auto; aspect-ratio: 1; border-radius: var(--r-md); box-shadow: var(--sh-3); }
  .erg-buehne.ohne-bild { color: var(--ink2); gap: 10px; align-content: center; font-size: 15px; font-weight: 600; }
  .erg-buehne.ohne-bild .ic { width: 72px; height: 72px; stroke-width: 1.4; }
  .erg-desk .erg-datei { margin: 0; }
  .erg-desk .erg-datei b { font-size: 18px; }
  .erg-desk .erg-links .blatt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; }
  .erg-desk .erg-links .textlink { padding: 8px 0; }
  .erg-desk .erg-links [data-del] { margin-left: auto; padding-left: 24px; }
  .erg-desk .erg-oben { justify-content: flex-end; gap: 10px; min-height: 44px; }
  .erg-desk .ring { margin-top: -8px; }
  .erg-desk .warum { margin-top: 18px; }

  /* Bezahlblatt */
  .blatt .warnliste { color: var(--ink2); }
  .blatt [data-kasse]:has(> [data-pay]) { display: flex; justify-content: flex-end; }
  .blatt .knopf.breit[data-pay] { width: auto; min-height: 50px; padding: 0 26px; }
  .bestellzeile { margin-top: 16px; font-size: 13px; line-height: 1.4; color: var(--ink2); text-align: right; }
  .bestellzeile strong { color: var(--ink2); font-weight: 600; }
  .bestellzeile + [data-kasse] .knopf.breit[data-pay] { margin-top: 8px; }

  /* History: Liste links, Detail rechts */
  .verlauf-kopf { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
  .verlauf-kopf .seitentitel { margin: 0; }
  .verlauf-kopf .unterzeile { margin: 0; }
  .verlauf-pult { display: grid; grid-template-columns: clamp(340px, 32vw, 420px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
  .verlauf-liste {
    position: sticky; top: calc(var(--kopf-h) + 24px); max-height: calc(100vh - var(--kopf-h) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 6px 8px 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-2);
  }
  .verlauf-liste .spaltenkopf { padding: 10px 12px 6px; }
  .verlauf-liste .verlauf { margin: 0; }
  .verlauf-liste .zeile[aria-current=true] { background: var(--fill); }
  .verlauf-liste .zeile[aria-current=true] > .ic { color: var(--accent); }
  .verlauf-liste li:has(> .zeile[aria-current=true]) + li > .zeile::before, .verlauf-liste li + li > .zeile[aria-current=true]::before { opacity: 0; }
  .verlauf-detail { min-width: 0; min-height: 480px; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-2); container-type: inline-size; }
  .verlauf-detail .erg-oben { margin-bottom: 4px; }
  .verlauf-detail.sofort .urteil, .verlauf-detail.sofort .urteil-zeile, .verlauf-detail.sofort .ring-knopf { animation: none; }
  @container (max-width: 700px) {
    .erg-desk { gap: 24px; }
    .erg-desk .ring { width: 200px; height: 200px; }
    .erg-desk .ring-mitte b { font-size: 52px; }
    .erg-desk .urteil { font-size: 23px; }
  }
  @container (max-width: 500px) {
    .erg-desk { grid-template-columns: minmax(0, 1fr); }
    .erg-rechts { order: -1; }
    .erg-buehne { aspect-ratio: 16 / 9; }
  }

  /* Text: Karten links, Kasse bzw. Ergebnis rechts (sticky) */
  .text-pult { grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 400px); gap: 24px; align-items: start; margin-top: 24px; }
  .text-rechts { position: sticky; top: calc(var(--kopf-h) + 24px); }
  .text-pult.mit-ergebnis .text-rechts { order: 0; }
  .tkarte { padding: 12px 14px 16px 18px; }
  .tkarte-feld { min-height: 200px; }
  .tkarte-text { max-height: 460px; }

  /* More: drei Spalten in einer Karte */
  .kopfkarte { margin-top: 18px; padding: 0; background: none; border: 0; box-shadow: none; }
  .mehr-gruppen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; padding: 10px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
  .gruppe { min-width: 0; padding: 0 8px 8px; }
  .gruppe + .gruppe { box-shadow: -1px 0 0 var(--hair); }
  .gruppe .abschnitt { padding-top: 18px; }
  .fuss-version { padding: 24px 0 0; }
}

/* Pflicht-Häkchen kurz hervorheben, wenn ohne Haken auf Bezahlen getippt wird (alle Breiten) */
.haken.zeigen { animation: haken-zeigen 1100ms var(--ease-out) backwards; }
@media (prefers-reduced-motion: reduce) { .haken.zeigen { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes haken-zeigen { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 25%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); } }

/* ── Prüf-Bühne mit B6-Welle (B, src/web/welle.js RDWelle.pruefung; gleiche Regeln wie home.css „Analysing-Welle“) ── */
.pruef-buehne { position: relative; margin: 0 0 16px; width: 100%; max-width: 520px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--fill); transition: opacity 420ms ease, transform 420ms cubic-bezier(.05,.7,.1,1); }
.pruef-buehne img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pruef-buehne.weg { opacity: 0; transform: scale(.98); }

/* ── Prüf-Nachricht nach CHAT-MEDIEN (B): eigene Nachricht rechtsbündig, groß (Web 560, Handy 86 %), direkt über dem Eingabefeld.
   Darunter die Ergebnis-Kachel auf voller Breite (ERGEBNIS-KARTE.md, Robin 04.12.: Medium frei, nur das Ergebnis auf der Kachel) ── */
.medien-nachricht { align-self: flex-end; width: min(560px, 100%); margin: 6px 0 4px; }
.medien-nachricht > .pb > .pb-bild { width: 86%; margin-inline-start: auto; }
@media (min-width: 1024px) { .medien-nachricht > .pb > .pb-bild { width: 100%; } }
.luna-spalte .strom > :first-child { margin-top: auto; }   /* Chat unten verankert wie ein Messenger */
.neu-ergebnis { position: sticky; bottom: 12px; align-self: center; z-index: 5; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--soft-shadow); font: 500 14px inherit; cursor: pointer; }

/* Server-Hinweis während der Prüfung (PM-Last-Check 04.12., `note`): ruhige Zeile, kein Kasten */
.pruef-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--t2); }

/* Sofortpreis + Fortschritt im Knopf (Robin 04.12.): „Preparing…“ gedimmt und gesperrt, füllt sich von links in Akzentfarbe (Upload 0–90 %,
   Vorprüfung bis 100 %), danach weicher Wechsel auf „Pay €X“. Kachel: 2-px-Haarlinie unten, die sich füllt und dann ausblendet. Nur Tokens. */
.pay-vorbereiten { position: relative; overflow: hidden; isolation: isolate; cursor: progress; box-shadow: none; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--accent-label); }
.pay-vorbereiten::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: .3; transform-origin: 0 50%; transform: scaleX(var(--fuell, 0)); transition: transform .4s ease-out; }
[dir=rtl] .pay-vorbereiten::before { transform-origin: 100% 50%; }
.knopf.pay-vorbereiten[aria-disabled=true] { opacity: 1; }   /* gedimmt über die eigenen Farben, nicht doppelt über opacity */
.pay-neu span { animation: pay-rein .32s ease-out both; }
@keyframes pay-rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kachel .balken { left: 0; right: 0; bottom: 0; height: 2px; border-radius: 0; background: color-mix(in srgb, var(--photo-text) 30%, transparent); box-shadow: none; }
.kachel .balken span { border-radius: 0; background: var(--accent); }
.kachel .balken.fertig { animation: balken-aus .5s .25s ease-out both; }
@keyframes balken-aus { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pay-vorbereiten::before { transition: none; } .pay-neu span, .kachel .balken.fertig { animation: none; } .kachel .balken.fertig { opacity: 0; } }

/* Kauf-Blatt, Text-Kasse und andere Blätter nicht flach weiß (Robin 04.12., wie die Apps): leiser Verlauf wie der Seitenhintergrund,
   Felder und Kacheln darin weiß. Nur hell; dunkel bleibt --surface. Nur Tokens (weiß → leicht getönt wie die Seite). */
html:not([data-theme="dark"]) .blatt,
html:not([data-theme="dark"]) .text-kasse { background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 22%, color-mix(in srgb, var(--fill) 55%, var(--bg)) 100%); }
html:not([data-theme="dark"]) .blatt .preiskarte { background: var(--surface); }
html:not([data-theme="dark"]) .blatt .haken,
html:not([data-theme="dark"]) .text-kasse .haken { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
html:not([data-theme="dark"]) .blatt .haken:hover,
html:not([data-theme="dark"]) .text-kasse .haken:hover { background: var(--zone); }
html:not([data-theme="dark"]) .blatt .kachel.dazu { background: var(--surface); }

/* Gelesene Texte bestätigen (Robin 04.12.): offen = gefüllter Akzent-Chip mit einem Puls, bestätigt = ruhig mit Häkchen. Nur Tokens. */
.tkarte-status { margin: 2px 0 8px; }
.tkarte-pruefen { display: inline-block; padding: 4px 10px; border-radius: var(--radius-knopf, 10px); background: var(--accent); color: var(--on-primary); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; animation: pruefen-puls 1.1s ease-out .3s 1 both; }
.tkarte-geprueft { display: inline-block; padding: 4px 2px; font-size: 12.5px; font-weight: 600; color: var(--real-text, var(--t2)); }
@keyframes pruefen-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } }
.knopf.text-review-offen { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tkarte-pruefen { animation: none; } }

/* „Works in N languages ›“ (Robin 04.12.): ruhige Zeile, Liste klappt mit der Feder der Ergebnis-Kachel auf. Nur Tokens. */
.t-sprachen { margin-top: 6px; }
.t-sprachen-knopf { padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--t2); cursor: pointer; }
.t-sprachen-knopf span { display: inline-block; transition: transform .48s cubic-bezier(.22, 1, .36, 1); }
.t-sprachen.auf .t-sprachen-knopf span { transform: rotate(90deg); }
.t-sprachen-liste { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .48s cubic-bezier(.22, 1, .36, 1); }
.t-sprachen-liste > div { overflow: hidden; }
.t-sprachen-liste p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--t2); opacity: 0; transform: translateY(-4px); transition: opacity .3s ease-out .12s, transform .48s cubic-bezier(.22, 1, .36, 1); }
.t-sprachen.auf .t-sprachen-liste { grid-template-rows: 1fr; }
.t-sprachen.auf .t-sprachen-liste p { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .t-sprachen-liste, .t-sprachen-liste p, .t-sprachen-knopf span { transition: opacity .2s; transform: none; } }

/* Sprache außerhalb der 16 (Robin 04.12.): ruhige Warnfarbe (Bernstein wie „Possibly“), kein Alarm-Rot; kein Review, Textfeld gedämpft. Nur Tokens. */
.tkarte-sprache { margin: 4px 0 10px; padding: 12px 14px; border-radius: var(--r-md, 12px); background: color-mix(in srgb, var(--poss, var(--t2)) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--poss, var(--t2)) 40%, transparent); }
.tkarte-sprache-titel { margin: 0; font-size: 14px; font-weight: 600; color: var(--poss-text, var(--text)); }
.tkarte-sprache-zeile { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--t2); }
.tkarte-sprache-link { padding: 0; border: 0; background: none; font: inherit; color: var(--accent-label, var(--primary)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tkarte.sprache-nein .tkarte-feld { opacity: .55; }
.tkarte.sprache-nein .haken.klein { display: none; }

/* Glas-Knöpfe (Robin 04.12., Wahl A0 „Glas ohne Halo“; Werte aus marke/werkzeug/knoepfe2.py .glas): Medien-Knöpfe und Text-Blatt.
   backdrop-filter + Lichtkante + Glanz oben, KEIN Halo. Nur Tokens: Weiß = --surface (hell) bzw. --text (dunkel), Indigo = --accent/--primary. */
.medium i, .glas-knopf i {
  position: relative; overflow: hidden; border: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 70%, transparent) 0%, color-mix(in srgb, var(--fill) 22%, transparent) 55%, color-mix(in srgb, var(--surface) 45%, transparent) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7);
  box-shadow: inset 0 1.2px 0 color-mix(in srgb, var(--surface) 95%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 0 0 .8px color-mix(in srgb, var(--surface) 70%, transparent), inset 0 -10px 18px -12px color-mix(in srgb, var(--accent) 18%, transparent),
    0 10px 22px -12px color-mix(in srgb, var(--primary) 38%, transparent), 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}
.medium i::before, .glas-knopf i::before { content: ''; position: absolute; left: 15%; top: 6%; width: 55%; height: 28%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--surface) 95%, transparent), transparent 70%); filter: blur(.5px); }
.medium i::after, .glas-knopf i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(200deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%, color-mix(in srgb, var(--accent-label, var(--accent)) 10%, transparent) 100%); }
.medium i .ic, .glas-knopf i .ic { position: relative; z-index: 1; }
html[data-theme="dark"] .medium i, html[data-theme="dark"] .glas-knopf i {
  background: linear-gradient(160deg, color-mix(in srgb, var(--text) 16%, transparent) 0%, color-mix(in srgb, var(--text) 5%, transparent) 55%, color-mix(in srgb, var(--text) 10%, transparent) 100%);
  box-shadow: inset 0 1.2px 0 color-mix(in srgb, var(--text) 40%, transparent), inset 0 0 0 .8px color-mix(in srgb, var(--text) 16%, transparent),
    inset 0 -10px 18px -12px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--bg) 80%, transparent);
}
html[data-theme="dark"] .medium i::before, html[data-theme="dark"] .glas-knopf i::before { background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--text) 30%, transparent), transparent 70%); }
.medium:hover i, .glas-knopf:hover i { transform: translateY(-3px) scale(1.04); color: var(--accent); }
.text-dazu { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 18px 26px; margin-top: 18px; }
.glas-knopf { display: grid; justify-items: center; gap: 10px; min-width: 64px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--text); cursor: pointer; }
.glas-knopf i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--t-ui) var(--ease-spring), color var(--t-hover); }
.glas-knopf .ic { width: 26px; height: 26px; }
.glas-knopf:active i { transform: scale(.94); }
.glas-knopf:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .glas-knopf i, .medium i { transition: none; } }

/* 0 Zeichen gelesen (Robin 04.12.): ruhiger Hinweis über der Formatzeile */
.text-hinweis { margin: 14px 0 0; font-size: 13.5px; font-weight: 600; color: var(--poss-text, var(--text)); }

/* Text-Prüfung im Chat (Robin 04.12.): eigene Nachricht rechts wie ein Foto, darunter die Ergebnis-Kachel */
.tnachricht { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 100%; }
.tnachricht .tn-karte { width: min(82%, 460px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; position: relative; overflow: hidden; }
.tnachricht .tn-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, rgba(0,0,0,.1)); mask-image: linear-gradient(#000 60%, rgba(0,0,0,.1)); }
.tnachricht .tn-meta { display: block; margin-top: 8px; font-size: 12px; color: var(--t3); }
.tnachricht .tn-erg { width: 100%; max-width: 560px; align-self: flex-start; display: flex; flex-direction: column; gap: 10px; }
.tnachricht .tn-kachel { position: relative; animation: tn-rein .5s cubic-bezier(.22,1,.36,1) both; }
.tnachricht .tn-why { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-label); cursor: pointer; }
.tnachricht .tn-fehler, .tnachricht .tn-pflicht { align-self: flex-start; margin: 0; font-size: 12.5px; color: var(--t3); }
@keyframes tn-rein { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tnachricht .tn-kachel { animation: tn-ein .2s both; } @keyframes tn-ein { from { opacity: 0; } to { opacity: 1; } } }
