/* Mein Tag – Dashboard des Sprach-Assistenten.
   KIRA-Formensprache wie auf der Server-Seite der Tour: Graphit, KIRA-Blau, ein Orange als feiner Akzent,
   Outfit + Space Mono. Widgets als Soft UI: erhaben = Licht oben links, Schatten unten rechts;
   Mulde = Innenschatten oben. Räume als gezeichnete Würfel-Szenen wie im Jahresbericht.
   Orange nur als Leuchte, Zeiger, Pegel oder Punkt – nie als Rahmen oder Balken. */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grund: #1E232B; --grund-tief: #191D24; --grund-hoch: #262C36;
  --hell: #F4F6F9; --text: #D5DBE3; --leise: #A3ACB9; --sehr-leise: #8A94A3;
  --orange: #FFAE00; --orange-text: #FFAE00; --blau: #8FA3C4; --gruen: #A9BCD8; --rot: #E58C7A;
  --linie: rgba(255, 255, 255, .07);
  --erhaben: linear-gradient(160deg, #2b313b 0%, #20252d 55%, #1b1f26 100%);
  --erhaben-knopf: linear-gradient(160deg, #2f3642, #232831);
  --erhaben-schatten: -5px -5px 14px rgba(255, 255, 255, .025), 12px 16px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .4);
  --erhaben-schatten-hoch: -6px -6px 16px rgba(255, 255, 255, .03), 16px 24px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1px 0 rgba(0, 0, 0, .4);
  --knopf-schatten: -3px -3px 8px rgba(255, 255, 255, .035), 5px 7px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  --mulde: linear-gradient(180deg, #14171d, #191d24);
  --mulde-schatten: inset 0 6px 14px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --gedrueckt-grund: linear-gradient(180deg, #1a1e25, #20252d);
  --gedrueckt: inset 3px 3px 7px rgba(0, 0, 0, .6), inset -2px -2px 5px rgba(255, 255, 255, .03);
  --einsatz: #14171c;
  --einsatz-schatten: inset 0 2px 5px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
  --leuchte: #fff4e0;
  --leuchte-glanz: drop-shadow(0 0 6px rgba(255, 214, 140, .6));
  --toast: rgba(26, 31, 40, .9);
  /* Farben der Zeichnungen (Jahresbericht) */
  --z-linie: #EEF1F5; --z-grau: #A3ACB9; --z-dim: #3A4350; --z-tief: #1A1F28;
  --z-oben: #2E3643; --z-links: #272E39; --z-rechts: #222932; --z-glas: #1C222B; --z-haut: #2A313D;
  --z-bo: #4A5871; --z-bl: #3B475A; --z-br: #313C4D;
  --z-oo: #FFAE00; --z-ol: #D99200; --z-or: #A86F00;
  --sans: "Outfit", "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --rand: clamp(20px, 4.2vw, 56px);
  --breite: 1240px;
  --weich: cubic-bezier(.22, .8, .24, 1);
  --feder: cubic-bezier(.3, 1.15, .4, 1);
  color-scheme: dark;
}
:root[data-thema="hell"] {
  --grund: #EEF0F3; --grund-tief: #E4E7EC; --grund-hoch: #F8F9FB;
  --hell: #1A1F28; --text: #2A313D; --leise: #4D5869; --sehr-leise: #5F6B7C;
  --orange: #FFAE00; --orange-text: #8A5A00; --blau: #3B475A; --gruen: #3B475A; --rot: #B4442C;
  --linie: rgba(26, 31, 40, .1);
  --erhaben: linear-gradient(160deg, #FFFFFF 0%, #F6F7F9 60%, #EEF0F3 100%);
  --erhaben-knopf: linear-gradient(160deg, #FFFFFF, #EEF0F3);
  --erhaben-schatten: -6px -6px 16px rgba(255, 255, 255, .9), 10px 14px 28px rgba(26, 31, 40, .13), inset 0 1px 0 #fff;
  --erhaben-schatten-hoch: -8px -8px 20px rgba(255, 255, 255, .95), 16px 22px 40px rgba(26, 31, 40, .18), inset 0 1px 0 #fff;
  --knopf-schatten: -3px -3px 8px rgba(255, 255, 255, .9), 5px 7px 14px rgba(26, 31, 40, .14), inset 0 1px 0 #fff;
  --mulde: linear-gradient(180deg, #E1E5EB, #E9ECF0);
  --mulde-schatten: inset 0 4px 12px rgba(26, 31, 40, .13), inset 0 -1px 0 rgba(255, 255, 255, .85);
  --gedrueckt-grund: linear-gradient(180deg, #E3E6EB, #ECEEF2);
  --gedrueckt: inset 3px 3px 7px rgba(26, 31, 40, .16), inset -2px -2px 5px rgba(255, 255, 255, .85);
  --einsatz: #E6E9EE;
  --einsatz-schatten: inset 0 2px 5px rgba(26, 31, 40, .14), 0 1px 0 rgba(255, 255, 255, .9);
  --leuchte: #1A1F28;
  --leuchte-glanz: none;
  --toast: rgba(26, 31, 40, .92);
  --z-linie: #2A313D; --z-grau: #5F6B7C; --z-dim: #B9C1CC; --z-tief: #3B475A;
  --z-oben: #FFFFFF; --z-links: #EDF0F4; --z-rechts: #DFE4EB; --z-glas: #F6F8FA; --z-haut: #FFFFFF;
  --z-bo: #A9B7CC; --z-bl: #8496B3; --z-br: #6F819F;
  --z-oo: #FFAE00; --z-ol: #E89B00; --z-or: #C98400;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--grund); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
a.zweit-knopf, a.text-knopf, a.haupt-knopf { text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
b, strong { font-weight: 600; }
:focus { outline: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--hell) 55%, transparent); outline-offset: 3px; border-radius: 12px; }

/* Feines Korn über allem (matt statt glatt) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}

/* ---------- Bühne + Würfel (Wechsel zwischen Übersicht und Raum: 90°-Drehung) ---------- */
.buehne { position: fixed; inset: 0; perspective: 2200px; perspective-origin: 50% 50%; overflow: hidden; background: var(--grund-tief); }
.wuerfel { position: absolute; inset: 0; transform-style: preserve-3d; }
.seite {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: radial-gradient(110% 60% at 18% 0%, var(--grund-hoch) 0%, var(--grund) 52%, var(--grund-tief) 100%);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent;
}
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Kopfzeile mit KIRA-Logo ---------- */
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--breite); margin: 0 auto; padding: 24px var(--rand) 0; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo { display: block; height: 26px; width: auto; }
.logo.dunkel, :root[data-thema="hell"] .logo.hell { display: none; }
:root[data-thema="hell"] .logo.dunkel { display: block; }
.marke-teil { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.marke-teil::before { content: ""; width: 1px; height: 18px; background: var(--linie); }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mulde); box-shadow: var(--mulde-schatten); font-family: var(--mono); font-size: 12px; color: var(--leise);
  transition: color .3s;
}
.status:hover { color: var(--hell); }
.led { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--text) 30%, transparent); flex: none; transition: background .4s, box-shadow .4s; }
.led.an { background: var(--gruen); box-shadow: 0 0 8px color-mix(in srgb, var(--gruen) 70%, transparent); }
.led.arbeitet { background: var(--blau); box-shadow: 0 0 10px var(--blau); animation: pulsieren 1.6s ease-in-out infinite; }
.led.frage { background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 60%, #d88f00); box-shadow: 0 0 8px color-mix(in srgb, var(--orange) 70%, transparent); animation: pulsieren 1.6s ease-in-out infinite; }
.led.fehler { background: var(--rot); }
@keyframes pulsieren { 50% { opacity: .45; } }
.rund-knopf {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--leise);
  background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: color .25s, box-shadow .25s, transform .15s;
}
.rund-knopf:hover { color: var(--hell); }
.rund-knopf:active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.97); }
.rund-knopf svg { width: 18px; height: 18px; }
.rund-knopf .fuellen { fill: currentColor; stroke: none; }

/* ---------- Begrüßung ---------- */
.held { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 80px); padding: clamp(24px, 5vh, 56px) 0 clamp(28px, 5vh, 52px); }
.datum { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.gruss { font-weight: 300; font-size: clamp(30px, 2.7vw, 42px); line-height: 1.1; letter-spacing: -.015em; color: var(--hell); margin: 10px 0 12px; }
.gruss b { font-weight: 500; }
.punkt { color: var(--orange); }
.tagesbild { max-width: 58ch; font-size: clamp(15.5px, 1.05vw, 17px); line-height: 1.6; color: var(--leise); min-height: 1.6em; font-weight: 300; }
.tagesbild .von { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); white-space: nowrap; }
.tagesbild .von svg { width: 13px; height: 13px; }
.tagesbild-leer { color: var(--leise); }

.eingabe {
  margin-top: 26px; max-width: 600px; height: 60px; border-radius: 999px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 22px;
  background: var(--mulde); box-shadow: var(--mulde-schatten); transition: box-shadow .3s;
}
.eingabe:focus-within { box-shadow: var(--mulde-schatten), 0 0 0 1px color-mix(in srgb, var(--hell) 24%, transparent); }
.eingabe input:focus-visible { outline: none; } /* der Rahmen der ganzen Eingabe zeigt den Fokus */
.eingabe-symbol { display: grid; place-items: center; color: var(--sehr-leise); transition: color .3s, transform .6s var(--weich); }
.eingabe:focus-within .eingabe-symbol { color: var(--hell); transform: rotate(45deg); }
.eingabe input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--hell); font-size: 16px; padding: 0 12px; }
.eingabe input::placeholder { color: var(--sehr-leise); }
.senden {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--hell); position: relative; overflow: hidden;
  background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: opacity .3s, transform .15s, box-shadow .2s;
}
.senden:disabled { opacity: .35; cursor: default; }
.senden:not(:disabled):active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.96); }
/* kleine orange Linse im Knopf; beim Senden füllt sie den ganzen Knopf (dunkle Schrift, nie Weiß auf Orange) */
.senden::before { content: ""; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 65%); transform: scale(0); transition: transform 1.1s var(--weich); }
.senden:not(:disabled)::before { transform: scale(1); }
.senden.flutet::before { transform: scale(26); }
.senden svg { position: relative; }
.senden.flutet { color: #1A1F28; }
.neben { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0 14px; }
.neben-knopf { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 4px; cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--leise); transition: color .25s; }
.neben-knopf:hover { color: var(--hell); }
.neben-knopf svg { width: 17px; height: 17px; }
.neben-knopf[aria-pressed="true"] { color: var(--hell); }
.neben-knopf[aria-pressed="true"] svg { color: var(--orange); }

.held-kugel { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.held-kugel kira-kugel { --kugel-groesse: clamp(170px, 17vw, 240px); --kugel-text: var(--sehr-leise); --kugel-text-hell: var(--leise); --kugel-schrift: var(--mono); --kugel-schriftgroesse: 11px; --kugel-textbreite: 30ch; }
.held-kugel kira-kugel::part(text) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.held-kugel:hover kira-kugel { --kugel-text: var(--leise); --kugel-text-hell: var(--hell); }

/* ---------- Abschnitte ---------- */
.abschnitt { margin-top: clamp(60px, 10vh, 112px); }
.etikett { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--leise); }
.etikett em { font-style: normal; color: var(--orange-text); }
.etikett::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--linie), transparent); }
.etikett .zusatz { letter-spacing: .04em; text-transform: none; color: var(--sehr-leise); }

/* ---------- Tagesband: Schiene mit dem Tag, darunter lesbare Terminkarten ---------- */
.band { position: relative; height: 76px; border-radius: 20px; background: var(--mulde); box-shadow: var(--mulde-schatten); overflow: hidden; }
.band-vorbei { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .05)); pointer-events: none; }
:root[data-thema="hell"] .band-vorbei { background: linear-gradient(90deg, rgba(26, 31, 40, .06), rgba(26, 31, 40, .02)); }
.stunde { position: absolute; bottom: 8px; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--sehr-leise); }
.segment { position: absolute; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--blau) 60%, var(--grund-hoch)); box-shadow: 0 2px 6px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .3s var(--weich), background .3s, opacity .3s; }
.segment.vorbei { opacity: .35; }
.segment.abgesagt { opacity: .25; background: transparent; box-shadow: inset 0 0 0 1px var(--leise); }
.segment.frei { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blau) 55%, transparent); }
.segment.laeuft { background: var(--hell); }
.segment.hervor { transform: scaleY(1.45); background: var(--hell); opacity: 1; }
.jetzt { position: absolute; top: 6px; bottom: 26px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--orange); z-index: 4; pointer-events: none; }
.jetzt::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 60%, #d88f00); }
.band-leer { position: absolute; inset: 0 0 24px; display: grid; place-items: center; color: var(--leise); font-size: 14.5px; padding: 0 24px; text-align: center; }
.termine { display: flex; gap: 14px; margin-top: 14px; padding: 4px 4px 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 20%, transparent) transparent; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.termin { flex: 0 0 auto; width: clamp(190px, 17vw, 236px); padding: 14px 16px 15px; border-radius: 18px; background: var(--erhaben); box-shadow: var(--erhaben-schatten); scroll-snap-align: start; transition: transform .35s var(--weich), box-shadow .35s, opacity .35s; }
.termin:last-child { margin-right: 36px; }
.termin.hervor { transform: translateY(-3px); box-shadow: var(--erhaben-schatten-hoch); }
.termin.vorbei, .termin.abgesagt { background: transparent; box-shadow: inset 0 0 0 1px var(--linie); opacity: .62; }
.termin.abgesagt .termin-titel { text-decoration: line-through; }
.termin.frei, .termin.ganz { background: transparent; box-shadow: inset 0 0 0 1px var(--linie); }
.termin-zeit { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--leise); }
.termin-marke { display: inline-flex; align-items: center; gap: 6px; color: var(--hell); white-space: nowrap; }
.termin.laeuft .termin-marke::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 65%); }
.termin-titel { margin-top: 6px; font-size: 15.5px; line-height: 1.35; color: var(--hell); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.termin-ort { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.termin-ort svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); font-size: 13px; color: var(--text); }
.chip svg { width: 14px; height: 14px; color: var(--leise); }

/* ---------- Fokus: Tagesuhr links (Rad der KIRA-Server-Seite), „Heute im Fokus“ rechts ---------- */
.pult { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: clamp(20px, 3.4vw, 52px); align-items: center; }
.rad { position: relative; width: 440px; height: 440px; --bogen: 0; }
.rad-skala { position: absolute; inset: 0; width: 440px; height: 440px; overflow: visible; pointer-events: none; }
.rad-skala line { stroke: color-mix(in srgb, var(--hell) 18%, transparent); stroke-width: 2; stroke-linecap: round; }
.rad-skala line.lang { stroke: color-mix(in srgb, var(--hell) 40%, transparent); stroke-width: 2.4; }
.rad-bahn { fill: none; stroke: var(--einsatz); stroke-width: 5; }
.rad-bogen { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-dasharray: calc(var(--bogen) * 1px) 999px; filter: drop-shadow(0 0 5px rgba(255, 174, 0, .55)); transition: stroke-dasharray 1.1s var(--feder); }
/* Tagesuhr: Stundenzahlen außen, ein Punkt je Ereignis auf der Bahn – die gewählte Gruppe leuchtet */
.tu-zahlen text { font-family: var(--mono); font-size: 11px; fill: var(--sehr-leise); text-anchor: middle; }
.tu-punkte { pointer-events: auto; }
.tu-punkt { fill: var(--grund); stroke: color-mix(in srgb, var(--hell) 42%, transparent); stroke-width: 1.6; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: fill .35s, stroke .35s, transform .35s var(--weich), filter .35s; }
.tu-punkt:hover { transform: scale(1.35); stroke: var(--hell); }
.tu-punkt.an { fill: var(--leuchte); stroke: transparent; transform: scale(1.2); filter: var(--leuchte-glanz); }
:root[data-thema="hell"] .tu-punkt { fill: #fff; stroke: rgba(26, 31, 40, .35); }
:root[data-thema="hell"] .tu-punkt.an { fill: var(--leuchte); }
.rad-luen {
  position: absolute; left: 72px; top: 72px; width: 296px; height: 296px; border-radius: 50%;
  background: linear-gradient(180deg, #2a2f38 0%, #14171c 55%, #1d2128 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 30px 50px -16px rgba(0, 0, 0, .8), 0 12px 22px -8px rgba(0, 0, 0, .6), inset 0 2px 1px rgba(255, 255, 255, .08), inset 0 -3px 6px rgba(0, 0, 0, .6);
}
.rad-luen::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 520px; transform: translate(-50%, -54%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025) 45%, rgba(255, 255, 255, 0)); }
:root[data-thema="hell"] .rad-luen { background: linear-gradient(180deg, #FFFFFF 0%, #E2E6EC 55%, #EEF0F3 100%); box-shadow: 0 1px 0 #fff, 0 26px 44px -16px rgba(26, 31, 40, .3), 0 10px 18px -8px rgba(26, 31, 40, .2), inset 0 2px 1px #fff, inset 0 -3px 6px rgba(26, 31, 40, .12); }
:root[data-thema="hell"] .rad-luen::before { display: none; }
.rad-zeiger { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: transform 1s var(--feder); }
.rad-zeiger i { position: absolute; left: 50%; top: 7px; width: 8px; height: 17px; margin-left: -4px; border-radius: 5px; background: var(--orange); box-shadow: 0 0 9px rgba(255, 174, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.rad-schirm {
  position: absolute; inset: 26px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b2029 0%, #14181f 70%, #12151b 100%);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, .8), inset 0 -2px 0 rgba(255, 255, 255, .05), 0 0 0 2px #0f1216, 0 0 0 3.5px rgba(196, 206, 222, .1);
}
.rad-schirm::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px) 0 0 / 12px 12px; -webkit-mask: radial-gradient(circle at 30% 20%, #000, transparent 60%); mask: radial-gradient(circle at 30% 20%, #000, transparent 60%); }
.rad-schirm::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%); }
:root[data-thema="hell"] .rad-schirm { background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #F3F5F8 70%, #ECEFF3 100%); box-shadow: inset 0 8px 20px rgba(26, 31, 40, .14), inset 0 -2px 0 #fff, 0 0 0 2px #fff, 0 0 0 3.5px rgba(26, 31, 40, .08); }
:root[data-thema="hell"] .rad-schirm::before { background: radial-gradient(rgba(26, 31, 40, .06) 1px, transparent 1.3px) 0 0 / 12px 12px; }
.rad-inhalt { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 0 30px; }
.rad-inhalt small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.rad-inhalt > b { max-width: 196px; font-weight: 600; font-size: 18px; line-height: 1.22; letter-spacing: -.005em; color: var(--hell); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rad-inhalt > b.uhr { font-size: 46px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rad-inhalt > b.zahl { display: block; max-width: none; font-size: 68px; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rad-inhalt > span { max-width: 190px; font-size: 13.5px; line-height: 1.3; color: var(--leise); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rad-werte { margin-top: 6px; display: flex; gap: 8px; }
.rad-werte span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; font-weight: 500; font-size: 13px; line-height: 1; color: var(--hell); background: var(--einsatz); box-shadow: var(--einsatz-schatten); white-space: nowrap; }
.rad-werte svg { width: 14px; height: 14px; color: var(--sehr-leise); }
.rad-inhalt.neu > * { animation: radNeu .6s var(--weich) backwards; }
.rad-inhalt.neu > b { animation-delay: .06s; } .rad-inhalt.neu > .rad-werte { animation-delay: .12s; }
@keyframes radNeu { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.rad-unter { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sehr-leise); }

/* Pult rechts */
.pult-karte { position: relative; padding: 24px 24px 22px; border-radius: 22px; background: var(--erhaben); box-shadow: var(--erhaben-schatten); min-width: 0; }
.pk-kopf small { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.pk-kopf small span { color: var(--sehr-leise); }
.pk-kopf small .mit-punkt::before { content: "· "; }
.pk-kopf b { display: block; margin-top: 8px; font-weight: 600; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.18; letter-spacing: -.01em; color: var(--hell); }
.pk-kopf p { margin: 8px 0 0; color: var(--leise); font-size: 15px; }
.pruefleiste { position: relative; margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.pruefleiste::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .025) 0 46%, rgba(255, 255, 255, 0) 46%); }
.pr-reiter { position: absolute; left: 0; width: 3px; top: 0; height: 0; z-index: 1; pointer-events: none; transition: top .8s var(--feder), height .8s var(--feder);
  background: linear-gradient(180deg, transparent 20%, var(--leuchte) 20% 80%, transparent 80%); filter: drop-shadow(0 0 6px rgba(255, 236, 200, .8)); }
.pr-reiter::after { content: ""; position: absolute; left: 0; top: 0; width: 320px; height: 100%; background: radial-gradient(60% 70% at 0% 50%, rgba(255, 244, 224, .07), rgba(255, 244, 224, 0)); }
:root[data-thema="hell"] .pr-reiter { filter: none; }
:root[data-thema="hell"] .pr-reiter::after { background: radial-gradient(60% 70% at 0% 50%, rgba(26, 31, 40, .05), rgba(26, 31, 40, 0)); }
.pr-zeile { position: relative; z-index: 2; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px 14px 18px; border-top: 1px solid var(--linie); }
.pr-zeile:first-of-type { border-top: 0; }
button.pr-zeile { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; cursor: pointer; }
button.pr-zeile:first-of-type { border-top: 0; }
.pr-sym { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.pr-sym svg { width: 22px; height: 22px; stroke: var(--sehr-leise); stroke-width: 1.6; transition: stroke .4s, filter .4s; }
.pr-zeile.akt .pr-sym svg, .pr-zeile.ok .pr-sym svg { stroke: var(--leuchte); filter: var(--leuchte-glanz); }
.pr-zeile.akt .pr-sym svg { stroke-dasharray: 90; animation: prZeichne 1.2s ease; }
@keyframes prZeichne { from { stroke-dashoffset: 90; } }
.pr-t { min-width: 0; }
.pr-t > b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--text); transition: color .4s; }
.pr-zeile.akt .pr-t > b { color: var(--hell); }
.pr-t > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--leise); }
.pr-t input { width: 100%; margin-top: 6px; height: 38px; border: 0; border-radius: 12px; padding: 0 12px; font-size: 15px; color: var(--hell); background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.pr-t input::placeholder { color: var(--sehr-leise); }
.pk-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.pk-aktionen .text-knopf { margin-left: auto; }
.pult-platz { min-width: 0; width: 100%; }

/* „Heute im Fokus“: was für heute vorgemerkt ist; Knöpfe leise sichtbar, die laufende Fokuszeit hebt ihre Zeile heraus */
.heute-liste { margin-top: 18px; }
.heute-liste .zeile { min-height: 54px; }
.heute-liste .zeile-text { font-size: 15.5px; }
.heute-liste .zeile-aktionen { opacity: .55; }
.heute-liste .zeile:hover .zeile-aktionen, .heute-liste .zeile:focus-within .zeile-aktionen, .heute-liste .zeile.laeuft .zeile-aktionen { opacity: 1; }
.heute-liste .zeile.laeuft { background: var(--erhaben); box-shadow: var(--erhaben-schatten); }
.heute-liste .art-symbol { width: 30px; height: 30px; }
.heute-liste .art-symbol svg { width: 15px; height: 15px; }
.heute-liste .leer { padding: 22px 14px; font-size: 14.5px; }

/* „Was heute passiert ist“: sechs Kacheln, darunter die Einträge mit ihrem Ort */
.tagesblick { margin-top: 26px; }
.tv-kacheln { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tv-kachel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "sym zahl" "name name"; align-items: center; gap: 10px 10px; padding: 14px 14px 13px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--leise); background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: color .3s, background .3s, box-shadow .3s, transform .15s; }
.tv-kachel:hover { color: var(--hell); }
.tv-kachel:active { transform: scale(.98); }
.tv-kachel.an { color: var(--hell); background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.tv-sym { grid-area: sym; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.tv-sym svg { width: 17px; height: 17px; stroke: var(--sehr-leise); transition: stroke .4s, filter .4s; }
.tv-kachel.an .tv-sym svg { stroke: var(--leuchte); filter: var(--leuchte-glanz); }
.tv-kachel b { grid-area: zahl; justify-self: end; font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--hell); }
.tv-name { grid-area: name; font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-kachel.leer b { color: var(--sehr-leise); }
.tv-kachel.leer:not(.an) { opacity: .62; }
.tv-liste { margin-top: 14px; border-radius: 20px; padding: 6px; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.tv-erkl { margin: 0; padding: 10px 14px 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--sehr-leise); }
.tv-eintrag { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 12px 11px 14px; border-top: 1px solid var(--linie); animation: taucht .5s var(--weich) backwards; }
.tv-eintrag:nth-of-type(2) { animation-delay: .04s; } .tv-eintrag:nth-of-type(3) { animation-delay: .08s; } .tv-eintrag:nth-of-type(n+4) { animation-delay: .12s; }
.tv-eintrag time { font-family: var(--mono); font-size: 12px; color: var(--sehr-leise); font-variant-numeric: tabular-nums; }
.tv-text { min-width: 0; font-size: 15px; line-height: 1.4; color: var(--hell); }
.tv-text small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); }
.tv-ort { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; font-family: var(--mono); font-size: 11.5px; color: var(--sehr-leise); background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.tv-ort { padding: 0 10px 0 12px; cursor: pointer; color: var(--leise); background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: color .2s, transform .15s; }
button.tv-ort:hover { color: var(--hell); }
button.tv-ort:active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.98); }
.tv-ort svg { width: 13px; height: 13px; flex: none; }
.tv-liste .leer { padding: 22px 14px 24px; font-size: 14.5px; }
.tv-mehr { margin: 2px 0 0 76px; }

.hinweise { display: flex; flex-direction: column; gap: 6px; margin: 22px 0 0 4px; }
.hinweis { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--leise); }
.hinweis::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sehr-leise); flex: none; transform: translateY(-2px); }

.mini { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--leise); background: transparent; transition: background .2s, color .2s; }
.mini:hover { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--hell); }
.mini svg { width: 16px; height: 16px; }
.mini.an { color: var(--orange); }
.mini.an[data-aktion="fokus"] svg path { fill: currentColor; }
.zweit-knopf.an { color: var(--hell); background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.zweit-knopf.an svg { color: var(--orange); }

/* Haken (Listen) */
.haken {
  width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--einsatz); box-shadow: var(--einsatz-schatten); color: transparent; transition: box-shadow .35s, background .35s, color .2s;
}
.haken svg { width: 20px; height: 20px; stroke-width: 2.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--weich) .05s; }
.haken:hover { color: color-mix(in srgb, var(--hell) 45%, transparent); }
.haken:hover svg { stroke-dashoffset: 0; }
.haken.klein { width: 30px; height: 30px; flex: none; }
.haken.klein svg { width: 16px; height: 16px; }
/* Erledigt: ein dunkler Haken zeichnet sich in einem hellen, leuchtenden Kreis */
.erledigt .haken, .haken.gesetzt { color: #1A1F28; background: radial-gradient(circle at 40% 35%, #ffffff, #c9d4e4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gruen) 20%, transparent), 0 0 16px color-mix(in srgb, var(--gruen) 45%, transparent); }
.erledigt .haken svg, .haken.gesetzt svg { stroke-dashoffset: 0; }
.zeile.erledigt .zeile-text { opacity: .5; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 50%, transparent); }
.zeile.fertig .zeile-text { color: var(--text); }
.zeile.fertig .haken { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gruen) 45%, transparent); color: var(--gruen); }
.zeile.fertig .haken svg { stroke-dashoffset: 0; }
.funke { position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 60; }

/* ---------- Unterbau: die Räume liegen auf einer eigenen Ebene in leicht blauem Graphit ----------
   Oben „Mein Tag“ auf Graphit, darunter die Räume wie ein Blatt mit runden Ecken; nichts wird abgedunkelt,
   die Ebene ist heller und trägt etwas KIRA-Blau. Die Karten darauf sind entsprechend blauer und heller. */
:root {
  --unterbau: radial-gradient(70% 180px at 50% 0%, rgba(143, 163, 196, .07), rgba(143, 163, 196, 0)), linear-gradient(180deg, #262D38 0%, #232A34 38%, #20262F 100%);
  --unterbau-kante: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -18px 44px rgba(0, 0, 0, .16);
  --unterbau-karte: linear-gradient(160deg, #323B49 0%, #28303C 55%, #222932 100%);
}
:root[data-thema="hell"] {
  --unterbau: radial-gradient(70% 180px at 50% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)), linear-gradient(180deg, #E4E9F0 0%, #E1E6EE 100%);
  --unterbau-kante: inset 0 1px 0 #fff, 0 -14px 36px rgba(26, 31, 40, .06);
  --unterbau-karte: linear-gradient(160deg, #FFFFFF 0%, #F7F8FA 60%, #F0F2F5 100%);
}
.unterbau { margin-top: clamp(64px, 10vh, 104px); padding-top: clamp(40px, 6vh, 64px); border-radius: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 0 0; background: var(--unterbau); box-shadow: var(--unterbau-kante); }
.unterbau .abschnitt { margin-top: 0; }
.unterbau .fusszeile { margin-top: clamp(48px, 7vh, 72px); }
.unterbau:has(.abschnitt[hidden]) { display: none; }
.unterbau .raum-karte { background: var(--unterbau-karte); }

/* ---------- Räume: gezeichnete Szenen in eingelassenen Schirmen ---------- */
.raeume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.raum-karte {
  position: relative; display: flex; flex-direction: column; padding: 10px; border: 0; border-radius: 24px; cursor: pointer; text-align: left;
  background: var(--erhaben); box-shadow: var(--erhaben-schatten); color: inherit;
  transition: transform .6s var(--weich), box-shadow .6s var(--weich);
}
.raum-karte:hover { transform: translateY(-4px); box-shadow: var(--erhaben-schatten-hoch); }
.raum-schirm { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.raum-schirm::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(color-mix(in srgb, var(--hell) 5%, transparent) 1px, transparent 1.3px) 0 0 / 12px 12px; -webkit-mask: radial-gradient(circle at 25% 15%, #000, transparent 65%); mask: radial-gradient(circle at 25% 15%, #000, transparent 65%); }
.raum-schirm svg.zeichnung { position: absolute; left: 3%; top: 4%; width: 94%; height: 93%; }
.raum-text { display: block; padding: 16px 12px 8px; }
.raum-name { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.raum-name em { font-style: normal; color: var(--orange-text); }
.raum-name .led { width: 7px; height: 7px; margin-left: 2px; }
.raum-zahl { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; font-weight: 600; font-size: clamp(36px, 3.2vw, 46px); line-height: 1; letter-spacing: -.02em; color: var(--hell); }
.raum-zahl small { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .02em; color: var(--leise); }
.raum-satz { display: block; font-size: 14.5px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Zeichnungen (tag-zeichnungen.js) ---------- */
svg.zeichnung { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--z-linie); stroke-linecap: round; stroke-linejoin: round; }
.zeichnung .f-o { fill: var(--z-oben); } .zeichnung .f-l { fill: var(--z-links); } .zeichnung .f-r { fill: var(--z-rechts); }
.zeichnung .f-bo { fill: var(--z-bo); } .zeichnung .f-bl { fill: var(--z-bl); } .zeichnung .f-br { fill: var(--z-br); }
.zeichnung .f-oo { fill: var(--z-oo); } .zeichnung .f-ol { fill: var(--z-ol); } .zeichnung .f-or { fill: var(--z-or); }
.zeichnung .f-oo, .zeichnung .f-ol, .zeichnung .f-or { stroke: var(--z-tief); }
.zeichnung .f-glas { fill: var(--z-glas); } .zeichnung .f-haut { fill: var(--z-haut); } .zeichnung .f-tief { fill: var(--z-tief); }
.zeichnung .f-dim { fill: var(--z-dim); stroke: none; } .zeichnung .f-linie { fill: var(--z-linie); stroke: none; }
.zeichnung .s-linie { stroke: var(--z-linie); } .zeichnung .s-grau { stroke: var(--z-grau); } .zeichnung .s-dim { stroke: var(--z-dim); }
.zeichnung .s-tief { stroke: var(--z-tief); } .zeichnung .s-orange { stroke: var(--z-oo); }
.zeichnung .s-o { stroke: var(--z-oben); } .zeichnung .s-l { stroke: var(--z-links); } .zeichnung .s-bl { stroke: var(--z-bl); } .zeichnung .s-oo { stroke: var(--z-oo); }
.zeichnung .t { fill: var(--z-grau); stroke: none; font-family: var(--mono); }
.zeichnung .t.t-hell, .zeichnung .t-hell { fill: var(--z-linie); }
.zeichnung .t-orange { fill: var(--z-oo); }
.zeichnung .t.marke { font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
/* Erscheinen: Linien zeichnen sich, Flächen füllen sich, der Rest blendet ein */
.zeichnung .zn { stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) calc(var(--v, 0) * 1s), fill-opacity .8s ease calc(var(--v, 0) * 1s + .7s); }
.zeichnung.sichtbar .zn { stroke-dashoffset: 0; fill-opacity: 1; }
.zeichnung .ein { opacity: 0; transition: opacity .8s ease calc(var(--v, 0) * 1s); }
.zeichnung.sichtbar .ein { opacity: 1; }
/* Bewegung nur, wenn die Szene „lebt“ (Raum offen oder Karte unter dem Zeiger) – je Szene genau ein Element */
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-schweben { animation: zSchweben 3.2s ease-in-out 1.6s infinite alternate; }
@keyframes zSchweben { to { transform: translateY(-2.2px); } }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-tippen { animation: zTippen 1.2s ease-in-out infinite; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-tippen.t1 { animation-delay: .2s; } :is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-tippen.t2 { animation-delay: .4s; }
@keyframes zTippen { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-flug:not(.leer) { animation: zFlug 3.6s cubic-bezier(.5, 0, .3, 1) 1.4s infinite; }
@keyframes zFlug { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 70% { transform: translate(var(--dx, 0), var(--dy, 0)); opacity: 1; } 80%, 100% { transform: translate(var(--dx, 0), var(--dy, 0)); opacity: 0; } }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-schreiben { animation: zSchreiben 4.8s ease-in-out 1.6s infinite; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-schreiben.z1 { animation-delay: 2s; } :is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-schreiben.z2 { animation-delay: 2.4s; } :is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-schreiben.z3 { animation-delay: 2.8s; }
@keyframes zSchreiben { 0% { stroke-dashoffset: 1; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.zeichnung .ani-sanduhr { transform-box: fill-box; transform-origin: 50% 50%; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-sanduhr { animation: zSanduhr 5s cubic-bezier(.6, 0, .3, 1) 1.2s infinite; }
@keyframes zSanduhr { 0%, 82% { transform: rotate(0); } 100% { transform: rotate(180deg); } }
.zeichnung .sand-oben, .zeichnung .sand-unten { transform-box: fill-box; transform-origin: 50% 100%; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .sand-oben { animation: zSandOben 5s linear 1.2s infinite; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .sand-unten { animation: zSandUnten 5s linear 1.2s infinite; }
@keyframes zSandOben { 0% { transform: scaleY(1); } 80%, 100% { transform: scaleY(.25); } }
@keyframes zSandUnten { 0% { transform: scaleY(.3); } 80%, 100% { transform: scaleY(1); } }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-rollen { animation: zRollen 4.2s cubic-bezier(.4, 0, .2, 1) 1.2s infinite; }
@keyframes zRollen { 0% { transform: translate(10.4px, 6px); opacity: 0; } 18% { opacity: 1; } 70%, 100% { transform: translate(0, 0); opacity: 1; } }
.zeichnung .ani-impuls { opacity: 0 !important; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-impuls { animation: zImpuls 2.6s linear infinite; }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-impuls.i1 { animation-delay: 1.3s; }
@keyframes zImpuls { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 66% { transform: translate(var(--dx), var(--dy)); } 92% { opacity: 1; } 100% { transform: translate(var(--ex), var(--ey)); opacity: 0; } }
:is(.zeichnung.lebt, .raum-karte:hover .zeichnung) .ani-led { animation: pulsieren 1.4s ease-in-out infinite; }

/* ---------- Raum (Detailseite) ---------- */
.raum-seite { background: radial-gradient(110% 60% at 82% 8%, var(--grund-hoch) 0%, var(--grund) 52%, var(--grund-tief) 100%); }
.raum-kopf { max-width: var(--breite); margin: 0 auto; padding: 24px var(--rand) 0; }
.raum-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.zurueck-knopf { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text); background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: color .2s, transform .15s; }
.zurueck-knopf:hover { color: var(--hell); }
.zurueck-knopf:active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.98); }
.zurueck-knopf svg { width: 17px; height: 17px; }
.raum-buehne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: clamp(320px, 50vh, 520px); padding: clamp(10px, 3vh, 36px) 0 clamp(18px, 4vh, 44px); }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.kicker .marke-tag { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 14px; color: var(--orange-text); background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.kicker .marke-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.raum-titel h1 { margin: 18px 0 14px; font-weight: 300; font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -.025em; color: var(--hell); }
.raum-titel h1 b { display: block; font-weight: 600; }
.raum-titel p { margin: 0; max-width: 46ch; font-size: clamp(15.5px, 1.15vw, 18px); font-weight: 300; color: var(--text); }
.fakten { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fakt { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 16px; font-size: 14px; color: var(--leise); background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.fakt b { font-size: 17px; color: var(--hell); }
.raum-bild { position: relative; height: clamp(260px, 44vh, 470px); }
.raum-bild::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02) 50%, rgba(255, 255, 255, 0)); }
:root[data-thema="hell"] .raum-bild::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.raum-bild svg.zeichnung { position: relative; }
.raum-inhalt { position: relative; z-index: 3; padding-bottom: 28px; }
.raum-fuss { position: sticky; bottom: 18px; z-index: 8; display: flex; justify-content: center; padding: 10px 16px 0; pointer-events: none; }
.reiter-pille { pointer-events: auto; display: inline-flex; align-items: center; gap: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 26px; background: var(--erhaben-knopf); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), var(--knopf-schatten); }
:root[data-thema="hell"] .reiter-pille { box-shadow: 0 14px 34px rgba(26, 31, 40, .16), var(--knopf-schatten); }
.reiter-pille::-webkit-scrollbar { display: none; }
.reiter-pille button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border: 0; border-radius: 20px; background: none; cursor: pointer; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--leise); transition: color .25s, background .25s, box-shadow .25s; }
.reiter-pille button:hover { color: var(--hell); }
.reiter-pille button em { font-style: normal; color: var(--sehr-leise); }
.reiter-pille button.an { color: var(--hell); background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.reiter-pille button.an em { color: var(--orange-text); }
.reiter-pille button svg { width: 16px; height: 16px; }
.reiter-pille .trenn { width: 1px; height: 20px; margin: 0 4px; background: var(--linie); flex: none; }

.text-knopf { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 4px; cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--leise); transition: color .2s; }
.text-knopf:hover { color: var(--hell); }
.text-knopf svg { width: 17px; height: 17px; }

.tafel { border-radius: 24px; padding: clamp(20px, 2.4vw, 30px); background: var(--erhaben); box-shadow: var(--erhaben-schatten); }
.tafel + .tafel, .tafel + .spalten, .spalten + .tafel { margin-top: 22px; }
.spalten > .tafel { margin-top: 0; }
.tafel h3, .tafel-titel { margin: 0 0 16px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--leise); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.leer { padding: 28px 8px; color: var(--leise); text-align: center; font-size: 15px; }
.leer strong { display: block; color: var(--hell); font-weight: 500; font-size: 17px; margin-bottom: 4px; }

/* eingelassene Leiste mit Lichtreiter (Reiter/Filter) */
.leiste { position: relative; display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--mulde); box-shadow: var(--mulde-schatten); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.leiste::-webkit-scrollbar { display: none; }
.leiste button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 21px; border: 0; border-radius: 999px; background: none; cursor: pointer; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--leise); transition: color .3s; }
.leiste button:hover, .leiste button.an { color: var(--hell); }
.leiste button .anzahl { font-size: 11px; color: var(--sehr-leise); }
.reiter { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: left .5s var(--weich), width .5s var(--weich); }
.reiter::after { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 65%); }
.werkzeugzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }

/* Listen: Mulde mit Zeilen; die Zeile unter dem Zeiger hebt sich heraus */
.liste { border-radius: 20px; padding: 6px; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.zeile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 12px 10px 14px; border-radius: 16px; transition: background .3s, box-shadow .3s, opacity .4s, transform .4s; }
.zeile + .zeile { box-shadow: 0 -1px 0 var(--linie); }
.zeile:hover, .zeile:focus-within { background: var(--erhaben); box-shadow: var(--erhaben-schatten); z-index: 1; }
.zeile:hover + .zeile { box-shadow: none; }
.zeile-text { flex: 1; min-width: 0; font-size: 16px; color: var(--hell); line-height: 1.4; }
.zeile-text small { display: block; font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); margin-top: 3px; }
.zeile-aktionen { display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.zeile:hover .zeile-aktionen, .zeile:focus-within .zeile-aktionen { opacity: 1; }
.zeile.geht { opacity: 0; transform: translateX(16px); }
.zeile.waehlbar { cursor: pointer; }
.neu-punkt { display: flex; gap: 8px; align-items: center; margin-top: 14px; height: 54px; border-radius: 999px; padding: 0 6px 0 20px; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.neu-punkt svg { color: var(--sehr-leise); }
.neu-punkt input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; color: var(--hell); padding: 0 8px; }
.neu-punkt input::placeholder { color: var(--sehr-leise); }
.neu-punkt .senden { width: 42px; height: 42px; }

.haupt-knopf { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 24px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--hell); background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.haupt-knopf::before { content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 65%); transition: transform 1.1s var(--weich); }
.haupt-knopf.flutet::before { transform: scale(90); }
.haupt-knopf.flutet { color: #1A1F28; }
.haupt-knopf > * { position: relative; }
.haupt-knopf:active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.98); }
.haupt-knopf svg { width: 17px; height: 17px; }
.haupt-knopf.laeuft { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.zweit-knopf { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--text); background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: color .2s, transform .15s, box-shadow .2s; }
.zweit-knopf:hover { color: var(--hell); }
.zweit-knopf:active { background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); transform: scale(.98); }
.zweit-knopf svg { width: 16px; height: 16px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gedanken: Liste links, Lesen rechts */
.tag-gruppe { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sehr-leise); padding: 14px 14px 6px; }
.notiz-eintrag { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer; transition: background .3s, box-shadow .3s; }
.notiz-eintrag:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.notiz-eintrag.an { background: var(--erhaben); box-shadow: var(--erhaben-schatten); }
.art-symbol { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--einsatz); box-shadow: var(--einsatz-schatten); color: var(--leise); position: relative; flex: none; }
.art-symbol svg { width: 17px; height: 17px; }
.art-symbol .led { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; background: radial-gradient(circle at 40% 35%, #ffd27a, var(--orange) 60%, #d88f00); box-shadow: 0 0 8px color-mix(in srgb, var(--orange) 70%, transparent); }
.notiz-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; color: var(--hell); }
.notiz-kopf span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notiz-kopf time { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--sehr-leise); flex: none; }
.notiz-vorschau { font-size: 14px; color: var(--leise); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.marke-klein { font-family: var(--mono); font-size: 10.5px; color: var(--leise); padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.lesen { position: sticky; top: 20px; max-height: calc(100vh - 110px); overflow: auto; }
.lesen-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lesen-kopf h2 { margin: 0; font-weight: 600; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.01em; color: var(--hell); }
.lesen-meta { font-family: var(--mono); font-size: 11.5px; color: var(--leise); margin-top: 6px; }
.lesen-text { font-size: 16px; line-height: 1.65; color: var(--text); }
.lesen-text p { margin: 0 0 .9em; }
.lesen-text h4, .lesen-text h5 { margin: 1.2em 0 .4em; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.lesen-text ul, .lesen-text ol { margin: 0 0 1em; padding-left: 1.2em; }
.lesen-text li { margin: .25em 0; }
.lesen-text strong { color: var(--hell); }
.lesen-text code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 9%, transparent); }
.lesen-text a { color: var(--hell); text-decoration-color: color-mix(in srgb, var(--orange) 70%, transparent); text-underline-offset: 3px; }
.sprecher { font-family: var(--mono); font-size: 11.5px; color: var(--leise); }
.lesen .knopfreihe { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--linie); }

.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.thema { padding: 18px 20px; border-radius: 20px; background: var(--mulde); box-shadow: var(--mulde-schatten); border: 0; text-align: left; cursor: pointer; transition: background .3s, box-shadow .3s; }
.thema:hover, .thema.an { background: var(--erhaben); box-shadow: var(--erhaben-schatten); }
.thema b { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; font-size: 16.5px; color: var(--hell); }
.thema b span { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--sehr-leise); }
.thema p { margin: 6px 0 0; font-size: 14px; color: var(--leise); line-height: 1.45; }

/* Meetings: Protokolle als Dokument-Karten (wie die Rechtliches-Karten der Server-Seite) */
.dok-liste { display: flex; flex-direction: column; gap: 12px; }
.dok-karte { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-items: start; width: 100%; padding: 16px 18px 15px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; background: var(--erhaben); box-shadow: var(--erhaben-schatten); transition: transform .35s var(--weich), box-shadow .35s, background .35s; }
.dok-karte:hover { transform: translateY(-3px); box-shadow: var(--erhaben-schatten-hoch); }
.dok-karte.an { transform: none; background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.dok-sym { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--einsatz); box-shadow: var(--einsatz-schatten); color: var(--leise); }
.dok-karte.an .dok-sym svg { color: var(--leuchte); filter: var(--leuchte-glanz); }
.dok-t b { display: block; font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--hell); }
.dok-t small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); }
.dok-stand { grid-column: 2; justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 12px; font-family: var(--mono); font-size: 11px; color: var(--text); background: var(--einsatz); box-shadow: var(--einsatz-schatten); }
.dok-stand i { width: 6px; height: 6px; border-radius: 50%; background: var(--sehr-leise); }
.dok-karte.an .dok-stand i { background: var(--orange); box-shadow: 0 0 6px rgba(255, 174, 0, .7); animation: pulsieren 2.4s ease-in-out infinite; }

/* Protokoll */
.prot-abschnitt { margin-top: 22px; }
.prot-abschnitt h4 { margin: 0 0 10px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.prot-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prot-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); line-height: 1.45; }
.prot-liste li > svg { width: 17px; height: 17px; margin-top: 2px; color: var(--gruen); }
.prot-liste li.frage > svg, .prot-liste li.offen > svg { color: var(--sehr-leise); }
.prot-liste li.offen { align-items: center; }
.prot-liste .aufgabe { flex: 1; }
.prot-liste .aufgabe small { font-family: var(--mono); font-size: 11px; color: var(--leise); margin-left: 6px; }
.personen { display: flex; flex-wrap: wrap; gap: 8px; }

/* Claude: Aufträge */
.auftrag { padding: 18px 20px; border-radius: 20px; background: var(--mulde); box-shadow: var(--mulde-schatten); }
.auftrag + .auftrag { margin-top: 12px; }
.auftrag.frage, .auftrag.arbeitet { background: var(--erhaben); box-shadow: var(--erhaben-schatten); }
.auftrag-kopf { display: flex; align-items: center; gap: 12px; }
.auftrag-kopf .id { font-family: var(--mono); font-size: 11.5px; color: var(--sehr-leise); }
.auftrag-kopf .titel { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--hell); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auftrag-kopf .stand { font-family: var(--mono); font-size: 11.5px; color: var(--leise); white-space: nowrap; }
.auftrag-quelle { margin: 6px 0 0 20px; font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); }
.auftrag-kopf .mini { margin: -6px -8px -6px 0; }
.auftrag-text { margin: 10px 0 0 20px; font-size: 14.5px; color: var(--leise); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.auftrag details { margin: 8px 0 0 20px; }
.auftrag summary { cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--leise); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.auftrag summary::-webkit-details-marker { display: none; }
.auftrag summary::before { content: "›"; display: inline-block; transition: transform .3s; }
.auftrag details[open] summary::before { transform: rotate(90deg); }
.auftrag .lesen-text { margin-top: 12px; font-size: 15px; }
.rueckfrage { margin: 14px 0 0 20px; }
.rueckfrage p { margin: 0 0 10px; font-size: 15.5px; color: var(--hell); }
.rueckfrage form { display: flex; gap: 8px; }
.rueckfrage input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 999px; padding: 0 18px; font-size: 15px; color: var(--hell); background: var(--mulde); box-shadow: var(--mulde-schatten); }
.auftrag-aktionen { display: flex; gap: 6px; margin: 12px 0 0 14px; }

.claude-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.claude-status kira-kugel { --kugel-groesse: 120px; --kugel-text: var(--leise); --kugel-schrift: var(--mono); --kugel-schriftgroesse: 11px; --kugel-textbreite: 18ch; }
.claude-status h3 { margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 24px; letter-spacing: -.01em; text-transform: none; color: var(--hell); }
.claude-status p { margin: 0; color: var(--leise); font-size: 15px; }
/* Routinen als Symbolleiste (wie die Last-Leiste der Server-Seite) */
.last-leiste { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.last-k { display: grid; justify-items: center; gap: 8px; width: 84px; padding: 0; border: 0; background: none; cursor: pointer; }
.last-k svg { width: 52px; height: 52px; padding: 15px; border-radius: 50%; stroke: var(--leise); stroke-width: 1.7; background: var(--erhaben-knopf); box-shadow: var(--knopf-schatten); transition: stroke .3s, box-shadow .3s, filter .3s, background .3s; }
.last-k em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.35; color: var(--sehr-leise); transition: color .3s; }
.last-k:hover svg { stroke: var(--hell); }
.last-k:hover em { color: var(--text); }
.last-k.akt svg { stroke: var(--orange); filter: drop-shadow(0 0 5px rgba(255, 174, 0, .4)); background: var(--gedrueckt-grund); box-shadow: var(--gedrueckt); }
.last-k.akt em { color: var(--hell); }
.befehl { position: relative; margin: 10px 0 0; padding: 14px 52px 14px 18px; border-radius: 16px; background: var(--mulde); box-shadow: var(--mulde-schatten); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--hell); white-space: pre-wrap; word-break: break-all; }
.befehl .mini { position: absolute; top: 8px; right: 8px; }
.schritt-titel { margin: 22px 0 4px; font-size: 15px; font-weight: 500; color: var(--hell); }
.schritt-titel:first-child { margin-top: 0; }
.schritt-text { margin: 0; font-size: 14px; color: var(--leise); }
.schluessel-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 14.5px; }
.schluessel-zeile:first-child { border-top: 0; }
.schluessel-zeile span { flex: 1; }
.schluessel-zeile small { font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); }
.verbindung-pruef { margin: 0 0 26px; }

.quelle { font-family: var(--mono); font-size: 11px; color: var(--sehr-leise); letter-spacing: 0; text-transform: none; }
.regal { display: flex; flex-wrap: wrap; gap: 10px; }
.regal .chip:hover { transform: translateY(-2px); color: var(--hell); }
.regal .chip { cursor: pointer; text-align: left; transition: transform .2s; height: auto; min-height: 36px; padding: 8px 14px; border-radius: 18px; font-size: 14px; line-height: 1.35; }

/* ---------- Dialog, Menü, Hinweis ---------- */
.dialog { width: min(620px, calc(100vw - 32px)); border: 0; border-radius: 26px; padding: 26px; color: var(--text); background: var(--grund-hoch); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dialog::backdrop { background: rgba(14, 17, 22, .55); backdrop-filter: blur(6px); }
.dialog[open] { animation: herein .4s var(--weich); }
@keyframes herein { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dialog-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog-kopf h2 { margin: 0; font-weight: 600; font-size: 22px; color: var(--hell); }
.dialog-kopf .eingabe-symbol { color: var(--hell); }
.dialog textarea { width: 100%; resize: vertical; min-height: 130px; border: 0; border-radius: 20px; padding: 16px 18px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--hell); background: var(--mulde); box-shadow: var(--mulde-schatten); }
.dialog-hinweis { font-size: 13.5px; color: var(--leise); margin: 12px 4px 18px; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 12px; }
.menue-schwebend { position: fixed; z-index: 40; min-width: 240px; max-width: min(420px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; padding: 6px; border-radius: 18px; background: var(--grund-hoch); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); animation: herein .25s var(--weich); }
.menue-schwebend .menue-titel { padding: 10px 14px 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sehr-leise); }
.menue-schwebend button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 14.5px; line-height: 1.35; color: var(--text); text-align: left; }
.menue-schwebend button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--hell); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--toast); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #F4F6F9; font-size: 14.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); visibility: hidden; transition: transform .5s var(--weich), visibility 0s linear .5s; }
.toast.sichtbar { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--weich), visibility 0s; }
.toast button { background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: #F4F6F9; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; padding: 6px 8px; }
.fusszeile { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 20px 0 40px; border-top: 1px solid var(--linie); font-family: var(--mono); font-size: 11.5px; color: var(--sehr-leise); }
.demo-band { position: fixed; z-index: 45; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 14px 6px; border-radius: 0 0 14px 14px; background: rgba(26, 31, 40, .86); backdrop-filter: blur(10px); color: #F4F6F9; font-family: var(--mono); font-size: 11px; }

/* Beim Laden: sanft auftauchen */
.taucht-auf > * { animation: taucht .8s var(--weich) both; }
.taucht-auf > *:nth-child(2) { animation-delay: .06s; } .taucht-auf > *:nth-child(3) { animation-delay: .12s; }
.taucht-auf > *:nth-child(4) { animation-delay: .18s; } .taucht-auf > *:nth-child(5) { animation-delay: .24s; } .taucht-auf > *:nth-child(6) { animation-delay: .3s; }
@keyframes taucht { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Schmal ---------- */
@media (max-width: 1080px) {
  .raeume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spalten { grid-template-columns: minmax(0, 1fr); }
  .lesen { position: static; max-height: none; }
  .pult { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pult-karte { width: 100%; }
  .raum-buehne { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .raum-bild { height: clamp(220px, 36vh, 340px); order: -1; }
}
@media (max-width: 760px) {
  .held { grid-template-columns: minmax(0, 1fr); padding-top: 20px; position: relative; }
  .held-kugel { position: absolute; top: 8px; right: 0; }
  .held-kugel kira-kugel { --kugel-groesse: 88px; }
  .held-kugel kira-kugel::part(text) { display: none; }
  .gruss { padding-right: 96px; }
  .demo-band { top: auto; bottom: 0; border-radius: 14px 14px 0 0; }
  .termin { width: 72vw; }
  .raeume { grid-template-columns: minmax(0, 1fr); }
  .marke-teil, #status-text { display: none; }
  .logo { height: 22px; }
  .status { padding: 0 14px; }
  .band { height: 104px; }
  .zeile-aktionen { opacity: 1; }
  .eingabe { height: 58px; }
  .reiter-pille button span { display: none; }
  .pk-aktionen .text-knopf { margin-left: 0; }
  .tv-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tv-eintrag { grid-template-columns: 42px minmax(0, 1fr); gap: 6px 10px; }
  .tv-ort { grid-column: 2; justify-self: start; max-width: 100%; }
  span.tv-ort { padding: 0; height: auto; }
  .tv-mehr { margin-left: 56px; }
}
@media (max-width: 500px) {
  .rad { zoom: .76; }
  .pk-kopf small { flex-wrap: wrap; gap: 2px 10px; white-space: nowrap; }
  .pk-kopf small .mit-punkt { flex-basis: 100%; }
  .pk-kopf small .mit-punkt::before { content: none; }
  .pr-zeile { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 12px 12px 14px; }
  .pr-sym { width: 34px; height: 34px; }
  .pr-sym svg { width: 18px; height: 18px; }
  .tv-kachel { padding: 12px 10px 11px; gap: 8px; }
  .tv-sym { width: 28px; height: 28px; }
  .tv-sym svg { width: 15px; height: 15px; }
  .tv-kachel b { font-size: 23px; }
  .tv-name { font-size: 10px; letter-spacing: -.02em; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tv-kachel { align-content: start; }
  .heute-liste .zeile { padding-right: 8px; gap: 12px; }
  .heute-liste .zeile-aktionen { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Gedanke notieren: dieselbe Eingabe, anderes Ziel */
.eingabe.notiz-modus .eingabe-symbol, .eingabe.notiz-modus:focus-within .eingabe-symbol { color: var(--hell); transform: none; }
