/* ==========================================================================
   Sektionsspezifische Bausteine + Animationen
   ========================================================================== */

.btn.xs { --h: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 5px; }
.btn-ok { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }
.mono-f { font-family: var(--mono); font-size: 11px; letter-spacing: 0; }
.bar-fill { transition: width .9s var(--ease), background-color .4s var(--ease); }
.pill { transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.pill.is-hide { opacity: 0; transform: translateY(4px) scale(.94); }
.pill.blue.is-dim, .pill.is-dim { background: var(--panel); color: var(--ink-80); }
.pill.rec { background: #fdecec; color: #b91c1c; }
.is-typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px;
  background: var(--accent); vertical-align: -2px; animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes ants { to { stroke-dashoffset: -18; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Animationen außerhalb des Sichtbereichs anhalten */
[data-play="off"], [data-play="off"] * { animation-play-state: paused !important; }

/* ---------- Wort-Animationen ---------- */
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .12em; margin: 0 -.03em -.12em; }
.is-split .wi { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1s var(--ease); will-change: transform; }
.is-split.is-in .wi { transform: none; }
[data-fill] .fw { color: var(--ink-20); transition: color .4s var(--ease); }
[data-fill] .fw.is-lit { color: var(--ink); }
[data-fill] .mute .fw.is-lit { color: var(--ink-60); }

/* ---------- Hero-Bühne ---------- */
.app {
  --w: min(820px, 64%);
  position: absolute;
  left: 50%;
  top: 56px;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 80px -30px rgba(20,20,18,.35);
}
.app-top {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfbfa;
}
.app-top .dots { display: inline-flex; gap: 5px; }
.app-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e4e3df; display: block; }
.app-url { color: var(--ink-40); font-size: 10.5px; flex: 1; text-transform: none; letter-spacing: 0; }
.app-body { display: grid; grid-template-columns: 168px 1fr; min-height: 470px; }
.app-side { border-right: 1px solid var(--line-soft); padding: 12px 10px; display: grid; align-content: start; gap: 2px; background: #fcfcfb; }
.side-logo { display: grid; justify-items: center; gap: 4px; padding: 6px 0 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; color: var(--ink-60); font-size: 11px; }
.side-logo b { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; font-weight: 500; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 99px; }
.side-search { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--ink-40); font-size: 11px; margin-bottom: 6px; }
.side-group { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-40); padding: 10px 8px 4px; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink-80); font-size: 11.5px; }
.side-item i { width: 8px; height: 8px; border-radius: 2px; border: 1.2px solid var(--ink-40); display: block; }
.side-item.is-active { background: var(--accent-soft); color: var(--accent); }
.side-item.is-active i { border-color: var(--accent); background: var(--accent); }
.app-main { position: relative; overflow: hidden; padding: 16px 18px; display: grid; gap: 12px; align-content: start; background: #fafaf9; }
.app-h { display: flex; justify-content: space-between; align-items: flex-start; }
.app-title { font-size: 18px; letter-spacing: -0.015em; }
.app-btn { --h: 28px; font-size: 11.5px; padding: 0 10px; transition: transform .15s var(--ease), background-color .2s; }
.app-btn.is-press, .btn.is-press { transform: scale(.94); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: grid; gap: 1px; }
.kpi b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; display: inline-block; justify-self: start; }
.kpi span { color: var(--ink-60); font-size: 10.5px; }
.kpi.warn b { color: var(--warn); }
.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: none; } 35% { transform: translateY(-4px); color: var(--accent); } 100% { transform: none; } }
.pipe { box-shadow: none; }
.pipe-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 12px; }
.pcol { display: grid; gap: 3px; }
.pcol span { color: var(--ink-60); font-size: 10.5px; }
.pcol b { font-size: 16px; font-weight: 500; display: inline-block; justify-self: start; }
.pcol em { font-style: normal; color: var(--ink-60); font-size: 10.5px; margin-bottom: 4px; }
.app-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.ui.mini { box-shadow: none; }
.todo { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; transition: color .3s var(--ease); }
.todo i { width: 11px; height: 11px; border-radius: 3px; border: 1.2px solid var(--ink-40); display: block; flex-shrink: 0; position: relative; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.todo.done { color: var(--ink-40); text-decoration: line-through; }
.todo.done i { background: var(--ok); border-color: var(--ok); }
.todo.done i::after { content: ""; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { width: 70px; height: 70px; transform: rotate(-90deg); flex-shrink: 0; }
.stage.is-in .donut .seg { animation: donut 1.6s var(--ease) .5s both; }
@keyframes donut { from { stroke-dasharray: 0 100; } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 11px; color: var(--ink-80); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: block; }
.toast {
  position: absolute; right: 18px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff; font-size: 12px;
  padding: 9px 12px; border-radius: 8px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }
.t-ico { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: 10px; }

.float {
  position: absolute;
  width: 248px;
  z-index: 2;
  transform: translateY(var(--py, 0px));
  animation: bob 7s ease-in-out infinite;
}
.float .ui-body { display: grid; gap: 8px; }
.float.f1 { left: 2.5%; top: 13%; animation-delay: -1s; }
.float.f2 { right: 2.5%; top: 9%; animation-delay: -3s; width: 232px; }
.float.f3 { left: 4%; bottom: 9%; animation-delay: -2s; width: 236px; }
.float.f4 { right: 3.5%; bottom: 12%; animation-delay: -4.5s; width: 228px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.quote { margin: 0; font-size: 12px; color: var(--ink-80); line-height: 1.45; min-height: 3.1em; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 11px; }
.wave i { width: 2px; height: 100%; border-radius: 2px; background: currentColor; animation: wave .9s ease-in-out infinite; transform: scaleY(.3); }
.wave i:nth-child(2) { animation-delay: -.15s; } .wave i:nth-child(3) { animation-delay: -.3s; } .wave i:nth-child(4) { animation-delay: -.45s; }
.wave i:nth-child(5) { animation-delay: -.6s; } .wave i:nth-child(6) { animation-delay: -.75s; } .wave i:nth-child(7) { animation-delay: -.2s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.setcard { display: flex; gap: 10px; align-items: center; padding: 12px 12px 4px; }
.sc-photo {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(140deg, #dfe7fb, #c7d5f6);
  color: var(--accent); font-weight: 600; font-size: 12px;
  display: grid; place-items: center;
}
.sc-photo.sm { width: 30px; height: 30px; border-radius: 6px; font-size: 10.5px; }
.sc-photo.lg { width: 52px; height: 52px; border-radius: 10px; font-size: 15px; transition: opacity .3s; }
.match { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-60); }
.match b { color: var(--accent); font-weight: 500; }
.row-actions { display: flex; gap: 6px; }
.row-actions .btn { transition: background-color .25s var(--ease), color .25s var(--ease), transform .15s var(--ease); }
.parts { display: grid; gap: 7px; margin-top: 4px; }
.parts span { font-size: 10.5px; color: var(--ink-60); display: block; margin-top: 3px; }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 8;
  width: 20px; height: 20px; pointer-events: none;
  opacity: 0;
  transition: transform 1.05s cubic-bezier(.5, .05, .2, 1), opacity .4s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: transform .15s var(--ease); }
.cursor::after {
  content: ""; position: absolute; left: -11px; top: -11px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(37,99,235,.35); opacity: 0; transform: scale(.2);
}
.cursor.is-click svg { transform: scale(.82); }
.cursor.is-click::after { animation: ripple .6s var(--ease); }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* Einblendung der Bühne */
.stage .app, .stage .float { opacity: 0; }
.stage.is-in .app { animation: rise 1s var(--ease) .15s forwards; }
.stage.is-in .float { animation: pop .8s var(--ease) forwards, bob 7s ease-in-out infinite; }
.stage.is-in .f1 { animation-delay: .45s, -1s; }
.stage.is-in .f2 { animation-delay: .6s, -3s; }
.stage.is-in .f3 { animation-delay: .75s, -2s; }
.stage.is-in .f4 { animation-delay: .9s, -4.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }

@media (max-width: 1180px) {
  .float.f1, .float.f3 { left: 1.5%; }
  .float.f2, .float.f4 { right: 1.5%; }
  .app { --w: 70%; }
}
@media (max-width: 960px) {
  .app { --w: 86%; top: 40px; }
  .float { width: 210px !important; }
  .float.f1 { top: auto; bottom: 6%; left: 3%; }
  .float.f2 { top: 22%; right: 2%; }
  .float.f3, .float.f4 { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 760px) {
  .stage { padding: 20px 14px 0; display: grid; gap: 12px; }
  .app { position: relative; left: auto; top: auto; width: 100%; margin-left: 0; }
  .app-body { min-height: 0; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpis .kpi:nth-child(n+4) { display: none; }
  .pipe-cols { grid-template-columns: repeat(3, 1fr); }
  .pipe-cols .pcol:nth-child(n+4) { display: none; }
  .app-split { grid-template-columns: 1fr; }
  .app-split .ui.mini:last-child { display: none; }
  .toast { left: 12px; right: 12px; bottom: 12px; }
  .float { position: relative; width: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
  .float.f2 { display: none; }
  .float.f1 { margin: -46px 18px 18px; }
}

/* ---------- Trust-Raster mit Hover-Markierung ---------- */
.trust-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.trust-head .h-md { max-width: 34ch; }
@media (max-width: 700px) { .trust-head { flex-direction: column; align-items: flex-start; } }
.trust-grid { position: relative; }
.trust-hl {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0;
  background: var(--accent); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), opacity .35s var(--ease);
}
.trust-hl.is-on { opacity: 1; }
.trust-cell { z-index: 1; cursor: default; }
.wm { display: grid; gap: 6px; justify-items: center; text-align: center; }
.wm b { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; color: var(--ink-80); transition: color .3s var(--ease), transform .4s var(--ease); }
.wm .mono { color: var(--ink-40); font-size: 10.5px; transition: color .3s var(--ease); }
.trust-cell.is-hl .wm b { color: #fff; transform: translateY(-2px); }
.trust-cell.is-hl .wm .mono { color: rgba(255,255,255,.75); }
.trust-cell.is-hl::before, .trust-cell.is-hl::after { border-color: var(--accent); }
.stat-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; pointer-events: none; z-index: 0; }
.stat-lines path { fill: none; stroke: #fff; stroke-width: .8; stroke-dasharray: 3 6; animation: ants 1.4s linear infinite; }
.trust-stat > * { position: relative; z-index: 1; }

/* ---------- Bento: Kanban ---------- */
.kanban { position: absolute; left: 28px; right: -40px; top: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 210px); gap: 12px; }
.kcol { background: rgba(255,255,255,.55); border: 1px solid var(--line-soft); border-radius: 10px 10px 0 0; padding: 10px; display: grid; gap: 8px; align-content: start; }
.khead { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-60); padding: 0 2px 2px; }
.khead b { font-weight: 500; color: var(--ink); display: inline-block; }
.kcards { display: grid; gap: 8px; align-content: start; }
.kcard { position: relative; padding: 10px 11px; display: grid; gap: 4px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 16px -10px rgba(20,20,18,.2); }
.kcard b { font-weight: 500; font-size: 12.5px; }
.kcard .avatars, .kcard .pill { margin-top: 4px; justify-self: start; }
.kcard.is-won::after {
  content: "✓ Gewonnen"; position: absolute; inset: 0; border-radius: inherit;
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
  background: rgba(232,245,236,.94); color: var(--ok);
  animation: won-in .3s var(--ease);
}
@keyframes won-in { from { opacity: 0; } }
@media (max-width: 760px) { .kanban { left: 20px; grid-template-columns: repeat(3, 200px); } }

/* ---------- Bento: Ablauf ---------- */
.flow { position: absolute; left: 28px; right: 28px; top: 0; border-radius: 10px 10px 0 0; border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.steps li:last-child { padding-bottom: 6px; }
.steps li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-20); background: #fff; display: block; position: relative; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.steps li.done i { background: var(--ok); border-color: var(--ok); }
.steps li.done i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.steps li.now i { border-color: var(--accent); }
.steps li.now i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.steps li div { display: grid; gap: 2px; padding-top: 2px; }
.steps li b { font-weight: 500; font-size: 13px; }
.bar-track.mini { margin-top: 8px; height: 4px; max-width: 240px; }
.steps li:not(.now) .bar-track.mini { visibility: hidden; height: 0; margin: 0; }
@media (max-width: 760px) { .flow { left: 20px; right: 20px; } }

/* ---------- Bento: Profil (CSS-Loop) ---------- */
.doc { position: absolute; left: 50%; top: 0; width: 76%; transform: translateX(-50%); padding: 16px; border-radius: 10px 10px 0 0; border-bottom: 0; height: calc(100% + 8px); display: grid; gap: 10px; align-content: start; overflow: hidden; }
.doc-top { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.doc-top b { font-weight: 500; display: block; font-size: 13px; }
.doc-lines { display: grid; gap: 6px; }
.doc-lines i { display: block; height: 6px; border-radius: 3px; background: var(--panel-2); transform-origin: left center; }
.doc-label { font-size: 10px; color: var(--ink-40); margin-top: 4px; }
.doc .doc-lines i { animation: line-build 7s var(--ease) infinite both; }
.doc > div:nth-of-type(2) i:nth-child(2) { animation-delay: .15s; }
.doc > div:nth-of-type(2) i:nth-child(3) { animation-delay: .3s; }
.doc > div:nth-of-type(6) i:nth-child(1) { animation-delay: 1.5s; }
.doc > div:nth-of-type(6) i:nth-child(2) { animation-delay: 1.65s; }
.doc .tags .pill { animation: tag-pop 7s var(--ease) infinite both; }
.doc .tags .pill:nth-child(1) { animation-delay: .8s; }
.doc .tags .pill:nth-child(2) { animation-delay: .95s; }
.doc .tags .pill:nth-child(3) { animation-delay: 1.1s; }
.doc-made { justify-self: start; margin-top: 6px; animation: tag-pop 7s var(--ease) 2.1s infinite both; }
.doc-scan { position: absolute; left: 0; right: 0; top: 0; height: 56px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(37,99,235,.09) 70%, rgba(37,99,235,.35) 71%, transparent 73%); animation: doc-scan 7s linear infinite; }
@keyframes line-build { 0% { transform: scaleX(0); opacity: 1; } 12% { transform: scaleX(1); } 86% { transform: scaleX(1); opacity: 1; } 95%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes tag-pop { 0%, 4% { opacity: 0; transform: scale(.8); } 10%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes doc-scan { 0% { transform: translateY(-60px); } 30%, 100% { transform: translateY(340px); } }

/* ---------- Bento: Folien ---------- */
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; width: 62%; aspect-ratio: 16/10; padding: 12px;
  display: grid; gap: 6px; align-content: start; border-radius: 8px;
  transition: left .8s var(--ease), top .8s var(--ease), transform .8s var(--ease), opacity .45s var(--ease);
}
.slide .mono { font-size: 9.5px; color: var(--accent); }
.slide b { font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.slide i { display: block; height: 5px; border-radius: 3px; background: var(--panel-2); }
.slide[data-pos="0"] { left: 8%; top: 4%; transform: rotate(-4deg); z-index: 1; }
.slide[data-pos="1"] { left: 22%; top: 18%; transform: rotate(1deg); z-index: 2; }
.slide[data-pos="2"] { left: 32%; top: 34%; transform: rotate(4deg); z-index: 3; }
.slide.is-leaving { opacity: 0; transform: translate(40px, 30px) rotate(12deg) !important; }
.swot { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.swot i { height: 22px; border-radius: 4px; }
.swot i:nth-child(1) { background: var(--accent-soft); }
.swot i:nth-child(4) { background: var(--warn-soft); }
.gen { position: absolute; left: 28px; bottom: 22px; z-index: 4; }

/* ---------- Bento: Dokumente ---------- */
.files { position: absolute; left: 24px; right: 24px; top: 0; border-radius: 10px 10px 0 0; border-bottom: 0; height: calc(100% + 8px); }
.file-list { height: 172px; overflow: hidden; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.file.is-new { animation: file-in .7s var(--ease); }
.file.is-gone { opacity: 0; transition: opacity .3s; }
@keyframes file-in { from { opacity: 0; transform: translateY(-16px); background: var(--accent-soft); } 60% { background: var(--accent-soft); } to { opacity: 1; transform: none; background: transparent; } }
.ft { font-style: normal; font-family: var(--mono); font-size: 8.5px; font-weight: 500; width: 28px; height: 20px; border-radius: 4px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ft.pdf { background: #b91c1c; } .ft.ppt { background: #c2410c; } .ft.wrd { background: #1d4ed8; } .ft.xls { background: #15803d; }
.file .mono-f { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-80); }
.sync { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--ink-60); font-size: 10px; text-transform: none; letter-spacing: 0; transition: color .3s; }
.sync.is-ok { color: var(--ok); }

/* ---------- Spracheingabe ---------- */
.voice-sec { padding-block: clamp(24px, 4vw, 48px); }
.voice {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(36px, 5vw, 56px);
  background: #f3f3f0;
  border: 1px solid var(--line-soft);
}
.voice-bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(37,99,235,.12), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(11,11,10,.06), transparent 70%),
    radial-gradient(45% 55% at 60% 90%, rgba(37,99,235,.10), transparent 70%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(4%, -3%) rotate(4deg); } }
.voice > *:not(.voice-bg) { position: relative; }
.voice-box {
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px -30px rgba(20,20,18,.3);
  transition: border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.voice-box:focus-within, .voice-box.is-rec { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 50px -30px rgba(20,20,18,.3); }
.voice-box textarea { width: 100%; border: 0; resize: none; outline: none; background: transparent; padding: 18px 20px 8px; font-size: 16px; line-height: 1.5; min-height: 96px; }
.voice-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 10px 20px; }
.voice-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-40); font-size: 11px; }
.voice-hint .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-20); }
.voice-hint .wave { display: none; color: #dc2626; }
.voice-box.is-rec .voice-hint { color: #b91c1c; }
.voice-box.is-rec .voice-hint .rec { background: #dc2626; animation: pulse-r 1.6s infinite; }
.voice-box.is-rec .voice-hint .wave { display: inline-flex; }
.voice-box.is-done .voice-hint .rec { background: var(--ok); }
@keyframes pulse-r { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); } 70% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
.voice-box .btn.is-busy { background-image: linear-gradient(90deg, var(--accent), #5b8cf5, var(--accent)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.voice-out { max-width: 760px; margin: 14px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vo-card { padding: 12px 14px; display: grid; gap: 6px; align-content: start; box-shadow: none; opacity: .5; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .3s var(--ease); min-height: 92px; }
.vo-card .mono { font-size: 10px; color: var(--ink-40); }
.vo-card b { font-weight: 500; font-size: 13.5px; }
.vo-card.is-on { opacity: 1; transform: none; border-color: var(--accent-line); }
.vo-list { display: grid; gap: 4px; font-size: 13px; }
.vo-list span::before { content: "✓ "; color: var(--ok); }
.voice-foot { text-align: center; color: var(--ink-40); font-size: 13px; margin: 22px auto 0; max-width: 60ch; }
@media (max-width: 760px) {
  .voice-out { grid-template-columns: 1fr 1fr; }
  .voice-actions { flex-direction: column; align-items: stretch; padding-left: 10px; }
  .voice-hint { padding-left: 10px; }
  .voice-box textarea { min-height: 156px; font-size: 15px; padding: 16px 16px 6px; }
}

/* ---------- Story: bleibt beim Scrollen stehen ---------- */
.story { position: relative; height: 330vh; }
.story-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; }
@supports (height: 100svh) { .story-pin { height: calc(100svh - var(--nav-h)); } }
.story-in { height: 100%; display: flex; flex-direction: column; padding-top: clamp(16px, 4.5vh, 56px); padding-bottom: 18px; }
.story-head { display: grid; justify-items: center; text-align: center; gap: 12px; flex-shrink: 0; }
.story-head .lead { min-height: 1.45em; transition: opacity .3s var(--ease); max-width: 52ch; }
.story-head .lead.is-swap { opacity: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); margin-top: 4px; }
.seg button { padding: 7px 14px; border-radius: 6px; font-size: 14px; color: var(--ink-60); transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }
.seg button[data-story-jump="hub"][aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.chaos { position: relative; flex: 1; min-height: 0; margin-top: clamp(14px, 3vh, 32px); }
.chaos .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.chaos .wires path { fill: none; stroke: var(--ink-20); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; animation: ants 1.4s linear infinite; }
.chaos .frag {
  position: absolute; left: var(--x); top: var(--y);
  width: max-content; max-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 36px -16px rgba(20,20,18,.22);
  padding: 12px 14px; font-size: 12.5px;
  opacity: 0; will-change: transform, opacity;
}
.frag .src { display: flex; align-items: center; gap: 6px; color: var(--ink-60); font-size: 11px; margin-bottom: 6px; }
.frag .src i { width: 14px; height: 14px; border-radius: 3px; display: block; }
.frag p { margin: 0; }
.frag .x { color: #c2410c; }
.hubcard {
  position: absolute; left: 50%; top: 50%;
  width: min(520px, 100%);
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0; z-index: 3;
  box-shadow: 0 30px 80px -30px rgba(20,20,18,.35);
}
.hrow { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hrow:last-child { border-bottom: 0; }
.hrow.is-on { opacity: 1; transform: none; }
.hico { width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.story-progress { flex-shrink: 0; align-self: center; width: 100%; max-width: 220px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 14px; }
.story-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .story { height: 300vh; }
  .chaos .frag { left: var(--mx); top: var(--my); width: 49%; max-width: none; padding: 9px 10px; font-size: 11px; }
  .frag .src { font-size: 10px; margin-bottom: 4px; }
  .chaos .wires { display: none; }
  .hubcard .ui-body { padding: 4px 12px; }
  .hrow { font-size: 12px; padding: 7px 0; gap: 8px; grid-template-columns: 22px 1fr auto; }
  .hico { width: 22px; height: 22px; }
}

/* ---------- Projektbearbeitung ---------- */
.pb { position: absolute; inset: 0; padding: 24px; display: grid; gap: 16px; align-content: center; }
.pb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-tabs button { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-80); transition: all .25s var(--ease); }
.pb-tabs button:hover { border-color: var(--ink-20); }
.pb-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb-card { box-shadow: 0 20px 50px -30px rgba(20,20,18,.3); }
.pb-card .ui-body { padding: 18px; display: grid; gap: 4px; }
.pb-title { font-size: 19px; letter-spacing: -0.015em; }
.pb-parts { display: grid; gap: 14px; margin: 20px 0 12px; }
.pb-part { display: grid; gap: 7px; }
.pb-part-h { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; font-size: 13px; align-items: baseline; }
.pb-part-h b { font-weight: 500; }
.pb-part-h span { color: var(--ink-60); }
.pb-part-h em { font-style: normal; color: var(--ink-60); font-size: 12px; }
.pb-part .bar-fill { width: 0; }
.pb-feed { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-80); padding: 0 12px; height: 38px; background: var(--panel); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex-shrink: 0; animation: pulse-g 2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 70% { box-shadow: 0 0 0 6px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }
.feed-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.feed-text.is-out { transform: translateY(-120%); opacity: 0; }
.feed-text.is-enter { transform: translateY(120%); opacity: 0; transition: none; }
.pb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.mail-tag { background: var(--panel); padding: 5px 8px; border-radius: 5px; color: var(--ink-60); }
@media (max-width: 760px) { .pb { position: relative; padding: 16px; } }

/* ---------- Profile ---------- */
.pf { position: absolute; inset: 0; padding: 24px; display: grid; gap: 10px; align-content: center; }
.pf-req { width: 78%; justify-self: start; box-shadow: none; }
.pf-req .pill.is-pulse { animation: req-pulse .5s var(--ease); }
@keyframes req-pulse { 50% { transform: scale(1.08); } }
.pf-arrow { justify-self: center; color: var(--accent); font-size: 11px; padding: 5px 12px; background: var(--accent-soft); border-radius: 99px; text-transform: none; letter-spacing: 0; transition: color .3s; }
.pf-arrow.is-busy { color: #fff; background-image: linear-gradient(90deg, var(--accent), #6c97f7, var(--accent)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.pf-card { width: 92%; justify-self: end; box-shadow: 0 20px 50px -30px rgba(20,20,18,.3); }
.pf-band { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); position: relative; transition: background-color .3s var(--ease); }
.pf-name { font-size: 17px; letter-spacing: -0.01em; }
.pf-pass { margin-top: 8px; }
.pf-ci { margin-left: auto; align-self: flex-start; font-size: 10px; padding: 4px 8px; border-radius: 4px; background: var(--dark); color: #fff; transition: opacity .3s var(--ease); }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 12px 16px; }
.pf-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-80); }
.pf-list li { padding: 1px 4px 1px 14px; margin-left: -4px; position: relative; border-radius: 4px; transition: color .3s var(--ease); }
.pf-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--ink-20); transition: background-color .3s var(--ease); }
.pf-list li.hit::before { background: var(--accent); }
.pf-list li.hit { color: var(--ink); }
.pf-list li.flash { animation: hl-flash 1s var(--ease); }
@keyframes hl-flash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
[data-pf-lines] i { transition: transform .8s var(--ease); }
[data-pf-lines].is-empty i { transform: scaleX(0); }
.pf-foot { display: flex; gap: 6px; align-items: center; padding: 10px 16px 14px; flex-wrap: wrap; }
.pf-card.is-blank .pf-ci, .pf-card.is-blank .sc-photo { opacity: 0; }
.pf-card.is-blank .pf-band { background: var(--panel); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-80); cursor: pointer; margin-left: auto; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { width: 30px; height: 18px; border-radius: 99px; background: var(--ink-20); position: relative; transition: background-color .2s var(--ease); flex-shrink: 0; }
.toggle span::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 .2s var(--ease); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(12px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .pf { position: relative; padding: 16px; }
  .pf-req, .pf-card { width: 100%; }
  .pf-cols { grid-template-columns: 1fr; }
}

/* ---------- Vertrieb ---------- */
.vt { position: absolute; inset: 0; padding: 24px; }
.vt-offer { position: absolute; left: 24px; top: 28px; width: 52%; box-shadow: none; }
.ov { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ui-row.is-empty .ov { opacity: 0; transform: translateX(6px); }
.vt-mail { position: absolute; right: 24px; top: 40%; width: 60%; box-shadow: 0 20px 50px -30px rgba(20,20,18,.3); }
.vt-mail .ui-body { display: grid; gap: 10px; }
.typed { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-80); min-height: 78px; }
.seg-mini { display: inline-flex; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg-mini > * { padding: 3px 8px; font-weight: 400; color: var(--ink-60); transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg-mini > .is-on { background: var(--panel); color: var(--ink); }
.vt-lead { position: absolute; left: 40px; bottom: 24px; padding: 12px 14px; display: grid; gap: 6px; justify-items: start; width: 46%; box-shadow: 0 12px 30px -20px rgba(20,20,18,.3); }
.vt-lead .mono { font-size: 10px; color: var(--ink-40); }
.vt-lead b { font-weight: 500; font-size: 13px; }
@media (max-width: 760px) {
  .vt { position: relative; padding: 16px; display: grid; gap: 10px; }
  .vt-offer, .vt-mail, .vt-lead { position: static; width: 100%; }
}

/* ---------- Team ---------- */
.roles { position: absolute; inset: 0; padding: 28px; display: grid; gap: 10px; align-content: center; overflow: hidden; }
.roles .scan { position: absolute; left: 0; right: 0; top: -20%; height: 70px; pointer-events: none; z-index: 2; background: linear-gradient(180deg, transparent, rgba(37,99,235,.08) 75%, rgba(37,99,235,.45) 76%, transparent 78%); animation: scan-roles 4.5s var(--ease) infinite; }
@keyframes scan-roles { 0% { top: -20%; } 70%, 100% { top: 100%; } }
.role { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; box-shadow: none; transition: transform .3s var(--ease); }
.role .avatar { width: 30px; height: 30px; font-size: 10.5px; }
.role b { font-weight: 500; display: block; font-size: 13.5px; }
.role:nth-of-type(2) { margin-left: 24px; }
.role:nth-of-type(3) { margin-left: 48px; }
.role .pill { animation: role-ok 4.5s var(--ease) infinite both; }
.role:nth-of-type(1) .pill { animation-delay: .95s; }
.role:nth-of-type(2) .pill { animation-delay: 1.4s; }
.role:nth-of-type(3) .pill { animation-delay: 1.85s; }
@keyframes role-ok { 0% { background: var(--panel); color: var(--ink-80); } 6%, 30% { background: var(--accent); color: #fff; } 55%, 100% { background: var(--accent-soft); color: var(--accent); } }
.duo-card:hover .role:nth-of-type(2) { transform: translateX(-6px); }
.duo-card:hover .role:nth-of-type(3) { transform: translateX(-12px); }
.role-db { display: flex; align-items: center; gap: 8px; color: var(--ink-60); font-size: 10.5px; margin-top: 8px; justify-self: center; }
.conf { position: absolute; inset: 0; padding: 24px; display: grid; gap: 12px; align-content: center; }
.conf-bar { display: flex; justify-content: space-between; align-items: center; }
.conf-bar .mono { color: var(--ink-40); font-size: 10.5px; display: inline-flex; align-items: center; gap: 8px; }
.conf-bar .mono::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse-r 1.6s infinite; }
.conf-table { box-shadow: 0 20px 50px -30px rgba(20,20,18,.3); }
.ct-row { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.ct-row:last-child { border-bottom: 0; }
.ct-row span:last-child { text-align: right; }
.ct-h { color: var(--ink-40); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; background: #fbfbfa; }
.pv { transition: filter .45s var(--ease); }
.conf.is-private .pv { filter: blur(5px); }
.conf.is-private .ct-row:not(.ct-h) .pv { transition-delay: calc(var(--i, 0) * 60ms); }
@media (max-width: 760px) {
  .roles, .conf { position: relative; padding: 16px; }
  .duo-visual { aspect-ratio: auto; }
  .role:nth-of-type(2), .role:nth-of-type(3) { margin-left: 0; }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row span:nth-child(2) { display: none; }
}

/* ---------- Integrationen ---------- */
.ints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.int { position: relative; overflow: hidden; padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: none; background: var(--panel); transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--ease); }
.int::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(37,99,235,.13), transparent 65%); opacity: 0; transition: opacity .3s var(--ease); }
.int:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.int:hover::before { opacity: 1; }
.int > * { position: relative; }
.int p { margin: 0; color: var(--ink-60); font-size: 14.5px; }
.int-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.int-ico { width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: color .3s, border-color .3s; }
.int:hover .int-ico { color: var(--accent); border-color: var(--accent-line); }
.int-ico svg { width: 18px; height: 18px; overflow: visible; }
.int-ico.bi path[class] { transform-box: fill-box; transform-origin: bottom; animation: bi-bar 2.4s ease-in-out infinite; }
.int-ico.bi .b2 { animation-delay: -.8s; } .int-ico.bi .b3 { animation-delay: -1.6s; }
@keyframes bi-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
.int-ico.spark svg { animation: spin 9s linear infinite; }
.int-ico.swap svg { animation: swap 2.4s ease-in-out infinite; }
@keyframes swap { 50% { transform: translateX(2px); } }
.int pre { margin: 2px 0 4px; padding: 12px; background: var(--dark); color: rgba(255,255,255,.86); border-radius: 8px; overflow-x: auto; line-height: 1.6; font-size: 11.5px; min-height: 82px; }
.int pre .k { color: #93c5fd; } .int pre .c { color: rgba(255,255,255,.45); } .int pre .s { color: #fcd34d; } .int pre .ok { color: #86efac; }
.int pre .caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; background: #93c5fd; vertical-align: -2px; animation: caret 1s steps(2) infinite; }
.int pre .res { transition: opacity .4s var(--ease); }
.int pre .res.is-hide { opacity: 0; }
@media (max-width: 960px) { .ints { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ints { grid-template-columns: 1fr; } }

/* ---------- Sicherheit: Licht folgt der Maus ---------- */
.dark-block { --mx: 50%; --my: 35%; --spot: 0; }
.dark-grid, .dark-dots-lit, .dark-spot { position: absolute; inset: 0; pointer-events: none; }
.dark-grid { background-image: radial-gradient(rgba(255,255,255,.085) 1px, transparent 1.3px); background-size: 18px 18px; }
.dark-dots-lit {
  background-image: radial-gradient(rgba(255,255,255,.95) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(230px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.45) 40%, transparent 72%);
  mask-image: radial-gradient(230px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.45) 40%, transparent 72%);
  opacity: var(--spot); transition: opacity .5s var(--ease);
}
.dark-spot {
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255,255,255,.12), rgba(255,255,255,.035) 38%, transparent 64%);
  opacity: var(--spot); transition: opacity .5s var(--ease);
}
.dark-head, .dark-block .sec-grid, .dark-block .sec-note { position: relative; z-index: 1; }
.dark-head { margin-bottom: 0; }
.dark-block .sec-grid { grid-template-columns: repeat(3, 1fr); }
.dark-block .sec-item:nth-child(4) { padding-left: 0; border-left: 0; }
.dark-block .sec-item:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.12); }
.sec-item .ico { transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.sec-item:hover .ico { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.sec-note { margin: 28px 0 0; color: rgba(255,255,255,.4); font-size: 11px; }
@media (max-width: 860px) {
  .dark-block .sec-grid { grid-template-columns: 1fr; }
  .dark-block .sec-item:nth-child(n+4) { border-top: 0; }
  .dark-block .sec-item:nth-child(4) { padding: 24px 0; }
}

/* ---------- Banner ---------- */
.banner-lines path { stroke-dasharray: 5 7; animation: ants 2.2s linear infinite; }
