/* KUKANILEA Online-Senden -- Reise (2026-09-27, dritte Fassung).
   Aufbau: eine dunkle "Reise" traegt die Erde als Buehne. Ab 1024 px steht
   links die Transfer-Konsole (sticky ueber die ganze Reise, sie dockt am
   Ende der Fragen ab), rechts Hero und Erklaerung, die an der Erde
   vorbeiscrollen. Darunter nur noch der Fuss. Unter 1024 px: Hero mit
   angeschnittener Erde, dann sofort die Karte, dann die Erklaerung.

   Farben (vierte Fassung, 2026-09-27): Terracotta und Apricot auf dunklem
   Grund, Gruen nur noch fuer Erfolg (Haken, "P2P aktiv"). Die Rollen
   folgen dem Kontrast, nicht dem Geschmack: Apricot #f26444 traegt auf
   dem Raum 6,1 : 1, mit weisser Schrift aber nur 3,1 : 1 -- die
   Hauptaktion laeuft deshalb von #b8431f nach #a8361a (5,4 und 6,6 : 1;
   tests/e2e/online-senden-ui.spec.mjs rechnet nach). */

:root {
  --akzent: #b8431f;       /* Terracotta, 5,4 : 1 auf Weiss */
  --akzent-dunkel: #8f3317;
  --akzent-tief: #a8361a;  /* Verlaufsende der Hauptaktion, 6,6 : 1 */
  --akzent-hell: #ffe6da;
  --akzent-hauch: rgba(242, 100, 68, 0.08);
  --apricot: #f26444;      /* nur auf dunklem Grund: 6,1 : 1 */
  --flaeche: #f8fafc;
  --karte-schatten: 0 25px 50px -12px rgba(15, 23, 42, 0.14);
  --weich: cubic-bezier(0.4, 0, 0.2, 1);
}

body { background: var(--flaeche); }

/* ---------------------------------------------------- Studio-Karte */
.studio-karte { background: #fff; border-radius: 20px; box-shadow: var(--karte-schatten); border: 1px solid rgba(15, 23, 42, 0.06); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.karte-titel { font-size: 18px; margin: 0 0 10px; }
.studio-karte h2 { font-size: 20px; margin: 0 0 10px; }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 210px; padding: 28px 18px; border: 2px dashed var(--akzent); border-radius: 16px; cursor: pointer; background: linear-gradient(180deg, #fff4ee 0%, #ffffff 100%); transition: background-color 0.2s var(--weich), border-color 0.2s var(--weich), transform 0.2s var(--weich), box-shadow 0.2s var(--weich); }
.dropzone:hover { background: linear-gradient(180deg, #ffe6da 0%, #ffffff 100%); }
.dropzone:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.dropzone[data-zustand="ziehen"] { border-style: solid; border-color: #c24a2c; background: var(--akzent-hauch); transform: scale(1.02); box-shadow: 0 0 0 6px rgba(194, 74, 44, 0.12); }
.dropzone[data-zustand="geladen"] { min-height: 120px; padding: 18px; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.drop-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--akzent) 0%, var(--akzent-tief) 100%); box-shadow: 0 10px 20px -6px rgba(184, 67, 31, 0.45); animation: schweben 3.2s var(--weich) infinite; }
.dropzone[data-zustand="geladen"] .drop-icon { width: 44px; height: 44px; border-radius: 12px; animation: none; }
.dropzone-text { font-size: 17px; font-weight: 700; color: #0f172a; margin-top: 6px; }
.dropzone-hint { font-size: 13.5px; color: var(--ink-3); }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
html.zieht-dateien .dropzone { animation: rahmen-puls 1.2s var(--weich) infinite; }
@keyframes rahmen-puls { 0%, 100% { box-shadow: 0 0 0 4px rgba(194, 74, 44, 0.10); } 50% { box-shadow: 0 0 0 10px rgba(194, 74, 44, 0.16); } }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#sendenBereich .knopfreihe { margin-top: 12px; }
.btn { min-height: 44px; transition: transform 0.2s var(--weich), box-shadow 0.2s var(--weich), background-color 0.2s var(--weich); }
.btn-signal { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--akzent) 0%, var(--akzent-tief) 100%); color: #fff; font: inherit; font-weight: 700; font-size: 1.15rem; border-radius: 12px; padding: 16px 28px; box-shadow: 0 10px 20px -5px rgba(184, 67, 31, 0.4); text-decoration: none; }
.btn-signal:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -6px rgba(184, 67, 31, 0.5); }
.btn-signal:active { transform: translateY(0); }
.btn-signal:focus-visible { outline: 3px solid #0f172a; outline-offset: 3px; }
.btn-signal:disabled { cursor: progress; opacity: 0.75; transform: none; }
.btn-kompakt { font-size: 15px; padding: 10px 18px; }

.auswahl { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.liste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auswahl-zeile { margin: 0; font-size: 15px; font-weight: 700; color: #0f172a; }
.datei-raster { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.datei { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.datei-typ { font: 700 11px/1 var(--font-mono); color: var(--akzent-dunkel); background: var(--akzent-hell); border-radius: 8px; padding: 9px 4px; text-align: center; overflow: hidden; }
.datei-name { font-size: 14px; overflow-wrap: anywhere; }
.datei-ordner { color: var(--ink-4); }
.datei-groesse { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.datei-weg { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink-3); cursor: pointer; border-radius: 10px; }
.datei-weg:hover { color: var(--red-ink); background: var(--red-soft); }
.datei-weg:focus-visible { outline: 3px solid var(--akzent); }
.datei-mehr { grid-template-columns: 1fr; color: var(--ink-3); font-size: 14px; }

.aktion-hinweis { margin: 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.handy-kachel { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s var(--weich), box-shadow 0.2s var(--weich), transform 0.2s var(--weich); }
.handy-kachel:hover { border-color: var(--akzent); box-shadow: 0 8px 18px -10px rgba(184, 67, 31, 0.4); transform: translateY(-1px); }
.handy-kachel:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
.handy-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--akzent); background: var(--akzent-hell); }
.handy-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.handy-text span { font-size: 13px; color: var(--ink-3); }
.qr-mini { width: 36px; height: 36px; border-radius: 6px; background:
  linear-gradient(90deg, #0f172a 25%, transparent 25% 50%, #0f172a 50% 75%, transparent 75%) 0 0 / 12px 12px,
  linear-gradient(#0f172a 25%, transparent 25% 50%, #0f172a 50% 75%, transparent 75%) 0 0 / 12px 12px; opacity: 0.25; }

/* ------------------------------------------------- laufende Ansichten */
.link-box { display: flex; gap: 8px; margin: 12px 0; }
.link-box input { flex: 1; min-width: 0; min-height: 48px; font: 13px var(--font-mono); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--flaeche); color: var(--ink); }
.qr-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qr-rahmen canvas { display: block; border-radius: 12px; border: 1px solid var(--line); }
.qr-text { margin: 0; font-size: 14px; color: var(--ink-3); max-width: 32ch; }
.ziel-hinweis { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.hinweis-wahl { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 10px; min-height: 44px; }
.hinweis-wahl input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--akzent); }

.live-signal { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #ecfdf5; color: #065f46; font-size: 13.5px; font-weight: 600; }
.live-signal[data-weg="tunnel"] { background: #eff6ff; color: #1e40af; }
.live-signal .punkt { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: puls 1.8s ease-out infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(194, 74, 44, 0.45); } 100% { box-shadow: 0 0 0 8px rgba(194, 74, 44, 0); } }

.fortschritt { --anteil: 0; position: relative; height: 16px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.fortschritt .fuellung { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(var(--anteil)); background: linear-gradient(90deg, var(--akzent), #e0512f); border-radius: inherit; }
/* Welle: laeuft nur, solange sich etwas bewegt -- sie zeigt Aktivitaet, keinen Fortschritt. */
.ansicht[data-laeuft="ja"] .fortschritt .fuellung { background-image: linear-gradient(90deg, var(--akzent), #e0512f), linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); background-size: 100% 100%, 200% 100%; background-blend-mode: screen; animation: welle 1.6s linear infinite; }
@keyframes welle { from { background-position: 0 0, 150% 0; } to { background-position: 0 0, -50% 0; } }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 10px; }
.kennzahlen > div { background: var(--flaeche); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kz-wert { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: #0f172a; }
.kz-name { font-size: 12.5px; color: var(--ink-3); }
.kurve { display: block; width: 100%; height: 80px; background: var(--flaeche); border-radius: 12px; --kurve: #b8431f; --kurve-flaeche: rgba(184, 67, 31, 0.14); }
.geduld { font-size: 15px; color: var(--ink-2); min-height: 1.4em; margin: 12px 0 4px; }
.aktuelle-datei { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; margin: 0; }
.wach-hinweis { font-size: 13px; color: var(--warn-ink); margin: 8px 0 0; }

.vorschau { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.vorschau figure { margin: 0; }
.vorschau img, .vorschau video { width: 100%; max-height: 200px; object-fit: contain; background: var(--flaeche); border-radius: 12px; }
.vorschau figcaption { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.tool-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .drop-icon, .live-signal .punkt, html.zieht-dateien .dropzone, .ansicht[data-laeuft="ja"] .fortschritt .fuellung { animation: none; }
  .dropzone, .btn, .saeulen li, .faelle li, .handy-kachel, .pf-karte { transition: none; }
  .dropzone[data-zustand="ziehen"], .btn-signal:hover, .saeulen li:hover, .faelle li:hover, .handy-kachel:hover { transform: none; }
  .pf-spur { scroll-behavior: auto; }
  .bento-fluss .strom { animation: none; }
}
@media (max-width: 520px) {
  .studio-karte { padding: 18px; border-radius: 16px; }
  .datei { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .datei-groesse { grid-column: 2; grid-row: 2; }
  .btn-signal { font-size: 1.05rem; padding: 14px 20px; }
}

/* ------------------------------------------ Vorschau und Auswahl (V3) */
.datei-typ.vs-da, .datei .vs-bild { width: 48px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; background: var(--flaeche); display: grid; place-items: center; }
.vs-bild img, .vs-bild video, .vs-bild canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-bild pre { margin: 0; padding: 4px; font: 6px/1.2 var(--font-mono); white-space: pre-wrap; overflow: hidden; height: 100%; width: 100%; color: var(--ink-3); }
.vs-kuerzel { font: 700 11px/1 var(--font-mono); color: var(--akzent-dunkel); }
.datei.mit-wahl { grid-template-columns: 24px 48px minmax(0, 1fr) auto; }
.datei-wahl, .alle-wahl input, .modus-wahl input { width: 20px; height: 20px; accent-color: var(--akzent); }
.datei-zoom { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--akzent); cursor: pointer; display: grid; place-items: center; }
.datei-zoom:hover { background: var(--akzent-hell); }
.datei-zoom:focus-visible { outline: 3px solid var(--akzent); }
.datei:has(.datei-zoom) { grid-template-columns: 48px minmax(0, 1fr) auto auto auto; }
.auswahl-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.alle-wahl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 14px; }
.auswahl-summe { font-size: 13.5px; color: var(--ink-3); }
.modus-wahl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; display: grid; gap: 4px; }
.modus-wahl legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.modus-wahl label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; padding-top: 10px; }

.gitter-bereich { border-top: 1px solid var(--line); padding-top: 12px; }
.gitter-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gitter-kopf h3 { margin: 0; font-size: 16px; }
.ansicht-schalter { display: flex; gap: 4px; }
.ansicht-schalter [aria-pressed="true"] { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent-dunkel); }
.gitter { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 520px; overflow: auto; }
.kachel { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.kachel-bild { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--flaeche); display: grid; place-items: center; overflow: hidden; font: 700 13px/1 var(--font-mono); color: var(--akzent-dunkel); }
.kachel-bild .vs-bild { position: absolute; inset: 0; width: 100%; height: 100%; animation: einblenden 0.3s var(--weich); }
.kachel-bild .vs-bild pre { font-size: 8px; }
@keyframes einblenden { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.kachel-ring { position: absolute; width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-grund { fill: rgba(255, 255, 255, 0.85); stroke: #e2e8f0; stroke-width: 4; }
.ring-wert { fill: none; stroke: var(--akzent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.25s linear; }
.kachel[data-zustand="fertig"] .kachel-ring { display: none; }
.kachel[data-zustand="wartet"] .kachel-bild { opacity: 0.55; }
.kachel-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel-groesse { font-size: 12px; color: var(--ink-3); }
.kachel-aktionen { display: flex; flex-wrap: wrap; gap: 4px; }
.kachel-aktionen .btn-sm { min-height: 36px; padding: 4px 10px; font-size: 12.5px; }
@media (pointer: coarse) { .kachel-aktionen .btn-sm { min-height: 44px; } }
.gitter[data-ansicht="liste"] { grid-template-columns: 1fr; }
.gitter[data-ansicht="liste"] .kachel { flex-direction: row; align-items: center; gap: 10px; }
.gitter[data-ansicht="liste"] .kachel-bild { width: 64px; flex: none; }
.gitter[data-ansicht="liste"] .kachel-name { flex: 1; }

/* Lightbox */
.lightbox-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 23, 42, 0.96); color: #e2e8f0; }
.lightbox-modal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: 56px minmax(0, 1fr) 56px; }
.lightbox-modal::backdrop { background: rgba(15, 23, 42, 0.7); }
.lb-kopf { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; border-bottom: 1px solid #1e293b; }
.lb-titel { margin: 0; font-weight: 700; color: #fff; overflow-wrap: anywhere; flex: 1 1 240px; }
.lb-info { margin: 0; font-size: 13px; color: #94a3b8; }
.lb-werkzeuge { display: flex; align-items: center; gap: 6px; }
.lb-prozent { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.lb-knopf { min-width: 44px; height: 44px; border: 1px solid #334155; border-radius: 10px; background: #1e293b; color: #fff; font: inherit; font-size: 18px; cursor: pointer; }
.lb-knopf:hover { background: #334155; }
.lb-knopf:focus-visible { outline: 3px solid #ff9a76; outline-offset: 2px; }
.lb-pfeil { align-self: center; justify-self: center; font-size: 28px; }
/* Feste Spalten: blendet das Telefon die Pfeile aus, rutschte die Buehne
   sonst in die erste, 0 px breite Spalte -- auf dem Handy war in der
   Lightbox nichts zu sehen (Befund 2026-09-28, Chrome-Emulation 390 px). */
.lb-zurueck { grid-column: 1; grid-row: 2; }
.lb-weiter { grid-column: 3; grid-row: 2; }
.lb-buehne { grid-column: 2; grid-row: 2; position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; min-height: 0; }
.lb-buehne img.lb-zoom { max-width: 100%; max-height: 100%; transform-origin: center; user-select: none; cursor: zoom-in; }
.lightbox-modal[data-zoom="an"] .lb-zoom { cursor: grab; }
.lb-buehne video, .lb-buehne audio { max-width: 100%; max-height: 100%; }
.lb-pdf { max-height: 100%; overflow: auto; display: grid; gap: 12px; justify-items: center; padding: 12px; touch-action: pan-y; }
.lb-pdf canvas { background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); max-width: 100%; height: auto; }
.lb-text { max-width: min(900px, 100%); max-height: 100%; overflow: auto; margin: 0; padding: 16px; background: #0b1220; border-radius: 12px; font: 13px/1.5 var(--font-mono); white-space: pre-wrap; color: #e2e8f0; }
.lb-hinweis { max-width: 46ch; text-align: center; color: #cbd5e1; }
@media (max-width: 640px) { .lightbox-modal[open] { grid-template-columns: 0 minmax(0, 1fr) 0; } .lb-pfeil { display: none; } }
@media (prefers-reduced-motion: reduce) { .kachel-bild .vs-bild { animation: none; } .ring-wert { transition: none; } }

/* ============================================================ Die Reise */
.reise { --raum: #0d0e12; --tafel: rgba(7, 11, 22, 0.86); --tafel-rand: rgba(148, 163, 184, 0.16); --hell: #e2e8f0; --mittel: #aab6c8;
  position: relative; background: var(--raum); color: var(--hell); isolation: isolate; }
.reise a { color: #ffb088; }
.reise a:focus-visible { outline: 3px solid #ff9a76; outline-offset: 2px; }

/* Buehne: auf breiten Schirmen sticky ueber die ganze Reise, sonst nur
   hinter dem Hero (Hoehe setzt erde.js aus der gemessenen Hero-Hoehe). */
.reise-buehne { position: absolute; top: 0; left: 0; right: 0; height: 620px; z-index: 0; pointer-events: none; overflow: hidden; }
.erde-flaeche, .erde-routen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reise-buehne[data-erde="ersatz"] .erde-flaeche, .reise-buehne[data-erde="ersatz"] .erde-routen { display: none; }
/* Ersatz ohne WebGL2: dieselbe Tagtextur als stehende Scheibe. */
.erde-ersatz { display: none; position: absolute; right: -12%; bottom: -38%; width: min(118vw, 560px); aspect-ratio: 1; border-radius: 50%;
  background: #0b2447 url("../erde/tag-2048.webp") 38% 30% / 200% 100%;
  box-shadow: inset -60px -40px 120px rgba(0, 0, 0, 0.9), inset 8px 8px 40px rgba(125, 211, 252, 0.35), 0 0 70px rgba(56, 130, 246, 0.35); }
.reise-buehne[data-erde="ersatz"] .erde-ersatz { display: block; }
/* Schmal endet die Buehne mit dem Hero: dort weich in den Raum auslaufen. */
.reise-buehne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--raum)); }

.reise-raster { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 20px 32px; display: grid; grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------- Hero */
.hero { padding: 28px 0 150px; min-width: 0; }
.hero h1 { margin: 14px 0 12px; font-size: clamp(28px, 7.4vw, 54px); line-height: 1.06; letter-spacing: -0.022em; color: #fff; max-width: 18ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(3, 5, 10, 0.85); }
.hero .lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #cbd5e1; max-width: 42ch; margin: 0 0 18px; text-shadow: 0 1px 12px rgba(3, 5, 10, 0.9); }

/* ------------------------------------------------ Bento (2026-09-28)
   Die drei Zusagen sichtbar statt hinter Knoepfen. Die Karten sind keine
   Bedienelemente -- deshalb kein Anheben beim Ueberfahren, nur ein
   ruhigerer Rand. Der Datenstrom laeuft vier Runden (4,8 s) und steht dann:
   selbst startende Bewegung ueber fuenf Sekunden braucht nach WCAG 2.2
   SC 2.2.2 einen Pausenknopf. */
.bento { min-width: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 20px; }
.bento-karte { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: rgba(15, 23, 42, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color 0.3s var(--weich); }
.bento-karte:hover { border-color: rgba(56, 189, 248, 0.35); }
.bento-gross { grid-column: 1 / -1; }
.bento-karte h3 { margin: 0; font-size: 18px; color: #fff; }
.bento-karte p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #cbd5e1; }
.bento-link a { color: #e7e9ef; text-decoration: underline; text-underline-offset: 3px; }
.bento-link a:focus-visible { outline: 3px solid #ff9a76; outline-offset: 2px; }
.bento-fluss { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto 4px; }
.bento-fluss .geraet { fill: rgba(148, 163, 184, 0.08); stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; }
.bento-fluss .strom-spur { fill: none; stroke: rgba(56, 189, 248, 0.18); stroke-width: 3; }
.bento-fluss .strom { fill: none; stroke: #38bdf8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 14; animation: strom-fluss 1.2s linear 4; }
.bento-fluss .schloss { fill: #0f172a; stroke: #6ee7b7; stroke-width: 2; }
.bento-fluss text { fill: #cbd5e1; font: 600 12px/1 var(--font-sans); }
@keyframes strom-fluss { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
.bento-symbol { width: 40px; height: 40px; fill: none; stroke: #38bdf8; stroke-width: 1.6; stroke-linecap: round; }
.bento-unendlich { display: block; font: 300 44px/40px var(--font-sans); color: #38bdf8; }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento-karte { padding: 16px; } }

/* ----------------------------------------------------------- Konsole */
.konsole { min-width: 0; padding: 0 0 28px; }
.reise .studio-karte { color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.reise .studio-karte a { color: var(--blue); }

/* ------------------------------------------------ Story (dunkle Tafeln) */
.reise-story { min-width: 0; display: grid; gap: 20px; }
.reise-story > * { min-width: 0; }
.inhalt, .reise .pre-footer { background: var(--tafel); border: 1px solid var(--tafel-rand); border-radius: 20px; padding: 24px; margin: 0; }
.reise-story h2 { color: #fff; font-size: 23px; margin: 0 0 16px; letter-spacing: -0.01em; }
.reise-story p { color: var(--mittel); }


.saeulen, .faelle { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.saeulen li, .faelle li { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: rgba(15, 23, 42, 0.7); border: 1px solid var(--tafel-rand); border-radius: 14px; }
.saeulen strong, .faelle h3 { margin: 0; font-size: 16px; color: #fff; }
.saeulen strong::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--apricot), #ffb088); margin-bottom: 10px; }
.saeulen span, .faelle p { margin: 0;  font-size: 14.5px; color: var(--mittel); line-height: 1.5; }
.faelle li { border-left: 3px solid var(--apricot); }

.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--tafel-rand); border-radius: 14px; background: rgba(15, 23, 42, 0.7); }
.tabelle-rahmen:focus-visible { outline: 3px solid #ff9a76; }
.vergleich { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; min-width: 620px; color: var(--hell); }
.vergleich th, .vergleich td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--tafel-rand); vertical-align: top; }
.vergleich thead th { background: rgba(2, 6, 23, 0.6); font-size: 13.5px; color: #fff; }
.vergleich tbody th { color: #fff; }
.vergleich .wir { background: rgba(242, 100, 68, 0.12); box-shadow: inset 2px 0 0 var(--apricot), inset -2px 0 0 var(--apricot); font-weight: 600; }
.vergleich thead .wir { color: #ffc9b3; box-shadow: inset 2px 0 0 var(--apricot), inset -2px 0 0 var(--apricot), inset 0 2px 0 var(--apricot); }
.vergleich tbody tr:last-child > * { border-bottom: 0; }
.vergleich tbody tr:last-child .wir { box-shadow: inset 2px 0 0 var(--apricot), inset -2px 0 0 var(--apricot), inset 0 -2px 0 var(--apricot); }
.ja, .nein { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; margin-right: 6px; }
.ja { background: #064e3b; color: #6ee7b7; }
.nein { background: #4c0519; color: #fda4af; }
.reise .source-note { font-size: 13px; color: #8b98ab; margin: 12px 0 0; }

/* Werkzeuge und Fragen -- in der Reise, damit die Konsole erst danach abdockt. */
.pf-innen { display: grid; gap: 24px; }
.pf-werkzeuge, .faq-accordion { min-width: 0; }
.pf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reise .pre-footer h2 { font-size: 19px; margin: 0 0 10px; }
.pf-pfeile { display: flex; gap: 6px; }
.pf-pfeil { width: 44px; height: 44px; border: 1px solid #334155; border-radius: 10px; background: #0f172a; color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.pf-pfeil:disabled { opacity: 0.4; cursor: default; }
.pf-pfeil:focus-visible, .pf-karte:focus-visible { outline: 3px solid #ff9a76; outline-offset: 2px; }
.pf-spur { position: relative; list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.pf-spur > li { flex: 0 0 min(230px, 78%); scroll-snap-align: start; }
.reise .pf-karte { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 96px; padding: 14px; border: 1px solid var(--tafel-rand); border-left: 3px solid var(--apricot); border-radius: 12px; background: rgba(15, 23, 42, 0.8); color: var(--hell); text-decoration: none; }
.reise .pf-karte:hover { border-color: var(--apricot); }
.pf-karte strong { font-size: 15px; color: #fff; }
.pf-karte span { font-size: 13px; color: var(--mittel); }
.pf-punkte { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.pf-punkte i { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.pf-punkte i.an { background: var(--apricot); }
.faq-accordion details { border-bottom: 1px solid var(--tafel-rand); }
.faq-accordion summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: #fff; }
.faq-accordion summary:focus-visible { outline: 3px solid #ff9a76; }
.faq-accordion p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; }

/* Handlungsaufruf nur, wo die Konsole nicht ohnehin mitlaeuft. */
.schluss { background: linear-gradient(135deg, #fff4ee 0%, #ffe9df 100%); border-top: 1px solid var(--line); padding: 32px 0; }
.schluss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.schluss h2 { margin: 0; font-size: 22px; }

/* ------------------------------------------------ breit: drei Ebenen */
@media (min-width: 1024px) {
  .reise-buehne { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; }
  .reise-buehne::after { display: none; }
  .erde-ersatz { right: 4%; bottom: auto; top: 16vh; width: min(76vh, 46vw); }
  .reise-raster { grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); grid-template-areas: "konsole hero" "konsole bento" "konsole story"; column-gap: clamp(32px, 4vw, 72px); padding: 0 32px 64px; }
  .hero { grid-area: hero; padding: 64px 0 28px; display: flex; flex-direction: column; }
  .bento { grid-area: bento; margin-bottom: 24px; }
  html[data-transfer] .bento { display: none; }
  html[data-transfer] .hero { min-height: calc(100vh - 62px); }
  .konsole { grid-area: konsole; padding: 28px 0 0; }
  /* Der Kern der Aufgabe: die Karte bleibt als Arbeitsflaeche stehen,
     solange .konsole reicht -- also bis zum Ende der Fragen. Ist die Karte
     hoeher als das Fenster, scrollt sie in sich statt ueber den Rand. */
  .konsole .studio-karte { position: sticky; top: calc(var(--kopf-h, 62px) + 16px); max-height: calc(100vh - var(--kopf-h, 62px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .reise-story { grid-area: story; max-width: 640px; gap: 24px; }
  .inhalt, .reise .pre-footer { padding: 28px; }
  .schluss { display: none; }
}
@media (min-width: 1440px) { .reise-story { max-width: 680px; } }
@media (max-width: 1023.98px) {
  .reise-raster { gap: 20px; }
  .hero { padding: 20px 0 clamp(120px, 34vw, 280px); }
}
/* Telefon: die Karte soll ohne Scrollen anfangen -- der Hero sagt nur das
   Noetigste, die Schritte stehen als eine Zeile je Schritt. */
@media (max-width: 640px) {
  .hero h1 { margin: 12px 0 8px; font-size: 29px; }
  .hero .lede { font-size: 15.5px; margin-bottom: 12px; }
  .raum-block .karte-titel { display: none; }
  }
@media (max-width: 520px) { .inhalt, .reise .pre-footer { padding: 18px; border-radius: 16px; } }

/* ================================================ Karte: offener Raum */
.studio-kopf { display: flex; flex-direction: column; gap: 12px; }
.raum-pille { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--flaeche); border: 1px solid var(--line); }
.status-punkt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
/* Ampel: rot wartet, gelb jemand ist da / Abgleich, gruen Daten fliessen. Die Farbe ist nie der einzige Traeger -- der Text sagt dasselbe. */
.raum-pille[data-status="bereit"] .status-punkt, .raum-pille[data-status="wartet"] .status-punkt, .raum-pille[data-status="weg"] .status-punkt, .raum-pille[data-status="suche"] .status-punkt { background: #dc2626; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); animation: puls-rot 2s ease-out infinite; }
.raum-pille[data-status="verbunden"] .status-punkt, .raum-pille[data-status="pruefen"] .status-punkt, .raum-pille[data-status="unterbrochen"] .status-punkt { background: #d97706; }
.raum-pille[data-status="live"] .status-punkt, .raum-pille[data-status="tunnel"] .status-punkt, .raum-pille[data-status="fertig"] .status-punkt { background: #059669; }
.raum-pille[data-status="live"], .raum-pille[data-status="tunnel"], .raum-pille[data-status="fertig"] { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.raum-pille[data-status="fehler"] { background: var(--red-soft); color: var(--red-ink); }
.raum-pille[data-status="fehler"] .status-punkt { background: var(--red-ink); }
@keyframes puls-rot { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); } 100% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } }

.rollen-schalter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--line); }
.rollen-tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font: 600 15px/1 var(--font-sans); color: var(--ink-3); cursor: pointer; }
.rollen-tab[aria-selected="true"] { background: #fff; color: var(--akzent-dunkel); box-shadow: 0 2px 8px -3px rgba(15, 23, 42, 0.25); }
.rollen-tab:focus-visible, .payload-btn:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }

.raum-block { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #fff7f2, #fff); border: 1px solid #fbd5c3; }
.raum-block .karte-titel { margin: 0; }
.code-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code-label { font-size: 13px; color: var(--ink-3); }
.code-wert { font: 800 clamp(26px, 3vw, 32px)/1 var(--font-mono); letter-spacing: 0.08em; color: var(--akzent-dunkel); }
.link-box { display: flex; gap: 8px; margin: 0; }
.link-box input { flex: 1; min-width: 0; min-height: 44px; font: 12.5px var(--font-mono); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); }
.teilen-leiste { display: flex; flex-wrap: wrap; gap: 8px; }
.teilen-leiste #createLinkBtn { flex: 1 1 100%; }
.teilen-leiste .teilen { flex: 1 1 0; min-width: 96px; text-decoration: none; }
.qr-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.aktion-hinweis { margin: 0; font-size: 13px; color: var(--ink-3); }

.payload-schalter { display: flex; gap: 6px; margin: 16px 0 12px; }
.payload-btn { flex: 1; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: 600 14px/1.2 var(--font-sans); color: var(--ink-2); cursor: pointer; }
.payload-btn[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent-dunkel); }
@media (pointer: coarse) { .payload-btn { min-height: 44px; } }

.tempo-wahl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; display: grid; gap: 2px; }
.tempo-wahl legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.tempo-wahl label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; padding-top: 8px; }
.tempo-wahl input { width: 20px; height: 20px; accent-color: var(--akzent); flex: none; }
.tempo-empfehlung { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.tempo-empfehlung[data-passt="false"] { color: var(--warn-ink); }

.text-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
#textEingabe { width: 100%; min-height: 120px; resize: vertical; padding: 10px 12px; font: 14px/1.5 var(--font-mono); border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); }
#textEingabe:focus-visible { outline: 3px solid var(--akzent); outline-offset: 1px; }
.text-zaehler { font-size: 13px; color: var(--ink-3); align-self: center; }
.text-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.text-liste li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--flaeche); font-size: 13.5px; }
.text-inhalt { margin: 0; flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.45 var(--font-mono); color: var(--ink); max-height: 220px; overflow: auto; }
.text-zustand { flex: none; font-size: 12px; color: var(--ink-3); }
.text-liste li[data-zustand="angekommen"] .text-zustand { color: #047857; font-weight: 700; }
.text-eingang { border-top: 1px solid var(--line); padding-top: 12px; }
.text-eingang h3 { margin: 0; font-size: 16px; }
.datei[data-zustand="unterwegs"] { background: #fff7f2; }

.code-form { display: grid; gap: 10px; justify-items: stretch; }
.code-eingabe { width: 100%; min-height: 72px; text-align: center; font: 800 clamp(30px, 6vw, 40px)/1 var(--font-mono); letter-spacing: 0.12em; text-transform: lowercase; border: 2px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--akzent-dunkel); }
.code-eingabe::placeholder { color: #cbd5e1; }
.code-eingabe:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-color: var(--akzent); }
.code-eingabe[aria-invalid="true"] { border-color: var(--red-ink); }
.code-fehler { margin: 0; min-height: 1.3em; font-size: 13.5px; color: var(--red-ink); }

.emoji-dialog { max-width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 26px; text-align: center; color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55); }
.emoji-dialog::backdrop { background: rgba(13, 14, 18, 0.72); }
.emoji-dialog h2 { margin: 0 0 8px; font-size: 21px; }
.emoji-dialog #emojiText { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-3); }
.emoji-reihe { margin: 6px 0; font-size: 52px; line-height: 1.2; letter-spacing: 0.12em; }
.emoji-namen { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: var(--akzent-dunkel); }
.emoji-status { min-height: 1.3em; margin: 0; font-size: 13.5px; color: #047857; }
.emoji-dialog .knopfreihe { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .raum-pille .status-punkt { animation: none !important; } }

/* ======================================== Fotos, Betreff, App-Browser */
.app-hinweis { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14px; }
.app-hinweis p { margin: 0; }
.app-hinweis .btn { justify-self: start; }

.kopf-felder { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.kopf-felder summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.kopf-felder[open] { padding-bottom: 12px; }
.kopf-felder label { display: block; font-size: 13.5px; font-weight: 600; margin: 8px 0 4px; }
.kopf-felder input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; }
.kopf-felder input:focus-visible { outline: 3px solid var(--akzent); outline-offset: 1px; }
.kopf-hinweis { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }
.annehmen-kopf { margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

.kamera-dialog { width: min(760px, 100vw); max-width: none; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 20px; background: #0d0e12; color: #fff; overflow: hidden; }
.kamera-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; }
.kamera-dialog::backdrop { background: rgba(13, 14, 18, 0.88); }
.kamera-bild { width: 100%; max-height: 62dvh; object-fit: contain; background: #000; }
.kamera-steuerung { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.kamera-steuerung .kamera-zu { justify-self: start; color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.kamera-steuerung .kamera-fertig { justify-self: end; }
.kamera-ausloeser { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: radial-gradient(circle, #fff 55%, transparent 57%); cursor: pointer; }
.kamera-ausloeser:active { transform: scale(0.94); }
.kamera-ausloeser:disabled { opacity: 0.5; }
.kamera-ausloeser:focus-visible, .kamera-dialog .btn:focus-visible { outline: 3px solid #ff9a76; outline-offset: 3px; }
.kamera-zaehler { margin: 0; padding: 0 16px; text-align: center; font-size: 13.5px; color: #c9cdd8; }
.kamera-leiste { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 16px; min-height: 72px; }
.kamera-leiste img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); }
@media (max-width: 640px) {
  .kamera-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .kamera-bild { max-height: none; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kamera-ausloeser:active { transform: none; } }
.verkleinern-wahl { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 6px; }
.verkleinern-wahl input { width: 20px; height: 20px; accent-color: var(--akzent); flex: none; }
.galerie-kopf { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

/* ================================================ Helles Glas (2026-09-28, 2. Fassung)
   Die Bedienung steht hell vor dem dunklen Raum: hoher Kontrast fuer die
   Arbeitsflaeche, die Erde bleibt Kulisse. Die dunkle Glasfassung vom selben
   Tag ist ersetzt (Betreiberwunsch "white mode, kontrastreicher Fokus").
   Zwei Schritte in Reihenfolge: 1 Dateien oder Text, 2 Empfaenger einladen.
   Kontrast auf Weiss: #0f172a 17 : 1 · #334155 10 : 1 · #475569 7,5 : 1 ·
   Fokus #0369a1 5,9 : 1 · Terracotta-Hauptaktion 5,4 und 6,6 : 1. */
.studio-karte {
  --fokus: #0369a1; --himmel: #0ea5e9; --zyan: #0891b2; --navy: #0f172a;
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.06);
  color: var(--navy); padding: 16px; gap: 12px; border-radius: 22px;
}
.reise .studio-karte { color: var(--navy); box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(15, 23, 42, 0.06); }
.reise .studio-karte a { color: #0b5f86; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .studio-karte { background: #fff; } }
@media (prefers-reduced-transparency: reduce) { .studio-karte { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.studio-karte :focus-visible { outline-color: var(--fokus) !important; }

/* --------------------------------------------- Kopf: Segment + Pille */
.studio-kopf { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border: 1px solid #e2e8f0; border-radius: 99px; background: #f1f5f9; isolation: isolate; }
.segment::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--navy); box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.45); transition: transform 0.28s var(--weich); }
.segment:has(> :nth-child(2)[aria-selected="true"])::before { transform: translateX(100%); }
.rollen-schalter.segment { min-width: 200px; }
.segment .rollen-tab { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 99px; background: transparent; box-shadow: none; font: 600 14px/1.2 var(--font-sans); color: #334155; cursor: pointer; transition: color 0.2s var(--weich); }
.segment .rollen-tab[aria-selected="true"] { background: transparent; color: #fff; box-shadow: none; }
.segment .rollen-tab:not([aria-selected="true"]):hover { color: var(--navy); }
@media (pointer: coarse) { .segment .rollen-tab { min-height: 44px; } }

.raum-pille { gap: 6px; padding: 3px 9px 3px 7px; font-size: 11.5px; font-weight: 600; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; margin-left: auto; white-space: nowrap; }
.raum-pille .status-punkt { width: 7px; height: 7px; }

/* ---------------------------------------------------- Schritte */
.ux-schritt { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.raum-block.ux-schritt { background: linear-gradient(180deg, #fff7f2, #fff 70%); border-color: #fbd5c3; }
.schritt-kopf { display: flex; align-items: center; gap: 10px; }
.studio-karte .schritt-hilfe { margin: 4px 0 10px 36px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.aktion-hinweis strong { color: var(--navy); }
.warum td strong { display: block; margin-bottom: 2px; }
.schritt-nummer { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/1 var(--font-sans); }
.studio-karte .schritt-titel { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); }
#sendenBereich .knopfreihe { margin-top: 0; }

/* ----------------------------------------------- Schritt 1: Ablage */
.dropzone { min-height: 0; gap: 4px; padding: 18px 14px 14px; border: 2px dashed #cbd5e1; border-radius: 16px; background: #f8fafc; cursor: pointer; transition: background-color 0.2s var(--weich), border-color 0.2s var(--weich), box-shadow 0.2s var(--weich), transform 0.2s var(--weich); }
.dropzone:hover { background: #f0f9ff; border-color: #7dd3fc; }
.dropzone:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.dropzone[data-zustand="ziehen"] { border-style: dashed; border-color: var(--zyan); background: #ecfeff; transform: scale(1.015); box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15), 0 0 32px -6px rgba(8, 145, 178, 0.5); }
.dropzone[data-zustand="geladen"] { padding: 10px 12px; }
html.zieht-dateien .dropzone { animation: rahmen-glimmen 1.2s var(--weich) infinite; }
@keyframes rahmen-glimmen { 0%, 100% { box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12); } 50% { box-shadow: 0 0 0 8px rgba(8, 145, 178, 0.2); } }
.drop-icon { width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--akzent) 0%, var(--akzent-tief) 100%); box-shadow: 0 8px 18px -6px rgba(184, 67, 31, 0.45); }
.dropzone[data-zustand="ziehen"] .drop-icon { background: var(--zyan); box-shadow: 0 8px 18px -6px rgba(8, 145, 178, 0.6); }
.dropzone[data-zustand="geladen"] .drop-icon, .dropzone[data-zustand="geladen"] .dropzone-hint { display: none; }
.dropzone-text { font-size: 15px; color: var(--navy); margin-top: 4px; }
.dropzone[data-zustand="geladen"] .dropzone-text { font-size: 13.5px; margin: 0; }
.dropzone-hint { font-size: 12.5px; color: #475569; }
.drop-knoepfe { justify-content: center; gap: 6px; margin-top: 8px; }
.btn-glas { min-height: 38px; padding: 7px 14px; border-radius: 99px; border: 1px solid #cbd5e1; background: #fff; color: var(--navy); font: 600 13.5px/1.2 var(--font-sans); cursor: pointer; }
.btn-glas:hover { border-color: var(--navy); background: #f8fafc; }
.btn-glas:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
@media (pointer: coarse) { .btn-glas { min-height: 44px; } }
.dropzone input[type="file"] { pointer-events: none; }
.auswahl { margin-top: 0; }

/* --------------------------------- Schritt 1: Text wie im Messenger */
.chat-leiste { display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px; border: 1px solid #cbd5e1; border-radius: 22px; background: #fff; transition: border-color 0.2s var(--weich), box-shadow 0.2s var(--weich); }
.chat-leiste:focus-within { border-color: var(--fokus); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.18); }
.chat-leiste[hidden] { display: none; }
#textEingabe { flex: 1; min-width: 0; min-height: 36px; max-height: 160px; margin: 0; padding: 8px 0; resize: none; border: 0; outline: none; background: transparent; color: var(--navy); font: 14.5px/1.4 var(--font-sans); }
#textEingabe:focus-visible { outline: none; }
#textEingabe::placeholder { color: #64748b; }
.chat-senden { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: var(--navy); cursor: pointer; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s; }
.chat-senden:hover { transform: scale(1.06); background: #1e293b; }
.chat-senden:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.chat-senden svg { pointer-events: none; }
@media (pointer: coarse) { .chat-senden { width: 44px; height: 44px; } }
.text-zaehler:empty { display: none; }
.text-zaehler { margin: 0; font-size: 12.5px; color: #475569; }
/* Gesendete Texte als Blasen rechts, empfangene links. */
.text-liste { margin: 0; gap: 6px; }
.text-liste:empty { display: none; }
#textGesendet li { justify-self: end; max-width: 88%; flex-direction: column; align-items: flex-end; gap: 2px; padding: 8px 12px; border: 0; border-radius: 16px 16px 4px 16px; background: var(--navy); color: #fff; }
#textGesendet .text-inhalt { color: #fff; }
#textGesendet .text-zustand { color: #cbd5e1; font-size: 11.5px; }
#textGesendet li[data-zustand="angekommen"] .text-zustand { color: #6ee7b7; }
#textEmpfangen li { justify-self: start; max-width: 92%; border-radius: 16px 16px 16px 4px; background: #f1f5f9; border-color: #e2e8f0; }

/* --------------------------------------- Erweiterte Optionen (eine Ebene) */
.einstellung { margin: 0; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.einstellung > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 42px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: #334155; }
.einstellung > summary::-webkit-details-marker { display: none; }
.einstellung > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid #475569; border-bottom: 2px solid #475569; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--weich); }
.einstellung[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.einstellung > summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 8px; }
.summary-wert { margin-left: auto; padding: 2px 8px; border-radius: 99px; font-weight: 600; font-size: 11.5px; color: #065f46; background: #d1fae5; }
.einstellung:not([open]) > :not(summary) { display: none; }
.einstellung[open] { padding-bottom: 12px; }
.einstellung .tempo-wahl { border: 0; padding: 0; margin: 0; }
.profi .kopf-felder { margin: 10px 0 0; padding: 10px 0 0; border: 0; border-top: 1px dashed #cbd5e1; border-radius: 0; }
.profi-titel { margin: 0; font-weight: 700; font-size: 13.5px; color: var(--navy); }
.tempo-wahl input, .verkleinern-wahl input, .hinweis-wahl input, .datei-wahl, .alle-wahl input, .modus-wahl input { accent-color: var(--navy); }

/* ------------------------------------ Schritt 2: Empfaenger einladen */
.raum-block { position: relative; }
.code-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; }
.code-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--akzent-dunkel); cursor: pointer; font: inherit; transition: background-color 0.2s var(--weich), border-color 0.2s var(--weich); }
.code-knopf:hover { background: #fff; border-color: #fbd5c3; }
.code-wert { font: 800 22px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--akzent-dunkel); }
.code-kopier-icon { color: #64748b; flex: none; }
.code-knopf > * { pointer-events: none; }
@media (pointer: coarse) { .code-knopf { min-height: 44px; } }

.teilen-leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-knopf { flex: 1 1 180px; font-size: 1rem; padding: 11px 18px; min-height: 46px; position: relative; overflow: hidden; }
.link-knopf svg { flex: none; pointer-events: none; }
.link-knopf .icon-erfolg { display: none; }
/* Kopiert: Kettenglied wird zum Haken, der Knopf leuchtet gruen auf. */
.link-knopf.kopiert-erfolg { background: linear-gradient(135deg, #047857 0%, #065f46 100%); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 10px 22px -8px rgba(4, 120, 87, 0.7); }
.link-knopf.kopiert-erfolg .icon-standard { display: none; }
.link-knopf.kopiert-erfolg .icon-erfolg { display: block; animation: haken-ein 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes haken-ein { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.icon-reihe { display: flex; gap: 6px; }
.icon-knopf { display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.reise .studio-karte a.icon-knopf { color: var(--navy); }
.icon-knopf:hover { transform: translateY(-3px) scale(1.05); border-color: var(--navy); box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.35); }
.icon-knopf[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.icon-knopf[hidden] { display: none; }
.icon-knopf svg { pointer-events: none; }
@media (pointer: coarse) { .icon-knopf { width: 44px; height: 44px; } }
.link-box input { background: #fff; }
.qr-zeile { gap: 12px; }
.qr-rahmen canvas { border: 1px solid #e2e8f0; border-radius: 10px; }
.aktion-hinweis { font-size: 12.5px; color: #475569; line-height: 1.45; }

/* Schwebt fest am unteren Bildrand, ueber allem -- liegt dafuer im DOM
   ausserhalb der Karte (deren backdrop-filter faengt position: fixed ein). */
.toast { position: fixed; z-index: 9999; left: 50%; bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: min(560px, calc(100vw - 32px)); box-sizing: border-box; margin: 0; padding: 0.75rem 1.5rem; border-radius: 22px; font-size: 0.9rem; font-weight: 500; line-height: 1.4; text-align: center; color: #f8fafc; background: rgba(15, 23, 42, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid #38bdf8; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px -8px rgba(56, 189, 248, 0.6); transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.toast[data-sichtbar="ja"] { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[data-art="warn"] { border-color: #fbbf24; }

/* -------------------------------------------- Handy-Kachel */
.handy-kachel { min-height: 56px; padding: 8px 10px; background: #f8fafc; }

@media (prefers-reduced-motion: reduce) {
  .segment::before, .icon-knopf, .toast, .einstellung > summary::after, .code-knopf, .chat-senden, .dropzone { transition: none; }
  html.zieht-dateien .dropzone { animation: none; }
  .icon-knopf:hover, .chat-senden:hover { transform: none; }
  .link-knopf.kopiert-erfolg .icon-erfolg { animation: none; }
  .toast { transform: translateX(-50%); } .toast[data-sichtbar="ja"] { transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .studio-karte { padding: 12px; border-radius: 18px; }
  .ux-schritt { padding: 10px; }
  .rollen-schalter.segment { min-width: 0; }
  .segment .rollen-tab { padding: 6px 12px; font-size: 13.5px; }
}
/* Grundregeln aus der ersten Karte neutralisieren: dort streckten sich die
   Teilen-Knoepfe (flex 1 1 0, min-width 96px) und der Code stand rechts. */
.teilen-leiste .teilen { flex: none; min-width: 0; }
.raum-block .code-zeile { justify-content: flex-start; }

/* ================================================ Live-Dashboard (2026-09-28)
   Nur ab 1024 px: dort tritt der Hero-Text waehrend der Uebertragung ab und
   das Dashboard steht an seiner Stelle, mittig vor der Erde. */
.dashboard { display: none; }
@media (min-width: 1024px) {
  html[data-transfer] .hero > :not(.dashboard) { display: none; }
  html[data-transfer] .hero { justify-content: center; }
  .dashboard:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: 28px 32px; text-align: center; border-radius: 28px; background: rgba(7, 11, 22, 0.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(148, 163, 184, 0.18); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); animation: dash-ein 0.4s var(--weich); }
}
@keyframes dash-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dash-weg { margin: 0; padding: 4px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #a7f3d0; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(110, 231, 183, 0.3); }
.dash-weg[hidden] { display: none; }
.dashboard .dash-titel { margin: 4px 0 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: #fff; }
.dash-unter { margin: 0; min-height: 1.4em; font-size: 15.5px; color: #cbd5e1; }
.dash-ring { position: relative; width: min(280px, 60vh); aspect-ratio: 1; margin: 8px 0; }
.dash-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-spur { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 12; }
.ring-fuell { fill: none; stroke: #38bdf8; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--weich), stroke 0.3s; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55)); }
.dashboard[data-art="fertig"] .ring-fuell { stroke: #34d399; filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.6)); }
.dashboard[data-art="pause"] .ring-fuell { stroke: #fbbf24; filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
.dashboard[data-art="fehler"] .ring-fuell { stroke: #f87171; }
/* Warten: der Ring atmet -- das zeigt Bereitschaft, keinen Fortschritt. */
.dashboard[data-art="warten"] .ring-spur, .dashboard[data-art="pause"] .ring-spur { animation: ring-atmen 2.2s ease-in-out infinite; }
@keyframes ring-atmen { 0%, 100% { stroke: rgba(255, 255, 255, 0.08); } 50% { stroke: rgba(56, 189, 248, 0.28); } }
.dash-mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.dash-prozent { font: 800 clamp(34px, 3.4vw, 46px)/1 var(--font-sans); color: #fff; font-variant-numeric: tabular-nums; }
.dash-menge { font-size: 13.5px; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dash-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; }
.dash-zahlen > div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.dash-zahlen dt { font-size: 12px; color: #94a3b8; }
.dash-zahlen dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.dash-geduld { margin: 4px 0 0; min-height: 1.4em; font-size: 14.5px; color: #e2e8f0; }
.dash-tipp { margin: 0; min-height: 1.4em; font-size: 13px; color: #94a3b8; }
.dash-siegel { margin: 2px 0 0; padding: 8px 14px 8px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; color: #a7f3d0; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(110, 231, 183, 0.35); }
.dash-siegel[hidden] { display: none; }
.dash-siegel::before, .siegel-zeile::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dash-siegel[data-voll="false"] { color: #fde68a; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); }
/* Dasselbe Siegel in der Karte (auch auf dem Telefon). */
.siegel-zeile { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0; }
.siegel-zeile[hidden] { display: none; }
.siegel-zeile[data-voll="false"] { color: #78350f; background: #fef3c7; border-color: #fde68a; }
@media (prefers-reduced-motion: reduce) {
  .dashboard:not([hidden]) { animation: none; }
  .ring-fuell { transition: none; }
  .dashboard[data-art="warten"] .ring-spur, .dashboard[data-art="pause"] .ring-spur { animation: none; }
}

/* Teilen-Optionen mit Beschriftung (2026-09-28): ein Symbol allein sagt
   nicht, was passiert. Raster unter dem Hauptknopf. */
.teilen-leiste { display: grid; grid-template-columns: 1fr; gap: 8px; }
.teilen-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.teilen-option { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--navy); font: 600 13px/1.2 var(--font-sans); cursor: pointer; text-decoration: none; transition: border-color 0.2s, background-color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reise .studio-karte a.teilen-option { color: var(--navy); }
.teilen-option:hover { border-color: var(--navy); transform: translateY(-1px); }
.teilen-option:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.teilen-option[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.teilen-option[hidden] { display: none; }
.teilen-option svg { flex: none; pointer-events: none; }
@media (pointer: coarse) { .teilen-option { min-height: 44px; } }
/* Rueckweg aus der Handy-Ansicht */
.btn-zurueck { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 36px; padding: 4px 12px; border: 1px solid #cbd5e1; border-radius: 99px; background: #fff; color: var(--navy); font: 600 13px/1 var(--font-sans); cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.btn-zurueck:hover { border-color: var(--navy); transform: translateX(-2px); }
.btn-zurueck:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.btn-zurueck[hidden] { display: none; }
@media (pointer: coarse) { .btn-zurueck { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .teilen-option, .btn-zurueck { transition: none; } .teilen-option:hover, .btn-zurueck:hover { transform: none; } }

/* ================================= DOCX/XLSX-Vorschau (Eigenbau, 2026-09-28)
   In der dunklen Lightbox als helles Blatt. Die Buehne selbst scrollt nicht
   (sie gehoert dem Zoom); das Blatt scrollt in sich, auch mit Touch. */
.lb-office { max-width: min(900px, 100%); max-height: 100%; overflow: auto; margin: 0; padding: 32px 40px; background: #fff; color: #0f172a; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); touch-action: pan-x pan-y; overscroll-behavior: contain; font: 15px/1.55 var(--font-sans); text-align: left; }
.office-dok .o-p, .office-dok .o-li { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.office-dok .o-leer { min-height: 1em; }
.office-dok .o-li { padding-left: 1.4em; text-indent: -1.4em; }
.office-dok .o-marke { color: #475569; }
.office-dok .o-h { margin: 18px 0 8px; font-weight: 700; line-height: 1.25; white-space: pre-wrap; }
.office-dok .o-h1 { font-size: 24px; } .office-dok .o-h2 { font-size: 20px; } .office-dok .o-h3 { font-size: 17px; } .office-dok .o-h4 { font-size: 15.5px; }
.office-dok .o-tabelle { width: 100%; margin: 8px 0 14px; border-collapse: collapse; }
.office-dok .o-tabelle td { padding: 4px 8px; border: 1px solid #cbd5e1; vertical-align: top; }
.office-dok .o-tabelle td .o-p { margin: 0; }
.office-dok .o-bild { display: block; max-width: 100%; height: auto; margin: 8px 0; }
.lb-office .o-ersatz { margin: 8px 0; color: #475569; font-style: italic; }
.office-mappe { padding: 0; display: flex; flex-direction: column; }
.office-mappe .o-reiter { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid #e2e8f0; overflow-x: auto; }
.office-mappe .o-reiter [role="tab"] { min-height: 36px; padding: 6px 14px; border: 1px solid #e2e8f0; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f8fafc; color: #334155; font: 600 13px/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.office-mappe .o-reiter [aria-selected="true"] { background: #fff; color: #0f172a; box-shadow: inset 0 3px 0 #0f172a; }
.office-mappe .o-reiter [role="tab"]:focus-visible, .office-mappe .o-flaeche:focus-visible { outline: 3px solid #0369a1; outline-offset: -3px; }
.office-mappe .o-flaeche { overflow: auto; padding: 8px; }
.o-raster { border-collapse: collapse; font: 13px/1.35 var(--font-sans); font-variant-numeric: tabular-nums; }
.o-raster th, .o-raster td { padding: 3px 8px; border: 1px solid #e2e8f0; white-space: nowrap; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
.o-raster thead th { position: sticky; top: 0; background: #f1f5f9; color: #475569; font-weight: 600; }
.o-raster tbody th { background: #f8fafc; color: #64748b; font-weight: 500; text-align: right; }
.o-raster td.o-zahl { text-align: right; }
@media (pointer: coarse) { .office-mappe .o-reiter [role="tab"] { min-height: 44px; } }
@media (max-width: 640px) { .lb-office { padding: 18px 16px; border-radius: 0; } }
.lb-office.office-dok { width: min(820px, 100%); }
/* Langsame Leitung mit Fotos unterwegs: die Rate faerbt sich, der Tipp steht darunter. */
#kzRate[data-tempo="langsam"] { color: #b45309; }
#dashRate[data-tempo="langsam"] { color: #fbbf24; }
.lightbox-modal[data-zoombar="false"] :is(.lb-minus, .lb-plus, .lb-eins, .lb-prozent) { display: none; }

/* Handy-Feinschliff (2026-09-28): Zielgroessen und Fokusrahmen. */
@media (pointer: coarse) {
  #textEingabe { min-height: 44px; padding: 11px 0; }
  .einstellung > summary { min-height: 44px; }
}
/* Die Seite setzt den Fokus nach einem Zustandswechsel auf die Ueberschrift
   (fuer Screenreader und damit sie ins Bild rutscht) -- ein Rahmen darum
   sieht aus wie ein Eingabefeld. */
.studio-karte h2[tabindex="-1"]:focus { outline: none; }
.drop-knoepfe [hidden] { display: none; }
/* "Warum direkt": zwei lange Textspalten passen nicht nebeneinander aufs
   Telefon -- dort steht die Antwort unter der Frage, statt quer zu scrollen. */
@media (max-width: 640px) {
  .vergleich.warum { min-width: 0; }
  .vergleich.warum thead { display: none; }
  .vergleich.warum tr, .vergleich.warum th, .vergleich.warum td { display: block; }
  .vergleich.warum th { padding-bottom: 4px; border-bottom: 0; }
  .vergleich.warum td { padding-top: 0; }
}
