/* styles.css — Musterabfrage prototype */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #0F172A;
  background: #F8FAFC;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:root {
  --accent: #F78E11;
  --accent-soft: #F78E111A;
  --accent-line: #F78E1133;
  --density-pad: 18px;
  --density-radius: 13px;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E2E8F0;
  --line-2: #F1F5F9;
  --bg: #F8FAFC;
  --card: #FFFFFF;
}

button { font-family: inherit; cursor: pointer; }

.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Chrome ────────────────────────────── */
.chrome {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.chrome-left, .chrome-right { display: flex; align-items: center; gap: 14px; }
.chrome-burger {
  width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
}
.chrome-burger:hover { background: var(--line-2); }
.chrome-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
.chrome-brand {
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; padding: 4px 8px; border-radius: 8px;
}
.chrome-brand:hover { background: var(--line-2); }
.chrome-logo { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.chrome-logo-img { height: 32px; width: auto; display: block; object-fit: contain; }
.chrome-brand-text { text-align: left; line-height: 1.2; }
.chrome-brand-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.chrome-brand-tenant { font-size: 10px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }

.chrome-search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: var(--line-2); border-radius: 8px;
  color: var(--ink-3); font-size: 12px; min-width: 240px;
}
.chrome-search kbd {
  margin-left: auto;
  font-family: inherit; font-size: 10px; color: var(--ink-3);
  border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px;
  background: white;
}
.chrome-icon {
  position: relative; width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: transparent; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.chrome-icon:hover { background: var(--line-2); }
.chrome-badge {
  position: absolute; top: 4px; right: 4px;
  background: #EF4444; color: white; font-size: 10px; font-weight: 600;
  border-radius: 999px; padding: 1px 5px; line-height: 1.3;
}

/* ── Bottom nav ────────────────────────── */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 72px; background: white; border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 10px; padding: 9px 0; z-index: 40;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: transparent; color: var(--ink-3); font-size: 12px;
  padding: 5px 14px; border-radius: 11px; min-width: 88px;
}
.bn-item.active { color: var(--accent); }
.bn-icon-wrap { position: relative; }
.bn-badge {
  position: absolute; top: -4px; right: -10px;
  background: #EF4444; color: white; font-size: 10px; font-weight: 600;
  border-radius: 999px; padding: 1px 5px; line-height: 1.3; min-width: 16px; text-align: center;
}
/* Aktive Bottom-Nav: nur farbliche Hervorhebung, kein Unterstrich. */

/* ── Main / Dashboard ──────────────────── */
.main { padding: 24px max(16px, calc((100vw - 1600px) / 2)) 104px; } /* unten: Platz für die fixe Bottom-Nav */
.main:has(.vw-skyline-wrap) { flex: 1 0 auto; display: flex; flex-direction: column; }
.vw-skyline-wrap {
  margin-top: auto;
  margin-left: calc(-1 * max(16px, (100vw - 1600px) / 2));
  margin-right: calc(-1 * max(16px, (100vw - 1600px) / 2));
  margin-bottom: -32px; /* Sockel sitzt direkt auf der Bottom-Nav (104px Padding − 72px Nav) */
  position: relative;
  pointer-events: none;
}
.vw-skyline-svg { width: 100%; height: auto; display: block; }
.vw-skyline-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 55%;
  background: linear-gradient(180deg, #F8FAFC 0%, rgba(248,250,252,0.55) 45%, rgba(248,250,252,0) 100%);
  pointer-events: none;
}
.dash-crumbs { color: var(--ink-3); font-size: 12px; }
.dash-crumbs span { margin: 0 6px; }
.dash-head { margin: 8px 0 20px; }
.dash-head h1 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.dash-head p { color: var(--ink-2); margin: 4px 0 0; font-size: 13px; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.stat-icon-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 3px; }
.stat-trend { font-size: 11px; }
.stat-trend.up { color: #059669; }
.stat-trend.warn { color: #DC2626; }
.stat-label { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

.dash-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.action {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: white;
  font-size: 13px; font-weight: 500;
}
.action:hover { background: var(--line-2); }
.action-primary { background: var(--accent); color: white; border-color: var(--accent); }
.action-primary:hover { filter: brightness(1.05); background: var(--accent); }
.action-ai {
  background: linear-gradient(135deg, var(--accent-soft), #8B5CF61A);
  border-color: var(--accent-line);
  color: var(--ink);
}
.ai-spark { color: var(--accent); display: inline-flex; }
.ai-pill {
  margin-left: 6px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}

.dash-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.card h3 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.card-sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.badge-up { background: #ECFDF5; color: #059669; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }

.chart { display: flex; align-items: flex-end; gap: 12px; height: 220px; padding: 16px 0 30px; position: relative; }
.chart-col { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; position: relative; }
.chart-bar { flex: 1; border-radius: 5px 5px 0 0; min-height: 4px; }
.chart-bar-soft { background: #BFDBFE; }
.chart-bar-main { background: var(--accent); }
.chart-x { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-3); }

.portfolio-rings { display: flex; gap: 12px; justify-content: center; padding: 12px 0 4px; }
.donut { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.donut-label { font-size: 11px; color: var(--ink-2); }
.portfolio-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.leg-col { display: flex; flex-direction: column; gap: 4px; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.leg-dot { width: 8px; height: 8px; border-radius: 999px; }
.leg-label { color: var(--ink-2); flex: 1; }
.leg-val { font-weight: 600; }

/* ── Flow ──────────────────────────────── */
.flow { max-width: 980px; margin: 0 auto; }
.flow-stepper {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0 28px; gap: 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: transparent; padding: 4px 8px;
  color: var(--ink-3); min-width: 100px;
}
.step:disabled { cursor: not-allowed; }
.step-num {
  width: 32px; height: 32px; border-radius: 999px;
  background: white; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.step.active .step-num { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.done .step-num { background: var(--accent); color: white; border-color: var(--accent); }
.step.active .step-label { color: var(--accent); font-weight: 600; }
.step.done .step-label { color: var(--ink-2); }
.step-label { font-size: 12px; }
.step-line { flex: 1; height: 1.5px; background: var(--line); margin: 0 -10px; max-width: 80px; margin-bottom: 22px; }
.step-line.done { background: var(--accent); }

.flow-body { position: relative; }
.flow-stage { animation: flowFade .32s cubic-bezier(.22,.61,.36,1); }
@keyframes flowFade {
  from { opacity: 0; transform: translateY(6px); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-stage { animation: none; }
}

/* ── Subsumption shared intro ──────────── */
.subsumption-stage { max-width: 760px; margin: 0 auto; }
.sub-intro { text-align: center; margin-bottom: 28px; }
.sub-intro-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px;
}
.sub-intro-spark { font-size: 13px; }
.sub-intro h1 { font-size: 30px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.sub-intro p { color: var(--ink-2); max-width: 560px; margin: 0 auto; }

/* ── Wizard variant ────────────────────── */
.wiz-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.wiz-progress { margin-bottom: 24px; }
.wiz-progress-track { height: 4px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.wiz-progress-fill { height: 100%; background: var(--accent); transition: width .3s ease-out; }
.wiz-progress-meta { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.wiz-step { animation: stepIn .28s cubic-bezier(.2,.7,.3,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px);} to { opacity:1; transform: none;} }
.wiz-q-group { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.wiz-q { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; line-height: 1.3; text-wrap: pretty; }
.wiz-help { color: var(--ink-2); margin: 0 0 14px; }
.wiz-example { background: #FFFBEB; border: 1px solid #FCD34D55; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #92400E; margin-bottom: 14px; }
.wiz-options { margin-top: 22px; }
.wiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.wiz-options-yesno {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.opt-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  padding: 32px 28px 32px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: all .16s ease;
  min-height: 240px;
  position: relative;
}
.opt-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  transform: translateY(-2px);
}
.opt-card-title { font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.opt-card-sub {
  font-size: 13px; color: var(--ink-2); line-height: 1.55; max-width: 32ch;
  text-wrap: pretty;
}
.opt-card-note {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 30ch;
  text-wrap: pretty;
  font-style: italic;
}
.opt-card-icon {
  margin-top: 28px;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: #F1F5F9;
  color: #475569;
  transition: all .16s ease;
}
.opt-card:hover .opt-card-icon { background: var(--accent-soft); color: var(--accent); }

.opt-card-yes:hover { border-color: #10B981; }
.opt-card-yes:hover .opt-card-icon { background: #ECFDF5; color: #10B981; }
.opt-card-no:hover { border-color: #94A3B8; }
.opt-card-no:hover .opt-card-icon { background: var(--line-2); color: #475569; }
.opt-card-unsure:hover { border-color: #F59E0B; }
.opt-card-unsure:hover .opt-card-icon { background: #FFFBEB; color: #B45309; }

@media (max-width: 760px) {
  .wiz-options-grid { grid-template-columns: 1fr; }
  .wiz-options-yesno { grid-template-columns: 1fr; }
}

/* ── Multi-select rows (Wizard) ──────────────────────────────────── */
.wiz-options-multi {
  display: flex; flex-direction: column; gap: 10px;
}
.multi-row {
  display: flex; align-items: flex-start; gap: 14px;
  text-align: left;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .14s ease;
  font-family: inherit;
}
.multi-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.multi-row-on { border-color: var(--accent); background: var(--accent-soft); }
.multi-row-none { margin-top: 6px; border-style: dashed; }
.multi-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-strong, #94A3B8);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: #fff;
  margin-top: 2px;
  transition: all .14s ease;
}
.multi-check-on { background: var(--accent); border-color: var(--accent); }
.multi-text { flex: 1; min-width: 0; }
.multi-label { font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.3; }
.multi-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; text-wrap: pretty; }
.multi-confirm { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }

/* Single-page multi */
.sp-multi { display: flex; flex-wrap: wrap; gap: 6px; max-width: 380px; justify-content: flex-end; }
.sp-multi-pill {
  font-family: inherit; font-size: 12px; padding: 7px 11px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); cursor: pointer; transition: all .14s;
}
.sp-multi-pill:hover { border-color: var(--accent); color: var(--accent); }
.sp-multi-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sp-multi-none { border-style: dashed; }

/* Chat multi */
.chat-opt-multi.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chat-opt-confirm { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.chat-opt-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-opt-none { border-style: dashed; }

.wiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); }

.wiz-done { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 56px 28px; text-align: center; }
.wiz-done-icon { color: var(--accent); margin-bottom: 12px; }
.wiz-done h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.wiz-done p { color: var(--ink-2); margin: 0 0 20px; }
.wiz-done-actions { display: inline-flex; gap: 12px; align-items: center; justify-content: center; margin-top: 32px; }

.legal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--line-2); border: 0; color: var(--ink-3);
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
}
.legal-chip-dot { width: 5px; height: 5px; background: var(--ink-3); border-radius: 999px; }

/* ── Buttons ───────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  background: var(--accent); color: white; border: 0;
  font-size: 13px; font-weight: 600;
  transition: all .12s ease;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-line); }
.btn-primary:disabled { background: var(--line); color: var(--ink-3); transform: none; box-shadow: none; cursor: not-allowed; filter: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  background: transparent; border: 0; color: var(--ink-2);
  font-size: 13px; font-weight: 500;
}
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--accent-soft); border: 1px dashed var(--accent-line); color: var(--accent);
  font-weight: 500;
}
.btn-add:hover { background: var(--accent-soft); border-style: solid; }
.btn-helper {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  font-size: 12px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 3px var(--accent-soft);
}
.btn-helper:hover { background: var(--accent); color: #fff; border-color: var(--accent); filter: brightness(.95); }
.btn-helper:disabled { opacity: 0.5; }

.spinner { width: 12px; height: 12px; border: 1.5px solid var(--line); border-top-color: var(--accent); border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Single-page variant ──────────────── */
.sp-wrap { display: grid; grid-template-columns: 60px 1fr; gap: 24px; }
.sp-rail { position: sticky; top: 80px; align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-rail-pct { font-weight: 700; font-size: 16px; color: var(--accent); }
.sp-rail-track { width: 4px; height: 320px; background: var(--line-2); border-radius: 999px; position: relative; overflow: hidden; }
.sp-rail-fill { position: absolute; top: 0; left: 0; right: 0; background: var(--accent); transition: height .3s; }
.sp-rail-meta { font-size: 11px; color: var(--ink-3); }

.sp-content { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.sp-group { padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.sp-group:last-of-type { border-bottom: 0; }
.sp-group-title { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; margin: 0 0 14px; }
.sp-questions { display: flex; flex-direction: column; gap: 18px; }
.sp-q { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: 10px; transition: background .15s; }
.sp-q.sp-q-done { background: var(--line-2); }
.sp-q-plain { font-weight: 500; line-height: 1.4; }
.sp-q-help { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sp-yesno { display: flex; gap: 6px; }
.sp-pill {
  height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: white;
  font-size: 12px; font-weight: 500;
}
.sp-pill:hover { border-color: var(--accent); }
.sp-pill.active { background: var(--accent); color: white; border-color: var(--accent); }
.sp-choices { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; }
.sp-choice {
  text-align: left; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: white;
}
.sp-choice:hover { border-color: var(--accent); }
.sp-choice.active { background: var(--accent-soft); border-color: var(--accent); }
.sp-choice-label { font-size: 12px; font-weight: 500; }
.sp-choice-sub { font-size: 10px; color: var(--ink-3); }
.sp-cta { padding: 24px; text-align: center; border-top: 1px solid var(--line-2); }

/* ── Chat variant ──────────────────────── */
.chat-wrap { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 4px; max-height: 620px; display: flex; flex-direction: column; }
.chat-stream { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 460px; }
.chat-msg { display: flex; gap: 10px; max-width: 88%; animation: msgIn .25s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.chat-bubble {
  background: var(--line-2); padding: 10px 14px; border-radius: 14px;
  border-top-left-radius: 4px; line-height: 1.4;
}
.chat-bubble-user { background: var(--accent); color: white; border-radius: 14px; border-top-right-radius: 4px; }
.chat-q-text { font-weight: 500; }
.chat-q-help { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-opt { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: white; font-size: 12px; font-weight: 500; }
.chat-opt:hover { border-color: var(--accent); color: var(--accent); }
.chat-system { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 80%; align-self: center; text-align: center; margin: 6px 0; }
.chat-system-bubble { background: var(--accent-soft); color: var(--ink); border-radius: 12px; font-size: 13px; }
.chat-cta { margin-top: 4px; }
.chat-typing { display: flex; gap: 4px; padding: 14px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-2px);} }

/* ── Forms ─────────────────────────────── */
.form-step {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; max-width: 760px; margin: 0 auto;
}
.form-header { margin-bottom: 24px; }
.form-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.form-header h2 { font-size: 24px; letter-spacing: -0.01em; margin: 8px 0 6px; }
.form-header p { color: var(--ink-2); margin: 0; }

.form-body { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.row-break { flex-basis: 100%; height: 0; margin: 0; }
.field { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.field.full { flex-basis: 100%; }
.field label { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 13px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: white; color: var(--ink);
  outline: none; transition: all .12s;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-hint { font-size: 11px; color: var(--ink-3); }
.field-warn {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; line-height: 1.4; color: #9A5B12; margin-top: 5px;
}
.field-warn::before {
  content: "!"; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 10px; font-weight: 800;
}

.divider { padding-top: 8px; }

/* Ausstattung-Chips (Objektbeschreibung strukturieren) */
.objekt-aus { margin-top: 10px; }
.objekt-aus-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.objekt-aus-label { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.objekt-aus-apply {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 4px 11px; cursor: pointer; transition: all .12s;
}
.objekt-aus-apply:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.objekt-aus-apply:disabled { opacity: .45; cursor: not-allowed; }
.objekt-aus-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.objekt-chip {
  font-family: inherit; font-size: 12px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: all .12s;
}
.objekt-chip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.objekt-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
/* Zähler-Chip: gleicher Raum mehrfach (z. B. 2× Kellerabteil) */
.objekt-chip-counter { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; cursor: default; }
.objekt-chip-txt { padding: 0 4px; font-variant-numeric: tabular-nums; }
.objekt-chip-step {
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; background: rgba(255, 255, 255, 0.22); color: #fff;
  cursor: pointer; transition: background .12s; padding: 0;
}
.objekt-chip-step:hover { background: rgba(255, 255, 255, 0.42); }
.objekt-aus-hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.divider-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.divider-hint { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.divider-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* ── Konditionen-Schritt (Musterabfrage) ──
   Summenzeile & Kautions-Schnellwahl nutzen die Generator-Klassen
   (.gen-sum-amount, .gen-deposit-quick) für identische Optik. */
.kond-befristet-pill {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap;
}

.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--line-2); border-radius: 10px; }
.toggle-row-label strong { display: block; font-size: 13px; font-weight: 600; }
.toggle-row-label span { font-size: 11px; color: var(--ink-3); }
.switch { width: 36px; height: 22px; border: 0; border-radius: 999px; background: var(--ink-3); position: relative; padding: 0; }
.switch.on { background: var(--accent); }
.switch i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: white; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on i { transform: translateX(14px); }

.tenant-card { background: var(--line-2); border-radius: 12px; padding: 16px; }
.tenant-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tenant-card-num { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tenant-card-remove { width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.tenant-card-remove:hover { background: white; color: #DC2626; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.form-foot-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.form-foot-hint { font-size: 12px; color: var(--ink-3); max-width: 30ch; text-align: right; line-height: 1.4; }

/* ── Picker ────────────────────────────── */
.picker { position: relative; }
.picker-input {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px;
  background: white; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-3);
}
.picker-input svg { color: var(--ink-3); flex-shrink: 0; }
.picker-input input { flex: 1; height: 100%; border: 0; background: transparent; outline: none; font: inherit; color: var(--ink); }
.picker-tag { background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.picker-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: white; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  max-height: 280px; overflow-y: auto;
}
.picker-item { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: transparent; border-bottom: 1px solid var(--line-2); }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--accent-soft); }
.picker-item-name { font-weight: 500; font-size: 13px; }
.picker-item-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
/* „Keine Auswahl“-Eintrag ganz oben in Auswahl-Dropdowns (Feld leeren) */
.picker-item-clear { border-bottom: 1px solid var(--line-2); }
.picker-item-clear .picker-item-name { color: var(--ink-3); font-style: italic; }
.picker-item-clear:hover .picker-item-name { color: inherit; }
.picker-empty { padding: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ── Result screen ─────────────────────── */
.result-screen { max-width: 1080px; margin: 0 auto; }
.result-hero {
  border: 1px solid; border-radius: 18px; padding: 28px;
  margin-bottom: 16px;
}
.result-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.result-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.result-title { display: flex; align-items: center; gap: 10px; font-size: 32px; letter-spacing: -0.02em; margin: 8px 0 8px; line-height: 1.1; }
.result-dot { width: 12px; height: 12px; border-radius: 999px; }
.result-sub { color: var(--ink-2); margin: 0 0 14px; max-width: 480px; }
.result-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.result-tag { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 500; background: white; }

.muster-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.muster-card-glyph { display: flex; justify-content: center; margin-bottom: 8px; }
.muster-card-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.muster-card-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; margin-bottom: 14px; }
.muster-card-cta { width: 100%; justify-content: center; }

.result-tabs { display: flex; gap: 4px; padding: 0 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.result-tab { background: transparent; border: 0; padding: 10px 14px; font-weight: 500; color: var(--ink-3); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.result-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.result-body { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

/* Empfehlung */
.emp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.emp-h { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.emp-h-mt { margin-top: 24px; }
.reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reason { display: flex; gap: 12px; align-items: flex-start; }
.reason-num { width: 22px; height: 22px; border-radius: 999px; color: white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.reason-text { color: var(--ink); font-size: 13px; line-height: 1.5; padding-top: 2px; }
.answers-list { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--line-2); border-radius: 10px; }
.answers-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 12px; }
.answers-q { color: var(--ink-2); }
.answers-a { font-weight: 600; }
.consq { display: flex; flex-direction: column; gap: 8px; }
.consq-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.consq-item svg { flex-shrink: 0; margin-top: 3px; }
.emp-cta-card { margin-top: 20px; padding: 16px; background: var(--line-2); border-radius: 12px; }
.emp-cta-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.emp-cta-body { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }

/* Vergleich */
.vgl-intro { color: var(--ink-2); margin-top: 0; max-width: 720px; }
.vgl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.vgl-card { position: relative; padding: 18px; border: 1.5px solid var(--line); border-radius: 14px; background: white; }
.vgl-card.active { box-shadow: 0 6px 20px rgba(15,23,42,.05); }
.vgl-badge { position: absolute; top: -10px; right: 16px; color: white; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.vgl-card-dot { width: 10px; height: 10px; border-radius: 999px; margin-bottom: 10px; }
.vgl-card-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.vgl-card-short { font-size: 12px; color: var(--ink-3); margin-top: 2px; margin-bottom: 10px; }
.vgl-card-desc { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; }
.vgl-card-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.vgl-card-list li { font-size: 12px; color: var(--ink-2); padding-left: 14px; position: relative; }
.vgl-card-list li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; }
.vgl-card-btn { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.vgl-card-btn:hover:not(:disabled) { background: var(--line-2); }
.vgl-card-btn:disabled { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); cursor: default; }

/* Vorschau */
.prv-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--line-2); border-radius: 10px; margin-bottom: 14px; }
.prv-toolbar-left, .prv-toolbar-right { display: flex; gap: 10px; align-items: center; }
.prv-pages { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.prv-zoom { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); padding: 0 10px; border-left: 1px solid var(--line); }
.prv-zoom button { width: 22px; height: 22px; border: 0; background: white; border-radius: 6px; }

.prv-page { position: relative; max-width: 700px; margin: 0 auto; padding: 56px 64px; background: white; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 40px rgba(15,23,42,.06); font-family: 'Source Serif Pro', Georgia, serif; line-height: 1.6; overflow: hidden; }
.prv-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 60px; font-weight: 800; letter-spacing: 0.05em; pointer-events: none; }
.prv-head { text-align: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.prv-head-title { font-size: 24px; font-weight: 700; letter-spacing: 0.1em; }
.prv-head-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 6px; font-family: 'Inter', sans-serif; }
.prv-block { margin-bottom: 18px; }
.prv-block-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.prv-block-text { margin: 0; font-size: 13px; }
.prv-block-faded { opacity: 0.45; }
.prv-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, white); pointer-events: none; }

/* Toast */
.toast { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 32px rgba(15,23,42,.2); z-index: 1000; animation: toastIn .25s ease-out; }
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0;} to { transform: translateX(-50%); opacity: 1;} }

/* ── Interim verdict (wizard zwischenstand) ─ */
.verdict {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft, #F8FAFC);
  margin: 0 0 22px;
}
.verdict-voll { background: #ECFDF5; border-color: #BBF7D0; color: #064E3B; }
.verdict-teil { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.verdict-icon { flex-shrink: 0; padding-top: 2px; }
.verdict-voll .verdict-icon { color: #0E9F6E; }
.verdict-teil .verdict-icon { color: #B45309; }
.verdict-body { flex: 1; min-width: 0; }
.verdict-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }
.verdict-headline { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.verdict-text { font-size: 13px; line-height: 1.5; opacity: 0.85; text-wrap: pretty; }

/* ── Welcome Step (minimalist) ─────────── */
.welcome-min {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-min-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.welcome-min-bg svg { width: 100%; height: 100%; display: block; }
.welcome-min-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.35) 100%);
}
.welcome-min-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: 72px 40px;
  max-width: 640px;
  display: flex; flex-direction: column; align-items: center;
}
.welcome-min-logo {
  width: 180px; height: auto; object-fit: contain;
  margin-bottom: 36px;
}
.welcome-min-divider {
  width: 48px; height: 1px;
  background: var(--ink-3);
  opacity: 0.4;
  margin-bottom: 24px;
}
.welcome-min-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.welcome-min-title {
  margin: 0 0 18px;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 38px; font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.welcome-min-lede {
  margin: 0 0 36px;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.welcome-min-flow {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 40px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.welcome-min-arrow { color: var(--ink-3); font-size: 12px; }
.welcome-min-cta {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  transition: all .15s ease;
}
.welcome-min-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}
.welcome-min-back {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-3);
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 6px;
  transition: color .15s ease;
}
.welcome-min-back:hover { color: var(--ink); }
.welcome-min-back svg { transition: transform .15s ease; }
.welcome-min-back:hover svg { transform: translateX(-2px); }

/* ── Kataster Drawer ───────────────────────────────────────────── */
.kat-mask {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2px);
  z-index: 50;
  animation: katFadeIn .2s ease;
}
@keyframes katFadeIn { from { opacity: 0; } to { opacity: 1; } }

.kat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 580px; max-width: 96vw;
  background: white;
  z-index: 51;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px -8px rgba(15,23,42,.18);
  animation: katSlideIn .28s cubic-bezier(.22,.61,.36,1);
}
@keyframes katSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.kat-drawer-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--line-2);
}
.kat-drawer-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.kat-drawer-row h3 {
  font-family: var(--font-serif, 'Source Serif Pro', serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.01em;
}
.kat-drawer-row h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.kat-demo-badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 8px;
}
.kat-src {
  margin-left: auto;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-3);
  background: white;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
}
.kat-close {
  background: transparent; border: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: background .15s;
}
.kat-close:hover { background: white; color: var(--ink); }

.kat-search {
  position: relative;
}
.kat-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--ink-3);
  pointer-events: none;
}
.kat-search input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px 38px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border .15s, box-shadow .15s;
}
.kat-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.kat-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.kat-clear:hover { background: var(--line-2); }
.kat-spinner {
  position: absolute;
  right: 14px; top: 50%;
  margin-top: -7px;
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: katSpin .8s linear infinite;
}
@keyframes katSpin { to { transform: rotate(360deg); } }

.kat-banner {
  margin: 12px 24px 0;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
  background: #FEF3C7;
  color: #78350F;
  border: 1px solid #FDE68A;
}

/* Live-Badge (echte BEV/tiris-Abfrage statt Demo) */
.kat-live-badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #1F7A4D; background: #E7F4EC;
  border: 1px solid #BFE3CD; border-radius: 999px; padding: 2px 8px;
}
.kat-live-badge::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #259D63; margin-right: 5px; vertical-align: 0;
}

/* Hinweis-Banner nach Auflösungsversuch */
.kat-notice {
  margin: 12px 24px 0;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: flex; flex-direction: column; gap: 3px;
}
.kat-notice strong { font-size: 13px; }
.kat-notice-info { background: #F1F5F9; color: #334155; border: 1px solid #E2E8F0; }
.kat-notice-warn { background: #FEF3C7; color: #78350F; border: 1px solid #FDE68A; }
.kat-notice-btn {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: white; background: var(--accent);
  border: 0; border-radius: 6px; padding: 6px 11px;
  cursor: pointer;
}
.kat-notice-btn:hover { filter: brightness(0.95); }

/* Auflöse-Status während der Punktabfrage */
.kat-resolving {
  margin: 12px 24px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--ink-2, #475569);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 11px;
}
.kat-spinner-lg {
  position: static; margin: 0;
  width: 17px; height: 17px;
  border-width: 2px;
}

.kat-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
}

.kat-group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 0 10px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 8px;
}
.kat-group-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-2);
}
.kat-group-count {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.kat-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 14px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
  font: inherit;
}
.kat-result:hover {
  background: var(--line-2);
  border-color: var(--line);
}
.kat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.kat-badge-gst { background: var(--accent-soft); color: var(--accent); }
.kat-badge-adr { background: #FEF3C7; color: #92400E; }
.kat-badge-kg  { background: #EDE9FE; color: #5B21B6; }
.kat-badge-ez  { background: #DBEAFE; color: #1E40AF; }

.kat-main-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.kat-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.kat-arrow {
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.kat-result:hover .kat-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.kat-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.kat-empty h4 {
  font-family: var(--font-serif, 'Source Serif Pro', serif);
  font-weight: 600;
  font-size: 16px;
  margin: 12px 0 4px;
  color: var(--ink-2);
}
.kat-empty p { margin: 0; font-size: 13px; }

a.kat-src {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
a.kat-src:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.kat-manual-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.kat-manual-btn:hover {
  background: var(--accent-strong, #047857);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.kat-manual-btn:active { transform: translateY(1px); }

/* Header-Aktionen: BEV + tiris nebeneinander, rechtsbündig */
.kat-drawer-actions { margin-left: auto; display: flex; gap: 8px; }
.kat-drawer-actions .kat-manual-btn { margin-left: 0; }

/* tiris-Variante (blau) zur Abgrenzung von der grünen BEV-Schaltfläche */
.kat-manual-btn-tiris { background: #2A6FDB; border-color: #2A6FDB; }
.kat-manual-btn-tiris:hover { background: #2059b8; box-shadow: 0 2px 8px rgba(42, 111, 219, 0.28); }

.kat-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.kat-notice-actions .kat-notice-btn { margin-top: 0; }
.kat-notice-btn-tiris { background: #2A6FDB; }

.kat-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0f172a;
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  animation: kat-toast-in .22s ease-out;
  z-index: 10;
  max-width: 90%;
}
.kat-toast kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@keyframes kat-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.kat-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 5px;
  vertical-align: middle;
  animation: katFadeIn .25s ease;
}



/* ─────────────────────────────────────────────────────────────
   Result / Schritt 6 — Zusammenfassung & Absenden
   ───────────────────────────────────────────────────────────── */

.rsum {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsum-head { padding: 0 4px; }
.rsum-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rsum-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  line-height: 1.15;
  color: var(--ink);
}
.rsum-sub {
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
  line-height: 1.55;
  font-size: 14px;
}

/* Muster-Banner */
.rsum-muster {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 28px;
  min-height: 180px;
  margin-bottom: 32px;
  overflow: hidden;
  isolation: isolate;
}
.rsum-muster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.08'><path d='M40 20 H140 L170 50 V210 a10 10 0 0 1 -10 10 H40 a10 10 0 0 1 -10 -10 V30 a10 10 0 0 1 10 -10 z'/><path d='M140 20 V50 H170'/><line x1='50' y1='80' x2='150' y2='80'/><line x1='50' y1='100' x2='150' y2='100'/><line x1='50' y1='120' x2='150' y2='120'/><line x1='50' y1='140' x2='130' y2='140'/><line x1='50' y1='160' x2='150' y2='160'/><line x1='50' y1='180' x2='110' y2='180'/></svg>");
  background-repeat: no-repeat;
  background-position: right -20px center;
  background-size: auto 180%;
  pointer-events: none;
  z-index: -1;
}
.rsum-muster-left { position: relative; z-index: 1; }
.rsum-muster-right { position: relative; z-index: 1; }
.rsum-muster-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.rsum-muster-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.rsum-muster-detail {
  font-size: 13px;
  color: var(--ink-3);
  margin: -6px 0 12px;
}
.rsum-muster-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rsum-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.rsum-chip-ghost {
  background: var(--line-2);
  color: var(--ink-2);
  border-color: var(--line);
}
.rsum-pill-row {
  margin-bottom: 10px;
}

/* Summary cards */
.rsum-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.rsum-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafaf9 0%, white 100%);
}
.rsum-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.rsum-card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rsum-card-empty .rsum-card-body { padding: 22px 20px; }
.rsum-empty {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

.rsum-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s, border-color .12s;
}
.rsum-edit-link:hover {
  background: var(--accent-soft, rgba(16,185,129,.08));
  color: var(--accent);
  border-color: var(--accent);
}

/* Key/Value rows */
.rsum-kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
  line-height: 1.5;
}
.rsum-kv:last-child { border-bottom: none; }
.rsum-kv-k {
  color: var(--ink-3);
  font-weight: 500;
}
.rsum-kv-v {
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}

/* Mehrere Mieter:innen — Trenner */
.rsum-tenant {
  padding-top: 4px;
}
.rsum-tenant + .rsum-tenant {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rsum-tenant-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Antworten Musterabfrage */
.rsum-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rsum-answer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.rsum-answer:last-child { border-bottom: none; }
.rsum-answer-q {
  color: var(--ink-2);
  line-height: 1.45;
}
.rsum-answer-a {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Submit-Bar */
.rsum-submit-bar {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  background: linear-gradient(180deg, var(--accent-soft, #ECFDF5) 0%, #ffffff 100%);
  border: 1.5px solid var(--accent, #059669);
  border-radius: 18px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.12);
}
.rsum-submit-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: 220px;
  height: 140px;
  background-image: url("assets/dioezese-innsbruck-logo.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.rsum-submit-info,
.rsum-submit-btn {
  position: relative;
  z-index: 1;
}
.rsum-submit-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 540px;
}
.rsum-submit-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent, #059669);
  margin: 0;
  letter-spacing: -0.01em;
}
.rsum-submit-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.rsum-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent, #059669);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 34px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(247, 142, 17, 0.30);
  transition: background .15s, transform .1s, box-shadow .15s, filter .15s;
  white-space: nowrap;
}
.rsum-submit-btn:hover:not(:disabled) {
  background: var(--accent, #F78E11);
  filter: brightness(0.94);
  box-shadow: 0 6px 18px rgba(247, 142, 17, 0.38);
}
.rsum-submit-btn:active:not(:disabled) { transform: translateY(1px); }
.rsum-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.rsum-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: rsum-spin .7s linear infinite;
}
@keyframes rsum-spin {
  to { transform: rotate(360deg); }
}

/* Success state */
.rsum-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}
.rsum-success-card {
  max-width: 520px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}
.rsum-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #059669), var(--accent-strong, #047857));
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
  animation: rsum-pop .4s cubic-bezier(.22,1,.36,1);
}
@keyframes rsum-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.rsum-success-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.rsum-success-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.rsum-success-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--line-2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: left;
}
.rsum-success-meta > div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.rsum-success-meta span {
  color: var(--ink-3);
}
.rsum-success-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 720px) {
  .rsum-muster { grid-template-columns: 1fr; }
  .rsum-kv { grid-template-columns: 1fr; gap: 2px; }
  .rsum-kv-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
  .rsum-answer { grid-template-columns: 1fr; }
  .rsum-answer-a { text-align: left; white-space: normal; max-width: none; }
  .rsum-submit-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 22px;
  }
  .rsum-submit-bar::after {
    top: 14px;
    right: 14px;
    transform: none;
    width: 64px;
    height: 40px;
    opacity: 0.14;
  }
  .rsum-submit-heading { font-size: 20px; }
  .rsum-submit-btn { justify-content: center; }
}


/* Muster-Preview im wiz-done Screen */
.wiz-done-muster {
  margin: 24px auto 8px;
  max-width: 480px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.wiz-done-muster-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.wiz-done-muster-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}
.wiz-done-muster-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wiz-done-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.wiz-done-chip-ghost {
  background: var(--line-2);
  color: var(--ink-2);
  border-color: var(--line);
}

/* ── Mobile fixes (≤ 720px) ───────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Main padding: tighter */
  .main { padding: 16px 14px; }

  /* Chrome / Header */
  .chrome { padding: 8px 12px; gap: 8px; }
  .chrome-left, .chrome-right { gap: 8px; min-width: 0; }
  .chrome-brand { padding: 4px 4px; gap: 8px; min-width: 0; flex: 1; }
  .chrome-logo-img { height: 26px; flex-shrink: 0; }
  .chrome-brand-text { min-width: 0; flex: 1; overflow: hidden; }
  .chrome-brand-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chrome-brand-tenant {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chrome-search { display: none; }
  .chrome-icon[aria-label="Logout"] { display: none; }
  .chrome-icon { width: 30px; height: 30px; }

  /* Stepper — only show active label, smaller bullets, tighter lines */
  .flow-stepper {
    padding: 8px 0 20px;
    overflow-x: visible;
    justify-content: space-between;
  }
  .step {
    min-width: 0;
    padding: 4px 2px;
    flex-shrink: 0;
  }
  .step-num { width: 26px; height: 26px; font-size: 12px; }
  .step-label {
    font-size: 10px;
    max-width: 64px;
    text-align: center;
    line-height: 1.15;
    /* hide non-active labels on tightest screens */
    display: none;
  }
  .step.active .step-label {
    display: block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .step-line {
    margin-bottom: 0;
    margin-left: 4px;
    margin-right: 4px;
    max-width: none;
    flex: 1;
    min-width: 12px;
  }

  /* Vermieter / Pfarre picker — pill must not overflow */
  .picker-input { padding: 0 10px; gap: 6px; }
  .picker-tag {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }

  /* Mietobjekt — Grundbuchdaten divider stacks on mobile */
  .divider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .divider-row .btn-helper {
    align-self: flex-start;
    height: 34px;
  }

  /* Welcome flow pill — allow tight wrapping */
  .welcome-min-flow {
    gap: 8px;
    padding: 14px 16px;
    font-size: 12px;
  }
  .welcome-min-flow > span:not(.welcome-min-arrow) {
    flex-basis: 100%;
    text-align: center;
  }
  .welcome-min-arrow { display: none; }

  /* Result screen — Muster banner + watermark */
  .rsum-muster {
    padding: 24px 18px;
    min-height: 140px;
    margin-bottom: 24px;
  }
  .rsum-muster::before {
    background-position: right -40px center;
    background-size: auto 140%;
    opacity: 0.6;
  }
  .rsum-muster-name { font-size: 20px; }
  .rsum-muster-eyebrow { font-size: 10px; }

  /* Form headers / titles — tighten */
  .form-eyebrow { font-size: 10px; }
}

/* ── Extra-small (≤ 380px) ────────────────────────────────────────────── */
@media (max-width: 380px) {
  .chrome-brand-tenant { display: none; }
  .step-num { width: 24px; height: 24px; font-size: 11px; }
  .step.active .step-label { max-width: 64px; font-size: 10px; }
}

/* ── Mitarbeiter-Modus (Secret-Link Musterabfrage) ───────────── */
.emp { min-height: 100vh; background: var(--bg, #F4F6F9); display: flex; flex-direction: column; }
.emp-bar { display: flex; align-items: center; gap: 14px; padding: 15px 28px; background: #fff; border-bottom: 1px solid var(--line, #E6E9EF); }
.emp-logo { height: 38px; width: auto; }
.emp-bar-txt { flex: 1; min-width: 0; }
.emp-bar-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink, #1B2230); }
.emp-bar-sub { font-size: 12px; color: var(--ink-3, #8A93A6); }
.emp-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2, #475067); background: #fff; border: 1px solid var(--line, #E6E9EF); padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.emp-back:hover { border-color: var(--accent); color: var(--accent); }
.emp-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2, #475067); background: var(--line-2, #EEF1F5); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.emp-main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 28px 20px 64px; }
.emp-welcome-card { margin-top: 24px; }
.emp-welcome { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 88px 32px; text-align: center; }
.emp-welcome-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
/* Gleiche Schrift wie alle Willkommens-Titel der App (.welcome-min-title,
   Login, Pfarren-Portal): Serifenschrift statt geerbtem Inter. */
.emp-welcome h1 { font-family: 'Source Serif Pro', Georgia, serif; font-size: 32px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; margin: 0 0 22px; color: var(--ink, #1B2230); text-wrap: balance; }
.emp-welcome p { font-size: 16px; color: var(--ink-2, #475067); line-height: 1.6; margin: 0 0 28px; text-wrap: pretty; }
.emp-done { max-width: 560px; margin: 56px auto; text-align: center; background: #fff; border: 1px solid var(--line, #E6E9EF); border-radius: 20px; padding: 48px 40px; }
.emp-done-ic { width: 72px; height: 72px; border-radius: 50%; background: #ECFDF5; color: #0E9F6E; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.emp-done h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink, #1B2230); }
.emp-done p { font-size: 16px; color: var(--ink-2, #475067); line-height: 1.6; margin: 0; text-wrap: pretty; }


/* ── Demo-Daten-Toggle in der Bottom-Nav (rechts) ── */
.bn-demo {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-3);
  border-radius: 999px; padding: 7px 14px 7px 9px;
  transition: border-color 0.15s, color 0.15s;
  flex: none;
}
.bn-demo:hover { border-color: #F78E1166; color: var(--ink-2); }
.bn-demo-track {
  width: 30px; height: 17px; border-radius: 999px; background: #D7DDE6;
  position: relative; flex: none; transition: background 0.18s;
}
.bn-demo-knob {
  position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,0.25);
  transition: left 0.18s;
}
.bn-demo.on { border-color: #F78E1166; color: #8a5a16; background: #FFF7ED; }
.bn-demo.on .bn-demo-track { background: #F78E11; }
.bn-demo.on .bn-demo-knob { left: 15px; }
@media (max-width: 1420px) {
  /* Nav-Items bleiben mittig; symmetrisches Padding reserviert rechts Platz für
     den absolut positionierten Toggle — keine Überlappung. */
  .bottomnav { padding-left: 150px; padding-right: 150px; }
  .bn-item { min-width: 72px; padding: 5px 8px; }
  .bn-demo { padding: 7px 10px; }
}
@media (max-width: 1150px) {
  .bn-demo-label { display: none; }
  .bottomnav { padding-left: 76px; padding-right: 76px; gap: 6px; }
  .bn-item { min-width: 0; font-size: 11px; padding: 5px 6px; }
}
@media (max-width: 760px) {
  .bn-demo { display: none; }
  /* Nav an den Viewport klemmen: Inhalte scrollen INTERN, statt die Seite zu verbreitern. */
  .bottomnav { overflow-x: auto; justify-content: flex-start; padding: 9px 8px; left: 0; right: 0; width: auto; max-width: 100vw; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bottomnav::-webkit-scrollbar { display: none; }
  .bn-item { flex: none; }
  /* Kein horizontaler Seiten-Überlauf: breite Inhalte scrollen in ihrem Container. */
  .app, .vw { max-width: 100vw; overflow-x: hidden; }
  .vw-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .vw-seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .vw-seg::-webkit-scrollbar { display: none; }
}

/* Sanfter Einblend-Übergang beim Neuaufbau der App (z. B. Demo-Umschaltung). */
.app { animation: vwAppFade 0.22s ease; }
@keyframes vwAppFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app { animation: none; } }

/* KI-Assistent am Handy in der Verwaltung (Audit E3): runder Knopf über der
   unteren Leiste, damit er keine Navigationspunkte verdeckt. Die öffentliche
   Musterabfrage hat keine untere Leiste und bleibt unverändert (Audit D4). */
@media (max-width: 760px) {
  body:has(.bottomnav) .ki-bubble {
    width: 52px; height: 52px !important; padding: 0 !important;
    justify-content: center; right: 12px !important;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.bottomnav) .ki-bubble-label { display: none; }
  body:has(.bottomnav) .ki-bubble-dot { top: 6px; right: 6px; }
}


/* Sonderfälle (Audit D2): Normalfall zuerst, Erklärungen aufklappbar. */
.multi-row-none { margin-top: 0; margin-bottom: 2px; border-style: solid; border-color: #E2C9A3; background: #FDF8F2; align-items: center; }
.multi-row-none.multi-row-on { border-color: var(--accent); background: var(--accent-soft); }
.multi-row-none .multi-check { margin-top: 0; }
/* „Nichts davon“ ist der häufigste Fall: Hinweis rechts, Text 6,5:1 auf dem Tag. */
.multi-tag {
  flex-shrink: 0; align-self: center; padding: 4px 10px; border-radius: 999px;
  background: #FBEBD6; color: #8A4F0A; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.multi-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; color: #64748B; font-size: 13px; }
.multi-divider::before, .multi-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 520px) { .multi-row-none { flex-wrap: wrap; } .multi-tag { margin-left: 36px; } }
.multi-more { margin: -2px 0 8px 14px; }
.multi-more > summary { cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; list-style: none; display: inline-block; padding: 4px 0; }
.multi-more > summary::-webkit-details-marker { display: none; }
.multi-more[open] > summary { margin-bottom: 4px; }
.field-hint.is-warn { color: #B45309; font-size: 12px; margin-top: 4px; }
/* Funktions-Audit M4/M5: Hinweise in der Musterabfrage */
.emp-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font: 500 14px/1.5 'Inter', system-ui, sans-serif; }
.emp-banner span { flex: 1 1 260px; }
.emp-banner-btn { font: inherit; font-weight: 700; color: #92400E; background: #fff; border: 1px solid #FCD34D; border-radius: 9px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.emp-banner-btn:hover { background: #FEF3C7; }

/* Demo-Instanz (DEMO_INSTANZ=true): ruhiger Hinweis in Kopfzeile und Login */
.demo-instanz-badge { display: inline-flex; align-items: center; white-space: nowrap; font: 600 11.5px/1.2 "Inter", system-ui, sans-serif; color: #475569; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 999px; padding: 5px 10px; margin-left: 4px; }
.emp-bar .demo-instanz-badge { margin-left: auto; }
.demo-instanz-badge .dib-kurz { display: none; }
@media (max-width: 760px) { .chrome .demo-instanz-badge { font-size: 10.5px; padding: 3px 7px; } .chrome .demo-instanz-badge .dib-lang { display: none; } .chrome .demo-instanz-badge .dib-kurz { display: inline; } }

/* Einstiegs-Animation „Das Kreuz fügt sich“ (app-shell.jsx, NvKreuzIntro). */
.nv-intro { position: fixed; inset: 0; z-index: 2147483000; background: var(--bg, #F8FAFC); cursor: pointer; }
.nv-kreuz { position: absolute; inset: 0; transform-origin: 50% 50%; }
.nv-arm { position: absolute; background: #F78E11; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nv-intro { display: none; } }
