/* ───── Reset & Base ───── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; }

/* ───── Topbar ───── */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 600;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: #0f172a; color: white;
  border-radius: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: -0.5px;
}
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.3px; }
.topbar-tag { flex: 1; font-size: 14px; color: #475569; font-weight: 500; }
.mode-toggle {
  display: inline-flex; background: #f1f5f9;
  padding: 4px; border-radius: 10px; gap: 2px;
}
.mode-btn {
  appearance: none; border: 0; background: transparent;
  padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600;
  color: #475569; border-radius: 7px; cursor: pointer;
  transition: background .15s, color .15s;
}
.mode-btn.is-active { background: #0f172a; color: #ffffff; }

/* ───── Main / Map ───── */
main { flex: 1; position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #e2e8f0; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 10px 14px; font-size: 13px; }
.leaflet-popup-content strong { font-weight: 600; }

/* ───── Search overlay ───── */
.search-overlay {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 450;
  width: min(320px, calc(100vw - 28px));
}
.search-input-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex; align-items: center;
}
.search-icon {
  width: 18px; height: 18px;
  color: #94a3b8;
  margin: 0 8px 0 12px;
  flex-shrink: 0;
}
#searchInput {
  appearance: none;
  border: 0; outline: 0;
  background: transparent;
  padding: 10px 12px 10px 0;
  font: inherit;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  border-radius: 10px;
}
#searchInput:focus { outline: 0; }
.search-input-wrap:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.14);
}
.search-results {
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover,
.search-result.is-active { background: #f8fafc; }
.search-result-name { font-weight: 600; color: #0f172a; }
.search-result-meta { font-size: 12px; color: #64748b; }
.search-empty {
  padding: 14px; font-size: 13px; color: #94a3b8; text-align: center;
}

/* ───── Floating Action Button ───── */
.fab {
  position: absolute;
  bottom: 22px; left: 14px;
  z-index: 450;
  appearance: none;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fab:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.36); }
.fab-icon {
  display: inline-flex; width: 24px; height: 24px;
  align-items: center; justify-content: center;
  background: #fbbf24; color: #0f172a;
  border-radius: 50%; font-weight: 800; font-size: 14px;
}

/* Marker label badge */
.marker-label {
  background: #ffffff;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
/* Highlighted marker (hover from sidebar list) */
.leaflet-marker-highlight {
  filter: drop-shadow(0 0 6px rgba(15, 23, 42, 0.5));
}

/* ───── Sidebar ───── */
.sidebar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 95vw);
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sidebar.is-open { transform: translateX(0); }
.sidebar-close {
  position: absolute;
  top: 12px; right: 12px;
  appearance: none;
  border: 0; background: transparent;
  font-size: 28px; line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  z-index: 2;
}
.sidebar-close:hover { background: #f1f5f9; color: #0f172a; }
.sidebar-inner { padding: 28px 28px 24px; }

/* ───── Explorer view (default sidebar content) ───── */
.explorer-head { margin-bottom: 18px; }
.explorer-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #64748b; margin-bottom: 4px;
}
.explorer-title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.6px; margin: 0 0 6px;
  color: #0f172a;
}
.explorer-sub {
  font-size: 13.5px; line-height: 1.5; color: #475569;
}

.budget-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 16px 16px;
  margin-bottom: 20px;
}
.budget-value-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px;
}
.budget-value {
  font-size: 32px; font-weight: 700; letter-spacing: -0.8px;
  color: #0f172a; line-height: 1; font-variant-numeric: tabular-nums;
}
.budget-suffix { font-size: 13px; color: #64748b; font-weight: 500; }
.budget-slider {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #f59e0b 50%, #dc2626);
  outline: none;
  cursor: pointer;
  margin-bottom: 8px;
}
.budget-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  cursor: grab;
}
.budget-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  cursor: grab;
}
.budget-range-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* Ranking filter input */
.ranking-filter {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.ranking-filter input {
  flex: 1;
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.ranking-filter input:focus {
  border-color: #94a3b8;
  background: #ffffff;
}
.ranking-count {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ranking-section { margin-bottom: 22px; }
.ranking-list {
  display: flex; flex-direction: column; gap: 4px;
}
.ranking-list-scroll {
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.ranking-list-scroll::-webkit-scrollbar { width: 6px; }
.ranking-list-scroll::-webkit-scrollbar-track { background: transparent; }
.ranking-list-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.ranking-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  min-height: 32px;
}
.ranking-row:hover { background: #f1f5f9; }
.ranking-row-rank {
  font-size: 11px; color: #94a3b8;
  z-index: 1; font-variant-numeric: tabular-nums;
  text-align: right;
}
.ranking-row-label {
  font-size: 13.5px; color: #1e293b;
  z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ranking-row-value {
  font-size: 13.5px; font-weight: 700;
  color: #0f172a; font-variant-numeric: tabular-nums;
  z-index: 1; white-space: nowrap;
}
.ranking-row-bar {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9, #f8fafc);
  z-index: 0;
}
.ranking-row--top .ranking-row-bar {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
}
.ranking-row--bottom .ranking-row-bar {
  background: linear-gradient(90deg, #fee2e2, #fecaca);
}
.ranking-empty {
  padding: 14px; text-align: center;
  font-size: 13px; color: #94a3b8;
}

/* ───── Detail view ───── */
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  appearance: none; border: 0; background: transparent;
  color: #475569; font: inherit; font-size: 13px;
  cursor: pointer; padding: 4px 0;
  margin-bottom: 12px;
}
.detail-back:hover { color: #0f172a; }
.detail-back::before { content: '←'; font-size: 16px; line-height: 1; }

.city-bundesland {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #64748b; margin-bottom: 4px;
}
.city-name {
  font-size: 30px; font-weight: 700; letter-spacing: -0.8px;
  margin: 0 0 6px; color: #0f172a;
}
.city-meta { font-size: 13px; color: #64748b; }

.price-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin: 18px 0 22px;
}
.price-card {
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.price-card--miete { background: linear-gradient(180deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; }
.price-card--kauf  { background: linear-gradient(180deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.price-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px; text-transform: uppercase;
  color: #475569; margin-bottom: 6px;
}
.price-value {
  font-size: 24px; font-weight: 700; letter-spacing: -0.5px;
  color: #0f172a; line-height: 1.1;
}
.price-unit {
  font-size: 13px; font-weight: 500;
  color: #64748b; margin-left: 2px;
}

.explain {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}
.explain-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.explain-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px; text-transform: uppercase;
  color: #6d28d9; background: #ede9fe;
  padding: 4px 9px; border-radius: 999px;
}
.explain-badge::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: #8b5cf6;
}
.explain-stand { font-size: 11px; color: #94a3b8; }
.explain-body {
  font-size: 14.5px; line-height: 1.6; color: #1e293b;
}
.explain-body p { margin: 0 0 12px; }
.explain-body p:last-child { margin-bottom: 0; }
.explain-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; padding: 10px 12px; border-radius: 8px;
  font-size: 13px;
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

.data-source {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px; line-height: 1.5; color: #94a3b8;
}

.sidebar-legal {
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
}
.sidebar-legal a {
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
}
.sidebar-legal a:hover { color: #0f172a; border-color: #94a3b8; }

/* ───── Legal pages (Impressum / Datenschutz) ───── */
body.legal-page {
  background: #f8fafc;
}
body.legal-page .topbar {
  position: sticky;
  top: 0;
}
body.legal-page .brand {
  text-decoration: none;
  color: inherit;
}
.legal-main {
  flex: 1 0 auto;
  padding: 36px 20px 64px;
}
.legal-content {
  max-width: 740px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 40px 48px 44px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 18px;
}
.legal-back::before {
  content: '←';
  font-size: 15px;
  line-height: 1;
}
.legal-back:hover { color: #0f172a; }

.legal-content h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 4px;
  color: #0f172a;
}
.legal-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 28px;
}
.legal-content h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 28px 0 10px;
  color: #0f172a;
}
.legal-content p,
.legal-content ul {
  font-size: 14.5px;
  line-height: 1.65;
  color: #1e293b;
  margin: 0 0 14px;
}
.legal-content ul {
  padding-left: 22px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #cbd5e1;
}
.legal-content a:hover {
  text-decoration-color: #0f172a;
}
.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}
.legal-nav {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
}
.legal-nav a {
  color: #475569;
  text-decoration: none;
}
.legal-nav a:hover { color: #0f172a; }

@media (max-width: 720px) {
  .legal-main { padding: 20px 12px 40px; }
  .legal-content { padding: 28px 22px 32px; border-radius: 12px; }
  .legal-content h1 { font-size: 26px; }
}

/* ───── Footer ───── */
.footer {
  background: #0f172a; color: #94a3b8;
  padding: 12px 24px; font-size: 12px;
  flex-shrink: 0;
}
.footer-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  color: #cbd5e1;
}
.footer-brand strong { color: #ffffff; font-weight: 600; }
.footer-tag { color: #64748b; }
.footer-links {
  display: inline-flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-credit { color: #64748b; font-size: 11px; }
.footer-credit a { color: #94a3b8; }

/* ───── Mobile ───── */
@media (max-width: 720px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar-tag { display: none; }
  .brand-name { font-size: 15px; }

  .search-overlay { top: 10px; left: 10px; width: calc(100vw - 20px); }
  .fab {
    left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 10px 14px 10px 10px;
    font-size: 13px;
  }

  .sidebar {
    top: auto;
    left: 0; right: 0;
    width: 100%;
    height: 78vh;
    max-height: 78vh;
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  }
  .sidebar.is-open { transform: translateY(0); }
  .sidebar-inner { padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .city-name { font-size: 26px; }
  .explorer-title { font-size: 22px; }
  .budget-value { font-size: 28px; }
}

/* ───────────────────────────────────────────────
   Lead-Funnel (Startseite)
   ─────────────────────────────────────────────── */
.topnav { margin-left: auto; display: inline-flex; gap: 18px; }
.topnav a {
  color: #475569; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.topnav a:hover { background: #f1f5f9; color: #0f172a; }

.funnel-main {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px;
}
.funnel-hero {
  text-align: center;
  max-width: 760px;
  padding: 56px 0 28px;
}
.funnel-h1 {
  font-size: 44px; line-height: 1.1; font-weight: 800;
  letter-spacing: -1.2px; color: #0f172a; margin: 0 0 16px;
}
.funnel-h1-accent { color: #64748b; }
.funnel-lead {
  font-size: 18px; line-height: 1.5; color: #475569; margin: 0 auto 20px;
  max-width: 560px;
}
.funnel-trust {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.funnel-trust li {
  font-size: 13px; font-weight: 600; color: #047857;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 5px 12px; border-radius: 999px;
}
.funnel-trust li::before { content: "✓ "; }

.quiz-shell { width: 100%; max-width: 620px; }
.quiz-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  padding: 32px 32px 28px; position: relative;
}

.quiz-progress {
  height: 5px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
  margin-bottom: 22px;
}
.quiz-progress-bar {
  height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 999px; transition: width .3s ease;
}

.quiz-q {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px;
  color: #0f172a; margin: 0 0 18px;
}
.quiz-choices { display: grid; gap: 12px; }
.quiz-choices--2 { grid-template-columns: 1fr 1fr; }
.quiz-choices--3 { grid-template-columns: 1fr 1fr 1fr; }
.quiz-choice {
  appearance: none; text-align: left; cursor: pointer;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: 18px 16px; font: inherit; color: #0f172a;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  transition: border-color .15s, background .15s, transform .1s;
}
.quiz-choice:hover { border-color: #fbbf24; background: #fffbeb; }
.quiz-choice:active { transform: scale(0.98); }
.quiz-choice-icon { font-size: 26px; line-height: 1; }
.quiz-choice-title { font-size: 15px; font-weight: 700; }
.quiz-choice-sub { font-size: 12.5px; color: #64748b; font-weight: 500; }
.quiz-choices--sm .quiz-choice { padding: 14px 14px; align-items: center; text-align: center; }
.quiz-choices--sm .quiz-choice-title { font-size: 14px; }

.quiz-field { display: block; margin-bottom: 16px; }
.quiz-label {
  display: block; font-size: 13px; font-weight: 600; color: #475569;
  margin-bottom: 6px;
}
.quiz-input {
  width: 100%; box-sizing: border-box; appearance: none;
  border: 1.5px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
  padding: 12px 14px; font: inherit; font-size: 15px; color: #0f172a;
  outline: none; transition: border-color .15s, background .15s;
}
.quiz-input:focus { border-color: #94a3b8; background: #ffffff; }
select.quiz-input { cursor: pointer; }

.quiz-next {
  appearance: none; cursor: pointer; width: 100%;
  background: #0f172a; color: #ffffff; border: 0; border-radius: 12px;
  padding: 15px 20px; font: inherit; font-size: 16px; font-weight: 700;
  margin-top: 8px; transition: background .15s, transform .1s;
}
.quiz-next:hover { background: #1e293b; }
.quiz-next:active { transform: scale(0.99); }
.quiz-next:disabled { opacity: .6; cursor: default; }

.quiz-back {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: #64748b; font: inherit; font-size: 13px; padding: 6px 0;
  margin-top: 14px;
}
.quiz-back:hover { color: #0f172a; }
.quiz-hint, .quiz-fineprint {
  font-size: 12.5px; color: #94a3b8; line-height: 1.5; margin: 4px 0 0;
}
.quiz-hint { margin-bottom: 14px; }
.quiz-fineprint { text-align: center; margin-top: 18px; }

/* Autocomplete */
.quiz-field { position: relative; }
.quiz-autocomplete {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12); overflow: hidden;
  max-height: 240px; overflow-y: auto;
}
.quiz-ac-item {
  padding: 10px 14px; font-size: 14px; cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.quiz-ac-item:last-child { border-bottom: 0; }
.quiz-ac-item:hover { background: #f8fafc; }
.quiz-ac-item span { color: #94a3b8; font-size: 12px; }

/* Ergebnis */
.result-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: #64748b; margin-bottom: 4px;
}
.result-headline {
  font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: #0f172a; margin: 0 0 10px;
}
.result-range {
  font-size: 36px; font-weight: 800; letter-spacing: -1px; color: #0f172a;
  font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.result-note { font-size: 12.5px; line-height: 1.5; color: #94a3b8; margin: 0 0 24px; }
.result-note--lg { font-size: 15px; line-height: 1.6; color: #1e293b; margin: 6px 0 24px; }
.result-note--lg strong { color: #0f172a; }

.result-cta {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 22px 20px;
}
.result-cta h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.result-cta-sub { font-size: 13.5px; color: #475569; margin: 0 0 16px; line-height: 1.5; }

.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.5; color: #475569; margin: 4px 0 2px;
}
.lead-consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.lead-consent a { color: #0f172a; }
.lead-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 12px; border-radius: 8px; font-size: 13px;
}

.done { text-align: center; padding: 12px 0; }
.done-check {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: #ecfdf5; color: #047857; border: 2px solid #a7f3d0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}

/* Karten-Teaser */
.map-teaser { width: 100%; max-width: 760px; margin: 40px 0 56px; }
.map-teaser-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #0f172a; color: #cbd5e1; border-radius: 16px; padding: 26px 28px;
  flex-wrap: wrap;
}
.map-teaser-inner h2 { color: #ffffff; font-size: 20px; margin: 0 0 6px; letter-spacing: -0.3px; }
.map-teaser-inner p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 440px; }
.map-teaser-btn {
  display: inline-block; white-space: nowrap;
  background: #fbbf24; color: #0f172a; text-decoration: none;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: transform .1s, box-shadow .15s;
}
.map-teaser-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35); }

@media (max-width: 720px) {
  .funnel-hero { padding: 32px 0 20px; }
  .funnel-h1 { font-size: 30px; letter-spacing: -0.8px; }
  .funnel-lead { font-size: 16px; }
  .quiz-card { padding: 22px 18px 20px; border-radius: 16px; }
  .quiz-q { font-size: 19px; }
  .result-range { font-size: 30px; }
  .quiz-choices--2 { grid-template-columns: 1fr; }
  .map-teaser-inner { padding: 22px 20px; }
}

/* ── Funnel: zusätzliche Sektionen (Trust / Verweildauer) ── */
html { scroll-behavior: smooth; }

.quiz-belowcard {
  text-align: center; font-size: 12.5px; color: #94a3b8;
  margin: 14px auto 0; max-width: 560px; line-height: 1.5;
}

.proof-strip {
  width: 100%; max-width: 900px; margin: 44px 0 8px; text-align: center;
}
.proof-strip-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 14px;
}
.proof-strip-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
}
.proof-strip-logos span {
  font-size: 15px; font-weight: 700; color: #cbd5e1; letter-spacing: -0.2px;
}

.section { width: 100%; max-width: 900px; margin: 56px 0; }
.section--alt {
  max-width: none; width: 100vw; margin-left: calc(50% - 50vw);
  background: #f1f5f9; padding: 56px 20px;
}
.section--alt > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.section-h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.6px; color: #0f172a;
  text-align: center; margin: 0 0 32px;
}

/* So geht's */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 24px 20px; text-align: center;
}
.step-num {
  width: 40px; height: 40px; margin: 0 auto 14px;
  background: #0f172a; color: #fbbf24; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.step h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.step p { font-size: 14px; line-height: 1.55; color: #475569; margin: 0; }

/* Trust-Grid */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.trust-item {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 22px;
}
.trust-icon { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.trust-item h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.trust-item p { font-size: 14px; line-height: 1.55; color: #475569; margin: 0; }

/* Experte */
.expert-card {
  display: flex; gap: 24px; align-items: center;
  background: #0f172a; color: #cbd5e1; border-radius: 18px; padding: 32px 32px;
}
.expert-avatar {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  background: #fbbf24; color: #0f172a; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; letter-spacing: -1px;
}
.expert-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: #fbbf24; margin-bottom: 4px;
}
.expert-name { font-size: 24px; font-weight: 800; color: #ffffff; margin: 0 0 2px; letter-spacing: -0.5px; }
.expert-role { font-size: 14px; color: #94a3b8; margin: 0 0 12px; font-weight: 600; }
.expert-body p:last-child { font-size: 14.5px; line-height: 1.6; margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 0 20px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-size: 16px; font-weight: 600; color: #0f172a;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: #94a3b8; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #475569;
}
.faq details a { color: #0f172a; }

@media (max-width: 720px) {
  .section { margin: 40px 0; }
  .section--alt { padding: 40px 16px; }
  .section-h2 { font-size: 23px; margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .expert-card { flex-direction: column; text-align: center; padding: 28px 22px; gap: 16px; }
  .proof-strip-logos span { font-size: 13px; }
}

