/* Kunden-App: umgesetzt nach der Claude-Design-Leinwand „Kunden-App mit eigenem Icon“.
   Papier vom Auftragsblock, Anthrazit der Arbeitskleidung, Markenfarbe des Kunden als Akzent.
   --brand, --brand-solid, --brand-light, --brand-soft setzt der Server pro Kunde. */

@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4f6ef;
  --slip: #ffffff;
  --sunk: #e9ece3;
  --track: #eef0e8;
  --ink: #14171c;
  --ink-2: #4f5761;
  --ink-3: #636b75;
  --ink-4: #8a929c;
  --text-2: #2d333b;
  --rule: rgba(20, 23, 28, 0.08);
  --rule-2: rgba(20, 23, 28, 0.07);
  --rule-strong: rgba(20, 23, 28, 0.18);
  --night: #15181d;
  --wash: color-mix(in srgb, var(--brand) 11%, transparent);
  --late: #b45309;
  --late-dark: #f5a524;
  --wa: #25d366;
  --wa-ink: #0b2e17;
  --ok: #15803d;
  --mid: #b45309;
  --bad: #b91c1c;
  --star: #b7860b;
  --red: #e3242b;
  --yellow: #f5c518;
  --blitz-ink: #151510;
  --blitz-bg: #faf9f4;
  --blitz-muted: #6e6d62;
  --blitz-line: #dedbcf;
  --head: 'Archivo', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top: calc(env(safe-area-inset-top) + 16px);
  --lift: 0 0 0 1px var(--rule), 0 1px 2px rgba(20, 23, 28, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
svg { flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.screen { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; overflow-x: clip; }
.screen.has-tabs { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.pad { padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Typo ---------- */
.h1 { margin: 0; font: 800 32px/1.06 var(--head); letter-spacing: -0.025em; }
.pad24 { padding: 0 24px; }
.h2 { margin: 0; font: 700 17px/1.25 var(--head); }
.sub { margin: 4px 0 0; color: var(--ink-2); }
.label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.big { font: 800 30px/1.15 var(--head); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }

/* ---------- Kopf, Zurück, Fortschritt ---------- */
.appbar { display: flex; align-items: center; gap: 12px; padding: var(--top) 16px 4px 20px; }
.appbar-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--rule); }
.appbar-name { flex: 1; font: 700 17px/1 var(--head); letter-spacing: -0.01em; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wash); color: var(--brand-solid); font: 700 15px/1 var(--head); }
.topnav { padding: calc(var(--top) - 2px) 20px 0 8px; display: flex; align-items: center; justify-content: space-between; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px 0 4px; color: var(--brand-solid); font-weight: 600; background: none; border: 0; }
.progress { display: flex; align-items: center; gap: 12px; padding: calc(var(--top) - 2px) 24px 0 12px; }
.progress-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.progress-bars { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress-bars span { height: 4px; border-radius: 2px; background: rgba(20, 23, 28, 0.12); }
.progress-bars span.on { background: var(--brand-solid); }
.progress-step { font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* ---------- Flächen ---------- */
.card { border-radius: 20px; background: var(--slip); box-shadow: 0 0 0 1px var(--rule); }
.card-pad { padding: 16px; }
.dark { position: relative; overflow: hidden; border-radius: 24px; background: var(--night); color: #fff; }
.dark > * { position: relative; }
.glow { position: absolute !important; border-radius: 50%; pointer-events: none; }
.tile { padding: 14px; border-radius: 18px; background: var(--slip); box-shadow: 0 0 0 1px var(--rule); }
.tile-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.tile-note { font-size: 13px; font-weight: 600; color: var(--brand-solid); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dark-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.pill-up { padding: 6px 10px; border-radius: 999px; background: rgba(79, 184, 232, 0.16); color: var(--brand-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Segmente ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.seg button { min-height: 40px; padding: 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.2s var(--ease); }
.seg button[aria-selected='true'], .seg button[aria-checked='true'] { background: var(--slip); color: var(--ink); box-shadow: var(--lift); }
.seg.small { padding: 3px; gap: 2px; }
.seg.small button { min-height: 30px; padding: 0 10px; font-size: 12px; }
.count { min-width: 22px; padding: 4px 6px; border-radius: 999px; background: rgba(20, 23, 28, 0.06); color: var(--ink-2); font-size: 12px; line-height: 1; }
.count.hot { background: var(--brand-solid); color: #fff; }

/* ---------- Rückrufzettel ---------- */
.slips { display: flex; flex-direction: column; gap: 12px; }
.slip { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; border-radius: 18px; background: var(--slip); box-shadow: var(--lift); transition: box-shadow 0.4s var(--ease); }
.slip.arrived { box-shadow: 0 0 0 3px var(--brand), 0 10px 24px color-mix(in srgb, var(--brand) 20%, transparent); }
.slip-main { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 12px 18px; }
.slip-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-width: 0; }
.slip-service { min-width: 0; font: 700 17px/1.25 var(--head); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.slip-place { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-3); }
.slip-msg { margin: 4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slip-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.slip-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip.done .slip-service { color: var(--ink-2); }
.wait { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--brand-solid); font-variant-numeric: tabular-nums; }
.wait::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wait.late { color: var(--late); }
.when { white-space: nowrap; color: var(--ink-3); }
.stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; border-left: 2px dashed var(--rule-strong); border-radius: 0 18px 18px 0; background: transparent; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.stub::before, .stub::after { content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.stub::before { top: -9px; }
.stub::after { bottom: -9px; }
.stub[data-status='neu'] { background: var(--brand-solid); color: #fff; border-left-color: rgba(255, 255, 255, 0.6); }
.stub[data-status='in_arbeit'] { background: var(--wash); color: var(--brand-solid); }
.stub:active { filter: brightness(0.92); }
.empty { padding: 32px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty strong { display: block; margin-bottom: 6px; font: 700 18px/1.3 var(--head); color: var(--ink-2); }

/* ---------- Knöpfe ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 700; font-size: 17px; text-align: center; transition: transform 0.15s var(--ease), filter 0.15s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--brand-solid); color: #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-quiet { background: var(--slip); color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 23, 28, 0.16); }
.btn-white { background: #fff; color: var(--brand-solid); box-shadow: 0 14px 30px rgba(0, 30, 50, 0.3); }
.btn-text { min-height: 44px; background: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.btn-sm { min-height: 48px; font-size: 14px; }
.btn-md { min-height: 52px; font-size: 15px; }
.bottom-cta { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); width: min(calc(100% - 48px), 432px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; }

/* ---------- Liste ---------- */
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; }
.row + .row { border-top: 1px solid var(--rule-2); }
.row-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--wash); color: var(--brand-solid); flex: none; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; }
.row-sub { display: block; font-size: 13px; color: var(--ink-3); }

/* ---------- Leiste unten ---------- */
.tabbar { position: fixed; z-index: 10; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 448px); height: 66px; transform: translateX(-50%); padding: 6px; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.12); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.tab { position: relative; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 11px; font-weight: 500; }
.tab[aria-current='page'] { background: var(--tint); color: var(--brand-solid); font-weight: 600; }
.tab-badge { position: absolute; top: 4px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-solid); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }

/* ---------- Hinweise ---------- */
#toast { position: fixed; z-index: 40; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; box-shadow: 0 10px 26px rgba(10, 12, 15, 0.25); transition: transform 0.35s var(--ease), opacity 0.25s; text-align: center; }
#toast.on { transform: translate(-50%, 0); opacity: 1; }
#toast.low { bottom: calc(34px + env(safe-area-inset-bottom)); }
#banner { position: fixed; z-index: 45; left: 50%; top: calc(env(safe-area-inset-top) + 10px); width: min(calc(100% - 20px), 460px); transform: translate(-50%, -160%); transition: transform 0.45s var(--ease); }
#banner.on { transform: translate(-50%, 0); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 20px; background: rgba(20, 23, 28, 0.96); color: var(--paper); box-shadow: 0 14px 34px rgba(10, 12, 15, 0.32); }
.banner img { width: 40px; height: 40px; border-radius: 9px; }
.banner-go { padding: 8px 12px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- Bogen (nach dem Anruf) ---------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(60, 64, 58, 0.55); opacity: 0; transition: opacity 0.3s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100%, 480px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 6px 22px calc(110px + env(safe-area-inset-bottom)); background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(10, 12, 15, 0.18); transform: translate(-50%, 100%); transition: transform 0.38s var(--ease); }
.sheet.on { transform: translate(-50%, 0); }
.grabber { width: 36px; height: 5px; margin: 4px auto 14px; border-radius: 3px; background: var(--rule-strong); }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.outcome { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 104px; padding: 14px; border: 0; border-radius: 18px; text-align: left; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px var(--rule); }
.outcome[aria-checked='true'] { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 8px 20px color-mix(in srgb, var(--brand) 15%, transparent); }
.outcome-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--wash); color: var(--brand-solid); }
.outcome[aria-checked='true'] .outcome-icon { background: var(--brand-solid); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 23, 28, 0.12); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.sheet .bottom-cta { position: absolute; left: 22px; right: 22px; bottom: calc(28px + env(safe-area-inset-bottom)); width: auto; transform: none; }

/* ---------- Ticket (Detail) ---------- */
.ticket-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.initials { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wash); color: var(--brand-solid); font: 700 16px/1 var(--head); flex: none; }
.tear { position: relative; margin: 0 16px; border-top: 2px dashed var(--rule-strong); }
.tear::before, .tear::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.tear::before { left: -25px; }
.tear::after { right: -25px; }
.status-pill { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(20, 23, 28, 0.06); color: var(--ink-2); }
.status-pill.neu { background: var(--brand-solid); color: #fff; }
.status-pill.in_arbeit { background: var(--wash); color: var(--brand-solid); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.timeline li { display: flex; gap: 12px; align-items: center; }
.timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.timeline .t { width: 40px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- Onboarding ---------- */
.brand-screen { position: relative; overflow: hidden; min-height: 100dvh; background: var(--brand-solid); color: #fff; }
.brand-glow { position: absolute; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-light) 55%, transparent) 0%, transparent 68%); pointer-events: none; }
.chip-light { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 13px; font-weight: 600; }
.step-card { padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-solid); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--head); flex: none; }
.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-boxes span { height: 58px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font: 700 26px/1 var(--head); box-shadow: 0 0 0 1px rgba(20, 23, 28, 0.1); }
.code-boxes span.active { box-shadow: 0 0 0 2px var(--brand), 0 6px 16px color-mix(in srgb, var(--brand) 15%, transparent); }
.code-boxes input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--wash); color: var(--brand-solid); display: flex; align-items: center; justify-content: center; font: 800 16px/1 var(--head); }
.icon-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 12px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--rule); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.icon-opt[aria-checked='true'] { color: var(--ink); box-shadow: 0 0 0 2px var(--brand), 0 8px 20px color-mix(in srgb, var(--brand) 16%, transparent); }
.icon-opt .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-solid); color: #fff; display: none; align-items: center; justify-content: center; }
.icon-opt[aria-checked='true'] .tick { display: flex; }

/* ---------- Dustin-Bereich (Blitzwebsite) ---------- */
.blitz { background: var(--blitz-bg); color: var(--blitz-ink); min-height: 100dvh; }
.mono-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.blitz-card { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--blitz-line); }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px 16px 16px 4px; background: var(--yellow); color: var(--blitz-ink); font-size: 14px; line-height: 1.4; }

/* ---------- Schalter ---------- */
.switch { position: relative; width: 50px; height: 30px; flex: none; border: 0; border-radius: 15px; background: rgba(20, 23, 28, 0.2); transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.2s var(--ease); }
.switch[aria-checked='true'] { background: var(--brand-solid); }
.switch[aria-checked='true']::after { left: 23px; }

/* ---------- Zahlen ---------- */
.bar-track { height: 8px; border-radius: 4px; background: var(--track); }
.bar-fill { height: 8px; border-radius: 4px; background: var(--brand); }
.rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 13px/1 var(--head); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.rank.home { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--brand); }
.pos { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--head); color: #fff; }

.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-solid); color: #fff; overflow: hidden; }

/* Sehr schmale Handys (320 px) */
@media (max-width: 359px) {
  .seg button { padding: 8px 4px; font-size: 13px; white-space: nowrap; gap: 4px; }
  .count { min-width: 18px; padding: 3px 5px; }
  .h1 { font-size: 28px; }
}

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

/* ---------- Premium-Oberfläche: Bühne mit Kundenfoto, ruhige Karten ----------
   Schrift, Farben, Logo und Fotos kommen von der Website des Kunden (tenant.json). */
:root {
  --ink-3: #5f6670;
  --ink-4: #9aa0a8;
  --soft: #f2f3f5;
  --line: #eef0f2;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --late-bar: #d97706;
  --bar-quiet: #d5d9de;
  --ok-bg: #e9f6ee;
  --warm-bg: #fdf3e2;
  --warm: #9a5b00;
}
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }

/* Bühne */
.k-stage { position: relative; height: 272px; overflow: hidden; background: var(--night); color: #fff; }
.k-stage.tall { height: 410px; }
.k-stage.person { height: 420px; }
.k-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-stage.person .k-stage-img { object-position: 50% 20%; }
.k-stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 55%, transparent) 0%, color-mix(in srgb, var(--night) 8%, transparent) 28%, color-mix(in srgb, var(--night) 50%, transparent) 52%, color-mix(in srgb, var(--night) 94%, transparent) 100%); }
.k-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: var(--top) 20px 0; }
.k-logo { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.k-avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.k-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.k-stage-text { position: absolute; left: 24px; right: 24px; bottom: 52px; }
.k-stage.tall .k-stage-text { bottom: 60px; }
.k-stage-link { display: flex; flex-direction: column; }
.k-stage-kicker { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.k-stage-big { margin-top: 2px; font: 600 54px/1.05 var(--head); letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.k-stage-title { display: block; margin-top: 4px; font: 700 26px/1.15 var(--head); letter-spacing: -0.015em; }
.k-stage-line { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.k-stage-h1 { margin: 0; font: 700 32px/1.1 var(--head); letter-spacing: -0.02em; }
.k-stage-sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.k-chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 4px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-weight: 600; font-size: 13px; }

/* Karten-Fläche, die über die Bühne geschoben ist */
.k-sheet { position: relative; margin-top: -30px; padding: 16px 16px 0; border-radius: 28px 28px 0 0; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.k-sheet.tall { margin-top: -34px; }
.k-stack { padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.k-card { border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.k-pad { padding: 18px; }
.k-row-card { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; transition: box-shadow 0.4s var(--ease); }
.k-row-card.rec { box-shadow: 0 0 0 1.5px var(--brand), 0 8px 24px color-mix(in srgb, var(--brand) 14%, transparent); }
.k-row-card.arrived { box-shadow: 0 0 0 3px var(--brand), 0 10px 24px color-mix(in srgb, var(--brand) 20%, transparent); }
.k-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-row-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.k-row-sub { font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.k-row-sub.brand { color: var(--brand-solid); font-weight: 500; }
.k-init { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--tint); color: var(--brand-solid); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--head); }
.k-init.ok { background: var(--ok-bg); color: var(--ok); }
.k-init.quiet { background: var(--soft); color: var(--ink); }
.k-init.warm { background: var(--warm-bg); color: var(--warm); }
.k-init.big { width: 48px; height: 48px; border-radius: 16px; font-size: 16px; }
.k-init.small { width: 36px; height: 36px; border-radius: 12px; }
.k-wait { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-solid); }
.k-wait::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.k-wait.late { color: var(--warm); }
.k-meta { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.k-meta.won { color: var(--ok); }
.k-call { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--brand-solid); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-solid) 30%, transparent); }
.k-call.quiet { width: 44px; height: 44px; background: var(--soft); color: var(--ink); box-shadow: none; }
.k-thumb { position: relative; width: 52px; height: 52px; flex: none; border-radius: 16px; overflow: hidden; background: var(--brand-solid); }
.k-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.k-thumb-play { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.k-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k-card-title { font-weight: 600; font-size: 16px; }
.k-link { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--brand-solid); }
.k-badge { display: inline-flex; padding: 3px 9px; border-radius: 8px; background: var(--tint); color: var(--brand-solid); font-size: 12px; font-weight: 600; white-space: nowrap; }
.k-badge.ok { background: var(--ok-bg); color: var(--ok); }
.k-badge.dark { background: rgba(255, 255, 255, 0.14); color: #fff; }
.k-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.k-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 6px; font-size: 13px; color: var(--ink-3); }
.k-note-link { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; font-size: 13px; color: var(--ink-3); }
.k-strong { margin: 6px 0 0; font-weight: 600; }

/* Kennzahlen */
.k-week { padding: 16px 18px 6px; }
.k-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
.k-metric { display: flex; flex-direction: column; padding: 12px 12px 12px 0; }
.k-metric:nth-child(odd) { border-right: 1px solid var(--line); }
.k-metric:nth-child(even) { padding-left: 16px; }
.k-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.k-metric-label { font-size: 13px; color: var(--ink-3); }
.k-metric-row { display: flex; align-items: baseline; gap: 8px; }
.k-metric-num { font: 600 26px/1.2 var(--head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.k-delta { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.k-delta.up { color: var(--ok); }
.k-big-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.k-big { font: 600 40px/1.05 var(--head); letter-spacing: -0.03em; }
.k-big.light { display: block; margin-top: 4px; font-size: 50px; letter-spacing: -0.035em; }
.k-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 16px; }
.k-bars span { flex: 1; border-radius: 6px; min-height: 4px; }
.k-bars.thin { gap: 3px; }
.k-bars.tall { height: 120px; gap: 5px; margin-top: 18px; }
.k-bar-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.k-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.k-trio > div { display: flex; flex-direction: column; padding: 0 10px; border-right: 1px solid var(--line); }
.k-trio > div:first-child { padding-left: 0; }
.k-trio > div:last-child { border-right: 0; }
.k-trio-num { font: 600 24px/1.2 var(--head); letter-spacing: -0.02em; }
.k-trio-num.accent { color: var(--brand-soft); }
.k-trio-label { font-size: 13px; color: var(--ink-3); }
.k-trio.dark { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.k-trio.dark > div { border-color: rgba(255, 255, 255, 0.1); }
.k-trio.dark .k-trio-num { font-size: 20px; }
.k-trio.dark .k-trio-label { font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.k-bar-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.k-bar-row { display: flex; flex-direction: column; gap: 6px; }
.k-bar-label { display: flex; justify-content: space-between; font-size: 14px; }
.k-bar-label b { font-weight: 600; }
.k-track { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.k-track > span { display: block; height: 100%; border-radius: 3px; }
.k-vs { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px 10px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.k-vs .k-track { height: 8px; }
.k-stars { display: inline-flex; gap: 2px; }

/* Dunkle Karte */
.k-dark { display: block; border-radius: 28px; background: linear-gradient(165deg, color-mix(in srgb, var(--night) 80%, #4d6b88) 0%, var(--night) 62%); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), 0 14px 30px color-mix(in srgb, var(--night) 30%, transparent); }
.k-dark-label { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.k-dark-label.accent { display: block; font-size: 13px; font-weight: 600; color: var(--brand-soft); }
.k-dark-title { display: block; font: 600 20px/1.25 var(--head); }
.k-dark-text { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.76); }
.k-dark-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.k-cta-card .k-btn { margin-top: 16px; }
.k-partner { padding: 16px 18px; }
.k-partner-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.k-partner-row .k-dark-text { margin: 0; font-size: 13px; }
.k-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.k-steps i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.k-steps i.on { background: var(--brand-light); }
.k-level-name { display: block; margin-top: 6px; font: 700 40px/1.05 var(--head); letter-spacing: -0.025em; }
.k-dark.level-plus { background: linear-gradient(165deg, var(--brand) 0%, var(--brand-solid) 70%); }
.k-dark.level-gold .k-level-name { color: #e8c46a; }

/* Knöpfe */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; font-weight: 600; font-size: 15px; text-align: center; transition: transform 0.15s var(--ease); }
.k-btn:active { transform: scale(0.98); }
.k-btn.primary { background: var(--brand-solid); color: #fff; }
.k-btn.soft { background: var(--soft); color: var(--ink); }
.k-btn.dark { background: var(--ink); color: #fff; }
.k-btn.white { background: #fff; color: var(--ink); }
.k-btn.wa { background: var(--wa); color: #08260f; }
.k-btn.text { background: transparent; color: var(--ink); font-weight: 500; }
.k-btn.full { width: 100%; }
.k-btn.big { min-height: 54px; font-size: 16px; }
.k-btn.primary.big { box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-solid) 25%, transparent); }
.k-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.k-two.wide { grid-template-columns: 1.6fr 1fr; }
.k-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.k-pick { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--soft); font-weight: 600; font-size: 13px; }
.k-action { min-height: 72px; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; }
.k-action.wa { background: var(--wa); color: #08260f; box-shadow: 0 8px 20px color-mix(in srgb, var(--wa) 25%, transparent); }

/* Segmente in Kartenoptik */
.seg.k-seg { gap: 4px; padding: 4px; border-radius: 16px; background: #e6e8eb; }
.seg.k-seg button { min-height: 40px; border-radius: 12px; font-size: 14px; color: var(--ink-3); }
.seg.k-seg button[aria-selected='true'], .seg.k-seg button[aria-checked='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }
.seg.k-seg.small button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.k-count { font-weight: 500; color: var(--ink-3); }
.k-head { padding: 0 4px; }
.k-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.k-h1 { margin: 0; font: 700 26px/1.15 var(--head); letter-spacing: -0.015em; }
.k-sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.k-back-row { display: flex; align-items: center; padding: calc(var(--top) - 4px) 16px 0 10px; }
.k-back { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding-right: 12px; font-weight: 600; }
.k-back-row.on-dark { position: relative; color: #fff; }
.k-sheet.person { margin-top: -28px; }

/* Anfragen */
.k-ask { padding: 18px; }
.k-ask-top { display: flex; align-items: center; gap: 12px; }
.k-lead-name { font: 700 20px/1.2 var(--head); }
.k-bubble { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--soft); font-size: 15px; white-space: pre-wrap; }
.k-lead-when { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.k-lead-state { margin-top: 4px; }
.k-facts { margin: 0; }
.k-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.k-fact:first-child { border-top: 0; padding-top: 2px; }
.k-fact dt { font-size: 14px; color: var(--ink-3); }
.k-fact dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.k-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.k-photos a { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--soft); }
.k-photos img { width: 100%; height: 100%; object-fit: cover; }
.k-contacts { padding: 6px 0; }
.k-contact { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; }
.k-contact + .k-contact { border-top: 1px solid var(--line); }
.k-contact .k-row-sub { font-size: 13px; }
.k-contact-v { font-size: 16px; font-weight: 600; }
.k-ai-idle { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 8px; text-align: center; }
.k-ai-idle p { margin: 0; font-size: 14px; color: var(--ink-3); }
.k-mic { width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--brand-solid); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-solid) 30%, transparent); }
.k-mic.live { animation: k-ring 1.2s ease-out infinite; }
@keyframes k-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
.k-live { margin: 0; font-weight: 600; color: var(--brand-solid); }
.k-input { width: 100%; border: 0; border-radius: 14px; background: var(--soft); padding: 12px 14px; font: 15px/1.45 var(--body); color: var(--ink); resize: vertical; }
.k-input:focus { outline: 2px solid var(--brand); }
.k-reply { margin-top: 10px; background: var(--tint); }
.k-said { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.k-done { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--ok-bg); color: #14532d; font-weight: 600; }
.k-sheet-title { margin: 12px 0 14px; font: 700 24px/1.2 var(--head); letter-spacing: -0.015em; }
.k-won-done { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-bottom: 8px; }
.k-won-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--brand-solid); display: flex; align-items: center; justify-content: center; }
.k-won-plus { margin-top: 8px; font: 600 48px/1 var(--head); letter-spacing: -0.035em; }
.k-won-done .k-btn.dark { margin-top: 16px; }
.k-amount { display: flex; gap: 8px; margin-top: 10px; }
.k-amount .k-input { flex: 1; }
.sheet:has(.k-won-done) .bottom-cta, .sheet:has(.k-amount) { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* Revier */
.k-map { position: relative; height: 262px; margin-top: 12px; border-radius: 20px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 45%), #eef1f4; }
.k-map-l { position: absolute; font-size: 11px; font-weight: 500; color: #6b7280; }
.k-map-l.nw { left: 14px; top: 10px; } .k-map-l.ne { right: 14px; top: 10px; } .k-map-l.sw { left: 14px; bottom: 8px; } .k-map-l.se { right: 14px; bottom: 8px; }
.k-map-grid { position: absolute; inset: 30px 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); }
.k-dot-btn { border: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.k-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 45%, #fff); background: transparent; }
.k-dot.mine { border: 0; background: var(--brand); box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 40%, transparent); }
.k-dot.sel { width: 20px; height: 20px; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(16, 24, 40, 0.25); }
.k-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.k-legend span { display: inline-flex; align-items: center; gap: 6px; }
.k-legend .k-dot { width: 10px; height: 10px; }

/* Anzeige */
.k-ad { overflow: hidden; }
.k-ad-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.k-ad-head img { width: 32px; height: 32px; border-radius: 50%; }
.k-ad-head span { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.k-ad-head small { font-size: 12px; color: var(--ink-3); }
.k-ad-visual { position: relative; height: 320px; padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--night); overflow: hidden; }
.k-ad-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 70%, transparent) 0%, color-mix(in srgb, var(--night) 10%, transparent) 45%, color-mix(in srgb, var(--night) 85%, transparent) 100%); }
.k-ad-title { position: relative; font: 800 32px/1.08 var(--head); letter-spacing: -0.02em; }
.k-ad-sub { position: relative; font-size: 15px; font-weight: 500; }
.k-ad-cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.k-ad-caption { margin: 0; padding: 12px 14px 14px; font-size: 14px; color: #3b4148; }
.k-serp-q { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--soft); font-size: 14px; color: #3b4148; }
.k-serp-tag { display: block; margin-top: 18px; font-size: 12px; }
.k-serp-site { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.k-serp-site img { width: 28px; height: 28px; border-radius: 50%; }
.k-serp-site span { display: flex; flex-direction: column; line-height: 1.25; }
.k-serp-site small { font-size: 12px; color: var(--ink-3); }
.k-serp-title { margin: 10px 0 4px; font-size: 19px; line-height: 1.3; color: #1a4fb5; }
.k-serp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.k-serp-links span { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px #dfe2e6; font-size: 14px; color: #1a4fb5; }

/* KI-Mitarbeiter */
.k-player { display: flex; align-items: center; gap: 14px; }
.k-play { width: 56px; height: 56px; flex: none; border: 0; border-radius: 50%; background: #fff; color: var(--night); display: flex; align-items: center; justify-content: center; }
.k-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 36px; }
.k-wave i { flex: 1; border-radius: 2px; transition: background 0.3s; }
.k-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.k-line { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); opacity: 0.32; transition: opacity 0.3s; }
.k-line.on { opacity: 1; }
.k-line span { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.k-line span.ki { color: var(--brand-soft); }
.k-push-icon { width: 38px; height: 38px; flex: none; align-self: flex-start; border-radius: 10px; }
.k-push-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.k-list { padding: 4px 16px; }
.k-list-row { width: 100%; min-height: 58px; padding: 0; border: 0; border-top: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.k-list > :first-child { border-top: 0; }
.k-check-row { min-height: 52px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.k-check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--tint); color: var(--brand-solid); display: flex; align-items: center; justify-content: center; }
.k-check-row.muted-row { font-weight: 600; }
.k-check-row.muted-row .k-check { background: var(--soft); color: var(--ink-3); }

/* Montags-Story */
.k-story { position: relative; max-width: 480px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--night); color: #fff; }
.k-story-glow { position: absolute; inset: 0; background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--brand) 30%, transparent) 0%, transparent 60%); }
.k-story-segs { position: absolute; left: 12px; right: 12px; top: calc(var(--top) + 2px); z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.k-story-segs span { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.k-story-segs i { display: block; height: 100%; background: #fff; }
.k-story-head { position: absolute; left: 16px; right: 8px; top: calc(var(--top) + 14px); z-index: 3; display: flex; align-items: center; gap: 10px; }
.k-story-head img { width: 32px; height: 32px; border-radius: 50%; }
.k-story-head span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.k-story-head small { font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.k-story-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.k-story-tap { position: absolute; top: calc(var(--top) + 70px); bottom: 0; z-index: 1; border: 0; background: transparent; }
.k-story-tap.prev { left: 0; width: 30%; }
.k-story-tap.next { right: 0; width: 70%; }
.k-s-body { position: absolute; left: 28px; right: 28px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 2; pointer-events: none; animation: k-in 0.4s ease-out both; }
.k-s-body a, .k-s-body button { pointer-events: auto; }
@keyframes k-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.k-s-kicker { margin: 0; font-size: 18px; color: rgba(255, 255, 255, 0.75); }
.k-s-huge { margin: 0; font: 800 160px/0.95 var(--head); letter-spacing: -0.05em; }
.k-s-big { margin: 4px 0 0; font: 800 96px/1 var(--head); letter-spacing: -0.05em; }
.k-s-line { margin: 16px 0 0; font: 600 26px/1.2 var(--head); }
.k-s-title { margin: 28px 0 0; font: 700 34px/1.12 var(--head); letter-spacing: -0.02em; }
.k-s-title.big { margin: 10px 0 0; font-size: 36px; }
.k-s-title.dim { color: rgba(255, 255, 255, 0.45); }
.k-s-body .k-btn { margin-top: 28px; }
.k-s-small { margin: 10px 0 0; font-size: 16px; color: rgba(255, 255, 255, 0.75); }
.k-s-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; }
.k-s-bars span { flex: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.2); }
.k-s-bars span.on { background: var(--brand); }
.k-s-days { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.k-s-days span { flex: 1; text-align: center; }
.k-s-days span.on { color: #fff; font-weight: 600; }
.k-s-video { position: absolute; left: 16px; right: 16px; top: calc(var(--top) + 70px); bottom: calc(40px + env(safe-area-inset-bottom)); z-index: 2; border-radius: 28px; overflow: hidden; animation: k-in 0.4s ease-out both; }
.k-s-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-s-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--night) 92%, transparent) 100%); }
.k-s-play { position: absolute; left: 50%; top: 42%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--night); display: flex; align-items: center; justify-content: center; }
.k-s-video-text { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; }
.k-s-video-text b { font: 700 24px/1.2 var(--head); }
.k-s-video-text small { margin: 4px 0 14px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* Am Computer: dieselbe App mittig als Handy-Spalte */
@media (min-width: 720px) {
  html, body { background: #e4e7ea; }
  #app > .screen, #app > .k-story { box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06), 0 30px 80px rgba(16, 24, 40, 0.12); background: var(--paper); }
}

/* Ruhige Beschriftungen statt Großbuchstaben */
.label { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* Schnelle Aktionen, Bewertungen, Referenzen */
.k-two.tiles { margin-top: 0; }
.k-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.k-tile .k-row-title { line-height: 1.25; }
.k-tile .k-row-sub { margin-top: -6px; }
.k-btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.k-rating { display: flex; align-items: center; gap: 14px; }
.k-qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.k-qr-btn { border: 0; padding: 12px; margin-bottom: 10px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px color-mix(in srgb, var(--brand) 12%, transparent); }
.k-qr { display: block; width: 180px; height: 180px; }
.k-qr-card .k-two { width: 100%; }
.k-qr-full { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; background: #fff; color: var(--ink); text-align: center; }
.k-qr-close { position: absolute; top: calc(var(--top) - 4px); right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.k-qr-logo { width: 56px; height: 56px; border-radius: 50%; }
.k-qr-name { margin: 0; font: 700 22px/1.2 var(--head); }
.k-qr-big { width: min(80vw, 360px); height: auto; aspect-ratio: 1; margin-top: 10px; }
.k-qr-hint { max-width: 300px; margin: 6px 0 0; font-size: 16px; color: var(--ink-3); }
.k-upload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow); }
.k-upload-icon { width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: var(--tint); color: var(--brand-solid); display: flex; align-items: center; justify-content: center; }
.k-ref-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.k-ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.k-ref { position: relative; margin: 0; overflow: hidden; }
.k-ref img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.k-ref figcaption { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.k-ref .k-row-title { font-size: 14px; }
.k-ref .k-row-sub { font-size: 12px; }
.k-ref-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.k-ref-x::after { content: ''; position: absolute; inset: -6px; }
