/* Flexoopp Kommandozentrale (App v35) – nach dem abgenommenen Entwurf vom 08.11.2026.
   Handy zuerst: Statusleiste, Chip-Reihe, 3D-Gehirn oben, Felder gestapelt, Sprechleiste fest unten.
   Ab 900 px: Seitenmenü als gestapelte Glasscheiben mit Originallogo, Gehirn in der Mitte, Felder drumherum.
   Farbe: Mitternacht (hellblau). Zustand nur über Farbe. Je Bereich eine weiche Flächenfarbe, nie grell. */

/* v35.64 – wie in style.css: dunkle Werte auch in den immer dunklen Vollbild-Flächen, helle im Gespräch über der hellen Zentrale */
:root, .gespraech, .dg {
  --zk-kern: #6aa5f5; --zk-agenten: #a98bff; --zk-finanzen: #5fd0b8; --zk-markt: #f0b76a; --zk-plattform: #63ddf4;
  --zk-ok: #7ad3a0; --zk-warn: #e8a66b;
  --zk-panel: rgba(14, 22, 40, .5); --zk-panel-2: rgba(20, 32, 56, .42);
  --zk-linie: rgba(106, 165, 245, .18); --zk-linie-2: rgba(106, 165, 245, .36);
  --zk-glow: rgba(106, 165, 245, .45);
  --zk-textkante: 0 1px 2px rgba(0, 0, 0, .45);
  /* Gespräch: Flexos Sprechblase, Status-Blase, Karten und Kopf der Liste, Verlauf am unteren Rand (R, G, B) */
  --zk-blase: rgba(22, 30, 46, .88); --zk-blase-leise: rgba(22, 30, 46, .6);
  --zk-tafel: rgba(22, 30, 46, .94); --zk-tafel-kopf: rgba(15, 20, 30, .96);
  --zk-boden: 9, 13, 22;
  --zk-sprech-h: 66px;
}
:root[data-theme="light"], :root[data-theme="light"] .gespraech.ueber-zentrale {
  --zk-kern: #2a66d1; --zk-agenten: #6e52c9; --zk-finanzen: #1f8f78; --zk-markt: #b7781f; --zk-plattform: #1f8ea6;
  --zk-ok: #2b8a57; --zk-warn: #b7781f;
  --zk-panel: rgba(255, 255, 255, .6); --zk-panel-2: rgba(255, 255, 255, .5);
  --zk-linie: rgba(42, 102, 209, .16); --zk-linie-2: rgba(42, 102, 209, .34);
  --zk-glow: rgba(42, 102, 209, .28);
  --zk-textkante: none;
  --zk-blase: rgba(255, 255, 255, .94); --zk-blase-leise: rgba(255, 255, 255, .86);
  --zk-tafel: rgba(255, 255, 255, .96); --zk-tafel-kopf: rgba(236, 239, 245, .98);
  --zk-boden: 244, 246, 250;
}

/* ---------- Ansicht ---------- */
#view-zentrale { gap: 14px; padding-bottom: calc(var(--zk-sprech-h) + 24px); }
/* Die Einblende-Animation der Ansichten hält sonst ein transform fest – dann wären Sprechleiste und geöffnetes Feld nicht am Bildschirm fixiert */
#view-zentrale { animation-fill-mode: backwards; }
body.in-zentrale { background-image: radial-gradient(900px 600px at 50% 18%, rgba(106, 165, 245, .10), transparent 60%), linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
/* Auf dem Handy ersetzt die Chip-Reihe die Tab-Leiste, unten sitzt die Sprechleiste */
@media (max-width: 899px) {
  body.in-zentrale .tabbar { display: none; }
  body.in-zentrale .main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
}
.zk-hud { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }

/* Statusleiste */
.zk-oben { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.zk-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--zk-linie-2); background: rgba(106, 165, 245, .1); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); white-space: nowrap; }
.zk-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--zk-zustand, var(--zk-kern)); box-shadow: 0 0 10px var(--zk-zustand, var(--zk-kern)); transition: background .6s, box-shadow .6s; flex-shrink: 0; }
.zk-uhr { margin-left: auto; text-align: right; line-height: 1.1; }
.zk-uhr .zk-datum { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.zk-uhr .zk-zeit { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Chip-Reihe (Handy) */
.zk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-overflow-scrolling: touch; }
.zk-chips::-webkit-scrollbar { display: none; }
.zk-chips button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--text-2); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.zk-chips button b { font-family: var(--mono); font-size: 11px; color: var(--brand-text); background: rgba(106, 165, 245, .16); padding: 0 7px; border-radius: 999px; }
@media (min-width: 900px) { .zk-chips { display: none; } }

/* Gehirn */
.zk-buehne { position: relative; height: 280px; margin: 0 -16px; touch-action: pan-y; }
.zk-felder > .zk-buehne { order: -1000; }
.zk-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zk-kernlabel { position: absolute; left: 50%; top: var(--kern-y, 50%); transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.zk-kernlabel b { display: block; font-family: var(--head); font-weight: 600; font-size: 26px; letter-spacing: .3em; margin-left: .3em; text-shadow: 0 0 22px var(--zk-glow); }
.zk-kernlabel small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--brand-text); text-transform: uppercase; margin-top: 6px; }
.zk-ecke { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.zk-ecke.ol { left: 16px; top: 8px; } .zk-ecke.or { right: 16px; top: 8px; } .zk-ecke.ul { left: 16px; bottom: 8px; } .zk-ecke.ur { right: 16px; bottom: 8px; }
.zk-ruhig { position: absolute; inset: 0; display: grid; place-items: center; }
.zk-ruhig span { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--zk-zustand, var(--zk-kern)) 0, transparent 68%); opacity: .55; transition: background .6s; }

/* Felder */
.zk-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.zk-feld { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--zk-linie); background: var(--zk-panel); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 18px 44px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .18); text-shadow: var(--zk-textkante); transition: opacity .35s; }
:root[data-theme="light"] .zk-feld { box-shadow: 0 8px 26px rgba(20, 26, 38, .08), inset 0 1px 0 rgba(255, 255, 255, .7); }
.zk-feld::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); pointer-events: none; }
.zk-feld.zk-b-kern { background-image: linear-gradient(135deg, rgba(106, 165, 245, .2), rgba(106, 165, 245, .02)); }
.zk-feld.zk-b-agenten { background-image: linear-gradient(135deg, rgba(169, 139, 255, .18), rgba(169, 139, 255, .02)); }
.zk-feld.zk-b-finanzen { background-image: linear-gradient(135deg, rgba(95, 208, 184, .16), rgba(95, 208, 184, .02)); }
.zk-feld.zk-b-markt { background-image: linear-gradient(135deg, rgba(240, 183, 106, .16), rgba(240, 183, 106, .02)); }
.zk-feld.zk-b-plattform { background-image: linear-gradient(135deg, rgba(99, 221, 244, .16), rgba(99, 221, 244, .02)); }
.zk-kopf { display: flex; align-items: center; gap: 8px; min-height: 28px; padding-right: 72px; }
.zk-kopf .zk-hud { color: var(--text-2); }
.zk-kopf .zk-rechts { margin-left: auto; }
.zk-griff, .zk-auf { position: absolute; top: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.zk-griff { right: 46px; opacity: .55; cursor: grab; touch-action: none; background: repeating-linear-gradient(90deg, var(--text-2) 0 2px, transparent 2px 5px) center / 14px 10px no-repeat; border: 0; padding: 0; }
.zk-griff:hover, .zk-griff:focus-visible { opacity: 1; }
.zk-auf { right: 12px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--brand-text); padding: 0; }
.zk-auf svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.zk-feld.ziehe { opacity: .35; }
.zk-feld.zielfeld { outline: 2px dashed var(--brand-text); outline-offset: 4px; }
.zk-geist { position: fixed; z-index: 60; pointer-events: none; opacity: .92; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 24px var(--zk-glow); transform: scale(.97); }

.zk-liste { display: flex; flex-direction: column; }
.zk-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--zk-linie); font-size: 13.5px; min-width: 0; }
.zk-zeile:last-child { border-bottom: 0; }
button.zk-zeile { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; }
.zk-ikon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: rgba(106, 165, 245, .12); color: var(--brand-text); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.zk-ikon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zk-ikon.a { background: rgba(169, 139, 255, .14); color: var(--zk-agenten); }
.zk-ikon.f { background: rgba(95, 208, 184, .12); color: var(--zk-finanzen); }
.zk-ikon.w { background: rgba(232, 166, 107, .12); color: var(--zk-warn); }
.zk-ikon.p { background: rgba(99, 221, 244, .12); color: var(--zk-plattform); }
.zk-t { flex: 1; min-width: 0; }
.zk-t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-t span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-t span.ok { color: var(--zk-ok); } .zk-t span.w { color: var(--zk-warn); } .zk-t span.a { color: var(--zk-agenten); }
.zk-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--zk-linie-2); color: var(--brand-text); white-space: nowrap; flex-shrink: 0; }
.zk-tag.w { color: var(--zk-warn); border-color: rgba(232, 166, 107, .45); }
.zk-tag.a { color: var(--zk-agenten); border-color: rgba(169, 139, 255, .45); }
.zk-tag.f { color: var(--zk-finanzen); border-color: rgba(95, 208, 184, .45); }
.zk-tag.p { color: var(--zk-plattform); border-color: rgba(99, 221, 244, .45); }
.zk-leer { font-size: 13px; color: var(--muted); padding: 6px 0; }
.zk-fehler { font-size: 13px; color: var(--zk-warn); padding: 6px 0; }
.zk-laedt { height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent) 0 0 / 40% 100% no-repeat, var(--zk-linie); animation: zk-scan 1.4s linear infinite; margin: 10px 0; }
@keyframes zk-scan { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
.zk-link { font-size: 12.5px; color: var(--brand-text); background: none; border: 0; padding: 0; align-self: flex-start; }

/* Agenten */
.zk-agenten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zk-agent { border: 1px solid var(--zk-linie); border-radius: 12px; padding: 10px 11px; background: var(--zk-panel-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; color: inherit; }
.zk-agent .n { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; min-width: 0; }
.zk-agent .n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-agent .n i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: var(--on-brand); background: var(--c, var(--zk-kern)); flex-shrink: 0; }
.zk-agent .s { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.zk-agent .s .zk-punkt { width: 6px; height: 6px; background: var(--c, var(--zk-kern)); box-shadow: none; }
.zk-agent.arbeitet .s .zk-punkt { box-shadow: 0 0 8px var(--c, var(--zk-kern)); }
.zk-balken { height: 3px; border-radius: 3px; background: var(--zk-linie); overflow: hidden; }
.zk-balken b { display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--c, var(--zk-kern)); transition: width .6s; }

/* Tagesablauf */
.zk-zeit-zeile { display: grid; grid-template-columns: 46px 14px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 0; font-size: 13px; position: relative; min-height: 34px; }
.zk-zeit-zeile .z { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.zk-zeit-zeile .m { position: relative; height: 100%; }
.zk-zeit-zeile .m::before { content: ""; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--zk-glow); }
.zk-zeit-zeile .m::after { content: ""; position: absolute; left: 6.5px; top: 15px; bottom: -8px; width: 1px; background: var(--zk-linie-2); }
.zk-zeit-zeile:last-child .m::after { display: none; }
.zk-zeit-zeile.vorbei .m::before { background: var(--zk-ok); box-shadow: none; }
.zk-zeit-zeile.frist .m::before { background: transparent; border: 1.5px solid var(--zk-warn); box-shadow: none; }
.zk-zeit-zeile .b { min-width: 0; } .zk-zeit-zeile .b b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-zeit-zeile .b span { display: block; font-size: 11.5px; color: var(--muted); }

/* Schnellbefehle */
.zk-befehle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zk-befehl { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; min-height: 44px; }
.zk-befehl i { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--zk-linie-2); display: grid; place-items: center; color: var(--brand-text); font-style: normal; flex-shrink: 0; }
.zk-befehl i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Plattform-Messer */
.zk-messer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zk-mess { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.zk-mess svg { width: 72px; height: 72px; }
.zk-mess circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.zk-mess .wert { position: absolute; top: 0; height: 72px; display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.zk-mess .label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Finanzen */
.zk-auge { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--brand-text); display: grid; place-items: center; padding: 0; }
.zk-auge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zk-kennz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zk-kennz div { display: flex; flex-direction: column; min-width: 0; }
.zk-kennz b { font-family: var(--head); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-kennz span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.zk-kurve { width: 100%; height: 72px; }
.zk-kurve path { fill: none; stroke: var(--zk-finanzen); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
body.zk-diskret .zk-geld { filter: blur(7px); user-select: none; }
body.zk-diskret .zk-kurve { filter: blur(5px); }
.zk-geld, .zk-kurve { transition: filter .3s; }

/* Verbindungen */
.zk-verb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zk-verb div { border: 1px solid var(--zk-linie); border-radius: 10px; padding: 8px 10px; background: var(--zk-panel-2); font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zk-verb span { font-size: 11px; font-weight: 400; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.zk-verb span .zk-punkt { width: 6px; height: 6px; background: var(--zk-ok); box-shadow: none; }
.zk-verb span.aus .zk-punkt { background: var(--muted); }
.zk-verb span.w .zk-punkt { background: var(--zk-warn); }

/* Tiefer ins Gehirn: ein Feld wird zum großen Glaspanel, alles andere tritt zurück */
#view-zentrale.tief .zk-feld:not(.fokus), #view-zentrale.tief .zk-kernlabel, #view-zentrale.tief .zk-ecke, #view-zentrale.tief .zk-chips, #view-zentrale.tief .zk-oben { opacity: .08; pointer-events: none; }
.zk-feld.fokus { position: fixed; z-index: 30; left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 64px); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 20px); max-width: 760px; margin: 0 auto; overflow: auto; overscroll-behavior: contain; backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); padding: 18px 20px; }
.zk-feld.fokus { background-color: rgba(12, 18, 32, .86); }
:root[data-theme="light"] .zk-feld.fokus { background-color: rgba(255, 255, 255, .9); }
.zk-feld.fokus .zk-auf svg { transform: rotate(180deg); }
.zk-feld.fokus .zk-griff { display: none; }
.zk-feld.fokus .zk-zeile { padding: 11px 0; font-size: 14px; }
.zk-feld.fokus .zk-t b, .zk-feld.fokus .zk-t span { white-space: normal; }
.zk-feld .zk-mehr { display: none; }
.zk-feld.fokus .zk-mehr { display: block; }
.zk-tiefe-hinweis { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 4px); text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); z-index: 31; pointer-events: none; opacity: 0; transition: opacity .4s; }
#view-zentrale.tief .zk-tiefe-hinweis { opacity: 1; }

/* Sprechleiste */
.zk-sprech { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(14px, env(safe-area-inset-left, 0px)); background: var(--glas); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--zk-linie); }
.zk-sprech form { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; border-radius: 999px; border: 1px solid var(--zk-linie-2); background: linear-gradient(90deg, rgba(106, 165, 245, .08), rgba(106, 165, 245, .18), rgba(106, 165, 245, .08)); box-shadow: 0 0 22px var(--zk-glow); padding: 4px 4px 4px 16px; }
.zk-sprech input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 9px 0; color: var(--ink); }
.zk-sprech input::placeholder { color: var(--text-2); }
.zk-rund { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--zk-linie-2); background: rgba(106, 165, 245, .14); color: var(--brand-text); display: grid; place-items: center; flex-shrink: 0; padding: 0; }
.zk-rund svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.zk-rund.mikro { background: var(--zk-zustand, var(--brand)); color: var(--on-brand); border-color: transparent; box-shadow: 0 0 18px var(--zk-zustand, var(--zk-glow)); transition: background .6s, box-shadow .6s; }
.zk-sprech .zk-welle { display: flex; align-items: center; gap: 3px; height: 18px; }
.zk-sprech .zk-welle i { display: block; width: 3px; height: 40%; border-radius: 2px; background: var(--zk-zustand, var(--brand)); animation: zk-welle 1.3s ease-in-out infinite; }
.zk-sprech .zk-welle i:nth-child(2n) { animation-delay: .25s; } .zk-sprech .zk-welle i:nth-child(3n) { animation-delay: .5s; }
@keyframes zk-welle { 0%, 100% { height: 25%; } 50% { height: 95%; } }
@media (max-width: 420px) { .zk-sprech .zk-welle { display: none; } }

/* Mail-Fenster */
.zk-mail { display: grid; gap: 12px; }
.zk-mail .feld { display: grid; gap: 6px; }
.zk-mail label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.zk-mail input, .zk-mail textarea, .zk-mail select { width: 100%; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card-2); padding: 11px 12px; color: var(--ink); }
.zk-mail textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.zk-mail .zk-hinweis { font-size: 12.5px; color: var(--muted); margin: 0; }
.zk-mail .zk-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.zk-bestaetigen { border: 1px solid var(--zk-warn); border-radius: var(--r); padding: 12px 14px; background: rgba(232, 166, 107, .08); display: grid; gap: 6px; font-size: 14px; }
.zk-bestaetigen b { overflow-wrap: anywhere; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  /* Seitenmenü als gestapelte Glasscheiben mit Originallogo (alle Ansichten) */
  .tabbar { background: var(--zk-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-right: 1px solid var(--zk-linie); gap: 7px; perspective: 900px; }
  .seiten-marke img { width: 150px; filter: drop-shadow(0 0 10px rgba(106, 165, 245, .25)); }
  .tab { position: relative; border: 1px solid var(--zk-linie); background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015) 55%, rgba(106, 165, 245, .06)); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 8px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .2); color: var(--text-2); transition: transform .25s, box-shadow .25s, background .25s; }
  :root[data-theme="light"] .tab { box-shadow: 0 4px 12px rgba(20, 26, 38, .08), inset 0 1px 0 rgba(255, 255, 255, .8); }
  .tab::after { content: ""; position: absolute; right: 0; top: 12%; bottom: 12%; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .35), transparent); opacity: .7; }
  .tab:hover { transform: translateX(4px) translateZ(14px); color: var(--ink); box-shadow: 0 14px 26px rgba(0, 0, 0, .34), 0 0 18px var(--zk-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
  .tab[aria-current="page"] { background: linear-gradient(135deg, rgba(106, 165, 245, .26), rgba(106, 165, 245, .06)); color: var(--ink); border-color: var(--zk-linie-2); transform: translateX(6px) translateZ(20px); box-shadow: 0 16px 30px rgba(0, 0, 0, .38), 0 0 22px var(--zk-glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
  :root[data-theme="light"] .tab[aria-current="page"] { box-shadow: 0 8px 20px rgba(42, 102, 209, .18), inset 0 1px 0 rgba(255, 255, 255, .8); }

  body.in-zentrale .main { max-width: 1320px; }
  #view-zentrale { padding-bottom: calc(var(--zk-sprech-h) + 20px); }
  .zk-felder { grid-template-columns: 260px minmax(0, 1fr) 300px; align-items: start; }
  .zk-felder > .zk-buehne { grid-column: 2; grid-row: 1 / span 2; height: 100%; min-height: 380px; margin: 0; }
  .zk-felder > .zk-feld.breit { grid-column: span 2; }
  .zk-agenten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zk-sprech { left: 236px; }
  .zk-feld.fokus { left: calc(236px + 24px); top: 90px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .zk-felder { grid-template-columns: minmax(0, 1fr) 300px; }
  .zk-felder > .zk-buehne { grid-column: 1; grid-row: auto; min-height: 320px; }
  .zk-felder > .zk-feld.breit { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .zk-sprech .zk-welle i, .zk-laedt { animation: none; }
  .tab, .tab:hover, .tab[aria-current="page"] { transform: none; }
}

/* Fix aus v34: Die Zieh-Anzeige ragte im Ruhezustand unten ins Bild (nur 60 px hochgeschoben bei 59 px Höhe plus Abstand und Notch) */
.zieh-anzeige:not(.an) { transform: translate(-50%, calc(-100% - 20px - env(safe-area-inset-top, 0px))); }

/* Gespräch direkt in der Kommandozentrale: durchsichtig über dem Gehirn, Zustand nur über die Farbe des Gehirns */
.zk-buehne { cursor: pointer; }
.zk-buehne:focus-visible { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 18px; }
.gespraech.ueber-zentrale { background: linear-gradient(180deg, rgba(var(--zk-boden), 0) 0, rgba(var(--zk-boden), 0) 52%, rgba(var(--zk-boden), .78) 78%, rgba(var(--zk-boden), .92) 100%); background-image: linear-gradient(180deg, rgba(var(--zk-boden), 0) 0, rgba(var(--zk-boden), 0) 52%, rgba(var(--zk-boden), .78) 78%, rgba(var(--zk-boden), .92) 100%); pointer-events: none; animation-name: zk-gespraech-auf; }
@keyframes zk-gespraech-auf { from { opacity: 0; } }
.gespraech.ueber-zentrale .gespraech-kopf, .gespraech.ueber-zentrale .gespraech-fuss, .gespraech.ueber-zentrale .gespraech-karten, .gespraech.ueber-zentrale .gespraech-text { pointer-events: auto; }
.gespraech.ueber-zentrale #g-reaktor { display: none; }
.gespraech.ueber-zentrale .gespraech-mitte { align-content: end; padding-bottom: 8px; }
.gespraech.ueber-zentrale .gespraech-text { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
body.im-gespraech .zk-sprech, body.im-gespraech .zk-chips, body.im-gespraech .zk-oben { opacity: 0; pointer-events: none; }
body.im-gespraech #view-zentrale .zk-felder > .zk-feld { opacity: .12; pointer-events: none; }
body.im-gespraech #view-zentrale .zk-kernlabel small { opacity: 0; }
@media (max-width: 899px) { body.im-gespraech .zk-buehne { height: 58vh; } }
@media (min-width: 900px) { .gespraech.ueber-zentrale { left: 236px; } }

/* Antwort von Flexo in der Zentrale (statt Wechsel in die Ansicht „Flexo“) */
.zk-antwort { position: fixed; z-index: 26; left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 22px); max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--zk-linie-2); background: rgba(12, 18, 32, .82); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 24px var(--zk-glow); }
:root[data-theme="light"] .zk-antwort { background: rgba(255, 255, 255, .92); }
.zk-antwort .zk-kopf { padding-right: 0; }
.zk-antwort-zu { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--text-2); display: grid; place-items: center; padding: 0; margin-left: 8px; }
.zk-antwort-zu svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zk-antwort-inhalt { max-height: 42vh; overflow: auto; overscroll-behavior: contain; display: grid; gap: 10px; }
body.im-gespraech .zk-antwort { display: none; }
@media (min-width: 900px) { .zk-antwort { left: calc(236px + 24px); } }

/* ---------- Eine Oberfläche überall (Paket 1, Thema 1): gleiche Kopfleiste, Glasfelder, Sprechleiste auf jeder Seite ---------- */
body { background-image: radial-gradient(900px 600px at 50% 12%, rgba(106, 165, 245, .08), transparent 60%), linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; }
.zk-global-kopf { display: grid; gap: 12px; margin-bottom: 14px; }
.zk-status { cursor: pointer; }
.zk-chips button[aria-current="page"] { color: var(--ink); border-color: var(--zk-linie-2); background: rgba(106, 165, 245, .18); }
.spektrum-linie { display: none; }
.kopf { padding-top: 0; }
.kopf .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 4px; }
.block-kopf h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.karte, .hud-karte, .zahl, .blase.max {
  background: var(--zk-panel); border: 1px solid var(--zk-linie); border-radius: 14px;
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .08);
}
:root[data-theme="light"] .karte, :root[data-theme="light"] .hud-karte, :root[data-theme="light"] .zahl, :root[data-theme="light"] .blase.max { box-shadow: 0 6px 20px rgba(20, 26, 38, .07), inset 0 1px 0 rgba(255, 255, 255, .7); }
.hud-karte::before, .hud-karte::after, .blase.max::before, .blase.max::after { display: none; }
.segment, .chip, .suchfeld { background: var(--zk-panel-2); border-color: var(--zk-linie); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.segment { border: 1px solid var(--zk-linie); }
/* Sprechleiste und Antwortfeld auf jeder Seite; in der Ansicht „Flexo“ gibt es das eigene Eingabefeld */
body[data-ansicht="max"] .zk-sprech, body[data-ansicht="max"] .zk-antwort { display: none; }
body:not([data-ansicht="max"]) .main { padding-bottom: calc(var(--zk-sprech-h) + env(safe-area-inset-bottom, 0px) + 28px); }
@media (max-width: 899px) {
  .tabbar { display: none; }
  .eingabe { bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .scan-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 16px); width: 50px; height: 50px; }
}
@media (min-width: 900px) {
  .zk-global-kopf { margin-bottom: 8px; }
  body:not(.in-zentrale) .main { max-width: 1080px; }
  .scan-fab { bottom: calc(var(--zk-sprech-h) + 24px); }
}

/* ---------- Kalender (Google-Kalender in der Oberfläche) ---------- */
.zk-tag-knopf { cursor: pointer; background: transparent; }
.kal-leiste { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.kal-pfeil { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--ink); font-size: 20px; line-height: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kal-neu { margin-left: auto; min-height: 40px; }
.kal-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; touch-action: pan-y; }
.kal-tagzelle { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; border-radius: 14px; border: 1px solid var(--zk-linie); background: var(--zk-panel); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.kal-tagzelle.vorbei { opacity: .62; }
.kal-tagzelle[aria-pressed="true"] { border-color: var(--zk-linie-2); background: rgba(106, 165, 245, .2); box-shadow: 0 0 0 1px var(--zk-linie-2), 0 0 18px var(--zk-glow); opacity: 1; }
.kal-wt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.kal-zahl { font-family: var(--head); font-size: 19px; font-weight: 600; line-height: 1.1; }
.kal-tagzelle.heute .kal-zahl { color: var(--brand-text); }
.kal-tagzelle.heute .kal-wt::after { content: " ·"; color: var(--brand-text); }
.kal-punkte { display: flex; gap: 3px; height: 5px; }
.kal-punkte i { width: 5px; height: 5px; border-radius: 50%; background: var(--zk-kern); box-shadow: 0 0 6px var(--zk-glow); }
.kal-mini { display: none; }
.kal-termin { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--ink); padding: 12px 14px; }
.kal-termin.vorbei { opacity: .55; }
.kal-termin.laeuft { border-color: var(--zk-linie-2); box-shadow: 0 0 0 1px var(--zk-linie-2), 0 0 22px var(--zk-glow); }
.kal-zeit { display: flex; flex-direction: column; min-width: 54px; font-family: var(--mono); font-size: 13px; color: var(--brand-text); }
.kal-zeit small { color: var(--text-2); font-size: 11px; }
.kal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kal-text b { font-weight: 600; overflow-wrap: anywhere; }
.kal-text span { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.kal-text .kal-jetzt { color: var(--zk-ok); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.kal-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; }
.kal-dl dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding-top: 2px; }
.kal-dl dd { margin: 0; overflow-wrap: anywhere; }
.kal-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0; }
.kal-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.kal-zeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kal-zeiten[hidden] { display: none; }
.kal-zeiten > div { display: grid; gap: 6px; }
@media (min-width: 900px) {
  .kal-woche { gap: 8px; }
  .kal-tagzelle { align-items: stretch; min-height: 168px; padding: 10px 10px 10px; text-align: left; }
  .kal-tagzelle .kal-wt, .kal-tagzelle .kal-zahl { align-self: flex-start; }
  .kal-punkte { display: none; }
  .kal-mini { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-size: 12px; line-height: 1.3; }
  .kal-mini span { padding: 4px 6px; border-radius: 8px; background: rgba(106, 165, 245, .12); border-left: 2px solid var(--zk-kern); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kal-mini span.muted { background: none; border: 0; }
  .kal-mini b { font-family: var(--mono); font-weight: 500; color: var(--brand-text); }
}

/* ---------- Flexos Lage (Karte in der Zentrale) und Aufräumen ---------- */
.zk-lage { position: relative; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--zk-linie-2); background: linear-gradient(135deg, rgba(106, 165, 245, .14), rgba(169, 139, 255, .08)), var(--zk-panel); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 18px 44px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .09); }
.zk-lage[hidden] { display: none; }
.zk-lage-kopf { display: flex; align-items: center; justify-content: space-between; }
.zk-lage-knoepfe { display: flex; gap: 6px; }
.zk-lage-mini { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--text-2); font-size: 15px; line-height: 1; }
.zk-lage-gruss { margin: 0; font-family: var(--head); font-size: 17px; font-weight: 600; }
.zk-lage-fehler { margin: 0; color: var(--zk-warn); font-size: 14px; }
.zk-lage-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zk-lage-punkt { display: flex; align-items: stretch; gap: 6px; }
.zk-lage-haupt { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--ink); }
.zk-lage-nr { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--brand-text); border: 1px solid var(--zk-linie-2); }
.zk-lage-punkt.dringend .zk-lage-nr { color: var(--zk-warn); border-color: rgba(232, 166, 107, .5); }
.zk-lage-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zk-lage-text b { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.zk-lage-text span { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk-lage-frage { flex-shrink: 0; align-self: center; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--zk-linie-2); background: transparent; color: var(--brand-text); font-size: 12px; font-weight: 600; }
.zk-lage-mehr { justify-self: start; font-size: 14px; font-weight: 600; padding: 8px 16px; min-height: 40px; border: 1px solid var(--zk-linie, rgba(127,127,127,.35)); border-radius: 999px; }
.aufr-gruppe { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 14px 0 8px; }
.aufr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aufr-zeile { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, var(--zk-linie)); background: var(--card, var(--zk-panel-2)); }
.aufr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aufr-text b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.aufr-text span { font-size: 12.5px; color: var(--text-2); }
.aufr-wahl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.aufr-wahl button { padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line-2, var(--zk-linie)); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.aufr-wahl button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.aufr-wahl button[data-aufr-was="weg"][aria-pressed="true"] { background: var(--zk-warn); border-color: var(--zk-warn); color: #1b1206; }
.aufr-alle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.aufr-fuss { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); margin: 14px 0 calc(-22px - env(safe-area-inset-bottom, 0px)); padding: 10px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line, var(--zk-linie)); box-shadow: 0 -14px 18px -6px var(--card); }
.aufr-fuss p { margin: 0 0 6px; }
@media (min-width: 900px) { .zk-lage { max-width: 760px; } }

/* ---------- Beleg-Kette: Auswahl des Umsatzes ---------- */
.beleg-kandidat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; color: var(--ink); padding: 12px 14px; }
body.in-zentrale .scan-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 16px); }

/* ---------- Recherche-Projekt ---------- */
.r-ergebnisse { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 2px; }
.r-vorschau summary { cursor: pointer; color: var(--brand-text); margin: 6px 0; }
.r-vorschau pre { white-space: pre-wrap; font-family: var(--mono); font-size: 11.5px; line-height: 1.45; max-height: 260px; overflow: auto; padding: 10px; border-radius: 10px; border: 1px solid var(--line, var(--zk-linie)); background: var(--bg); margin: 0; }
.recherche-form { min-width: 0; }
.recherche-form > * { min-width: 0; max-width: 100%; }
.recherche-form .chips { flex-wrap: wrap; overflow: visible; margin-top: 4px; }
.recherche-form [data-r-region][aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

/* Angebotspaket: Bestandteile in der Freigabe als antippbare Pillen */
button.pille { border: 1px solid var(--zk-linie-2); font: inherit; font-size: 12.5px; cursor: pointer; }

/* ---------- Kalender: Ansichten Tag/Woche/Monat/Jahr, Geburtstage, Ferien-Hinweise ---------- */
.kal-ansichten { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2px 0 10px; }
.kal-ansichten button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.kal-leiste { flex-wrap: wrap; }
.kal-hinweisleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.kal-hinweis { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(240, 183, 106, .45); background: rgba(240, 183, 106, .12); color: var(--ink); }
.kal-hinweis.feiertag { border-color: rgba(169, 139, 255, .45); background: rgba(169, 139, 255, .12); }
.kal-tagzelle.ferien { background: linear-gradient(0deg, rgba(240, 183, 106, .16), rgba(240, 183, 106, .16)), var(--zk-panel); border-color: rgba(240, 183, 106, .45); }
.kal-tagzelle.feiertag .kal-zahl { color: var(--zk-agenten); }
.kal-punkte i.gb { background: #f08ab0; box-shadow: 0 0 6px rgba(240, 138, 176, .6); }
.kal-mini span.gb { border-left-color: #f08ab0; background: rgba(240, 138, 176, .14); }
.kal-termin.gb .kal-zeit { color: #f08ab0; }
.kal-tag-hinweis { font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; border: 1px solid rgba(240, 183, 106, .45); background: rgba(240, 183, 106, .1); }
.kal-tag-hinweis.feiertag { border-color: rgba(169, 139, 255, .45); background: rgba(169, 139, 255, .1); }
#view-kalender[data-kal-ansicht="tag"] #kal-woche { display: none; }
/* Monat: 7 Spalten, Kopfzeile, Zellen kompakt */
.kal-woche.kal-monat { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kal-monat .kal-kopf { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-align: center; padding: 2px 0; }
.kal-monat .kal-tagzelle { padding: 6px 2px; gap: 2px; border-radius: 10px; min-height: 52px; }
.kal-monat .kal-zahl { font-size: 15px; }
.kal-monat .kal-leer { display: grid; place-items: start center; padding-top: 7px; font-size: 13px; color: var(--text-2); opacity: .35; }
/* Jahr: 12 Mini-Monate */
.kal-jahr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kal-minimonat { display: grid; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--zk-linie); background: var(--zk-panel); color: var(--ink); text-align: left; }
.kal-mm-name { font-weight: 600; font-size: 14px; }
.kal-mm-tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 10.5px; text-align: center; }
.kal-mm-tage em { font-style: normal; color: var(--text-2); font-family: var(--mono); font-size: 9px; }
.kal-mm-tage b { font-weight: 500; border-radius: 5px; padding: 2px 0; }
.kal-mm-tage b.hat { background: rgba(106, 165, 245, .28); }
.kal-mm-tage b.ferien { box-shadow: inset 0 -2px 0 rgba(240, 183, 106, .9); }
.kal-mm-tage b.feiertag { color: var(--zk-agenten); }
.kal-mm-tage b.heute { background: var(--brand); color: var(--on-brand); }
@media (min-width: 640px) { .kal-jahr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kal-jahr { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .kal-ansichten { max-width: 420px; }
  .kal-woche.kal-monat .kal-tagzelle { min-height: 112px; align-items: stretch; text-align: left; padding: 6px 8px; }
  .kal-woche.kal-monat .kal-punkte { display: none; }
  .kal-woche.kal-monat .kal-mini { display: flex; }
}
@media (max-width: 599px) { .kal-leiste { flex-wrap: nowrap; gap: 6px; } .kal-leiste [data-kal-neu-laden] { display: none; } .kal-leiste .kal-pfeil { width: 38px; } .kal-neu { padding: 0 14px; } }
.kal-art { display: grid; grid-template-columns: 1fr 1fr; }
.kal-art button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* CRM: Archivieren und Löschen */
.crm-loeschen { color: var(--err, #e5484d); }
.crm-folgen { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 3px; }

/* ---------- Kundenprojekte ---------- */
.kphasen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.kphasen button { padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line-2, var(--zk-linie)); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.kphasen button.erledigt { color: var(--ink); border-color: var(--zk-linie-2); background: rgba(106, 165, 245, .1); }
.kphasen button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (min-width: 560px) { .kphasen { grid-template-columns: repeat(6, 1fr); } }
.kzeit .karte.extern { border-left: 3px solid var(--zk-ok); }
.kzeit .karte.intern { border-left: 3px solid var(--text-2); opacity: .92; }
.ksicht { cursor: pointer; border: 1px solid var(--zk-linie-2); font: inherit; font-size: 12px; }
.ksicht.extern { color: var(--zk-ok); border-color: rgba(122, 211, 160, .5); }
.ksicht.intern { color: var(--text-2); }
.kweg { cursor: pointer; border: 1px solid var(--zk-linie); font: inherit; font-size: 12px; margin-left: auto; }
.kpunkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.kpunkt.extern { background: var(--zk-ok); } .kpunkt.intern { background: var(--text-2); }

/* ---------- Tempo & Feinschliff ---------- */
/* Knopfreihe über Chips: umbrechen statt überlappen; Chips direkt darunter ohne negativen Abstand */
.crm-leiste { flex-wrap: wrap; row-gap: 8px; margin-bottom: 4px; }
.crm-leiste + .chips { margin-top: 6px; }
/* Handy/Touch: keine Unschärfe hinter Karten, Chips und Feldern (kostet auf dem iPhone bei jedem Bild Rechenzeit) – dafür dichtere Flächen */
@media (max-width: 899px), (pointer: coarse) {
  :root, .gespraech, .dg { --zk-panel: rgba(16, 24, 42, .9); --zk-panel-2: rgba(22, 33, 56, .88); }
  :root[data-theme="light"], :root[data-theme="light"] .gespraech.ueber-zentrale { --zk-panel: rgba(255, 255, 255, .92); --zk-panel-2: rgba(255, 255, 255, .88); }
  .karte, .hud-karte, .zahl, .blase.max, .chip, .segment, .suchfeld, .zk-feld, .zk-chips button, .zk-lage, .kal-tagzelle, .kal-minimonat, .kal-pfeil, .zk-status { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
.view { animation-duration: .15s; }
.sheet { animation-duration: .22s; }

/* ---------- Zentrale: echtes Kachel-Raster (Lücken füllen sich, Ziehen fügt ein, Reihen gleich hoch) ---------- */
@media (min-width: 1181px) {
  .zk-felder { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: stretch; }
  .zk-felder > .zk-buehne { grid-column: 2 / span 2; grid-row: 1 / span 2; min-height: 420px; }
  .zk-felder > .zk-feld.breit { grid-column: span 2; }
  .zk-felder > .zk-feld:not(.breit) { grid-column: span 1; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .zk-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: stretch; }
  .zk-felder > .zk-buehne { grid-column: 1 / span 2; grid-row: auto; }
  .zk-felder > .zk-feld.breit { grid-column: span 2; }
}
.zk-felder > .zk-feld { transition: opacity .2s; }
.zk-felder > .zk-feld.ziehe { opacity: .35; outline: 2px dashed var(--zk-linie-2); outline-offset: -2px; }

/* ---------- Steuer-Wächter ---------- */
.st-an { font-weight: 600; }
.st-zwischen { font-size: 1.05rem; margin: 14px 0 4px; }
.st-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--linie, rgba(127,127,127,.25)); border-radius: 12px; }
.st-liste li > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.st-rechts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-schild { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.15); white-space: nowrap; }
.st-schild.gruen { background: rgba(34,160,90,.18); color: #1f8a4c; }
.st-schild.rot { background: rgba(220,60,60,.16); color: #c23b3b; }
.st-schild.gelb { background: rgba(230,170,20,.2); color: #9a6a00; }
.st-klein { padding: 4px 10px; min-height: 0; font-size: .85rem; }
.st-ueber { margin-top: 10px; }
.st-form .knopfreihe { margin-top: 12px; }
.st-liste + .knopfreihe { margin-top: 12px; }

/* ---------- Abteilungen ---------- */
.abt-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.abt-kachel { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--linie, rgba(127,127,127,.25)); background: transparent; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.abt-kachel:hover, .abt-kachel:focus-visible { border-color: var(--akzent, #3b82f6); }
.abt-kachel svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.abt-kachel strong { font-size: 1rem; }
.abt-zuletzt { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.abt-zuletzt li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(127,127,127,.08); overflow-wrap: anywhere; }
.abt-form .knopfreihe { margin-top: 12px; }

/* ---------- Flexo-Seite: nur noch der Kern (ohne Team-Kreis) ---------- */
#view-max .gehirn { width: min(100%, 420px); aspect-ratio: auto; display: grid; place-items: center; padding: 18px 0 6px; margin: 0 auto; }
#view-max .gehirn-netz, #view-max #gehirn-knoten { display: none; }
#view-max .gehirn-mitte { position: relative; left: auto; top: auto; transform: none; width: min(300px, 70vw); }
#view-max .gehirn { position: relative; isolation: isolate; }
#view-max .gehirn::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(400px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(90,150,255,.35)) 0, transparent 62%); opacity: .5; pointer-events: none; z-index: -1; }

/* ---------- Direktsprung aus den Kacheln ---------- */
.zk-zeit-zeile[data-ziel], .zk-verb [data-ziel] { cursor: pointer; border-radius: 8px; transition: background .15s; }
.zk-zeit-zeile[data-ziel]:hover, .zk-verb [data-ziel]:hover, button.zk-zeile:hover { background: rgba(127, 127, 127, .08); }
.zk-zeit-zeile[data-ziel]:focus-visible, .zk-verb [data-ziel]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@keyframes zk-aufleuchten { 0% { box-shadow: 0 0 0 0 var(--brand); } 35% { box-shadow: 0 0 0 4px var(--brand), 0 0 28px var(--glow, rgba(90,150,255,.4)); } 100% { box-shadow: 0 0 0 0 transparent; } }
.zk-angesprungen { animation: zk-aufleuchten 2.2s ease-out; border-radius: 12px; }

/* ---------- Zurück-Knopf (Handy): unten links, gegenüber der Kamera ---------- */
.zurueck-knopf { position: fixed; z-index: 25; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--zk-sprech-h) + 22px); display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); background: var(--zk-panel, rgba(20,26,38,.85)); color: inherit; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.zurueck-knopf[hidden] { display: none; }
.zurueck-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zurueck-knopf:active { transform: scale(.96); }
@media (min-width: 900px) { .zurueck-knopf { display: none; } }

/* ---------- Wo stehen wir? (Geschäftsentwicklung) ---------- */
.ew-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.ew-raster.ew-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-kachel { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); min-width: 0; }
.ew-kachel b { font-size: 1.1rem; overflow-wrap: anywhere; }
.ew-d { font-size: .78rem; color: var(--muted); }
.ew-d.plus { color: #1f8a4c; } .ew-d.minus { color: #c23b3b; }
.ew-ziele { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ew-ziele li { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); }
.ew-ziel-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.ew-balken { position: relative; height: 8px; border-radius: 99px; background: rgba(127,127,127,.18); }
.ew-balken span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--brand); }
.ew-balken i { position: absolute; top: -3px; width: 2px; height: 14px; background: currentColor; opacity: .55; }
.ew .knopfreihe { margin-top: 14px; }

/* ---------- Besprechungsmodus ---------- */
.bs-ok { align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); }
.bs-ok input { margin-top: 3px; flex: 0 0 auto; }
.bs-form .knopfreihe, .bs-lauf .knopfreihe, .bs-erg .knopfreihe { margin-top: 12px; flex-wrap: wrap; }
.bs-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bs-kopf b { font-family: var(--mono, monospace); font-size: 1.3rem; }
.bs-punkt { width: 12px; height: 12px; border-radius: 50%; background: #e0453a; box-shadow: 0 0 0 4px rgba(224,69,58,.2); animation: atmen 1.6s ease-in-out infinite; }
.bs-punkt.pause { background: var(--muted); box-shadow: none; animation: none; }
.bs-text { white-space: pre-wrap; max-height: 40vh; overflow: auto; padding: 12px; border-radius: 12px; background: rgba(127,127,127,.08); font-size: .95rem; line-height: 1.5; min-height: 90px; }
.bs-liste { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- Weitere Kalender (Abos) ---------- */
.kal-termin[data-abo] { box-shadow: inset 4px 0 0 var(--abo); }
.kal-mini span[data-abo]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--abo); margin-right: 4px; vertical-align: middle; }
.kal-abo { color: var(--abo, var(--muted)); font-weight: 600; }
.kal-abo-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.kal-abo-liste li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); box-shadow: inset 4px 0 0 var(--abo, transparent); }
.kal-abo-liste li > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .kal-abo-liste li { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; } }
.kal-farben { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.kal-farben button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--abo); cursor: pointer; }
.kal-farben button[aria-checked="true"] { border-color: currentColor; box-shadow: 0 0 0 2px var(--abo); }
.kal-abos .knopfreihe { margin-top: 12px; }

.kal-plus { margin-left: auto; }
#kal-tag .block-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Kosten & Abos ---------- */
.ko-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ko-abo { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); min-width: 0; overflow-wrap: anywhere; }
.ko-abo.teurer { box-shadow: inset 4px 0 0 #e0453a; }
.ko-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ko-betrag { font-weight: 700; white-space: nowrap; } .ko-betrag small { font-weight: 400; color: var(--muted); }
.ko-rot { color: #c23b3b; font-weight: 600; }
.ko-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.ko-knoepfe [aria-pressed="true"] { border-color: var(--brand); color: var(--brand); }
.ko-rest { margin-top: 10px; }
.ko .knopfreihe { margin-top: 12px; flex-wrap: wrap; }

/* ---------- Terminzeiten (freigegebene Fenster) ---------- */
.kal-tagzelle.frei { box-shadow: inset 0 -3px 0 rgba(34, 160, 107, .75); }
.kal-tag-fenster { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 13px; color: inherit; padding: 8px 12px; border-radius: 10px; margin-bottom: 8px; border: 1px dashed rgba(34, 160, 107, .6); background: rgba(34, 160, 107, .08); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.kal-tag-fenster .klein { color: #1f8a5c; white-space: nowrap; }
.kal-fbloecke { display: grid; gap: 8px; }
.kal-fblock { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.kal-fblock input { min-width: 0; }
.kal-wt-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.kal-wt-wahl label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); cursor: pointer; font-size: 14px; }
.kal-wt-wahl label:has(input:checked) { border-color: var(--brand); color: var(--brand); }
.kal-wt-wahl input { margin: 0; }
.kal-fliste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.kal-fliste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); box-shadow: inset 4px 0 0 rgba(34, 160, 107, .75); min-width: 0; }
.kal-fliste li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.kal-fenster .knopfreihe { margin-top: 12px; flex-wrap: wrap; }
.zk-zeit-zeile.fenster .m { background: #22a06b; }
.zk-zeit-zeile.fenster b { color: #1f8a5c; }

/* ---------- Flexo-Seite: dieselbe schwebende Punktwolke wie in der Zentrale (Kreis + Logo nur noch ohne WebGL) ---------- */
#view-max .gehirn.punkte { width: min(100%, 560px); height: min(56vh, 520px); min-height: 300px; padding: 0; }
@media (max-width: 899px) { #view-max .gehirn.punkte { height: min(42vh, 340px); min-height: 240px; } }
#view-max .gehirn.punkte::before { display: none; }
#view-max .gehirn.punkte > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#view-max .gehirn.punkte .reaktor-ringe, #view-max .gehirn.punkte .kern { display: none; }
#view-max .gehirn.punkte .gehirn-mitte { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(260px, 60vw); aspect-ratio: 1; border-radius: 50%; background: none; z-index: 1; }
#view-max .gehirn.punkte .gehirn-mitte::before, #view-max .gehirn.punkte .gehirn-mitte::after { display: none; }
#view-max .gehirn.punkte .gehirn-mitte:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* ---------- Social Media (Metricool) ---------- */
.so-regeln { margin: 10px 0; padding-left: 18px; display: grid; gap: 4px; }
.so-fragen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.so-fragen .btn { white-space: normal; min-width: 0; }
.so-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.so-liste li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); min-width: 0; overflow-wrap: anywhere; }
.so-kopf { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.so-text { font-size: 14px; white-space: pre-line; }
.so .knopfreihe { margin-top: 12px; }

/* ---------- Beitrags-Vorschau (immer hell wie in den Apps) ---------- */
.so-knoepfe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 8px; }
.pv-tabs button { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); background: none; color: inherit; cursor: pointer; }
.pv-tabs button[aria-selected="true"] { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.pv-feld { margin-top: 8px; }
.pv-warn { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: rgba(224, 69, 58, .1); border: 1px solid rgba(224, 69, 58, .4); }
.pv-karte { max-width: 470px; margin: 0 auto; background: #fff; color: #1c1e21; border-radius: 12px; border: 1px solid #dbdbdb; overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.4; text-align: left; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.pv-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.pv-avatar { width: 36px; height: 36px; border-radius: 50%; background: #111827; display: grid; place-items: center; flex: none; overflow: hidden; }
.pv-avatar img { width: 70%; height: auto; }
.pv-ig .pv-avatar { width: 32px; height: 32px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6249f; }
.pv-name { display: grid; line-height: 1.25; min-width: 0; }
.pv-zeit { color: #65676b; font-size: 12px; }
.pv-inhalt { padding: 0 12px 10px; }
.pv-text { white-space: pre-line; overflow-wrap: anywhere; }
.pv-tag { color: #385898; }
.pv-li .pv-tag { color: #0a66c2; font-weight: 600; }
.pv-ig .pv-tag { color: #00376b; }
.pv-mehr { font: inherit; border: 0; background: none; padding: 0; color: #65676b; cursor: pointer; }
.pv-medien { position: relative; background: #f0f2f5; }
.pv-medien img, .pv-medien video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-medien.ig { aspect-ratio: 4 / 5; } .pv-medien.hoch { aspect-ratio: 9 / 16; max-height: 70vh; } .pv-medien.breit img, .pv-medien.breit video { height: auto; max-height: 560px; object-fit: contain; background: #f0f2f5; }
.pv-leer { display: grid; place-items: center; color: #8e8e8e; font-size: 13px; }
.pv-anzahl { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.pv-punkte { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; }
.pv-punkte i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); } .pv-punkte i.an { background: #0095f6; }
.pv-leiste { display: flex; gap: 14px; padding: 10px 12px 4px; }
.pv-leiste svg { width: 24px; height: 24px; fill: none; stroke: #262626; stroke-width: 1.8; stroke-linejoin: round; }
.pv-unter { padding: 2px 12px 4px; }
.pv-fuss { padding: 0 12px 12px; text-transform: uppercase; font-size: 10px; letter-spacing: .02em; }
.pv-aktionen { display: flex; justify-content: space-around; border-top: 1px solid #e4e6eb; margin: 8px 12px 0; padding: 8px 0 10px; color: #65676b; font-weight: 600; font-size: 13px; gap: 6px; flex-wrap: wrap; }

.so-schluessel { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--brand); }
.so-schluessel input { font-family: var(--mono, monospace); font-size: 13px; }
.so-schluessel code, #so-eingang code { overflow-wrap: anywhere; }

/* ---------- Auftrag: Ergebnis zuerst, Bericht kurz, Details eingeklappt ---------- */
.bericht-kurz p { margin: 0; font-size: 17px; line-height: 1.5; }
.bericht-details { margin-top: 4px; }
.bericht-details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.bericht-details .beschreibung { margin-top: 6px; }
.ergebnis-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ergebnis-bilder a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); aspect-ratio: 1; background: var(--card-2, #f0f2f5); }
.ergebnis-bilder img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Canva ---------- */
.ca-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.ca-design { display: grid; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.ca-bild { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); background: var(--card-2, #f0f2f5); }
.ca-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-bild i { font-style: normal; color: var(--muted); font-size: 13px; }
.ca-titel { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ca-gross { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); }
.ca-gross img { width: 100%; display: block; }
.ca .knopfreihe { margin-top: 12px; flex-wrap: wrap; }
.ca-schritte { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.ca-schritte code { overflow-wrap: anywhere; }

/* ---------- KI- & Software-Kosten ---------- */
.kk-dienste { display: grid; gap: 8px; }
.kk-dienst { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); min-width: 0; overflow-wrap: anywhere; }
.kk-dienst.fehlt { border-style: dashed; }
.kk-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kk-betrag { font-weight: 700; white-space: nowrap; } .kk-betrag small { font-weight: 400; color: var(--muted); }
.kk-zeile { display: grid; gap: 4px; font-size: 14px; }
.kk-balken { display: block; height: 6px; border-radius: 99px; background: var(--zk-linie, rgba(127,127,127,.25)); overflow: hidden; }
.kk-balken b { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.kk-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.kk-liste li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.kk .knopfreihe { margin-top: 12px; flex-wrap: wrap; }

/* ---------- Fenster-Welt ---------- */
#fenster-ebene { position: fixed; inset: 0; pointer-events: none; z-index: 61; }
.fenster { position: fixed; pointer-events: auto; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); background: var(--card, #fff); color: var(--ink); border: 1px solid var(--zk-linie-2, rgba(127,127,127,.35)); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: hidden; resize: none; min-width: 280px; min-height: 200px; transition: transform .25s cubic-bezier(.2,.9,.25,1), opacity .22s; }
.fenster.aktiv { box-shadow: 0 28px 70px rgba(0,0,0,.42), 0 0 0 1px var(--brand) ; }
.fenster.zieht { transition: none; user-select: none; }
.fenster.geparkt { transform: translateX(110vw) scale(.92); opacity: 0; }
.fenster.zu { transform: scale(.94); opacity: 0; }
.fenster.parkt-gleich { opacity: .55; }
.fenster[data-lage="links"] { left: 8px !important; top: 8px !important; bottom: 8px; width: calc(50vw - 12px) !important; height: auto !important; resize: none; }
.fenster[data-lage="rechts"] { left: calc(50vw + 4px) !important; top: 8px !important; bottom: 8px; width: calc(50vw - 12px) !important; height: auto !important; resize: none; }
.fenster[data-lage="voll"] { left: 8px !important; top: 8px !important; right: 8px; bottom: 8px; width: auto !important; height: auto !important; resize: none; }
@media (min-width: 900px) { body.in-zentrale .fenster[data-lage="links"], body .fenster[data-lage="links"] { left: 248px !important; width: calc((100vw - 256px) / 2 - 8px) !important; } body .fenster[data-lage="rechts"] { left: calc(248px + (100vw - 256px) / 2) !important; width: calc((100vw - 256px) / 2 - 8px) !important; } body .fenster[data-lage="voll"] { left: 248px !important; } }
.fenster-kopf { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--zk-linie, rgba(127,127,127,.2)); cursor: grab; touch-action: none; background: linear-gradient(180deg, rgba(127,127,127,.06), transparent); }
.fenster.zieht .fenster-kopf { cursor: grabbing; }
.fenster-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fenster-knoepfe { display: flex; gap: 4px; }
.fenster-knoepfe button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); background: none; color: inherit; font: inherit; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.fenster-knoepfe button:hover { border-color: var(--brand); color: var(--brand); }
.fenster-inhalt { overflow: auto; padding: 14px 16px 18px; min-height: 0; min-width: 0; overscroll-behavior: contain; }
.fenster-knoepfe { flex: none; }
.fenster-inhalt img, .fenster-inhalt video, .fenster-inhalt iframe { max-width: 100%; }
.fenster-inhalt > .crm-formular { padding: 0; }
@media (max-width: 899px) {
  .fenster { left: 6px !important; right: 6px; top: calc(env(safe-area-inset-top, 0px) + 6px) !important; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); width: auto !important; height: auto !important; resize: none; border-radius: 18px; }
  .fenster .nur-breit, .fenster [data-f="voll"] { display: none; }
}
#fenster-dock { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 62; display: grid; gap: 6px; }
#fenster-dock[hidden] { display: none; }
.fenster-lasche { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 160px; padding: 12px 7px; border-radius: 0 12px 12px 0; border: 1px solid var(--brand); border-left: 0; background: var(--card, #fff); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: -6px 0 18px rgba(0,0,0,.25); overflow: hidden; touch-action: pan-y; }
.fenster-lasche span { display: block; max-height: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fenster-lasche:hover { background: var(--brand); color: #fff; }
.sheet-abloesen { position: absolute; right: 12px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); background: var(--card, #fff); color: var(--muted); font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.sheet-abloesen:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Gesicht aus Punkten ---------- */
.zk-gesicht { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.zk-buehne.gesicht .zk-kernlabel { top: calc(var(--kern-y, 50%) + var(--gesicht-r, 90px)); transform: translate(-50%, 0); }
.zk-buehne.gesicht .zk-kernlabel b { font-size: 15px; letter-spacing: .32em; }
#view-max .gehirn.punkte > .zk-gesicht { position: absolute; inset: 0; width: 100%; height: 100%; }
.zk-gesicht-schalter { position: absolute; right: 12px; bottom: 10px; z-index: 2; font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.zk-gesicht-schalter:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Canva-Seiten im Fenster ---------- */
.ca-betrachter { display: grid; gap: 10px; height: 100%; grid-template-rows: minmax(0, 1fr) auto auto; }
.ca-buehne { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 0; }
.ca-seite { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; border-radius: 10px; background: rgba(127,127,127,.08); }
.ca-pfeil { width: 40px; height: 64px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); background: var(--card, transparent); color: inherit; font-size: 26px; cursor: pointer; }
.ca-pfeil:hover { border-color: var(--brand); color: var(--brand); }
.ca-leiste { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ca-mini { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.ca-mini button { flex: none; width: 72px; aspect-ratio: 16 / 10; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; }
.ca-mini button[aria-current="true"] { border-color: var(--brand); }
.ca-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) { .ca-pfeil { width: 32px; height: 52px; } }
@media (min-width: 900px) { body .fenster[data-lage="links"], body .fenster[data-lage="rechts"], body .fenster[data-lage="voll"] { bottom: calc(var(--zk-sprech-h, 72px) + 14px); } }

/* ---------- Diktat: sichtbare Rückmeldung ---------- */
.diktat-huelle { position: relative; }
.diktat-status { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; background: var(--card, #fff); color: var(--ink); border: 1px solid var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.diktat-status[hidden] { display: none; }
.diktat-status i { width: 10px; height: 10px; border-radius: 50%; background: #e0453a; box-shadow: 0 0 0 calc(var(--pegel, 0) * 10px) rgba(224, 69, 58, .25); transition: box-shadow .08s; flex: none; }
.diktat-status.schreibt i { background: var(--brand); animation: diktat-puls 1s ease-in-out infinite; box-shadow: none; }
.diktat-status.fertig i { background: #22a06b; box-shadow: none; }
.diktat-status.leer i, .diktat-status.fehler i { background: #e0a23a; box-shadow: none; }
.diktat-status b { font-weight: 600; flex: 1; min-width: 0; }
.diktat-live { flex-basis: 100%; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
@keyframes diktat-puls { 50% { opacity: .35; } }
.zk-sprech .diktat-huelle { flex: 1; display: flex; align-items: center; min-width: 0; }
.zk-sprech .diktat-huelle input { flex: 1; min-width: 0; }

.vs-lebendig { margin-left: 10px; font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--zk-linie, rgba(127,127,127,.3)); background: none; color: var(--muted); cursor: pointer; }
.vs-lebendig[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); }

/* Sprachgespräch als Chat-Verlauf (gespraech-blasen.js) */
body.mit-blasen .gespraech-text { display: none; }
.g-blasen { width: min(100%, 680px); max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 18px 4px 6px; pointer-events: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px); mask-image: linear-gradient(180deg, transparent 0, #000 36px); scrollbar-width: thin; }
.g-blasen:empty { display: none; }
.g-blase { max-width: 80%; padding: 9px 13px 10px; border-radius: 16px; font-size: 16px; line-height: 1.45; animation: g-blase-rein .22s ease-out; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.g-blase small { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.g-blase p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.g-ich-blase { align-self: flex-end; background: var(--brand, #2a66d1); color: var(--on-brand, #fff); border-bottom-right-radius: 5px; }
.g-ich-blase small { opacity: 1; } /* auf der Markenfarbe braucht die kleine Zeile „Du“ die volle Deckkraft (Kontrast) */
.g-max-blase { align-self: flex-start; background: var(--zk-blase); color: var(--ink, #eceef3); border: 1px solid var(--zk-linie-2, rgba(127,127,127,.3)); border-bottom-left-radius: 5px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@keyframes g-blase-rein { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .g-blase { animation: none; } }
@media (max-width: 899px) { .g-blasen { max-height: 40vh; } .g-blase { max-width: 88%; font-size: 15.5px; } }
.g-status-blase { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13.5px; color: var(--text-2, #aab3c5); background: var(--zk-blase-leise); border: 1px dashed var(--zk-linie-2, rgba(127,127,127,.35)); border-bottom-left-radius: 5px; box-shadow: none; }
.g-status-blase[hidden] { display: none; }
.g-punkte { display: inline-flex; gap: 3px; }
.g-punkte i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; animation: g-punkt 1.2s infinite; }
.g-punkte i:nth-child(2) { animation-delay: .2s; } .g-punkte i:nth-child(3) { animation-delay: .4s; }
@keyframes g-punkt { 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .g-punkte i { animation: none; opacity: .7; } }

/* Beitragsvorschau: echtes Karussell (social.js) */
.pv-karussell { overflow: hidden; outline: none; }
.pv-karussell:focus-visible { box-shadow: 0 0 0 2px var(--brand) inset; }
.pv-spur { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.pv-spur::-webkit-scrollbar { display: none; }
.pv-folie { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; min-width: 0; }
.pv-medien.breit .pv-folie img, .pv-medien.breit .pv-folie video { width: 100%; }
.pv-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0 0 2px; }
.pv-pfeil[hidden] { display: none; }
.pv-pfeil.links { left: 8px; } .pv-pfeil.rechts { right: 8px; }
.pv-pfeil:hover { background: #fff; }
.pv-punkte i { cursor: pointer; transition: background .2s; }

/* CRM: Eintrag öffnen und Mailverlauf (crm-verlauf.js) */
.zeitleiste button.karte { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cv { display: grid; gap: 10px; }
.cv-titel { margin: 0; font-size: 1.15rem; }
.cv-zwischen { margin: 8px 0 0; font-size: .95rem; color: var(--text-2); }
.cv-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); background: rgba(127,127,127,.05); max-height: 60vh; overflow: auto; }
.cv-text a { color: var(--brand); }
.cv-mails { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv-mail { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cv-mail .unter { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-voll { margin: 6px 0 4px 12px; padding-left: 12px; border-left: 2px solid var(--brand); display: grid; gap: 8px; }
.cv-kopf { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.cv-kopf dt { color: var(--text-2); } .cv-kopf dd { margin: 0; overflow-wrap: anywhere; }
.zk-feld.wenige .zk-agenten { grid-template-columns: minmax(0, 1fr); }
.zk-feld.wenige { align-self: start; }

/* Fenster: Größe an allen Kanten und Ecken ändern (fenster.js) */
.fenster-rand { position: absolute; z-index: 3; touch-action: none; }
.fenster-rand.r-n, .fenster-rand.r-s { left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.fenster-rand.r-n { top: -3px; } .fenster-rand.r-s { bottom: -3px; }
.fenster-rand.r-o, .fenster-rand.r-w { top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.fenster-rand.r-o { right: -3px; } .fenster-rand.r-w { left: -3px; }
.fenster-rand.r-no, .fenster-rand.r-nw, .fenster-rand.r-so, .fenster-rand.r-sw { width: 16px; height: 16px; }
.fenster-rand.r-no { top: -3px; right: -3px; cursor: nesw-resize; } .fenster-rand.r-sw { bottom: -3px; left: -3px; cursor: nesw-resize; }
.fenster-rand.r-nw { top: -3px; left: -3px; cursor: nwse-resize; } .fenster-rand.r-so { bottom: -3px; right: -3px; cursor: nwse-resize; }
@media (max-width: 899px) { .fenster-rand { display: none; } }
.fenster { overflow: visible; } .fenster > .fenster-kopf { border-radius: 16px 16px 0 0; } .fenster > .fenster-inhalt { border-radius: 0 0 16px 16px; }
.so-auto { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zk-linie, rgba(127,127,127,.25)); cursor: pointer; }
.so-auto input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* v35.61 – Sprachgespräch am großen Bildschirm: Sprechblasen laufen rechts, Flexos Gesicht bleibt frei; was Flexo zeigt, steht links */
.gespraech-anzeige { width: min(100%, 520px); max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 8px; align-content: start; pointer-events: auto; padding: 4px; }
.gespraech-anzeige[hidden] { display: none; }
.ga-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 1; padding: 8px 12px; border-radius: 12px; background: var(--zk-tafel-kopf); border: 1px solid var(--zk-linie-2, rgba(127,127,127,.3)); color: var(--ink, #eceef3); font-size: 15px; }
.ga-karte { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; border-radius: 14px; background: var(--zk-tafel); border: 1px solid var(--zk-linie-2, rgba(127,127,127,.3)); color: var(--ink, #eceef3); }
.ga-nr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--brand, #6aa5f5); color: var(--on-brand, #0f1319); }
.ga-inhalt { min-width: 0; }
.ga-titel { font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ga-unter { font-size: 13px; color: var(--text-2, #b3bccb); margin-top: 2px; }
.ga-mehr { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-2, #b3bccb); }
.ga-mehr summary { cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.ga-mehr summary::-webkit-details-marker { display: none; }
.ga-mehr[open] summary { display: none; }
.ga-mehr div { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink, #eceef3); }
.ga-wirkung { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--text-2, #b3bccb); }
.ga-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ga-knoepfe .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; flex: 0 0 auto; }
.ga-leer { margin: 0; padding: 14px; border-radius: 14px; background: var(--zk-tafel); color: var(--text-2, #b3bccb); }
@media (min-width: 1100px) {
  .gespraech .g-blasen { position: fixed; right: 24px; top: 72px; bottom: 176px; width: min(420px, 28vw); max-height: none; padding: 8px 4px; }
  .gespraech .g-blase { max-width: 94%; }
  .gespraech .gespraech-anzeige, .gespraech .gespraech-karten { position: fixed; left: 24px; width: min(460px, 30vw); }
  .gespraech .gespraech-anzeige { top: 72px; bottom: 120px; max-height: none; }
  .gespraech .gespraech-karten { bottom: 120px; }
  .gespraech .gespraech-anzeige:not([hidden]) ~ .gespraech-karten, .gespraech .gespraech-karten:has(~ .gespraech-anzeige:not([hidden])) { display: none; }
  .gespraech.ueber-zentrale .gespraech-anzeige, .gespraech.ueber-zentrale .gespraech-karten { left: calc(236px + 24px); }
}
.ga-volltext { margin-top: 8px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink, #eceef3); }
.ga-knoepfe a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* v35.62 – Freigaben durchgehen: eine nach der anderen, groß und sichtbar */
.kopf .dg-start { margin-top: 12px; min-height: 46px; padding: 10px 20px; font-size: 16px; }
.dg { position: fixed; inset: 0; z-index: 61; background: #0a0e16; color: #eceef3; overflow-y: auto; overscroll-behavior: contain; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); --ink: #eceef3; --text-2: #b3bccb; --brand: #6aa5f5; --on-brand: #0f1319; }
.dg[hidden] { display: none; }
body.dg-offen { overflow: hidden; }
.dg-rahmen { width: min(100%, 560px); margin: 0 auto; display: grid; gap: 12px; }
.dg-kopf { display: flex; align-items: center; gap: 12px; }
.dg-zahl { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.dg-balken { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dg-balken i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .25s ease; }
.dg-titel { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.dg-mitte { display: grid; gap: 8px; }
.dg-mitte .pv-tabs { margin: 0 0 4px; justify-content: center; }
.dg-wann { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }
.dg-betrag { font-size: 40px; font-weight: 700; text-align: center; padding: 18px 0 6px; }
.dg-kurz { font-size: 16px; line-height: 1.45; color: var(--text-2); padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.dg-kurz summary { cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.dg-kurz summary::-webkit-details-marker { display: none; }
.dg-kurz[open] summary { display: none; }
.dg-kurz div { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.dg-dok { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 28px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; cursor: pointer; text-align: center; }
.dg-dok b { font-size: 18px; overflow-wrap: anywhere; }
.dg-dok span:last-child { font-size: 14px; color: var(--brand); }
.dg-dok-blatt { width: 92px; height: 120px; border-radius: 6px; background: linear-gradient(#fff, #e9edf3); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); position: relative; }
.dg-dok-blatt::before { content: ""; position: absolute; left: 14px; right: 14px; top: 22px; height: 58px; background: repeating-linear-gradient(#c3cad6 0 3px, transparent 3px 11px); }
.dg-knoepfe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: sticky; bottom: 0; padding: 10px 0 2px; background: linear-gradient(transparent, #0a0e16 30%); }
.dg .pv-karte { max-width: max(280px, min(470px, calc(100vh - 450px))); }
.dg-knoepfe .btn { min-height: 52px; font-size: 16px; padding: 10px 6px; }
.dg-hinweis { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-2); text-align: center; }
.dg-fertig { display: grid; justify-items: center; gap: 10px; padding: 18vh 0; text-align: center; }
.dg-fertig h2 { margin: 0; }
.dg-fertig p { margin: 0 0 8px; color: var(--text-2); }
.dg-haken { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: var(--brand); color: var(--on-brand); }
@media (max-width: 480px) { .dg-knoepfe { grid-template-columns: repeat(3, 1fr); } .dg-knoepfe .btn-primary { grid-column: 1 / -1; order: -1; } .dg-knoepfe .btn { font-size: 15px; } }

/* v35.63 – Durchgehen nimmt Auftrags-Vorschläge und feste Vorlagen mit: Art über dem Titel; Vorschau liegt über dem Durchgehen */
.dg-art { margin: 0 0 -6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
body.dg-offen .vorschau-pop { z-index: 62; }

/* Gespräch im Vollbild: Punkte-Kugel mit Gesicht statt Kreis (v35.63) */
.gespraech .reaktor.punkte { display: block; width: min(560px, 92vw); aspect-ratio: auto; height: min(52vh, 520px); min-height: 260px; }
.gespraech .reaktor.punkte > canvas:not(.reaktor-welle) { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gespraech .reaktor.punkte .reaktor-ringe, .gespraech .reaktor.punkte .kern, .gespraech .reaktor.punkte .reaktor-welle { display: none; }

/* v35.64 – CRM-Kontaktfenster: am Rechner breit und zweispaltig (links der Kontakt, rechts Notiz und Verlauf), am Handy einspaltig.
   Der Knopf „Eintragen“ behält seine Breite; das Notizfeld nimmt den Rest (vorher drückte die Diktat-Hülle mit 100 % Breite den Knopf zusammen). */
.crm-kontakt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; align-items: start; }
.crm-spalte { display: grid; gap: 14px; align-content: start; min-width: 0; }
.crm-notiz-zeile { align-items: flex-end; }
.crm-notiz-zeile > .diktat-huelle, .crm-notiz-zeile > .suchfeld { flex: 1 1 0; width: auto; min-width: 0; }
.crm-notiz-zeile > .btn { flex: none; white-space: nowrap; }
@media (min-width: 1000px) {
  .sheet:has(.crm-kontakt) { width: min(1080px, calc(100vw - 48px)); }
  .sheet:has(.crm-kontakt) .crm-kontakt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .sheet:has(.crm-kontakt) .crm-stamm { position: sticky; top: 4px; }
}

/* v35.69 – Tafel der Stimme (tafel_zeigen): sitzt wie die Listen der Stimme (#g-anzeige), am großen Bildschirm links, rechts läuft der Verlauf.
   Bewusst anders als Blatt und Karte: gestrichelter Rand, fester Kopf „Von der Stimme gezeigt – nur Anzeige“, Nummern nur umrandet, kein Hauptknopf.
   Farben aus den Tokens des Gesprächs (--card, --ink …), damit hell/dunkel nie gemischt werden. */
.tf { display: grid; gap: 10px; padding: 0 14px 12px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1.5px dashed var(--line-2); min-width: 0; }
.tf-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: -4px; z-index: 1; margin: 0 -14px; padding: 8px 8px 8px 14px; border-radius: 16px 16px 0 0; background: var(--card); border-bottom: 1px solid var(--line); }
.tf-marke { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .2px; color: var(--text-2); }
.tf-marke::before { content: ""; width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; flex: none; }
.tf-zu { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.tf-titel { margin: 2px 0 0; font-family: var(--head); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.tf-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tf-zeile { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.tf-nr { min-width: 24px; height: 24px; padding: 0 4px; box-sizing: border-box; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--brand); color: var(--brand-text); }
.tf-art-rangliste .tf-nr { min-width: 28px; height: 28px; border-radius: 14px; font-family: var(--head); font-size: 15px; }
.tf-art-rangliste .tf-zeile:nth-child(-n+3) .tf-nr { background: var(--brand-soft, transparent); }
.tf-art-punkte .tf-nr { min-width: 8px; width: 8px; height: 8px; padding: 0; margin: 8px 4px 0; border: 0; background: var(--text-2); }
.tf-inhalt { min-width: 0; }
.tf-text { font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.tf-zusatz { margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tf-tabelle-box { min-width: 0; }
.tf-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; line-height: 1.4; }
.tf-tabelle th, .tf-tabelle td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.tf-tabelle th { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tf-tabelle .tf-nr-zelle { width: 2.2em; font-weight: 700; color: var(--brand-text); }
.tf-fuss { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tf .fk-mark { color: var(--warn); background: var(--warn-bg); border-radius: 3px; padding: 0 2px; }
/* schmal: Tabelle als Stapel („Spalte: Wert“) – nie waagerecht scrollen */
@media (max-width: 599px) {
  .tf-tabelle thead { display: none; }
  .tf-tabelle, .tf-tabelle tbody, .tf-tabelle tr, .tf-tabelle td { display: block; width: auto; }
  .tf-tabelle tr { padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: var(--card-2); }
  .tf-tabelle td { border: 0; padding: 2px 0; }
  .tf-tabelle td[data-spalte]::before { content: attr(data-spalte) ": "; font-size: 12.5px; color: var(--text-2); }
  .tf-tabelle .tf-nr-zelle { width: auto; }
}

/* >>> Zentrale-Raster – Anfang (6) */
/* Zentrale: festes Kachel-Raster (zentrale-raster.js). Feste Spalten je Breite (PC 4, 600–1180 px 2, Handy 1), Zeilen 100 px + 12 px Abstand;
   jede Kachel liegt mit grid-column/grid-row genau auf ihren Zellen (keine automatische Verteilung mehr, kein „dense“). */
#view-zentrale .zk-felder.zk-raster { --rs-reihe: 100px; grid-template-columns: repeat(var(--rs-spalten, 1), minmax(0, 1fr)); grid-auto-rows: var(--rs-reihe); grid-auto-flow: row; align-items: stretch; }
#view-zentrale .zk-felder.zk-raster[data-rs-spalten="1"] { grid-auto-rows: auto; }
#view-zentrale .zk-felder.zk-raster > .zk-feld { align-self: stretch; min-height: 0; transition: opacity .2s, box-shadow .15s, transform .15s; }
#view-zentrale .zk-felder.zk-raster:not([data-rs-spalten="1"]) > .zk-buehne { height: auto; min-height: 0; margin: 0; }
#view-zentrale .zk-felder.zk-raster:not([data-rs-spalten="1"]) > .zk-feld:not(.fokus) { overflow: hidden; }
/* Inhalt länger als die Kachel: unten weich ausblenden; ganz lesen über „Öffnen“ (Fokus-Ansicht wie bisher) */
#view-zentrale .zk-felder.zk-raster > .zk-feld.zk-ueberlauf:not(.fokus) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 38px), rgba(0, 0, 0, .12) calc(100% - 2px)); mask-image: linear-gradient(to bottom, #000 calc(100% - 38px), rgba(0, 0, 0, .12) calc(100% - 2px)); }

/* Griff: Leiste oben mittig (Maus: Kopfzeile ist ebenfalls Griff); am Finger eigener Knopf 44 × 44 links in der Kopfzeile */
#view-zentrale .zk-feld > .zk-griff { position: absolute; top: 0; left: 50%; right: auto; width: 76px; height: 14px; transform: translateX(-50%); opacity: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0 0 10px 10px; background: none; color: var(--text-2); cursor: grab; touch-action: pan-y; z-index: 2; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#view-zentrale .zk-feld > .zk-griff::before { content: ""; width: 40px; height: 4px; border-radius: 3px; background: currentColor; opacity: .55; transition: opacity .15s, width .15s; }
#view-zentrale .zk-feld:hover > .zk-griff::before, #view-zentrale .zk-feld > .zk-griff:focus-visible::before { opacity: 1; width: 52px; }
#view-zentrale .zk-feld > .zk-griff:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 1px; }
#view-zentrale .zk-felder.zk-raster > .zk-feld > .zk-kopf { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#view-zentrale .zk-felder.zk-raster > .zk-feld > .zk-kopf :is(button, a, [role="button"]) { cursor: pointer; }
/* Verkleinern: neben dem Pfeil „Öffnen“ */
#view-zentrale .zk-feld > .zk-mini-knopf { position: absolute; top: 10px; right: 46px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; padding: 0; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); color: var(--brand-text); cursor: pointer; }
#view-zentrale .zk-feld > .zk-mini-knopf svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#view-zentrale .zk-feld > :is(.zk-mini-knopf, .zk-auf):focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
#view-zentrale .zk-feld.fokus > .zk-mini-knopf, #view-zentrale .zk-feld.fokus > .zk-griff { display: none; }
@media (pointer: coarse) {
  #view-zentrale .zk-feld > .zk-griff { top: 6px; left: 6px; width: 44px; height: 44px; transform: none; border-radius: 10px; }
  #view-zentrale .zk-feld > .zk-griff::before { width: 18px; height: 14px; border-radius: 0; opacity: .8; background: radial-gradient(circle, currentColor 1.6px, transparent 2px) 0 0 / 6px 7px; }
  #view-zentrale .zk-feld:hover > .zk-griff::before { width: 18px; }
  #view-zentrale .zk-feld > .zk-griff::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); z-index: -1; }
  #view-zentrale .zk-feld > .zk-auf { top: 6px; right: 6px; width: 44px; height: 44px; border-color: transparent; background: none; }
  #view-zentrale .zk-feld > .zk-mini-knopf { top: 6px; right: 54px; width: 44px; height: 44px; border-color: transparent; background: none; }
  #view-zentrale .zk-feld > :is(.zk-auf, .zk-mini-knopf)::after { content: ""; position: absolute; inset: 6px; border-radius: 9px; border: 1px solid var(--zk-linie); background: var(--zk-panel-2); z-index: -1; }
  #view-zentrale .zk-feld > :is(.zk-auf, .zk-mini-knopf) { z-index: 1; isolation: isolate; }
  #view-zentrale .zk-feld > .zk-griff { isolation: isolate; }
  #view-zentrale .zk-felder.zk-raster > .zk-feld > .zk-kopf { padding-left: 44px; padding-right: 92px; min-height: 36px; }
}

/* Verkleinert: eine Zelle breit und niedrig – Titel, Etikett, eine Zahl bzw. Zeile (Bezeichnung im Quelltext zuerst, sichtbar die Zahl oben) */
#view-zentrale .zk-feld.zk-mini:not(.fokus) { padding: 10px 14px; gap: 4px; }
#view-zentrale .zk-feld.zk-mini:not(.fokus) > :not(.zk-kopf):not(.zk-mini-zeile):not(.zk-griff):not(.zk-mini-knopf):not(.zk-auf) { display: none !important; }
#view-zentrale .zk-feld.zk-mini:not(.fokus) > .zk-kopf { flex-wrap: nowrap; }
#view-zentrale .zk-feld.zk-mini:not(.fokus) > .zk-kopf > :not(.zk-hud) { display: none; }
#view-zentrale .zk-feld.zk-mini:not(.fokus) > .zk-kopf > .zk-hud { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-zentrale .zk-feld.fokus > .zk-mini-zeile { display: none; }
.zk-mini-zeile { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; grid-template-areas: "zahl zahl etikett" "text zusatz zusatz"; align-items: baseline; column-gap: 8px; row-gap: 1px; min-width: 0; }
.zk-mini-zeile[hidden], .zk-mini-zeile > [hidden] { display: none; }
.zk-mini-zahl { grid-area: zahl; min-width: 0; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-mini-text { grid-area: text; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-mini-zusatz { grid-area: zusatz; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zk-mini-zusatz::before { content: "· "; }
.zk-mini-etikett { grid-area: etikett; justify-self: end; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--zk-linie-2); color: var(--brand-text); white-space: nowrap; }
.zk-mini-etikett.w { color: var(--zk-warn); border-color: rgba(232, 166, 107, .45); }
.zk-mini-etikett.p { color: var(--zk-plattform); border-color: rgba(99, 221, 244, .45); }
.zk-mini-zeile:has(> .zk-mini-zahl[hidden]) > .zk-mini-text { grid-row: 1 / span 2; grid-column: 1 / 3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Ziehen: Platzhalter zeigt das Ziel, Zellen werden sichtbar, die Kachel folgt dem Finger bzw. der Maus */
#view-zentrale .zk-felder.zk-raster > .zk-rs-zelle { border-radius: 12px; border: 1px dashed var(--zk-linie); background: rgba(106, 165, 245, .035); pointer-events: none; z-index: 0; }
#view-zentrale .zk-felder.zk-raster > .zk-feld.zk-platzhalter { background: rgba(106, 165, 245, .1); background-image: none; border: 2px dashed var(--brand-text); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }
#view-zentrale .zk-felder.zk-raster > .zk-feld.zk-platzhalter > * { visibility: hidden; }
#view-zentrale .zk-felder.zk-raster > .zk-feld.zk-platzhalter::before { display: none; }
#view-zentrale .zk-felder.zk-raster[data-rs-spalten="1"] > .zk-feld.zk-platzhalter { height: 88px; overflow: hidden; }
#view-zentrale .zk-felder.zk-raster > .zk-feld.zk-gehoben { transform: scale(1.02); box-shadow: 0 22px 50px rgba(0, 0, 0, .35), 0 0 0 2px var(--brand-text); }
.zk-geist.zk-rs-geist > :is(.zk-griff, .zk-mini-knopf, .zk-auf) { display: none; }
.zk-geist.zk-rs-geist { opacity: 1; background-color: rgba(12, 18, 32, .96); }
:root[data-theme="light"] .zk-geist.zk-rs-geist { background-color: rgba(255, 255, 255, .96); }
.zk-geist.zk-rs-geist { overflow: hidden; cursor: grabbing; transform: scale(1.02) rotate(.4deg); outline: 2px solid var(--brand-text); outline-offset: -2px; }
body.zk-rs-zieht, body.zk-rs-zieht * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
#view-zentrale .zk-feld.zk-rs-hinweis::after { content: attr(data-rs-hinweis); position: absolute; left: 8px; top: 52px; z-index: 3; padding: 5px 10px; border-radius: 8px; font-size: 13px; background: var(--ink); color: var(--bg, #0b1220); pointer-events: none; }

/* Fuß unter dem Raster: Hinweis und „Anordnung zurücksetzen“ (unauffällig) */
.zk-rs-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 14px 2px 0; font-size: 12px; color: var(--muted); }
.zk-rs-tipp-finger { display: none; }
@media (pointer: coarse) { .zk-rs-tipp-fein { display: none; } .zk-rs-tipp-finger { display: inline; } }
.zk-rs-zurueck { font: inherit; font-size: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zk-rs-zurueck.frage { color: var(--zk-warn); }
.zk-rs-zurueck:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.zk-rs-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  #view-zentrale .zk-felder.zk-raster > .zk-feld, #view-zentrale .zk-feld > .zk-griff::before { transition: none; }
  #view-zentrale .zk-felder.zk-raster > .zk-feld.zk-gehoben, .zk-geist.zk-rs-geist { transform: none; }
}
/* <<< Zentrale-Raster – Ende */
/* >>> v35.80 G8 – Anfang: kein Scroll-Anker während des Ziehens (sonst springt die Seite am oberen Rand um eine Kachelhöhe) */
body.zk-rs-zieht { overflow-anchor: none; }
/* <<< v35.80 G8 – Ende */
