/* ==========================================================================
   Urbing — Einordnungs-Funnel
   Designsprache der Vorlage: Manrope, Papier/Ink, Limette, Zyan, dunkle Boards
   ========================================================================== */

:root {
  --bg: #f6f6f7;
  --paper: #ffffff;
  --ink: #101820;
  --muted: #5e686f;
  --soft: #6a737a;
  --line: #e6e8ea;
  --panel: #f3f4f5;
  --lime: #c6ef3d;
  --lime-dark: #a9d018;
  --cyan: #3ec0ea;
  --orange: #ff762d;
  --shadow: 0 12px 34px rgba(16, 24, 32, .07);
  --radius: 26px;
  --content: 1120px;
  --nav: 1180px;
  --font: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, li, b, span { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid #176f92; outline-offset: 3px; }

.shell { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.shell-nav { width: min(var(--nav), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: fixed; left: 14px; top: -60px; z-index: 60;
  background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700;
  box-shadow: var(--shadow);
}
.skip:focus { top: 14px; }

/* ---------- Topbar ---------- */
.topbar { padding: 14px 0 6px; position: relative; z-index: 30; }
.topbar-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 70px; padding: 10px 12px 10px 18px;
  background: var(--paper); border: 1px solid rgba(16, 24, 32, .05);
  border-radius: 20px; box-shadow: 0 6px 22px rgba(16, 24, 32, .05);
}
.logo { flex: none; display: flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; margin-right: auto; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 650; color: #24303a; white-space: nowrap;
}
.nav-links a:hover { color: #176f92; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.online b { color: var(--ink); }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 4px rgba(198, 239, 61, .3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid #d5d8dc; background: #fff; color: var(--ink);
  font-weight: 750; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:hover { border-color: var(--ink); background: #fafafa; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #24313b; border-color: #24313b; }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Screens ---------- */
main { position: relative; }
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .4s ease both; }
.screen--intro.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.screen--stage { padding: 26px 0 60px; }
.stage { width: min(640px, calc(100% - 40px)); margin-inline: auto; }
.stage--wide { width: min(760px, calc(100% - 40px)); }
.stage--final { width: min(880px, calc(100% - 40px)); display: grid; grid-template-columns: 1.45fr .85fr; gap: 18px; align-items: start; }

/* ---------- Intro ---------- */
.intro { position: relative; padding: 26px 0 104px; }
.wave {
  position: absolute; top: -60px; left: 54%; width: 980px; height: 620px;
  transform: translateX(-50%); opacity: .5; pointer-events: none;
  filter: saturate(.9);
}
.intro-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 34px; align-items: start;
  padding: 12px 0 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(16, 24, 32, .07);
  font-size: 12px; font-weight: 750; letter-spacing: .02em; color: #33414a;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark); }
.intro h1 {
  margin: 0; font-size: clamp(44px, 5.2vw, 70px); line-height: .96;
  letter-spacing: -.045em; font-weight: 750;
}
.intro h1 em { font-style: normal; display: block; color: #33414a; font-size: .92em; }
.brand-line {
  margin: 10px 0 0; font-size: 15px; font-weight: 700;
  letter-spacing: .01em; color: var(--soft);
}
.threshold {
  display: inline-flex; align-items: center; gap: 9px; margin: 20px 0 0;
  color: var(--muted); font-size: 16px; font-weight: 600;
}
.threshold span {
  background: var(--lime); color: var(--ink); border-radius: 8px;
  padding: 3px 10px 4px; font-weight: 800;
}
.lede { margin: 20px 0 0; max-width: 46ch; color: #3a444c; font-size: 16.5px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 0; }
.hero-meta { font-size: 13px; color: var(--soft); }
.trust-line {
  display: flex; align-items: center; gap: 9px; margin: 26px 0 0;
  font-size: 13.5px; color: var(--muted);
}
.trust-line b { color: var(--ink); }
.trust-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark);
  box-shadow: 0 0 0 4px rgba(198, 239, 61, .28);
}

/* Assistentenkarte */
.assistant-card {
  background: var(--paper); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(16, 24, 32, .05);
  scroll-margin-top: 100px;
}
.assistant-head, .final-head, .quiz-top, .result-head { display: flex; align-items: center; gap: 12px; }
.avatar { position: relative; width: 46px; height: 46px; flex: none; }
.avatar img {
  width: 100%; height: 100%; border-radius: 14px; border: 1.5px solid var(--ink);
  background: var(--lime); padding: 5px;
}
.avatar--sm { width: 40px; height: 40px; }
.avatar--sm img { border-radius: 12px; padding: 4px; }
.avatar-status {
  position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--lime-dark); border: 2.5px solid #fff;
}
.assistant-id { min-width: 0; flex: 1; }
.assistant-id h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.assistant-id p { margin: 2px 0 0; font-size: 12.5px; color: var(--soft); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dark); flex: none; }
.chip {
  flex: none; border-radius: 999px; padding: 5px 10px; font-size: 11px;
  font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.chip-lime { background: var(--lime); }
.chip-ink { background: var(--ink); color: #fff; }

.bubble {
  position: relative; margin: 16px 0 0; padding: 14px 15px;
  background: var(--panel); border-radius: 18px 18px 18px 6px;
  min-height: 60px;
}
.bubble p { margin: 0; font-size: 14.5px; color: #2c363e; }
.bubble-meta { display: flex; gap: 7px; margin-top: 12px; }
.tag {
  font-size: 11.5px; font-weight: 700; color: #3d4952;
  background: #eff1f2; border-radius: 999px; padding: 5px 10px;
}
.assistant-sheet { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.sheet-label { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 9px; font-size: 13.5px; color: #303b43; }
.check {
  width: 19px; height: 19px; flex: none; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; margin-top: 1px;
}
.check svg { width: 12px; height: 12px; }

/* Themenstreifen */
.topic-strip { position: relative; z-index: 1; margin-top: 46px; scroll-margin-top: 100px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.strip-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.strip-head p { margin: 0; font-size: 13.5px; color: var(--soft); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic {
  position: relative; overflow: hidden; border-radius: 18px; background: #dfe3e6;
  aspect-ratio: 4 / 3;
}
.topic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.topic:hover img { transform: scale(1.04); }
.topic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,24,32,0) 38%, rgba(16,24,32,.78) 100%);
}
.topic-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.topic-body h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.02em; }
.topic .kicker { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }
.strip-note { margin: 12px 0 0; font-size: 12.5px; color: var(--soft); max-width: 78ch; }

/* ---------- Board (dunkel) ---------- */
.board {
  background: var(--ink); color: #fff; border-radius: 30px; padding: 26px;
  box-shadow: 0 20px 50px rgba(16, 24, 32, .18);
}
.board--loader { margin-top: 26px; }
.board-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa5ac; margin-bottom: 8px; }
.board h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.035em; }
.board p { margin: 12px 0 0; color: #c4ccd1; font-size: 14.5px; max-width: 46ch; }
.board-note { margin: 16px 0 0; font-size: 11.5px; color: #7f8b92; }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 22px; }
.progress span { display: block; height: 100%; width: 0; border-radius: 999px; }
.progress--lime span { background: var(--lime); }
.progress--line { background: #eceef0; height: 6px; margin: 14px 0 20px; }
.progress--line span { background: var(--ink); }
.loader-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 12px; color: #9aa5ac; }
.loader-foot b { color: var(--lime); font-size: 22px; letter-spacing: -.03em; }

/* ---------- Quiz ---------- */
.quiz-card {
  background: var(--paper); border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(16,24,32,.05); box-shadow: var(--shadow);
}
.quiz-stepnum { flex: none; font-size: 12px; font-weight: 800; color: var(--soft); }
.bubble--small { margin-top: 14px; }
.bubble--small p { font-size: 13.5px; }
.quiz-step .q-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.quiz-step h3 { margin: 8px 0 16px; font-size: clamp(21px, 3vw, 27px); line-height: 1.16; letter-spacing: -.035em; }
.quiz-options { display: grid; gap: 9px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 15px;
  padding: 13px 14px; font-size: 14.5px; font-weight: 600; color: #26323a;
  transition: border-color .16s ease, background .16s ease, transform .1s ease;
}
.quiz-opt:hover { border-color: var(--ink); background: #fbfbfc; }
.quiz-opt:active { transform: scale(.995); }
.opt-mark {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid #cfd4d8; display: grid; place-items: center;
}
.quiz-opt:hover .opt-mark { border-color: var(--ink); background: var(--lime); }
.quiz-hint { margin: 16px 0 0; font-size: 11.5px; color: var(--soft); }
.back-link {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--soft);
}
.back-link:hover { color: var(--ink); }

/* ---------- Analyse ---------- */
.board--analysis { margin-top: 40px; text-align: center; padding: 30px 26px; }
.scan { position: relative; width: 78px; height: 78px; margin: 0 auto 18px; display: grid; place-items: center; }
.scan img { width: 46px; height: 46px; border-radius: 14px; background: var(--lime); padding: 5px; }
.scan-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(198,239,61,.55); animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.board--analysis h2, .board--analysis p { margin-inline: auto; }

/* ---------- Ergebnis ---------- */
.result-head { margin-top: 8px; }
.bubble--verdict { background: #fff; border: 1px solid rgba(16,24,32,.06); box-shadow: var(--shadow); border-radius: 20px 20px 20px 6px; min-height: 76px; padding: 16px; }
.bubble--verdict p { font-size: 15px; }
.board--mix { margin-top: 16px; padding: 22px; }
.mix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mix-head h2 { font-size: 24px; }
.mix-total { font-size: 13px; font-weight: 800; color: var(--lime); border: 1px solid rgba(198,239,61,.4); border-radius: 999px; padding: 5px 11px; }
.mix-rows { display: grid; gap: 12px; margin-top: 18px; }
.mix-row { display: grid; grid-template-columns: 118px 1fr 44px; gap: 12px; align-items: center; }
.mix-row span { font-size: 12.5px; color: #cfd6da; }
.mix-row b { font-size: 13px; text-align: right; color: #fff; }
.mix-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.mix-bar i { display: block; height: 100%; border-radius: 999px; background: var(--lime); transform-origin: left; animation: grow .7s ease both; }
.mix-row:nth-child(2) .mix-bar i { background: var(--cyan); }
.mix-row:nth-child(3) .mix-bar i { background: #f4c84b; }
.mix-row:nth-child(4) .mix-bar i { background: #9aa5ac; }
@keyframes grow { from { transform: scaleX(0); } }

.section-label { margin: 26px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.tiers { display: grid; gap: 10px; }
.tier {
  position: relative; display: grid; gap: 8px; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  padding: 15px 16px; transition: border-color .16s ease, box-shadow .16s ease;
}
.tier:hover { border-color: #b9c0c5; }
.tier.is-selected { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16,24,32,.07); }
.tier-badge {
  position: absolute; right: 14px; top: -10px; background: var(--lime);
  border-radius: 999px; padding: 3px 9px; font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.tier-radio {
  position: absolute; left: 16px; top: 17px; width: 18px; height: 18px;
  border-radius: 50%; border: 1.5px solid #cfd4d8;
}
.tier.is-selected .tier-radio { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 41%, #fff 44%); }
.tier-head { display: flex; justify-content: space-between; gap: 10px; padding-left: 30px; align-items: baseline; }
.tier-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.tier-from { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tier-from b { font-size: 15px; color: var(--ink); }
.tier-desc { padding-left: 30px; font-size: 13px; color: var(--muted); }
.tier-feats { padding-left: 30px; display: flex; flex-wrap: wrap; gap: 6px; }
.tier-feats span { font-size: 11.5px; color: #3d4952; background: #f1f3f4; border-radius: 999px; padding: 4px 9px; }
.under-btn { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--soft); }

/* ---------- Final ---------- */
.final-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(16,24,32,.05); box-shadow: var(--shadow);
}
.final-head { align-items: center; }
.final-head h2 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.03em; }
.final-head .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.final-recap {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 13px; display: grid; gap: 7px; background: #fbfbfc;
}
.recap-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.recap-row span { color: var(--soft); }
.form { margin-top: 16px; display: grid; gap: 11px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; }
.field-label { font-size: 11.5px; font-weight: 750; color: #3d4952; }
.field input, .field select {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: #fff; font-size: 15px;
}
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field input.invalid { border-color: #d64545; background: #fff8f8; }
.phone-wrap { display: grid; grid-template-columns: 104px 1fr; gap: 8px; }
.phone-wrap select { padding-left: 10px; }
.field-error { font-size: 11.5px; color: #c03838; font-weight: 650; }
.consent { display: flex; gap: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.consent input { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.form-error { margin: 0; font-size: 12px; color: #c03838; font-weight: 700; }
.ssl { margin: 0; display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11px; color: var(--soft); }
.ssl svg { width: 13px; height: 13px; }

.side-note { background: #fff; border-radius: 22px; padding: 20px; border: 1px solid rgba(16,24,32,.05); }
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps-mini li { display: flex; gap: 10px; font-size: 13px; color: #33414a; }
.steps-mini b { font-size: 11px; font-weight: 800; color: var(--soft); padding-top: 3px; }
.side-disclaimer { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; color: var(--soft); }

.success { text-align: center; padding: 12px 4px 4px; }
.success-mark {
  width: 52px; height: 52px; margin: 4px auto 12px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; font-size: 24px; font-weight: 800;
}
.success h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; }
.success p { margin: 0; font-size: 13.5px; color: var(--muted); }
.final-recap--success { text-align: left; margin: 16px 0; }
.success .btn { margin-top: 16px; }

/* ---------- Sticky ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,246,247,.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-inner {
  width: min(640px, 100%); margin-inline: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.sticky-copy { display: grid; line-height: 1.25; }
.sticky-copy b { font-size: 13px; }
.sticky-copy span { font-size: 11px; color: var(--soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; gap: 26px; }
  .wave { left: 60%; width: 820px; opacity: .35; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .stage--final { grid-template-columns: 1fr; }
  .side-note { order: 2; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .shell, .shell-nav { width: calc(100% - 24px); }
  .wave { display: none; }
  .topbar { padding-top: 8px; }
  .topbar-inner { min-height: 60px; padding: 8px 10px 8px 14px; border-radius: 16px; }
  .logo img { height: 34px; }
  .online { display: none; }
  .btn-ghost { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .intro { padding-top: 14px; }
  .intro h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-actions .btn-lg { width: 100%; }
  .topic-strip { margin-top: 34px; }
  .topic-grid { gap: 9px; }
  .topic { border-radius: 14px; }
  .topic-body h3 { font-size: 15px; }
  .stage, .stage--wide, .stage--final { width: calc(100% - 24px); }
  .board { border-radius: 24px; padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .mix-row { grid-template-columns: 94px 1fr 38px; gap: 9px; }
  .mix-row span { font-size: 11.5px; }
}

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