/* ============================================================
   kb-karte.css — Bühne der Graph-Karte der Wissensbasis (beide Ansichten)

   Eine Datei für die klassische und die Redesign-Ansicht. Alles hängt an .kbk-stage und
   bringt seine Werte selbst mit: die Bühne ist ein dunkles Objekt, auch im hellen Modus der
   App. Maße, Zeiten und Verhalten stammen aus dem abgenommenen Entwurf.

   Schrift: nur Rollen aus fonts.css (--fs-*), freie Werte nur mit Vermerk (Konvention 22).
   Farbregel: Blau = Hauptaktion. Weder Orange noch Ocker kommen hier vor.
   ============================================================ */

.kbk-stage {
  --kbk-ease-out: cubic-bezier(.23, 1, .32, 1);
  --kbk-spring: cubic-bezier(.34, 1.32, .64, 1);
  --kbk-lab: #E8F1FB;
  --kbk-lab-2: #9FC2E6;
  --kbk-lab-3: #7FA1C7;
  --kbk-glow: #6CB6FF;
  --kbk-glass: rgba(8, 28, 56, .62);
  --kbk-glass-b: rgba(159, 194, 230, .16);
  --kbk-blue: #006EC7;
  --kbk-blue-hover: #005FAB;
  --kbk-card: #FFFFFF;
  --kbk-t1: #0E1726;
  --kbk-t2: #4A5668;
  --kbk-t3: #66717F;
  --kbk-line: #E3E8EF;
  --kbk-dot: #13406F;
  /* PR1.736 Nachzug — neutrale Fläche unter Foto/Logo: Silhouette (Person) und Gebäude (Kunde), gedämpft. */
  --kbk-zeichen-bg: #DCE8F5;
  --kbk-zeichen: #7F93AB;

  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  color: var(--kbk-lab);
  font-family: var(--f-sans, 'Fira Sans', system-ui, sans-serif);
  font-size: var(--fs-meta);
  line-height: 1.35;
  background: radial-gradient(1400px 900px at 50% 42%, #0F3560 0%, #0A2747 38%, #061A33 70%, #030E1F 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(3, 14, 31, .18);
  cursor: grab;
}
.kbk-stage.kbk-drag { cursor: grabbing; }
.kbk-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(2, 8, 20, .55) 100%);
}
.kbk-stage button { font-family: inherit; }
.kbk-stage :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.kbk-sky, .kbk-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.kbk-world { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.kbk-glass {
  background: var(--kbk-glass);
  border: 1px solid var(--kbk-glass-b);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Knoten: (0,0) ist die Mitte des Punkts; Größe je Zoomstufe über --s ---------- */
.kbk-node {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; margin: 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: inherit;
  will-change: transform, opacity; pointer-events: auto; --s: 30px;
}
.kbk-node:focus-visible { outline: none; }
.kbk-node:focus-visible .kbk-dot { box-shadow: 0 0 0 3px var(--kbk-dot), 0 0 0 5px #fff; }
.kbk-dot {
  position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s);
  border-radius: 50%; display: grid; place-items: center; overflow: visible;
  background: var(--kbk-dot); border: 1.5px solid rgba(159, 194, 230, .45); color: #CFE4F8; cursor: pointer;
  transition: width 300ms var(--kbk-ease-out), height 300ms var(--kbk-ease-out), left 300ms var(--kbk-ease-out), top 300ms var(--kbk-ease-out),
    box-shadow 200ms ease, border-color 200ms ease;
}
.kbk-dot > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; pointer-events: none; position: absolute; inset: 0; }
.kbk-dot > svg { width: 46%; height: 46%; }
.kbk-mono {
  width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center;
  background: var(--kbk-zeichen-bg); color: var(--kbk-zeichen);
}
/* PR1.736 Nachzug — nie Kürzel: Silhouette/Gebäude füllt die Fläche mittig, wächst mit ihr mit. */
.kbk-stage :is(.kbk-mono, .kbk-av, .kbk-mini, .kbk-me) > :is(.emp-avatar-silhouette, .kbk-gebaeude) {
  display: grid; place-items: center; width: 100%; height: 100%; color: var(--kbk-zeichen); line-height: 0;
}
.kbk-stage :is(.kbk-mono, .kbk-av, .kbk-mini, .kbk-me) > .emp-avatar-silhouette > svg { width: 62%; height: 62%; }
.kbk-stage :is(.kbk-mono, .kbk-av, .kbk-mini, .kbk-me) > .kbk-gebaeude > svg { width: 56%; height: 56%; }
/* Foto/Logo geladen (fuelleBilder bzw. Knoten-Lader setzt die Klasse) → Zeichen darunter weg; Fehlerfall: Zeichen bleibt. */
.kbk-bild-da > :is(.emp-avatar-silhouette, .kbk-gebaeude), .kbk-bild-da > .kbk-mono,
.kbk-node.kbk-bild-da .kbk-mono { visibility: hidden; }
.kbk-lb {
  position: absolute; left: 0; top: calc(var(--s) / 2 + 6px); transform: translateX(-50%);
  font-size: var(--fs-label); line-height: 1.25; color: var(--kbk-lab); text-align: center; font-weight: 600;
  width: max-content; max-width: 136px; background: rgba(4, 20, 42, .66); padding: 1px 7px; border-radius: 7px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transition: opacity 200ms ease, top 300ms var(--kbk-ease-out); pointer-events: none;
}
.kbk-ring { position: absolute; inset: -3px; border-radius: inherit; border: 2px solid #BFE3FF; opacity: 0; pointer-events: none; }
.kbk-ring.kbk-go { animation: kbk-pulse 820ms var(--kbk-ease-out) 2; }
@keyframes kbk-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }

.kbk-person .kbk-dot { border: 2px solid rgba(255, 255, 255, .9); background: #fff; }
.kbk-person.kbk-einsatz .kbk-dot { box-shadow: 0 0 0 3px rgba(108, 182, 255, .28), 0 0 16px rgba(108, 182, 255, .55); }
.kbk-person.kbk-frei .kbk-dot { filter: grayscale(.85) brightness(.85); border-color: rgba(159, 194, 230, .45); }
.kbk-lead .kbk-dot { border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(108, 182, 255, .18), 0 0 34px rgba(108, 182, 255, .55); filter: none; }
.kbk-proj .kbk-dot { background: #fff; border: 2px solid rgba(159, 194, 230, .55); padding: calc(var(--s) * .2); color: #0B2B50; }
.kbk-proj.kbk-aktiv .kbk-dot { box-shadow: 0 0 18px rgba(108, 182, 255, .38); }
.kbk-proj.kbk-geplant .kbk-dot { border-style: dashed; background: rgba(255, 255, 255, .82); }
.kbk-proj.kbk-leer .kbk-dot { border-style: dashed; border-color: rgba(255, 255, 255, .75); }
/* Prototyp 4d: Projekt mit Cloud-Anbieter = Herstellerlogo im weissen Knoten + Raketen-Abzeichen unten links */
.kbk-proj.kbk-hs .kbk-dot { padding: calc(var(--s) * .18); }
.kbk-dot > img.kbk-hs-logo { position: static; width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.kbk-rakete {
  position: absolute; left: calc(var(--s) * -.12); bottom: calc(var(--s) * -.12);
  width: calc(var(--s) * .42); height: calc(var(--s) * .42); min-width: 12px; min-height: 12px;
  border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: #0E2F55; color: #CFE4F8; box-shadow: 0 0 0 1.5px rgba(159, 194, 230, .55);
}
.kbk-rakete > svg { width: 62%; height: 62%; }
.kbk-kunde .kbk-dot { border-radius: 24%; background: #fff; border: 0; padding: calc(var(--s) * .14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 0 24px rgba(108, 182, 255, .42); }
.kbk-kunde .kbk-dot > img { border-radius: 0; object-fit: contain; padding: calc(var(--s) * .14); box-sizing: border-box; }
.kbk-kunde .kbk-mono { background: #fff; color: var(--kbk-zeichen); }
.kbk-kunde.kbk-logo-da .kbk-mono { visibility: hidden; }
.kbk-opp .kbk-dot { background: #173A5E; border: 1.5px dashed rgba(159, 194, 230, .75); }

/* ---------- Zoomstufen: BL (0) · CC (1) · Kunde (2) ---------- */
.kbk-lod0 .kbk-person { --s: 8px; }
.kbk-lod0 .kbk-person .kbk-dot { border-width: 0; background: #9FC2E6; }
.kbk-lod0 .kbk-person .kbk-dot > img, .kbk-lod0 .kbk-person .kbk-mono { opacity: 0; }
.kbk-lod0 .kbk-lead { --s: 56px; }
.kbk-lod0 .kbk-lead .kbk-dot { border-width: 3px; background: #fff; }
.kbk-lod0 .kbk-lead .kbk-dot > img, .kbk-lod0 .kbk-lead .kbk-mono { opacity: 1; }
.kbk-lod0 .kbk-proj { --s: 11px; }
.kbk-lod0 .kbk-proj .kbk-dot { padding: 0; border-width: 0; background: #CFE4F8; }
.kbk-lod0 .kbk-proj .kbk-dot > svg, .kbk-lod0 .kbk-proj .kbk-dot > img, .kbk-lod0 .kbk-rakete { opacity: 0; }
.kbk-lod0 .kbk-proj.kbk-geplant .kbk-dot, .kbk-lod0 .kbk-proj.kbk-leer .kbk-dot { background: transparent; border: 1.5px solid #CFE4F8; }
.kbk-lod0 .kbk-opp { --s: 10px; }
.kbk-lod0 .kbk-opp .kbk-dot { background: transparent; border: 1.5px dashed #CFE4F8; padding: 0; }
.kbk-lod0 .kbk-opp .kbk-dot > svg { opacity: 0; }
.kbk-lod0 .kbk-kunde { --s: 30px; }
.kbk-lod0 .kbk-kunde:not(.kbk-key):not(.kbk-hl) { --s: 9px; }
.kbk-lod0 .kbk-kunde:not(.kbk-key):not(.kbk-hl) .kbk-dot { padding: 0; border-radius: 50%; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.kbk-lod0 .kbk-kunde:not(.kbk-key):not(.kbk-hl) .kbk-dot > img, .kbk-lod0 .kbk-kunde:not(.kbk-key):not(.kbk-hl) .kbk-mono { opacity: 0; }
.kbk-lod0 .kbk-person.kbk-einsatz .kbk-dot { background: #DDF0FF; box-shadow: 0 0 7px #6CB6FF; }
.kbk-lod0 .kbk-person.kbk-frei .kbk-dot { background: rgba(159, 194, 230, .45); filter: none; }
.kbk-lod0 .kbk-lead.kbk-frei .kbk-dot, .kbk-lod0 .kbk-lead.kbk-einsatz .kbk-dot { background: #fff; }
.kbk-lod1 .kbk-person { --s: 30px; }
.kbk-lod1 .kbk-lead { --s: 52px; }
.kbk-lod1 .kbk-proj { --s: 30px; }
.kbk-lod1 .kbk-kunde { --s: 42px; }
.kbk-lod1 .kbk-opp { --s: 24px; }
.kbk-lod2 .kbk-person { --s: 40px; }
.kbk-lod2 .kbk-lead { --s: 58px; }
.kbk-lod2 .kbk-proj { --s: 38px; }
.kbk-lod2 .kbk-kunde { --s: 54px; }
.kbk-lod2 .kbk-opp { --s: 30px; }

/* ---------- Beschriftungen nach Wichtigkeit ---------- */
.kbk-lbon .kbk-lb { opacity: 1; }
.kbk-lb-a .kbk-lb { top: auto; bottom: calc(var(--s) / 2 + 6px); }
.kbk-lb-r .kbk-lb { left: calc(var(--s) / 2 + 6px); top: -9px; transform: none; text-align: left; }
.kbk-lb-l .kbk-lb { left: auto; right: calc(var(--s) / 2 + 6px); top: -9px; transform: none; text-align: right; }
.kbk-sel .kbk-dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 36px rgba(108, 182, 255, .9); }

/* ---------- Inseln, Gruppen ---------- */
.kbk-isl, .kbk-zone, .kbk-combo { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform, opacity; }
.kbk-isl .kbk-t, .kbk-zone .kbk-t { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.kbk-isl .kbk-t { white-space: normal; width: max-content; max-width: var(--tw, 320px); }
.kbk-isl.kbk-kompakt small { display: none; }
.kbk-isl .kbk-t { pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.kbk-isl b { display: block; font-size: var(--fs-body); font-weight: 600; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.kbk-isl small { display: block; font-size: var(--fs-label); color: var(--kbk-lab-2); margin-top: 2px; }
.kbk-isl .kbk-u { display: inline-block; width: 58px; height: 4px; border-radius: 999px; background: rgba(159, 194, 230, .22); margin-top: 6px; overflow: hidden; }
.kbk-isl .kbk-u i { display: block; height: 100%; background: linear-gradient(90deg, #6CB6FF, #BFE3FF); box-shadow: 0 0 8px #6CB6FF; }
.kbk-zone b { display: block; font-size: var(--fs-label); font-weight: 600; color: var(--kbk-lab); }
.kbk-zone small { display: block; font-size: var(--fs-label); color: var(--kbk-lab-3); }
.kbk-combo .kbk-t {
  position: absolute; left: 0; top: -34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  white-space: nowrap; pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; font: inherit;
}
.kbk-combo .kbk-cb {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-display); font-weight: 700; color: #fff; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 40%, rgba(108, 182, 255, .35), rgba(10, 40, 80, .6)); border: 1.5px dashed rgba(159, 194, 230, .6);
  box-shadow: 0 0 30px rgba(108, 182, 255, .3); transition: transform 200ms var(--kbk-ease-out);
}
.kbk-combo .kbk-t:hover .kbk-cb { transform: scale(1.05); }
.kbk-combo b { font-size: var(--fs-label); font-weight: 600; color: var(--kbk-lab); }
.kbk-combo small { font-size: var(--fs-label); color: var(--kbk-lab-3); }

/* ---------- Bedienelemente ---------- */
.kbk-orgchip {
  position: absolute; left: 16px; top: 62px; max-width: calc(100% - 130px); border-radius: 12px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px; z-index: 6; color: var(--kbk-lab); font-size: var(--fs-label);
  white-space: nowrap; overflow: hidden; transition: opacity 220ms ease; opacity: 0; pointer-events: none;
}
.kbk-orgchip b { color: #fff; font-weight: 600; }
.kbk-orgchip span { color: var(--kbk-lab-2); }
.kbk-orgchip[hidden] { display: none; }
.kbk-orgchip .kbk-sep { color: var(--kbk-lab-3); }

.kbk-search {
  position: absolute; left: 16px; top: 14px; width: 292px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  gap: 9px; padding: 0 12px; color: var(--kbk-lab-2); font-size: var(--fs-ui); z-index: 9;
}
.kbk-search svg { flex: none; }
.kbk-search input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--kbk-lab); font: inherit; user-select: text; -webkit-user-select: text;
  text-overflow: ellipsis;   /* gekürzte Suche (Nachzug #930): Platzhalter endet mit … */
}
.kbk-search input::placeholder { color: var(--kbk-lab-2); opacity: 1; }
.kbk-search:focus-within { border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.kbk-search .kbk-kbd { font-size: var(--fs-label); border: 1px solid rgba(159, 194, 230, .3); border-radius: 5px; padding: 0 5px; color: var(--kbk-lab-2); }
.kbk-hits {
  position: absolute; left: 0; right: 0; top: 46px; margin: 0; padding: 4px; list-style: none; border-radius: 12px;
  max-height: 320px; overflow: auto; background: rgba(8, 28, 56, .92); border: 1px solid var(--kbk-glass-b);
}
.kbk-hits li {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; color: var(--kbk-lab); font-size: var(--fs-ui);
  white-space: nowrap; overflow: hidden;
}
.kbk-hits li span:first-child { overflow: hidden; text-overflow: ellipsis; }
.kbk-hits li small { margin-left: auto; color: var(--kbk-lab-3); font-size: var(--fs-label); }
.kbk-hits li[aria-selected="true"], .kbk-hits li:hover { background: rgba(255, 255, 255, .1); }
.kbk-hits .kbk-none { cursor: default; color: var(--kbk-lab-2); }

.kbk-modes { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; z-index: 8; }
.kbk-modes .kbk-ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: linear-gradient(180deg, #fff, #E9F2FC);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25), 0 0 22px rgba(108, 182, 255, .35);
  transition: transform 420ms var(--kbk-spring), width 420ms var(--kbk-spring);
}
.kbk-modes button {
  position: relative; z-index: 1; border: 0; background: none; font-size: var(--fs-ui); font-weight: 600; color: var(--kbk-lab);
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: color 200ms ease, transform 160ms var(--kbk-ease-out);
}
.kbk-modes button svg { width: 16px; height: 16px; }
.kbk-modes button.kbk-on { color: #0B2B50; }
.kbk-modes button:active { transform: scale(.97); }
.kbk-me { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--kbk-zeichen-bg); color: var(--kbk-zeichen); border: 1.5px solid rgba(255, 255, 255, .8); }
.kbk-me img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kbk-hint {
  position: absolute; left: 50%; top: 62px; transform: translateX(-50%); z-index: 6; border-radius: 999px; padding: 6px 14px;
  font-size: var(--fs-label); color: var(--kbk-lab); animation: kbk-chip-in 260ms var(--kbk-ease-out) both;
}

.kbk-zoom { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); border-radius: 14px; display: flex; flex-direction: column; align-items: stretch; padding: 5px; gap: 2px; z-index: 8; }
.kbk-zoom button {
  border: 0; background: none; color: var(--kbk-lab); font-size: var(--fs-label); font-weight: 600; border-radius: 9px; padding: 7px 8px; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: background 160ms ease, color 160ms ease;
}
.kbk-zoom button:hover { background: rgba(255, 255, 255, .08); }
.kbk-zoom button.kbk-pm { justify-content: center; font-size: var(--fs-title); line-height: 1; padding: 6px; }
.kbk-zoom button i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--kbk-lab-2); flex: none; transition: background 160ms ease, box-shadow 160ms ease; }
.kbk-zoom button.kbk-on { color: #fff; }
.kbk-zoom button.kbk-on i { background: #fff; border-color: #fff; box-shadow: 0 0 10px #6CB6FF; }
.kbk-zoom .kbk-sepl { height: 1px; background: var(--kbk-glass-b); margin: 3px 4px; }

/* ---------- Spur ---------- */
.kbk-trail { position: absolute; left: 16px; top: 62px; display: flex; gap: 6px; align-items: center; z-index: 6; max-width: calc(100% - 130px); }
.kbk-trail .kbk-chip {
  display: flex; gap: 7px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--kbk-lab);
  border-radius: 999px; padding: 4px 10px 4px 5px; font-size: var(--fs-label); font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: kbk-chip-in 260ms var(--kbk-ease-out) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.kbk-trail .kbk-chip.kbk-cur { background: #fff; color: var(--kbk-t1); border-color: #fff; }
.kbk-trail .kbk-chip img, .kbk-trail .kbk-chip .kbk-mini { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.kbk-trail .kbk-chip .kbk-mini { display: grid; place-items: center; color: var(--kbk-zeichen); position: relative; overflow: hidden; }
.kbk-trail .kbk-chip .kbk-mini img { position: absolute; inset: 0; }
.kbk-trail .kbk-chip img.kbk-lg { object-fit: contain; padding: 2px; border-radius: 5px; }
.kbk-trail .kbk-sepl { color: var(--kbk-lab-2); font-size: var(--fs-label); }
@keyframes kbk-chip-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Karte rechts ---------- */
.kbk-info {
  position: absolute; right: 100px; top: 66px; width: 276px; max-height: calc(100% - 66px - 112px); display: flex; flex-direction: column;
  background: var(--kbk-card); color: var(--kbk-t1); border-radius: 14px; box-shadow: 0 16px 40px rgba(3, 14, 31, .4); z-index: 7; overflow: hidden;
  opacity: 0; transform: translateX(20px); pointer-events: none; will-change: transform, opacity; user-select: text; -webkit-user-select: text; cursor: default;
}
.kbk-info.kbk-on { pointer-events: auto; }
.kbk-info .kbk-h { display: flex; gap: 10px; align-items: center; padding: 14px 14px 10px; flex: none; }
.kbk-info .kbk-av { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--kbk-zeichen-bg); color: var(--kbk-zeichen); display: grid; place-items: center; position: relative; overflow: hidden; }
.kbk-info .kbk-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kbk-info .kbk-av.kbk-sq { border-radius: 10px; border: 1px solid var(--kbk-line); background: #fff; }
.kbk-info .kbk-av.kbk-sq img { object-fit: contain; padding: 4px; box-sizing: border-box; }
.kbk-info .kbk-h b { display: block; font-size: var(--fs-body); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.kbk-info .kbk-h small { display: block; font-size: var(--fs-label); color: var(--kbk-t2); margin-top: 2px; }
.kbk-info .kbk-x { margin-left: auto; align-self: flex-start; border: 0; background: none; color: var(--kbk-t3); cursor: pointer; padding: 2px; border-radius: 6px; line-height: 0; }
.kbk-info .kbk-x:hover { color: var(--kbk-t1); }
.kbk-info .kbk-info-body { overflow: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.kbk-info .kbk-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--kbk-line); border-bottom: 1px solid var(--kbk-line); }
.kbk-info .kbk-facts div { padding: 9px 12px; border-right: 1px solid var(--kbk-line); min-width: 0; }
.kbk-info .kbk-facts div:last-child { border-right: 0; }
.kbk-info .kbk-facts b { display: block; font-size: var(--fs-section); font-weight: 600; }
.kbk-info .kbk-facts small { font-size: var(--fs-label); color: var(--kbk-t3); }
.kbk-info .kbk-rows { padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.kbk-info .kbk-rows .kbk-n { font-size: var(--fs-label); color: var(--kbk-t2); }
.kbk-info .kbk-rows .kbk-n b { color: var(--kbk-t1); font-weight: 600; }
.kbk-info .kbk-lage {
  display: flex; width: 100%; padding: 8px 14px; border: 0; border-top: 1px solid var(--kbk-line); background: none; font-size: var(--fs-label); color: var(--kbk-t3);
  cursor: pointer; text-align: left; flex: none; justify-content: space-between;
}
.kbk-info .kbk-lage:hover { color: var(--kbk-t1); }
.kbk-info .kbk-f { padding: 10px 14px; border-top: 1px solid var(--kbk-line); display: flex; gap: 8px; justify-content: flex-end; flex: none; }
.kbk-btn {
  border: 0; border-radius: 9px; padding: 7px 14px; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; background: var(--kbk-blue); color: #fff;
  transition: background 160ms ease, transform 160ms var(--kbk-ease-out);
}
.kbk-btn:hover { background: var(--kbk-blue-hover); }
.kbk-btn:active { transform: scale(.97); }
.kbk-info :focus-visible { outline: 2px solid var(--kbk-blue); outline-offset: 2px; }

/* ---------- Zustände: lädt · leer · Fehler ---------- */
.kbk-state {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; color: var(--kbk-lab);
}
.kbk-state b { font-size: var(--fs-section); font-weight: 600; color: #fff; }
.kbk-state p { margin: 0; max-width: 420px; font-size: var(--fs-meta); color: var(--kbk-lab-2); }
.kbk-state .kbk-btn { margin-top: 6px; background: #fff; color: #0B2B50; }
.kbk-state .kbk-btn:hover { background: #E9F2FC; }
.kbk-skel { display: flex; gap: 26px; align-items: center; margin-bottom: 8px; }
.kbk-skel span { border-radius: 50%; background: rgba(159, 194, 230, .22); animation: kbk-breathe 1400ms ease-in-out infinite; }
.kbk-skel span:nth-child(1) { width: 96px; height: 96px; }
.kbk-skel span:nth-child(2) { width: 140px; height: 140px; animation-delay: 180ms; }
.kbk-skel span:nth-child(3) { width: 76px; height: 76px; animation-delay: 360ms; }
@keyframes kbk-breathe { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }

/* ---------- Zeitregler (PR1.618): unten in der Bühne, Glasfläche ---------- */
.kbk-zeit {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 8; border-radius: 16px; padding: 10px 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; color: var(--kbk-lab);
}
.kbk-focus .kbk-zeit:not(.kbk-zeit-aktiv) { opacity: .72; }
.kbk-zeit-ctl { display: flex; align-items: center; gap: 8px; }
.kbk-zeit button {
  border: 0; cursor: pointer; font-size: var(--fs-label); font-weight: 600; color: var(--kbk-lab);
  background: rgba(255, 255, 255, .08); border-radius: 999px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
  display: grid; place-items: center; transition: background 160ms ease, transform 160ms var(--kbk-ease-out);
}
.kbk-zeit button:hover { background: rgba(255, 255, 255, .16); }
.kbk-zeit button:active { transform: scale(.96); }
.kbk-zeit button:disabled { opacity: .4; cursor: default; }
.kbk-zeit .kbk-zeit-play { background: #fff; color: #0B2B50; padding: 0; width: 40px; border-radius: 50%; }
.kbk-zeit .kbk-zeit-play:hover { background: #E9F2FC; }
.kbk-zeit-play svg { width: 16px; height: 16px; fill: currentColor; }
.kbk-zeit-play .kbk-zeit-p2 { display: none; }
.kbk-zeit.kbk-spielt .kbk-zeit-p1 { display: none; }
.kbk-zeit.kbk-spielt .kbk-zeit-p2 { display: block; }
.kbk-zeit button:focus-visible, .kbk-zeit-griff:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.kbk-zeit-hist { position: relative; height: 62px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.kbk-zeit-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(13, 1fr); }
.kbk-zeit-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border-radius: 6px; transition: background 160ms ease; }
.kbk-zeit-col:hover { background: rgba(255, 255, 255, .06); }
.kbk-zeit-col.kbk-gewaehlt { background: rgba(108, 182, 255, .14); }
.kbk-zeit-bars { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 36px; transition: opacity 200ms ease; }
.kbk-zeit-bars i { display: block; width: 24px; border-radius: 3px; background: #6CB6FF; }
.kbk-zeit-bars i.kbk-zb-g { background: #7BDB55; order: 0; }
.kbk-zeit-bars i.kbk-zb-e { order: 1; }
.kbk-zeit-bars i.kbk-zb-s { background: #E8F1FB; order: 2; }
.kbk-zeit-col.kbk-nach .kbk-zeit-bars { opacity: .32; }
.kbk-zeit-ml { font-size: var(--fs-label); line-height: 1; color: var(--kbk-lab-2); font-weight: 500; }
.kbk-zeit-col.kbk-heute .kbk-zeit-ml { color: #fff; font-weight: 700; }
.kbk-zeit-plan {
  position: absolute; top: 0; right: 0; bottom: 18px; border-radius: 6px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 4px, transparent 4px 9px);
}
.kbk-zeit-plan span { position: absolute; top: 2px; right: 8px; font-size: var(--fs-label); color: var(--kbk-lab-3); }
.kbk-zeit-griff {
  position: absolute; top: -2px; bottom: 16px; width: 24px; margin-left: -12px; cursor: grab; display: flex; justify-content: center; outline: none;
  transition: left 200ms var(--kbk-ease-out);
}
.kbk-zeit-griff i { width: 3px; height: 100%; border-radius: 2px; background: #fff; box-shadow: 0 0 12px rgba(108, 182, 255, .9); position: relative; }
.kbk-zeit-griff i::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(108, 182, 255, .9); }
.kbk-zeit-gl {
  position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; padding: 2px 8px;
  background: #fff; color: #0B2B50; font-size: var(--fs-label); font-weight: 700;
}
.kbk-zeit.kbk-spielt .kbk-zeit-griff { transition: none; }
.kbk-zeit-leer { display: none; position: absolute; inset: 0 0 18px; margin: 0; place-items: center; text-align: center; font-size: var(--fs-label); color: var(--kbk-lab-2); }
.kbk-zeit-leerzustand .kbk-zeit-leer { display: grid; }
.kbk-zeit-leerzustand .kbk-zeit-bars, .kbk-zeit-leerzustand .kbk-zeit-griff, .kbk-zeit-leerzustand .kbk-zeit-plan { visibility: hidden; }

.kbk-zeit-lese { display: flex; flex-direction: column; gap: 3px; min-width: 150px; font-size: var(--fs-label); color: var(--kbk-lab-2); }
.kbk-zeit-stand { font-size: var(--fs-meta); color: #fff; font-weight: 700; }
.kbk-zeit-zahlen { display: grid; grid-template-columns: repeat(2, auto); gap: 1px 14px; justify-content: start; }
.kbk-zeit-zahlen b { color: #fff; font-weight: 700; }
.kbk-zeit-fehler .kbk-zeit-hist { opacity: .4; pointer-events: none; }

/* Hintergrundmonat beim Abspielen (Gapminder): gross, blass, blendet nach dem Ende in 900 ms aus */
.kbk-zeit-monat {
  position: absolute; left: 50%; top: 46%; z-index: 1; pointer-events: none; opacity: 0; white-space: nowrap;
  font-size: var(--fs-kpi); font-weight: 700; color: rgba(207, 228, 248, .1);
  transform: translate(-50%, -50%) scale(5.5); transition: opacity 900ms ease;
}
.kbk-zeit-monat.kbk-an { opacity: 1; transition-duration: 200ms; }

/* Lichtimpulse: neues blitzt blau (Ring um den Knoten, vorhandene Animation), Gewinne gruen */
.kbk-ring.kbk-gruen { border-color: #5BD39A; box-shadow: 0 0 14px rgba(91, 211, 154, .8); }

/* ---------- Fenster ---------- */
/* Container statt Fenster: die Karte sitzt in beiden Shells neben einer Seitenleiste, die Buehne ist
   schmaler als das Fenster. */
.kbk-stage { container-type: inline-size; container-name: kbk; }
@container kbk (max-width: 1100px) {
  .kbk-info { width: 256px; }
}
/* Nachzug #930: Schalter frei neben „Legende“ (4d). Reicht der Platz in der Mitte nicht, schiebt ihn das
   Skript nach links (--kbk-modes-x); reicht er gar nicht, rückt er in die zweite Zeile. Unter 900 px gelten
   die Regeln darunter. */
@container kbk (min-width: 901px) {
  .kbk-stage.kbk-modes-geschoben .kbk-modes { left: var(--kbk-modes-x, 50%); transform: none; }
  .kbk-stage.kbk-modes-geschoben .kbk-search { width: var(--kbk-suche-w, 292px); }
  .kbk-stage.kbk-modes-eng .kbk-modes { left: 16px; top: 62px; transform: none; }
  .kbk-stage.kbk-modes-eng .kbk-orgchip, .kbk-stage.kbk-modes-eng .kbk-trail, .kbk-stage.kbk-modes-eng .kbk-hint { top: 112px; }
}
@container kbk (max-width: 900px) {
  /* Schalter rechts neben die Suche, damit beide in einer Zeile bleiben (mittig kaeme er ueber die Suche). */
  .kbk-modes { left: auto; right: 16px; transform: none; }
}
@container kbk (max-width: 640px) {
  .kbk-zeit { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .kbk-zeit-lese { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; }
  .kbk-zeit-zahlen { display: flex; flex-wrap: wrap; gap: 0 10px; }
  .kbk-search { width: calc(100% - 32px); max-width: 292px; }
  .kbk-modes { left: 16px; right: auto; top: 62px; transform: none; }
  .kbk-orgchip, .kbk-trail, .kbk-hint { top: 112px; }
  .kbk-hint { left: 16px; transform: none; }
  .kbk-info { right: 100px; width: calc(100% - 132px); max-width: 276px; top: 112px; max-height: calc(100% - 112px - 24px); }
  .kbk-orgchip { max-width: calc(100% - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .kbk-stage *, .kbk-stage *::before, .kbk-stage *::after { transition: none !important; animation: none !important; }
}

.kbk-scene { display: contents; }

/* Klassische Shell: der Graph-Reiter fuellt die Ansichts-Hoehe (Kopf oben, Karte nimmt den Rest),
   statt einer festen vh-Rechnung, die bei umbrechendem Kopf oder Hinweisleiste ueberstand. */
.kbk-hostfill.view.active { display: flex; flex-direction: column; height: 100%; }

/* Kunden-Kachel unter einem Inseltitel: wird zum kleinen Punkt, der Titel bleibt lesbar. */
.kbk-stage .kbk-node.kbk-kunde.kbk-ovl:not(.kbk-sel):not(.kbk-hl) { --s: 9px; }
.kbk-stage .kbk-node.kbk-kunde.kbk-ovl:not(.kbk-sel):not(.kbk-hl) .kbk-dot { padding: 0; border-radius: 50%; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.kbk-stage .kbk-node.kbk-kunde.kbk-ovl:not(.kbk-sel):not(.kbk-hl) .kbk-dot > img, .kbk-stage .kbk-node.kbk-kunde.kbk-ovl:not(.kbk-sel):not(.kbk-hl) .kbk-mono { opacity: 0; }
.kbk-stage .kbk-node.kbk-ovl:not(.kbk-sel):not(.kbk-hl) { pointer-events: none; }

/* Fokusring der Knoten: als Umriss, damit ihn kein Zustands-Schatten (Einsatz, Leitung, Kunde)
   ueberdecken kann; der Schatten bleibt als zweite Linie. */
.kbk-stage .kbk-node:focus-visible .kbk-dot { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 3px var(--kbk-dot), 0 0 0 5px #fff, 0 0 18px 6px rgba(108, 182, 255, .6); }

/* ---------- Fokus: ein Knoten für sich (PR1.617) ---------- */
/* Schleier zwischen Himmel und Fokus-Kanten; Deckkraft und Weichzeichnung setzt die Bühne je Bild. */
.kbk-veil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 42% 50%, rgba(3, 14, 31, .35), rgba(3, 14, 31, .92));
}
.kbk-stage.kbk-focus { cursor: default; }
.kbk-focus .kbk-zoom { opacity: .35; pointer-events: none; transition: opacity 200ms ease; }

/* Tiefe 1 | 2: wirkt im Fokus, ausserhalb zurückgenommen */
.kbk-depth {
  position: absolute; right: 16px; top: 14px; height: 40px; border-radius: 12px; display: flex; align-items: center; gap: 4px;
  padding: 0 6px 0 12px; z-index: 8; color: var(--kbk-lab); font-size: var(--fs-ui); font-weight: 600; transition: opacity 200ms ease;
}
.kbk-stage:not(.kbk-focus) .kbk-depth { opacity: .72; }
.kbk-depth > span { margin-right: 4px; }
.kbk-depth button {
  min-width: 26px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--kbk-lab-2); font-size: var(--fs-ui); font-weight: 500;
  cursor: pointer; display: grid; place-items: center; transition: background 160ms ease, color 160ms ease;
}
.kbk-depth button:hover { background: rgba(255, 255, 255, .08); color: var(--kbk-lab); }
.kbk-depth button.kbk-on { background: #fff; color: #0B2B50; font-weight: 700; }

/* Spur im Fokus: Schritte sind Knöpfe */
.kbk-trail button.kbk-chip { font-family: inherit; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.kbk-trail button.kbk-chip:hover { background: rgba(255, 255, 255, .18); }
.kbk-trail button.kbk-chip.kbk-cur:hover { background: #fff; }
.kbk-trail .kbk-chip.kbk-back { padding-left: 8px; gap: 4px; background: rgba(255, 255, 255, .16); }
.kbk-trail .kbk-chip.kbk-back svg { width: 14px; height: 14px; flex: none; }
.kbk-trail :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kbk-trail .kbk-trail-hint {
  font-size: var(--fs-label); color: var(--kbk-lab-2); margin-left: 6px; white-space: nowrap;
  animation: kbk-chip-in 300ms var(--kbk-ease-out) both;
}

/* Karte rechts: Seite öffnen zurückhaltend, „Fokus“ ist die Hauptaktion */
.kbk-btn.kbk-btn-ghost { background: transparent; color: var(--kbk-t1); box-shadow: inset 0 0 0 1px var(--kbk-line); }
.kbk-btn.kbk-btn-ghost:hover { background: #F2F5F9; }

@container kbk (max-width: 900px) {
  /* Der Schalter „Ganze BL | Mein Bereich“ steht hier oben rechts: Tiefe rückt darunter, die Karte rechts tiefer. */
  .kbk-depth { top: 62px; }
  .kbk-info { top: 110px; max-height: calc(100% - 110px - 112px); }
}
@container kbk (max-width: 640px) {
  .kbk-info { top: 112px; max-height: calc(100% - 112px - 24px); }
}
/* Zwei Knöpfe im Fuß der Karte rechts: nie im Knopf umbrechen, lieber in eine zweite Zeile. */
.kbk-info .kbk-f { flex-wrap: wrap; }
.kbk-info .kbk-f .kbk-btn { white-space: nowrap; }

/* ---------- Kunden & Hyperscaler (PR1.619): Clouds, Hinweis, Schalterlogos ---------- */
/* Drei Logos als überlappende weiße Kreise wie 4d (.hs3) */
.kbk-hyp-logos { display: inline-flex; align-items: center; }
.kbk-hyp-logos img {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; padding: 2px; box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, .85); margin-left: -5px; object-fit: contain;
}
.kbk-hyp-logos img:first-child { margin-left: 0; }
.kbk-hubs { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.kbk-cloud {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: center; cursor: pointer; will-change: transform, opacity; pointer-events: auto; --cs: 90px;
}
.kbk-cloud:focus-visible { outline: none; }
.kbk-cloud-halo {
  position: absolute; width: calc(var(--cs) + 44px); height: calc(var(--cs) + 44px); left: calc((var(--cs) + 44px) / -2); top: calc((var(--cs) + 44px) / -2);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--c), .34) 0%, rgba(var(--c), .12) 52%, rgba(var(--c), 0) 70%);
}
.kbk-cloud-disc {
  position: absolute; width: var(--cs); height: var(--cs); left: calc(var(--cs) / -2); top: calc(var(--cs) / -2); border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(var(--c), .55), 0 0 34px rgba(var(--c), .45);
  transition: box-shadow 200ms ease, transform 200ms var(--kbk-ease-out);
}
.kbk-cloud-disc img { width: 64%; height: 64%; object-fit: contain; pointer-events: none; }
.kbk-cloud-ka { font-size: calc(var(--cs) * .22); /* PR1.567 Ausnahme: das „k. A.“ wächst mit der Kugel */ font-weight: 700; color: #0B2B50; }
.kbk-cloud:hover .kbk-cloud-disc { box-shadow: 0 0 0 6px rgba(var(--c), .75), 0 0 44px rgba(var(--c), .6); }
.kbk-cloud:focus-visible .kbk-cloud-disc { box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(var(--c), .8), 0 0 40px rgba(var(--c), .6); }
.kbk-cloud.kbk-offen .kbk-cloud-disc { box-shadow: 0 0 0 6px rgba(var(--c), .8), 0 0 54px rgba(var(--c), .7); }
.kbk-cloud-lb {
  /* Maße wie der abgenommene Prototyp 4d (50 px hoch, Innenabstand 3 × 9 px, 6 px unter der Kugel); die Schrift
     folgt der Typografie-Skala (13 / 12 px statt 13,5 / 11: nichts unter 12 px);
     im Startbild schrumpft das Schild mit der Karte (--ms, siehe kb-karte-hyper-modell.js startMassstab). */
  position: absolute; left: 0; top: calc(var(--cs) / 2 + 6px); transform: translateX(-50%); white-space: nowrap; text-align: center;
  scale: var(--ms, 1); transform-origin: 50% 0;
  display: block; padding: 3px 9px; border-radius: 7px; line-height: 1.2;
  background: rgba(4, 20, 42, .72); text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  transition: opacity 240ms ease;
}
.kbk-cloud.kbk-oben .kbk-cloud-lb { top: auto; bottom: calc(var(--cs) / 2 + 6px); transform-origin: 50% 100%; }
.kbk-cloud-lb b { display: block; font-size: var(--fs-meta); font-weight: 700; color: #fff; }
.kbk-cloud-lb small { display: block; font-size: var(--fs-label); color: var(--kbk-lab); font-weight: 500; }
.kbk-cloud.kbk-fern .kbk-cloud-lb { opacity: 0; }
.kbk-cloud.kbk-puls .kbk-cloud-disc { animation: kbk-cloud-puls 900ms var(--kbk-ease-out) 1; }
@keyframes kbk-cloud-puls {
  from { box-shadow: 0 0 0 5px rgba(var(--c), .55), 0 0 0 0 rgba(var(--c), .7), 0 0 34px rgba(var(--c), .45); }
  to { box-shadow: 0 0 0 5px rgba(var(--c), .55), 0 0 0 30px rgba(var(--c), 0), 0 0 34px rgba(var(--c), .45); }
}
.kbk-hyp-hint { position: absolute; left: 16px; top: 62px; z-index: 6; margin: 0; font-size: var(--fs-label); color: var(--kbk-lab-2); animation: kbk-chip-in 260ms var(--kbk-ease-out) both; }
.kbk-hyp-hint.kbk-tief { top: 104px; }
.kbk-hyp .kbk-orgchip { display: none; }
/* Größen wie im Entwurf: Startbild klein, Ring mittel, gewählter Kunde groß */
.kbk-hyp .kbk-kunde { --s: calc(30px * var(--kbk-ms, 1)); }
.kbk-hyp.kbk-hyp-ring .kbk-kunde { --s: 42px; }
.kbk-hyp.kbk-hyp-ring .kbk-kunde.kbk-sel { --s: 54px; }
.kbk-hyp .kbk-proj { --s: 38px; }
.kbk-hyp .kbk-opp { --s: 30px; }
.kbk-av-cl { background: #fff; }
.kbk-av-cl img { width: 70%; height: 70%; object-fit: contain; }
.kbk-trail .kbk-chip .kbk-mini-cl img { object-fit: contain; padding: 2px; }
@container kbk (max-width: 900px) {
  .kbk-hyp-hint { top: 112px; }
  .kbk-hyp-hint.kbk-tief { top: 154px; }
}
@media (prefers-reduced-motion: reduce) {
  .kbk-cloud-disc, .kbk-cloud-lb { transition: none; }
  .kbk-cloud.kbk-puls .kbk-cloud-disc, .kbk-hyp-hint { animation: none; }
}

/* ---------- Plattformen und Filter „Clouds und Plattformen“ (PR1.620) ---------- */
/* Plattform = Kugel mit gestricheltem Ring (Größe × 0,86 rechnet das Modell); Farbe wie ihre Marke. */
.kbk-plat .kbk-cloud-disc { box-shadow: 0 0 0 0 rgba(var(--c), 0), 0 0 30px rgba(var(--c), .4); }
.kbk-plat .kbk-cloud-disc::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  border: 2px dashed rgba(var(--c), .85);
}
.kbk-plat:hover .kbk-cloud-disc { box-shadow: 0 0 0 0 rgba(var(--c), 0), 0 0 44px rgba(var(--c), .6); }
.kbk-plat:focus-visible .kbk-cloud-disc { box-shadow: 0 0 0 3px #fff, 0 0 40px rgba(var(--c), .6); }
.kbk-plat.kbk-offen .kbk-cloud-disc { box-shadow: 0 0 0 0 rgba(var(--c), 0), 0 0 54px rgba(var(--c), .7); }
/* Begrüßung: ein zugeschalteter Platz leuchtet einmal auf */
.kbk-cloud.kbk-gruss .kbk-cloud-disc { animation: kbk-cloud-gruss 1200ms var(--kbk-ease-out) 1; }
@keyframes kbk-cloud-gruss {
  0% { transform: scale(.86); box-shadow: 0 0 0 5px rgba(var(--c), .9), 0 0 0 0 rgba(var(--c), .85), 0 0 70px rgba(var(--c), .95); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(var(--c), .55), 0 0 0 46px rgba(var(--c), 0), 0 0 34px rgba(var(--c), .45); }
}

/* Filter: Knopf ganz rechts in der Werkzeugzeile, „Tiefe“ links daneben (wie 4d); in beiden Ansichten da.
   Die Breite des Knopfs (mit Zahl) meldet das Skript als --kbk-filter-w, damit Tiefe nie darunter rutscht. */
.kbk-filter { position: absolute; right: 16px; top: 14px; z-index: 9; }
.kbk-depth { right: calc(16px + var(--kbk-filter-w, 88px) + 6px); }
.kbk-filter-btn {
  height: 40px; border-radius: 12px; display: flex; align-items: center; gap: 7px; padding: 0 12px; cursor: pointer;
  color: var(--kbk-lab); font-size: var(--fs-ui); font-weight: 600; transition: background 160ms ease, transform 160ms var(--kbk-ease-out);
}
.kbk-filter-btn:hover { background: rgba(255, 255, 255, .1); }
.kbk-filter-btn:active { transform: scale(.97); }
.kbk-filter-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.kbk-filter-n[hidden] { display: none; }
.kbk-filter-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; color: #0B2B50; font-size: var(--fs-label); font-weight: 700;
}
.kbk-filter-feld {
  position: absolute; right: 0; top: 48px; width: 300px; max-height: calc(100vh - 160px); overflow-y: auto; border-radius: 14px; padding: 14px 12px 10px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity 180ms var(--kbk-ease-out), transform 180ms var(--kbk-ease-out);
}
.kbk-filter-feld.kbk-auf { opacity: 1; transform: none; }
.kbk-fl-titel { display: block; font-size: var(--fs-ui); font-weight: 700; color: #fff; padding: 0 4px; }
.kbk-fl-sub { margin: 10px 4px 6px; font-size: var(--fs-label); color: var(--kbk-lab-2); }
.kbk-fl-fest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 6px; }
.kbk-fl-fest span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: var(--kbk-lab); font-size: var(--fs-label); font-weight: 600;
}
.kbk-fl-fest img, .kbk-fl-logo img { height: 16px; width: auto; max-width: 28px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.kbk-fl-grp { margin: 12px 4px 4px; font-size: var(--fs-label); font-weight: 700; color: var(--kbk-lab-2); }
.kbk-fl-zeile {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 4px; border: 0; border-radius: 10px; background: none;
  color: var(--kbk-lab); text-align: left; cursor: pointer; transition: background 140ms ease;
}
.kbk-fl-zeile:hover { background: rgba(255, 255, 255, .07); }
.kbk-fl-logo { width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.kbk-fl-ka { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0B2B50; display: grid; place-items: center; font-size: var(--fs-label); font-weight: 700; }
.kbk-fl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kbk-fl-text b { font-size: var(--fs-ui); font-weight: 600; color: #fff; }
.kbk-fl-text small { font-size: var(--fs-label); color: var(--kbk-lab-2); }
.kbk-fl-sw { width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .22); position: relative; flex: none; transition: background 220ms ease; }
.kbk-fl-sw i {
  position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform 220ms cubic-bezier(.34, 1.56, .64, 1);   /* Nachfedern */
}
.kbk-fl-zeile[aria-checked="true"] .kbk-fl-sw { background: #4FB3FF; }
.kbk-fl-zeile[aria-checked="true"] .kbk-fl-sw i { transform: translateX(16px); }
.kbk-fl-meldung { margin: 10px 4px 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 120, 100, .16); border: 1px solid rgba(255, 150, 130, .5); color: #FFD9D2; font-size: var(--fs-label); }
.kbk-filter-feld[aria-busy="true"] .kbk-fl-zeile { opacity: .7; }
@container kbk (max-width: 900px) {
  .kbk-filter { top: 62px; }
  .kbk-leg-btn { top: 62px; }
  .kbk-leg-feld { top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .kbk-filter-feld, .kbk-filter-btn, .kbk-fl-sw, .kbk-fl-sw i { transition: none; }
  .kbk-cloud.kbk-gruss .kbk-cloud-disc { animation: none; }
}
/* Plattformen innen: Beschriftung nach außen, damit sich die beiden nicht überdecken */
.kbk-cloud.kbk-lb-l .kbk-cloud-lb { transform: translateX(-88%); transform-origin: 88% 0; }
.kbk-cloud.kbk-lb-r .kbk-cloud-lb { transform: translateX(-12%); transform-origin: 12% 0; }

/* ---------- Legende (Taste L): erklärt jedes Zeichen; links neben „Tiefe“, Feld rechts oben (4d) ---------- */
.kbk-leg-btn {
  position: absolute; top: 14px; z-index: 9; height: 40px; border-radius: 12px; display: flex; align-items: center; gap: 7px; padding: 0 12px; cursor: pointer;
  right: calc(16px + var(--kbk-filter-w, 88px) + 6px + var(--kbk-depth-w, 112px) + 6px);
  color: var(--kbk-lab); font-size: var(--fs-ui); font-weight: 600; transition: background 160ms ease, transform 160ms var(--kbk-ease-out);
}
.kbk-leg-btn:hover { background: rgba(255, 255, 255, .1); }
.kbk-leg-btn:active { transform: scale(.97); }
.kbk-leg-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.kbk-leg-btn:focus-visible, .kbk-leg-feld:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kbk-leg-btn svg { width: 16px; height: 16px; flex: none; }
.kbk-leg-feld {
  position: absolute; right: 16px; top: 62px; z-index: 9; width: min(600px, calc(100% - 32px)); max-height: calc(100% - 150px); overflow-y: auto;
  border-radius: 14px; padding: 14px 16px 12px; color: var(--kbk-lab);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity 180ms var(--kbk-ease-out), transform 220ms var(--kbk-ease-out);
}
.kbk-leg-feld[hidden] { display: none; }
.kbk-leg-feld.kbk-auf { opacity: 1; transform: none; }
.kbk-leg-titel { display: block; color: #fff; font-size: var(--fs-ui); font-weight: 700; }
.kbk-leg-sub { margin: 2px 0 10px; color: var(--kbk-lab-3); font-size: var(--fs-label); }
.kbk-leg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@container kbk (max-width: 640px) { .kbk-leg-cols { grid-template-columns: 1fr; } }
/* Spaltentitel wie 4d: kleine graue Versalien. Versalien und Sperrung kommen allein aus der Typo-Rolle
   .typo-abschnitt (fonts.css); hier nur Farbe der Karte und Abstand. */
.kbk-leg-grp, .kbk-leg-grp.typo-abschnitt { margin: 0 0 4px; color: var(--kbk-lab-3); font-size: var(--fs-label); font-weight: 700; }
.kbk-leg-cols ul { list-style: none; margin: 0; padding: 0; }
.kbk-leg-e { display: flex; align-items: center; gap: 10px; padding: 4px 0; transition: opacity 200ms ease; }
.kbk-leg-aus { opacity: .62; }
.kbk-leg-ic { width: 40px; height: 32px; flex: none; display: grid; place-items: center; position: relative; }
.kbk-leg-tx { min-width: 0; display: flex; flex-direction: column; }
.kbk-leg-tx b { font-size: var(--fs-ui); font-weight: 600; color: #fff; line-height: 1.2; }
.kbk-leg-tx small { font-size: var(--fs-label); color: var(--kbk-lab-2); line-height: 1.3; }
.kbk-leg-tx em { font-size: var(--fs-label); font-style: normal; color: var(--kbk-lab-3); line-height: 1.3; }
/* Beispielzeichen: eigene Klassen (.kbk-li), damit die Zoomstufen der Karte sie nicht verkleinern */
.kbk-li { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--kbk-dot); border: 1.5px solid rgba(159, 194, 230, .45); color: #CFE4F8; }
.kbk-li > img:not(.kbk-li-logo) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.kbk-li > svg { width: 52%; height: 52%; }
.kbk-li .kbk-mono { color: var(--kbk-zeichen); }
.kbk-li-lead { width: 32px; height: 32px; border: 3px solid #fff; background: #fff; box-shadow: 0 0 0 4px rgba(108, 182, 255, .18), 0 0 14px rgba(108, 182, 255, .55); }
.kbk-li-person { border: 2px solid rgba(255, 255, 255, .9); background: #fff; box-shadow: 0 0 0 3px rgba(108, 182, 255, .28), 0 0 12px rgba(108, 182, 255, .55); }
.kbk-li-proj { background: #fff; border: 2px solid rgba(159, 194, 230, .55); color: #0B2B50; box-shadow: 0 0 12px rgba(108, 182, 255, .38); }
.kbk-li-logo { width: 62%; height: 62%; object-fit: contain; }
.kbk-li-rakete { position: absolute; left: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: #0E2F55; color: #CFE4F8; box-shadow: 0 0 0 1.5px rgba(159, 194, 230, .55); }
.kbk-li-rakete svg { width: 70%; height: 70%; }
.kbk-li-solo svg { width: 52%; height: 52%; }
.kbk-li-strich { border-style: dashed; background: rgba(255, 255, 255, .82); }
.kbk-li-opp { background: #173A5E; border: 1.5px dashed rgba(159, 194, 230, .75); box-shadow: none; }
.kbk-li-kunde { border-radius: 24%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 0 14px rgba(108, 182, 255, .42); }
.kbk-li-kunde .kbk-mono { background: #fff; color: var(--kbk-zeichen); }
.kbk-li-blass { opacity: .3; }
.kbk-li-zahl { font-size: var(--fs-label); font-weight: 700; fill: #9FC2E6; }
.kbk-li-cloud { width: 30px; height: 30px; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(255, 153, 0, .55), 0 0 14px rgba(255, 153, 0, .45); }
.kbk-li-plat { width: 30px; height: 30px; background: #fff; border: 0; box-shadow: 0 0 12px rgba(238, 40, 40, .4); }
.kbk-li-plat::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px dashed rgba(238, 40, 40, .85); }
.kbk-li-gruppe { width: 30px; height: 30px; background: rgba(8, 28, 56, .8); border: 1.5px dashed rgba(207, 228, 248, .8); color: #fff; font-size: var(--fs-label); font-weight: 700; }
.kbk-li-lead > img, .kbk-li-person > img, .kbk-li-kunde > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.kbk-li-kunde > img { object-fit: contain; padding: 3px; box-sizing: border-box; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .kbk-leg-feld, .kbk-leg-btn, .kbk-leg-e { transition: none; }
}

/* ============================================================
   PR1.719 (#1025) — Kunde im Fokus als Gruppen-Ansicht (Präfix kbk-kn-).
   Vorlage W1 (design/mockups/wissensgraph-04-11/gruppen.js): Maße in Vorlagen-Einheiten,
   die Fläche .kbk-kn-cam (1340 × 820) wird per transform eingepasst (kb-kunde-buehne.js).
   ============================================================ */
.kbk-kn { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.kbk-kn-cam {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transition: transform 600ms var(--kbk-ease-out);
  --s: 1px;   /* Vorlagen-Px = App-Px (1:1), die Fläche wird nie skaliert, nur die Abstände rücken */
}
.kbk-kn-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.kbk-kn-zahl { font-family: var(--f-sans, 'Fira Sans', system-ui, sans-serif); font-weight: 600; font-size: calc(var(--s) * 10.5); fill: #E8F1FB; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-an .kbk-world, .kbk-kn-an .kbk-fx, .kbk-kn-an .kbk-zoom, .kbk-kn-an .kbk-depth, .kbk-kn-an .kbk-leg-btn,
.kbk-kn-an .kbk-leg-feld, .kbk-kn-an .kbk-orgchip, .kbk-kn-an .kbk-hint, .kbk-kn-an .kbk-filter, .kbk-kn-an .kbk-hyp-hint { visibility: hidden; }
/* Akte wie W2 am rechten Rand (die Zoomleiste ist im Kundenfokus ausgeblendet) */
.kbk-kn-an .kbk-info { right: 16px; }

/* Mitte: Logo-Kachel, Karte, Geld, Zeichen */
.kbk-kn-logo {
  position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 14px; padding: 6px;
  background: #fff; cursor: pointer; pointer-events: auto; box-sizing: border-box;
  animation: kbk-kn-kunde 900ms var(--kbk-ease-out) 200ms both;
}
.kbk-kn-lg { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: var(--kbk-zeichen); }
.kbk-kn-lg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kbk-kn-lg.kbk-bild-da > .kbk-gebaeude { visibility: hidden; }
.kbk-kn-lg .kbk-gebaeude svg { width: 30px; height: 30px; }
.kbk-kn-mitte {
  position: absolute; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: kbk-kn-kunde 900ms var(--kbk-ease-out) 200ms both;
}
/* Lange Namen und Steckbriefe brechen um statt abzuschneiden (Karte wächst bis 340 px, dann zweizeilig) */
.kbk-kn-karte {
  min-width: 250px; max-width: 340px; min-height: 50px; box-sizing: border-box; padding: 4px 12px; justify-content: center;
  background: rgba(6, 26, 51, .82); border: 1px solid rgba(159, 194, 230, .16); border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; color: #9FC2E6; text-align: center;
}
.kbk-kn-karte b { font-size: calc(var(--s) * 13); line-height: 15px; font-weight: 600; color: #E8F1FB; max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-karte span { display: block; font-size: calc(var(--s) * 10.5); line-height: 12px; max-width: 100%; text-wrap: balance; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-karte span svg { width: 10px; height: 10px; margin-right: 3px; vertical-align: -1px; color: #7FA1C7; }
.kbk-kn-lagepunkt { display: inline-flex; font-style: normal; }
.kbk-kn-lagepunkt svg { color: var(--lf, #9AA6B5) !important; }
.kbk-kn-geld { display: flex; justify-content: center; gap: 8px; }
.kbk-kn-gk {
  min-width: 78px; height: 40px; box-sizing: border-box; padding: 5px 7px 0;
  background: rgba(6, 26, 51, .7); border: 1px solid rgba(159, 194, 230, .12); border-radius: 8px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 4px; align-items: center; align-content: start;
}
.kbk-kn-gk > span { display: inline-flex; }
.kbk-kn-gk > span svg { width: 12px; height: 12px; }
.kbk-kn-gk b { font-size: calc(var(--s) * 12); line-height: 15px; font-weight: 700; color: #E8F1FB; white-space: nowrap; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-gk small { grid-column: 1 / -1; font-size: calc(var(--s) * 9.5); line-height: 12px; color: #7FA1C7; white-space: nowrap; margin-top: 2px; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-ok { color: #3FBF8A; } .kbk-kn-bad { color: #E5675F; } .kbk-kn-info { color: #6CB6FF; } .kbk-kn-warnc { color: #F0A04B; }
.kbk-kn-fahne { position: absolute; width: 2px; height: 44px; margin-left: -1px; background: #F4D35E; }
.kbk-kn-fahne span {
  position: absolute; left: 1px; top: 0; width: 56px; height: 20px; box-sizing: border-box; padding-left: 6px;
  display: flex; align-items: center; gap: 3px; background: #F4D35E; color: #5A4600; font-size: calc(var(--s) * 10); font-weight: 600; /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.kbk-kn-fahne svg { width: 11px; height: 11px; }
.kbk-kn-ki, .kbk-kn-plus {
  position: absolute; border-radius: 50%; border: 2px solid #fff; color: #fff; padding: 0; display: grid; place-items: center;
  cursor: pointer; pointer-events: auto; box-sizing: border-box;
}
.kbk-kn-ki { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #7C5CE0; }
.kbk-kn-plus { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: #006EC7; }
.kbk-kn-ki svg { width: 14px; height: 14px; } .kbk-kn-plus svg { width: 15px; height: 15px; }
.kbk-kn-leer {
  margin: 0; padding: 5px 10px; white-space: nowrap; text-align: center;
  background: rgba(6, 26, 51, .8); border: 1px solid rgba(159, 194, 230, .14); border-radius: 7px;
}
.kbk-kn-leer b { display: block; font-size: calc(var(--s) * 12); line-height: 14px; font-weight: 600; color: #E8F1FB; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-leer span { display: block; font-size: calc(var(--s) * 10.5); line-height: 13px; color: #9FC2E6; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */

/* Gruppen */
.kbk-kn-g { position: absolute; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; pointer-events: auto; outline: none; }
.kbk-kn-kugel { position: absolute; inset: 0; }
.kbk-kn-gi { position: absolute; left: 50%; top: 16.5px; width: 17px; height: 17px; margin-left: -8.5px; color: rgb(var(--c)); display: grid; }
.kbk-kn-gi svg { width: 17px; height: 17px; }
.kbk-kn-n { position: absolute; left: 0; right: 0; top: 39px; text-align: center; font-size: calc(var(--s) * 30); line-height: 30px; font-weight: 700; color: #fff; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-t {
  position: absolute; left: -20px; right: -20px; top: 72px; text-align: center; font-size: calc(var(--s) * 8.5); line-height: 9px; font-weight: 600; /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
  letter-spacing: .12em; color: rgb(var(--c)); white-space: nowrap;
}
.kbk-kn-prev { position: absolute; left: 50%; top: 120px; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; }
.kbk-kn-dot {
  width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2.2px solid var(--hc); background: #1D7E86;
  display: grid; place-items: center; color: #E8F1FB;
}
.kbk-kn-dot-m { background: #3B4B5E; }
.kbk-kn-dot svg { width: 11px; height: 11px; }
/* PR1.725 (#1031): offener KI-Vorschlag — blasser, gepunkteter Punkt mit Fragezeichen (Grill C8) */
.kbk-kn-dot.kbk-kn-dot-vs { border: 2px dotted rgba(200, 214, 230, .75); background: rgba(59, 75, 94, .45); color: rgba(232, 241, 251, .8); }
.kbk-kn-dot-vs b { font-size: calc(var(--s) * 11); line-height: 1; font-weight: 700; } /* PR1.567 Ausnahme: Punktgröße Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-face {
  position: relative; width: 24px; height: 24px; margin-left: -2px; box-sizing: border-box; border-radius: 50%; overflow: hidden;
  border: 2px solid #0A2747; background: var(--kbk-zeichen-bg); color: var(--kbk-zeichen); display: grid; place-items: center;
}
.kbk-kn-face:first-child { margin-left: 0; }
.kbk-kn-face > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kbk-kn-mlogo { width: 22px; height: 22px; margin-left: -2px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid #0A2747; display: grid; place-items: center; }
.kbk-kn-mlogo:first-child { margin-left: 0; }
.kbk-kn-mlogo img { width: 14px; height: 14px; object-fit: contain; }
.kbk-kn-prev:has(.kbk-kn-kap) { gap: 4px; }
.kbk-kn-kap {
  width: 42px; height: 18px; box-sizing: border-box; border-radius: 9px; display: grid; place-items: center;
  font-size: calc(var(--s) * 9); font-weight: 500; color: #9FC2E6; /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
  background: color-mix(in srgb, var(--kf) 30%, transparent); border: 1px solid var(--kf);
}
.kbk-kn-kap-leer { background: rgba(127, 143, 163, .25); border: 1px dashed rgba(159, 194, 230, .35); }
.kbk-kn-sum {
  position: absolute; left: 50%; top: 140px; transform: translateX(-50%); box-sizing: border-box; padding: 4px 10px 5px;
  background: rgba(6, 26, 51, .8); border: 1px solid rgba(159, 194, 230, .14); border-radius: 7px; white-space: nowrap; text-align: left;
}
.kbk-kn-sum b { display: block; font-size: calc(var(--s) * 12); line-height: 14px; font-weight: 600; color: #E8F1FB; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-sum small { display: block; font-size: calc(var(--s) * 10.5); line-height: 13px; color: #9FC2E6; } /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
.kbk-kn-sum small.kbk-kn-warn { color: #F0A04B; font-weight: 600; }
.kbk-kn-badge {
  position: absolute; left: 76px; top: -10px; height: 21px; box-sizing: border-box; padding: 0 9px 0 6px; border-radius: 10.5px;
  display: flex; align-items: center; gap: 3px; font-size: calc(var(--s) * 11); font-weight: 700; color: #04203F; white-space: nowrap; background: #6CB6FF; /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
}
.kbk-kn-badge svg { width: 11px; height: 11px; }
.kbk-kn-badge-ueberfaellig { background: #F0A04B; }

/* Clouds-Reihe */
.kbk-kn-cloud { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; pointer-events: auto; outline: none; }
.kbk-kn-disc { position: absolute; inset: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.kbk-kn-disc img { width: 62%; height: 62%; object-fit: contain; }
.kbk-kn-cn {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); white-space: nowrap;
  font-size: calc(var(--s) * 10.5); line-height: 12px; font-weight: 500; color: #9FC2E6; /* PR1.567 Ausnahme: Vorlage W1 (gruppen.js), Maß 1:1 in App-Px */
}

/* Fokus ohne Maus */
.kbk-kn-g:focus-visible::after, .kbk-kn-cloud:focus-visible::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kbk-glow); pointer-events: none;
}
.kbk-stage .kbk-kn-g:focus-visible, .kbk-stage .kbk-kn-cloud:focus-visible { outline: none; }
.kbk-kn-logo:focus-visible, .kbk-kn-ki:focus-visible, .kbk-kn-plus:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(108, 182, 255, .55); }

/* Laden und Fehler */
.kbk-kn-ph { position: absolute; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px dashed rgba(var(--c), .45); background: rgba(var(--c), .08); animation: kbk-kn-ph 1.4s ease-in-out infinite alternate; }
.kbk-kn-ph-k { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .14); }
.kbk-kn-fehler {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto; text-align: center;
  background: var(--kbk-glass); border: 1px solid var(--kbk-glass-b); border-radius: 14px; padding: 16px 20px; color: var(--kbk-lab);
}
.kbk-kn-fehler p { margin: 0 0 10px; font-size: var(--fs-ui); }

/* Bewegung: Gruppen erscheinen nacheinander, Kugeln atmen leicht */
.kbk-kn-auf { animation: kbk-kn-auf 900ms var(--kbk-ease-out) both; animation-delay: calc(700ms + var(--i, 0) * 250ms); transform-box: fill-box; transform-origin: center; }
.kbk-kn-atem { animation: kbk-kn-atem 3s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -700ms); transform-box: fill-box; transform-origin: center; }
@keyframes kbk-kn-auf { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes kbk-kn-kunde { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes kbk-kn-atem { from { transform: scale(.985); } to { transform: scale(1.015); } }
@keyframes kbk-kn-ph { from { opacity: .45; } to { opacity: 1; } }
/* Neu gezeichnet nach Größenänderung: ohne erneuten Auftritt */
.kbk-kn-ruhig .kbk-kn-auf, .kbk-kn-ruhig .kbk-kn-logo, .kbk-kn-ruhig .kbk-kn-mitte { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .kbk-akte { transition: none; transform: none; }   /* PR1.724 */
  .kbk-kn-pmenu, .kbk-an-toast, .kbk-an-balken { animation: none; }   /* PR1.726 */
  .kbk-an-sw, .kbk-an-sw::after { transition: none; }
  .kbk-kn-cam { transition: none; }
  .kbk-kn-auf, .kbk-kn-atem, .kbk-kn-logo, .kbk-kn-mitte, .kbk-kn-ph { animation: none; }
  /* PR1.723: Aufklappen ohne Bewegung */
  .kbk-kn.kbk-kn [data-g], .kbk-kn.kbk-kn .kbk-kn-fd, .kbk-kn.kbk-kn .kbk-kn-hub, .kbk-kn.kbk-kn .kbk-kn-cloud, .kbk-kn.kbk-kn .kbk-kn-fahne { transition: none; }
  .kbk-kn-ein.kbk-kn-ein .kbk-kn-li, .kbk-kn-ein.kbk-kn-ein .kbk-kn-lf, .kbk-kn-ein.kbk-kn-ein.kbk-kn-ohalt { animation: none; }
}

/* ============================================================
   PR1.723 (#1029) — Gruppe aufklappen (Vorlage W2 Vorgänge-Liste, W3 Organigramm).
   Maße 1:1 aus design/mockups/wissensgraph-04-11/gruppen.js (vlistSVG, box(), org).
   ============================================================ */
/* Zurücktreten: übrige Gruppen samt Bändern auf 25 %, Projektstatus bzw. Beim Kunden ganz aus */
.kbk-kn [data-g], .kbk-kn .kbk-kn-fd, .kbk-kn .kbk-kn-hub, .kbk-kn .kbk-kn-cloud, .kbk-kn .kbk-kn-fahne { transition: opacity 600ms var(--kbk-ease-out); }
.kbk-kn-offen [data-g] { opacity: .25; }
.kbk-kn-offen[data-offen="vorg"] [data-g="vorg"], .kbk-kn-offen[data-offen="team"] [data-g="team"], .kbk-kn-offen[data-offen="markt"] [data-g="markt"] { opacity: 1; }
.kbk-kn-offen[data-offen="vorg"] [data-g="ps"], .kbk-kn-org-an[data-offen="kont"] [data-g="kont"] { opacity: 0; }
.kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-an) [data-g="kont"] { opacity: 1; }
.kbk-kn-offen[data-offen="vorg"] .kbk-kn-fd { opacity: 0; }
.kbk-kn-offen[data-offen="vorg"] .kbk-kn-hub, .kbk-kn-offen[data-offen="vorg"] .kbk-kn-cloud { opacity: .9; }
.kbk-kn-offen:not([data-offen="vorg"]) .kbk-kn-fd { opacity: .4; }
.kbk-kn-offen:not([data-offen="vorg"]) .kbk-kn-hub, .kbk-kn-offen:not([data-offen="vorg"]) .kbk-kn-cloud { opacity: .3; }
.kbk-kn-offen .kbk-kn-fahne { opacity: .4; }
.kbk-kn-org-an .kbk-kn-g[data-g="kont"] { pointer-events: none; }
/* BF-173 (#1159): Organigramm „Beim Kunden“ steht beim Öffnen offen — die übrige Karte bleibt hell (Abnahme Entwurf V1) */
/* Ausnahme kbk-kn-org-eng: Kästen liegen über einer anderen Kugel (z. B. offene Akte) — dann gedimmt wie früher */
.kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-eng) [data-g]:not([data-g="kont"]), .kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-eng) .kbk-kn-fd,
.kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-eng) .kbk-kn-hub, .kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-eng) .kbk-kn-cloud,
.kbk-kn-offen[data-offen="kont"]:not(.kbk-kn-org-eng) .kbk-kn-fahne { opacity: 1; }
/* BF-173: der Auftritt läuft weiter — die Kugel „Beim Kunden“ darf ihn nicht mitspielen (sonst hält die Animation die volle Deckkraft) */
.kbk-kn-org-an[data-offen="kont"] [data-g="kont"] { animation: none; }

/* Liste rechts neben der Gruppe */
.kbk-kn-liste { position: absolute; inset: 0; pointer-events: none; --s: 1px; }
.kbk-kn-lsvg { position: absolute; left: 0; top: 0; overflow: visible; }
.kbk-kn-li { position: absolute; width: 0; height: 0; pointer-events: auto; outline: none; }
.kbk-kn-ls { position: absolute; left: 0; top: 0; translate: -50% -50%; box-sizing: border-box; display: grid; place-items: center; }
.kbk-kn-lk { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0E1726; }
.kbk-kn-lk > img { width: 22px; height: 22px; object-fit: contain; }
.kbk-kn-lk > svg { width: 16px; height: 16px; }
.kbk-kn-lp { overflow: hidden; background: var(--kbk-zeichen-bg); color: var(--kbk-zeichen); border: 2px solid #0A2747; }
.kbk-kn-lp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kbk-kn-lt { width: 30px; height: 30px; border-radius: 7px; background: #2A4466; border: 1px solid #7FA1C7; color: #C9D9EA; }
.kbk-kn-lt > svg { width: 16px; height: 16px; }
/* Mahnring: Projekt läuft über sein Enddatum (orange, Logo abgeblendet) */
.kbk-kn-li-mahnt .kbk-kn-lk { opacity: .58; }
.kbk-kn-li-mahnt::after {
  content: ''; position: absolute; left: -21.25px; top: -21.25px; width: 42.5px; height: 42.5px; box-sizing: border-box;
  border-radius: 50%; border: 2.5px solid #F0A04B; pointer-events: none;
}
/* Neu: blauer Ring mit Leuchten */
.kbk-kn-li-neu::before {
  content: ''; position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, transparent 65%, #6CB6FF 65.5% 72%, transparent 72.5%),
    radial-gradient(circle closest-side, rgba(108, 182, 255, .6), rgba(108, 182, 255, 0));
}
.kbk-kn-kap2 {
  position: absolute; left: 26px; top: -16px; min-height: 33px; max-width: var(--kmax, 240px); box-sizing: border-box; padding: 4px 10px 5px;
  background: rgba(6, 26, 51, .8); border: 1px solid rgba(159, 194, 230, .14); border-radius: 7px; white-space: nowrap;
}
.kbk-kn-kap2 b { display: block; overflow: hidden; text-overflow: ellipsis; font-size: calc(var(--s) * 12); line-height: 14px; font-weight: 600; color: #E8F1FB; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.js .pill), Maß 1:1 in App-Px */
.kbk-kn-kap2 small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: calc(var(--s) * 10.5); line-height: 13px; color: #9FC2E6; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.js .pill2), Maß 1:1 in App-Px */
.kbk-kn-kap2 small.kbk-kn-warn { color: #F0A04B; font-weight: 600; }
.kbk-kn-li-mehr .kbk-kn-kap2, .kbk-kn-li-leer .kbk-kn-kap2 { top: -10.5px; min-height: 21px; padding: 3px 10px; left: 0; }
.kbk-kn-li-mehr .kbk-kn-kap2 { left: -17px; }
/* Leer-Zustand: Text nie gekürzt, die Kapsel wächst mit dem Text */
.kbk-kn-li-leer .kbk-kn-kap2 { width: max-content; max-width: none; }
.kbk-kn-li-leer .kbk-kn-kap2 b { overflow: visible; text-overflow: clip; }
/* Nach links (Unser Team): Beschriftung links vom Gesicht, Einflug von rechts */
.kbk-kn-liste-links .kbk-kn-kap2 { left: auto; right: 26px; text-align: right; }
.kbk-kn-liste-links .kbk-kn-li-mehr .kbk-kn-kap2 { left: auto; right: -17px; }
.kbk-kn-liste-links .kbk-kn-li-leer .kbk-kn-kap2, .kbk-kn-liste-links .kbk-kn-anlegen { left: auto; right: 0; }
.kbk-kn-liste-links { --von: 60px; }
.kbk-kn-anlegen {
  position: absolute; left: 0; top: 18px; height: 26px; padding: 0 14px; border-radius: 13px; white-space: nowrap; cursor: pointer;
  background: rgba(6, 26, 51, .94); border: 1px solid rgba(159, 194, 230, .45); color: #E8F1FB;
  font-family: inherit; font-size: calc(var(--s) * 12.5); font-weight: 600; /* PR1.567 Ausnahme: Vorlage W4 (gruppen.js Menü), Maß 1:1 in App-Px */
}
.kbk-kn-anlegen:hover { background: #fff; color: #0E1726; }
.kbk-kn-li:focus-visible .kbk-kn-kap2, .kbk-kn-li-leer:focus-visible .kbk-kn-kap2 { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kbk-glow); }
.kbk-kn-anlegen:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Einflug: nacheinander von links (Film W6) */
.kbk-kn-ein .kbk-kn-li { animation: kbk-kn-li 500ms cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(150ms + var(--i, 0) * 70ms); }
.kbk-kn-ein .kbk-kn-lf { animation: kbk-kn-lf 600ms var(--kbk-ease-out) both; animation-delay: calc(100ms + var(--i, 0) * 70ms); }
@keyframes kbk-kn-li { from { opacity: 0; transform: translateX(var(--von, -60px)); } to { opacity: 1; transform: none; } }
@keyframes kbk-kn-lf { from { opacity: 0; } to { opacity: 1; } }

/* Organigramm (über der Fläche, Bildschirm-Px 1:1 wie W3) */
.kbk-kn-org { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; --s: 1px; }
.kbk-kn-ein.kbk-kn-ohalt { animation: kbk-kn-org 600ms var(--kbk-ease-out) both; transform-origin: 40% 40%; }
@keyframes kbk-kn-org { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.kbk-kn-obaum { position: relative; }
.kbk-kn-orgl { position: absolute; left: 0; top: 0; overflow: visible; }
.kbk-kn-ob {
  position: absolute; height: 42px; box-sizing: border-box; padding: 0 8px 0 38px; border-radius: 8px;
  background: #1D7E86; border: 1px solid rgba(191, 237, 234, .5);
  display: flex; flex-direction: column; justify-content: center; pointer-events: auto; user-select: none; touch-action: none; outline: none;
}
.kbk-kn-ob-rand { border-color: transparent; outline: 3px solid var(--rand); outline-offset: -1.5px; }
.kbk-kn-ob b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(var(--s) * 12.5); line-height: 15px; font-weight: 600; color: #fff; } /* PR1.567 Ausnahme: Vorlage W3 (gruppen.js box()), Maß 1:1 in App-Px */
.kbk-kn-ob small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(var(--s) * 10.5); line-height: 13px; color: #BFEDEA; } /* PR1.567 Ausnahme: Vorlage W3 (gruppen.js box()), Maß 1:1 in App-Px */
.kbk-kn-oi { position: absolute; left: 7px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: rgba(191, 237, 234, .18); color: #BFEDEA; display: grid; place-items: center; }
.kbk-kn-oi > svg { width: 14px; height: 14px; }
.kbk-kn-oi-ent { color: #F4D35E; }
/* PR1.793: Foto im Symbolkreis, Entscheider-Stern als kleines Abzeichen */
.kbk-kn-oi-foto { background: none; }
.kbk-kn-oi-foto > img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.kbk-kn-oi-stern { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #061A33; color: #F4D35E; display: grid; place-items: center; }
.kbk-kn-oi-stern > svg { width: 9px; height: 9px; }
.kbk-kn-obaum-edit .kbk-kn-ob { cursor: grab; }
.kbk-kn-ob:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kbk-glow); }
.kbk-kn-ob-zieht { z-index: 3; cursor: grabbing; opacity: .92; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.kbk-kn-org-zug .kbk-kn-ob-zieht { pointer-events: none; }
.kbk-kn-ob-ziel { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(108, 182, 255, .55); }
.kbk-kn-oleg {
  position: absolute; left: 0; width: 300px; min-height: 40px; box-sizing: border-box; padding: 6px 12px;
  background: rgba(6, 26, 51, .85); border: 1px solid rgba(159, 194, 230, .2); border-radius: 8px; pointer-events: auto;
}
.kbk-kn-oleg b { display: block; font-size: calc(var(--s) * 11.5); line-height: 14px; font-weight: 500; color: #E8F1FB; white-space: nowrap; } /* PR1.567 Ausnahme: Vorlage W3 (gruppen.js org), Maß 1:1 in App-Px */
.kbk-kn-oleg span { display: block; font-size: calc(var(--s) * 10.5); line-height: 13px; color: #9FC2E6; } /* PR1.567 Ausnahme: Vorlage W3 (gruppen.js org), Maß 1:1 in App-Px */
/* Menü „berichtet an“ (Tastatur und Klick) */
.kbk-kn-omenu {
  position: absolute; z-index: 4; min-width: 200px; max-width: 280px; box-sizing: border-box; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; pointer-events: auto;
  background: rgba(6, 26, 51, .96); border: 1px solid rgba(159, 194, 230, .45); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
/* BF-174 (#1168): nur die Liste „berichtet an“ blättert (gut fünf Zeilen, die halbe zeigt: es geht weiter); Namenszeile und Aktionen bleiben stehen */
.kbk-kn-oliste { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.kbk-kn-omenu p { margin: 2px 8px 4px; font-size: calc(var(--s) * 10.5); line-height: 13px; font-weight: 600; color: #9FC2E6; } /* PR1.567 Ausnahme: Vorlage W3, Maß 1:1 in App-Px */
.kbk-kn-omenu button {
  text-align: left; border: 0; border-radius: 7px; padding: 6px 10px; background: transparent; color: #E8F1FB; cursor: pointer;
  font-family: inherit; font-size: calc(var(--s) * 12.5); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; /* PR1.567 Ausnahme: Vorlage W4 (gruppen.js Menü), Maß 1:1 in App-Px; Zeilen schrumpfen nie, das Menü blättert */
}
.kbk-kn-omenu button[aria-checked="true"] { color: #6CB6FF; font-weight: 600; }
/* Rollbereich: großes Organigramm in voller Größe neben dem Kunden, der Rest wird geblättert */
.kbk-kn-org.kbk-kn-org-roll { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }  /* Mausrad über den Kästen blättert; Klicks daneben gehen durch; weicher Rand zeigt: es geht weiter */
.kbk-kn-oleg-eng b { white-space: normal; }
/* Schon in der Mitte gekürzt: keine zweite Auslassung am Ende */
.kbk-kn-kap2 b.kbk-kn-gekuerzt, .kbk-kn-kap2 small.kbk-kn-gekuerzt, .kbk-kn-ob b.kbk-kn-gekuerzt, .kbk-kn-omenu button.kbk-kn-gekuerzt { text-overflow: clip; }
.kbk-kn-omenu button:hover, .kbk-kn-omenu button:focus-visible { background: #fff; color: #0E1726; outline: none; }
/* PR1.793: Bearbeiten / LinkedIn öffnen über „berichtet an“ */
.kbk-kn-omenu [data-kmenu] { display: flex; align-items: center; gap: 8px; }
.kbk-kn-omenu a[data-kmenu] { border-radius: 7px; padding: 6px 10px; color: #E8F1FB; text-decoration: none; font-size: calc(var(--s) * 12.5); font-weight: 500; flex-shrink: 0; } /* PR1.567 Ausnahme: wie .kbk-kn-omenu button (Vorlage W4), Maß 1:1 in App-Px */
.kbk-kn-omenu a[data-kmenu]:hover, .kbk-kn-omenu a[data-kmenu]:focus-visible { background: #fff; color: #0E1726; outline: none; }
.kbk-kn-omenu [data-kmenu] svg { width: 14px; height: 14px; flex: none; }
.kbk-kn-omenu .kbk-kn-oname { margin: 2px 8px 2px; font-size: calc(var(--s) * 12.5); line-height: 15px; font-weight: 600; color: #fff; overflow-wrap: anywhere; } /* PR1.567 Ausnahme: wie .kbk-kn-ob b (Vorlage W3), BF-173 Namenszeile, Maß 1:1 in App-Px */
.kbk-kn-omenu-name { min-width: 0; outline: none; }
.kbk-kn-omenu-name:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--kbk-glow); }
.kbk-kn-omenu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid rgba(159, 194, 230, .3); }

/* ============================================================
   PR1.724 (#1030) — Kundenakte als Seitenblatt (Präfix kbk-ak-).
   Vorlage W2/W5, Prototyp design/mockups/wissensgraph-04-11/gruppen.html (`.akte`):
   Maße 1:1 in App-Px (Prototyp in 1440er-Einheiten). Weißes Blatt auf der dunklen Karte.
   ============================================================ */
.kbk-akte {
  --s: 1px;   /* Vorlagen-Px = App-Px (1:1) wie die Gruppen-Ansicht */
  --ak-t1: #0E1726; --ak-t2: #4A5668; --ak-t3: #66717F; --ak-line: #E3E8EF; --ak-line2: #F0F3F7; --ak-warn: #A15C07; --ak-blue: #006EC7;
  position: absolute; right: 14px; top: 66px; bottom: 70px; width: 400px; max-width: calc(100% - 28px); z-index: 8;
  display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
  background: #fff; color: var(--ak-t1); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-family: var(--f-sans, 'Fira Sans', system-ui, sans-serif); text-align: left; cursor: default;
  user-select: text; -webkit-user-select: text; pointer-events: auto;
  opacity: 0; transform: translateX(24px);
  transition: opacity 180ms var(--kbk-ease-out), transform 220ms var(--kbk-ease-out);
}
.kbk-akte.kbk-ak-auf { opacity: 1; transform: none; }
/* display:flex oben schlägt das hidden-Attribut: ohne diese Regel liegt die geschlossene Akte
   unsichtbar über der Karte rechts und schluckt die Klicks auf „Fokus“ und „Kundenseite“. */
.kbk-akte[hidden] { display: none; }
.kbk-akte .ic { flex: none; }
.kbk-ak-kopfbox { flex: none; }
.kbk-ak-h { padding: 16px 18px 12px; border-bottom: 1px solid var(--ak-line); }
.kbk-ak-top { display: flex; gap: 12px; align-items: center; }
.kbk-ak-logo { width: 46px; height: 46px; flex: none; box-sizing: border-box; border: 1px solid var(--ak-line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.kbk-ak-lg { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: var(--ak-t3); }
.kbk-ak-lg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kbk-ak-lg.kbk-bild-da > .kbk-gebaeude { visibility: hidden; }
.kbk-ak-lg .kbk-gebaeude svg { width: 22px; height: 22px; }
.kbk-ak-kopf { min-width: 0; }
.kbk-ak-n { margin: 0; font-size: calc(var(--s) * 17); font-weight: 600; line-height: 1.25; color: var(--ak-t1); overflow-wrap: anywhere; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-s { font-size: calc(var(--s) * 12.5); line-height: 1.35; color: var(--ak-t3); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-x { margin-left: auto; align-self: flex-start; border: 0; background: none; padding: 2px; border-radius: 6px; line-height: 0; color: var(--ak-t3); cursor: pointer; }
.kbk-ak-x .ic { width: 18px; height: 18px; }
.kbk-ak-x:hover { color: var(--ak-t1); }
.kbk-ak-lage { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; margin-top: 12px; font-size: calc(var(--s) * 12.5); color: var(--ak-t2); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-lagei { display: inline-flex; color: #9AA6B5; }
.kbk-ak-lagei .ic { width: 14px; height: 14px; }
.kbk-ak-ampel { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.kbk-ak-ampel.kbk-ak-gruen { background: #3FBF8A; }
.kbk-ak-ampel.kbk-ak-gelb { background: #F0A04B; }
.kbk-ak-ampel.kbk-ak-rot { background: #E5675F; }
.kbk-ak-ueber { color: var(--ak-warn); font-weight: 600; margin-left: -4px; }
.kbk-ak-clouds { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.kbk-ak-cl { display: flex; align-items: center; gap: 5px; font-size: calc(var(--s) * 11.5); color: var(--ak-t2); border: 1px solid var(--ak-line); border-radius: 999px; padding: 2px 8px 2px 3px; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-cl img { width: 18px; height: 18px; object-fit: contain; }
.kbk-ak-nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ak-line); margin: 12px -18px 0; }
.kbk-ak-nums > div { padding: 9px 12px; border-right: 1px solid var(--ak-line); min-width: 0; }
.kbk-ak-nums > div:last-child { border: 0; }
.kbk-ak-nums b { display: block; font-size: calc(var(--s) * 17); font-weight: 600; color: var(--ak-t1); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-nums span { font-size: calc(var(--s) * 11.5); color: var(--ak-t3); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */

.kbk-ak-b { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 36px;
  /* Vorlage W2/W5: die letzte Zeile blendet zum Blattrand hin aus */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
/* Abschnittstitel: Rolle .typo-abschnitt (fonts.css, Versalien), Gewicht/Sperrung/Farbe wie Vorlage */
.kbk-ak-h3.typo-abschnitt { font-weight: 600; letter-spacing: .06em; color: var(--ak-t3); margin: 12px 0 6px; }
.kbk-ak-hint { border: 1px solid #DCD2FF; background: #F7F4FF; border-radius: 10px; padding: 10px 12px; margin-top: 4px; font-size: calc(var(--s) * 12.5); line-height: 1.45; color: var(--ak-t1); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #7C5CE0; color: #fff; margin-right: 6px; vertical-align: -4px; }
.kbk-ak-q .ic { width: 11px; height: 11px; }
.kbk-ak-src { color: var(--ak-t3); font-size: calc(var(--s) * 11.5); margin-top: 4px; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.kbk-ak-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 calc(var(--s) * 12) var(--f-sans, 'Fira Sans', system-ui, sans-serif); border: 1px solid #C9D2DE; border-radius: 8px; padding: 4px 10px; background: #fff; color: var(--ak-t1); cursor: pointer; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-btn:hover { border-color: #9FB0C4; }
.kbk-ak-btn .ic { width: 12px; height: 12px; }
.kbk-ak-btn.kbk-ak-p { background: var(--ak-blue); border-color: var(--ak-blue); color: #fff; }
.kbk-ak-btn.kbk-ak-ok { background: #E7F7EF; border-color: #3FBF8A; color: #106B45; }
/* PR1.725 (#1031): KI-Vorschlag — Hinweis-Karte, aber blass und gepunktet, Fragezeichen statt Funken (Grill C8) */
.kbk-ak-vss:empty { display: none; }
.kbk-ak-vs { border-style: dotted; border-width: 1.5px; border-color: #BFB2F2; background: #FCFBFF; margin-top: 8px; }
.kbk-ak-vq { background: #A893EC; font: 700 calc(var(--s) * 11.5)/1 var(--f-sans, 'Fira Sans', system-ui, sans-serif); } /* PR1.567 Ausnahme: Fragezeichen in der 18-px-Marke der Vorlage W2 */
.kbk-ak-vs .kbk-ak-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.kbk-ak-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ak-line2); font-size: calc(var(--s) * 12.5); line-height: 1.4; color: var(--ak-t1); outline: none; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-d { width: 42px; flex: none; color: var(--ak-t3); }
.kbk-ak-i { width: 18px; flex: none; display: flex; justify-content: center; padding-top: 1px; }
.kbk-ak-i .ic { width: 15px; height: 15px; }
.kbk-ak-t { min-width: 0; overflow-wrap: anywhere; }
.kbk-ak-m { display: block; color: var(--ak-t3); font-size: calc(var(--s) * 11.5); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-ton-gelb { color: #B58A00; }
.kbk-ak-ton-grau { color: var(--ak-t3); }
.kbk-ak-ton-grau2 { color: var(--ak-t2); }
.kbk-ak-ton-petrol { color: #1D7E86; }
.kbk-ak-ton-warn { color: var(--ak-warn); }
.kbk-ak-ton-rot { color: #C0392B; }
.kbk-ak-ton-gruen { color: #1E8A5A; }
.kbk-ak-row.kbk-ak-warn .kbk-ak-t { color: var(--ak-warn); }
.kbk-ak-row.kbk-ak-neu { background: linear-gradient(90deg, rgba(108, 182, 255, .2), transparent); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.kbk-ak-row:focus-visible { box-shadow: inset 0 0 0 2px var(--ak-blue); border-radius: 4px; }
.kbk-ak-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.kbk-ak-chip { font: 400 calc(var(--s) * 12) var(--f-sans, 'Fira Sans', system-ui, sans-serif); border: 1px solid #D5DCE6; border-radius: 999px; padding: 3px 10px; background: #fff; color: var(--ak-t2); cursor: pointer; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-chip:hover { border-color: #9FC2E6; }
.kbk-ak-chip.kbk-ak-an { background: #E6F0FA; border-color: #9FC2E6; color: #0B4F8A; font-weight: 500; }
.kbk-ak-mon { font-size: calc(var(--s) * 12); font-weight: 600; color: var(--ak-t2); margin: 10px 0 2px; } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-akte button:focus-visible { outline: 2px solid var(--ak-blue); outline-offset: 2px; }
.kbk-ak-leer { padding: 28px 4px 8px; text-align: center; }
.kbk-ak-leer p { margin: 0 0 12px; font-size: calc(var(--s) * 13); color: var(--ak-t2); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-leer .kbk-ak-btns { justify-content: center; }
.kbk-ak-fehler { padding: 28px 4px 8px; text-align: center; }
.kbk-ak-fehler p { margin: 0 0 12px; font-size: calc(var(--s) * 13); color: var(--ak-t2); } /* PR1.567 Ausnahme: Vorlage W2 (gruppen.html .akte), Maß 1:1 in App-Px */
.kbk-ak-ph i { display: block; height: 10px; border-radius: 4px; background: #EDF1F5; }
.kbk-ak-ph .kbk-ak-d i { width: 34px; }
.kbk-ak-ph .kbk-ak-i i { width: 14px; height: 14px; border-radius: 50%; }
.kbk-ak-ph .kbk-ak-t { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.kbk-ak-ph .kbk-ak-t i:first-child { width: 80%; }
.kbk-ak-ph .kbk-ak-t i:last-child { width: 45%; height: 8px; }
.kbk-akte:focus { outline: none; }

/* ============================================================
   PR1.726 (#1032) — Anlegen über das Plus (Vorlage W4/W5,
   design/mockups/wissensgraph-04-11/gruppen.html .form/.inp/.chip/.toast, gruppen.js Z. 132–133).
   Maße 1:1 in App-Px wie Bühne und Akte.
   ============================================================ */
/* Menü: drei Pillen rechts neben dem Plus, 32 px Raster */
.kbk-kn-pmenu { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: auto; z-index: 3; animation: kbk-an-ein 160ms var(--kbk-ease-out) both; }
.kbk-kn-pm {
  height: 26px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 0 21px 0 10px; border-radius: 13px;
  background: rgba(6, 26, 51, .94); border: 1px solid rgba(159, 194, 230, .45); color: #E8F1FB; cursor: pointer; white-space: nowrap;
  font: 600 calc(var(--s) * 12.5) var(--f-sans, 'Fira Sans', system-ui, sans-serif); /* PR1.567 Ausnahme: Vorlage W4 (gruppen.js), Maß 1:1 in App-Px */
}
.kbk-kn-pm .ic, .kbk-kn-pm svg { width: 13px; height: 13px; flex: none; }
.kbk-kn-pm:hover, .kbk-kn-pm:focus-visible { background: #fff; color: #0E1726; outline: none; }
/* Fokus der App (.crm :focus-visible { border-radius: inherit }) macht sonst Ecken — Rundungen hier festhalten */
.kbk-stage .kbk-kn-pm:focus-visible { border-radius: 13px; }
.kbk-stage .kbk-an-inp:focus, .kbk-stage .kbk-an-inp:focus-visible { border-radius: 8px; }
.kbk-stage .kbk-ak-chip:focus-visible { border-radius: 999px; }
.kbk-stage .kbk-ak-btn:focus-visible { border-radius: 8px; }
.kbk-stage .kbk-ak-nochmal:focus-visible { border-radius: 4px; }
.kbk-kn-plus[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(108, 182, 255, .35); }
/* Rest der Karte dimmt, Kunde in der Mitte bleibt */
.kbk-kn-plusauf [data-g] { opacity: .3; }
.kbk-kn-plusauf .kbk-kn-fd { opacity: .35; }
.kbk-kn-plusauf .kbk-kn-hub, .kbk-kn-plusauf .kbk-kn-cloud { opacity: .4; }
.kbk-kn-plusauf .kbk-kn-fahne { opacity: .5; }
@keyframes kbk-an-ein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* Formular in der Akte (statt Körper; Kopf bleibt) */
.kbk-ak-formbox { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 18px 18px; }
.kbk-an-form { margin: 0; }
.kbk-an-l { display: block; font-size: calc(var(--s) * 11.5); color: var(--ak-t3); margin: 8px 0 3px; } /* PR1.567 Ausnahme: Vorlage W4 (gruppen.html .form label), Maß 1:1 in App-Px */
.kbk-an-inp {
  display: block; width: 100%; box-sizing: border-box; min-height: 33px; padding: 7px 10px; border: 1px solid #C9D2DE; border-radius: 8px;
  background: #fff; color: var(--ak-t1); font: 400 calc(var(--s) * 13) var(--f-sans, 'Fira Sans', system-ui, sans-serif); outline: none; /* PR1.567 Ausnahme: Vorlage W4 (gruppen.html .inp), Maß 1:1 in App-Px */
}
.kbk-an-inp:focus { border-color: var(--ak-blue); box-shadow: 0 0 0 3px rgba(0, 110, 199, .15); }
.kbk-an-inp[aria-invalid="true"], .kbk-an-chips[aria-invalid="true"] .kbk-ak-chip { border-color: #E5675F; }
.kbk-an-area { resize: vertical; min-height: 84px; line-height: 1.45; }
/* „Berichtet an“: Feld wie die Eingaben, der Pfeil steht direkt hinter dem Wert (W4) */
.kbk-an-sel { display: flex; align-items: center; gap: 4px; text-align: left; cursor: pointer; }
.kbk-an-sel[aria-expanded="true"] { border-color: var(--ak-blue); box-shadow: 0 0 0 3px rgba(0, 110, 199, .15); }
.kbk-an-wert { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbk-an-pfeil { display: inline-flex; flex: none; color: #9AA6B5; pointer-events: none; }
.kbk-an-pfeil .ic, .kbk-an-pfeil svg { width: 10px; height: 10px; }
.kbk-an-chips { margin: 4px 0 6px; }
.kbk-an-chips .kbk-ak-chip:focus-visible { outline: 2px solid var(--ak-blue); outline-offset: 2px; }
.kbk-an-knoepfe { display: flex; gap: 8px; margin-top: 12px; }
.kbk-an-fehler { margin: 8px 0 0; font-size: calc(var(--s) * 11.5); color: #C0392B; } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4, Maß 1:1 in App-Px */
/* Schalter „vertraulich“ */
.kbk-an-schalter { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: calc(var(--s) * 12.5); color: var(--ak-t1); cursor: pointer; } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4, Maß 1:1 in App-Px */
.kbk-an-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kbk-an-sw { position: relative; width: 30px; height: 18px; border-radius: 9px; background: #C9D2DE; flex: none; transition: background 150ms var(--kbk-ease-out); }
.kbk-an-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform 150ms var(--kbk-ease-out); }
.kbk-an-schalter input:checked + .kbk-an-sw { background: var(--ak-blue); }
.kbk-an-schalter input:checked + .kbk-an-sw::after { transform: translateX(12px); }
.kbk-an-schalter input:focus-visible + .kbk-an-sw { outline: 2px solid var(--ak-blue); outline-offset: 2px; }
.kbk-an-schalter.kbk-an-aus { color: var(--ak-t3); cursor: not-allowed; }
.kbk-an-hinweis { margin: 6px 0 0; font-size: calc(var(--s) * 11.5); line-height: 1.4; color: var(--ak-t3); } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4, Maß 1:1 in App-Px */
/* PR1.793 (#1119): Kennzeichen „optional“ / „mehrere möglich“, Entwurf, Foto-Feld */
.kbk-an-opt { margin-left: 4px; font-weight: 400; color: #9AA6B5; }
.kbk-an-entwurf { margin: 0 0 6px; padding: 6px 10px; border-radius: 8px; background: #FFF6DB; color: #7A5A00; font-size: calc(var(--s) * 11.5); line-height: 1.4; } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4 (.kbk-an-hinweis), Maß 1:1 in App-Px */
.kbk-an-foto { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kbk-an-fbild { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #EEF2F7; color: #9AA6B5; }
.kbk-an-fbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kbk-an-fstatus { flex: 1 1 100%; font-size: calc(var(--s) * 11.5); color: var(--ak-t3); } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4 (.kbk-an-hinweis), Maß 1:1 in App-Px */
.kbk-an-foto-fehler .kbk-an-fstatus { color: #C0392B; }
.kbk-an-form[aria-busy="true"] .kbk-an-inp, .kbk-an-form[aria-busy="true"] .kbk-an-chips { opacity: .6; pointer-events: none; }
/* Kundensuche (Verbinden) */
.kbk-an-combo { position: relative; }
.kbk-an-treffer { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #C9D2DE; border-radius: 8px; box-shadow: 0 8px 24px rgba(14, 23, 38, .14); }
.kbk-an-treffer li { padding: 6px 8px; border-radius: 6px; font-size: calc(var(--s) * 12.5); color: var(--ak-t1); cursor: pointer; } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W4, Maß 1:1 in App-Px */
.kbk-an-treffer li[aria-selected="true"], .kbk-an-treffer li:hover, .kbk-an-treffer li.kbk-an-akt { background: #E6F0FA; color: #0B4F8A; }
.kbk-an-chefs li[aria-selected="true"]:not(.kbk-an-akt) { background: none; font-weight: 600; }
.kbk-an-chefs { max-height: 220px; overflow-y: auto; }

/* Zeilen: speichert / nicht gespeichert / Konflikt */
.kbk-ak-row.kbk-ak-speichert .kbk-ak-t { opacity: .7; }
.kbk-ak-row.kbk-ak-fehlt { box-shadow: inset 0 0 0 1.5px #E5675F; border-radius: 8px; background: #FDF1F0; margin: 2px -10px; padding-left: 10px; padding-right: 10px; }
.kbk-ak-nochmal { display: block; margin-top: 2px; padding: 0; border: 0; background: none; font: 600 calc(var(--s) * 11.5) var(--f-sans, 'Fira Sans', system-ui, sans-serif); color: #C0392B; cursor: pointer; text-align: left; } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W5, Maß 1:1 in App-Px */
.kbk-ak-nochmal:hover { text-decoration: underline; }
.kbk-ak-konf { display: block; margin-top: 4px; font-size: calc(var(--s) * 11.5); color: var(--ak-t2); } /* PR1.567 Ausnahme: abgeleitet aus Vorlage W5, Maß 1:1 in App-Px */
.kbk-ak-konf b { display: block; color: #C0392B; font-weight: 600; }
.kbk-ak-konf > span { display: block; }

/* Toast „… angelegt · Rückgängig“ unten links über der Zeitleiste (W5 .toast) */
.kbk-an-toast {
  --s: 1px; position: absolute; left: 42px; bottom: 92px; z-index: 9; display: flex; align-items: center; gap: 12px; overflow: hidden;
  padding: 10px 14px; border-radius: 10px; background: #fff; color: #0E1726; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font: 400 calc(var(--s) * 13) var(--f-sans, 'Fira Sans', system-ui, sans-serif); --ak-t1: #0E1726; --ak-blue: #006EC7; /* PR1.567 Ausnahme: Vorlage W5 (gruppen.html .toast), Maß 1:1 in App-Px */
  animation: kbk-an-toast 180ms var(--kbk-ease-out) both; pointer-events: auto;
}
.kbk-an-sek { color: #66717F; font-size: calc(var(--s) * 12); font-variant-numeric: tabular-nums; } /* PR1.567 Ausnahme: Vorlage W5, Maß 1:1 in App-Px */
.kbk-an-balken { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ak-blue); transform-origin: left center; animation: kbk-an-balken 10s linear both; }
.kbk-an-toast .kbk-ak-btn:focus-visible { outline: 2px solid var(--ak-blue); outline-offset: 2px; }
@keyframes kbk-an-toast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kbk-an-balken { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.kbk-an-toast.kbk-an-ruhig { animation: none; }

/* PR1.727: Kunde im Fokus — Hintergrundmonat nur mit Monatsnamen auf der Kundenmitte (Vorlage W6 #month:
   Fira Sans 700, 150 px, #9FC2E6 mit 10 % Deckkraft; Rolle kpi 30 px × 5). Lage setzt die Bühne in px. */
.kbk-zeit-monat.kbk-zeit-monat-kunde { color: rgba(159, 194, 230, .1); transform: translate(-50%, -50%) scale(5); }

/* PR1.727: Akte offen — die Zeitleiste endet 17 px vor der Akte (Vorlage W2), statt unter der Akten-Spalte
   durchzulaufen. Akte: right 14 + 400 breit. Schmale Bühne: die Akte liegt über der Fläche, die Leiste bleibt breit. */
@container kbk (min-width: 1000px) {
  .kbk-stage:has(.kbk-akte.kbk-ak-auf) .kbk-zeit { right: 431px; }
}

/* PR1.819 (#1162) — Abschnitt „Dokumente“ der Kundenakte: Zeilen wie „Was kommt“ (Datum · Art · Name), rechts „Öffnen“. */
.kbk-ak-doks-liste { list-style: none; margin: 0; padding: 0; }
.kbk-ak-doc { align-items: center; }
.kbk-ak-doc .kbk-ak-d { width: 64px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kbk-ak-doc .kbk-ak-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.kbk-ak-doc-art { flex: none; min-width: 34px; padding: 1px 5px; border-radius: 4px; background: var(--ak-line2); color: var(--ak-t2); font-size: calc(var(--s) * 10.5); font-weight: 600; letter-spacing: .04em; text-align: center; } /* PR1.567 Ausnahme: Akte-Maß in App-Px wie .kbk-ak-m */
.kbk-ak-doc-auf { flex: none; }
.kbk-ak-btn:focus-visible { outline: 2px solid var(--ak-blue); outline-offset: 1px; }
.kbk-ak-doks-leer { margin: 0 0 4px; padding: 6px 0; font-size: calc(var(--s) * 12.5); color: var(--ak-t2); } /* PR1.567 Ausnahme: Akte-Maß in App-Px */
.kbk-ak-doks-fehler { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: calc(var(--s) * 12.5); color: var(--ak-t2); } /* PR1.567 Ausnahme: Akte-Maß in App-Px */
.kbk-ak-doks-fehler .kbk-ak-btn { flex: none; white-space: nowrap; }
