/* =============================================================================
   Verkaufspreis-Kompass — Design-System & Styles
   Warm, ruhig, seriös, neutral, lokal. Mobile-first.
   ============================================================================= */

/* ---------- Design Tokens --------------------------------------------------- */
:root {
  /* Farben — modern, hell, kontraststark */
  --bg:        #FFFFFF;
  --bg-alt:    #F5F7FA;   /* kühles Hellgrau für Wechselsektionen */
  --surface:   #FFFFFF;
  --ink:       #0F1D2E;   /* tiefes Navy (Headlines) */
  --text:      #3A4756;   /* Fließtext */
  --muted:     #64748B;   /* sekundär */
  --line:      #E4E9F0;   /* kühle Trennlinien/Borders */
  --primary:   #059669;   /* kräftiges, modernes Grün */
  --primary-d: #047857;   /* Hover */
  --primary-50:#ECFDF5;   /* zarte Tönung */
  --primary-100:#D1FAE5;
  --gold:      #059669;   /* Alt-Akzent auf Primärfarbe gemappt */
  --gold-50:   #ECFDF5;
  --danger:    #DC2626;
  --ok:        #059669;

  /* Typografie — eine moderne Sans für alles */
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Form & Tiefe */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 2px rgba(15,29,46,.06), 0 1px 3px rgba(15,29,46,.05);
  --shadow:     0 6px 24px rgba(15,29,46,.08), 0 2px 6px rgba(15,29,46,.05);
  --shadow-lg:  0 18px 50px rgba(15,29,46,.13), 0 6px 16px rgba(15,29,46,.06);
  --maxw: 1140px;
  --gap: clamp(16px, 3.5vw, 28px);
}

/* ---------- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
p  { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--text); }

/* ---------- Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }
section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--bg-alt); }
.section-ink { background: #18211F; color: #E7E2D8; }
.section-ink h2, .section-ink h3 { color: #fff; }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 .9rem;
}
.section-head { max-width: 740px; margin-bottom: clamp(28px, 4vw, 48px); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: 1.02rem; line-height: 1;
  padding: 1.05em 1.6em; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-d); text-decoration: none; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.15em 1.9em; font-size: 1.08rem; }

/* ---------- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: .6em; font-family: var(--sans); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.logo em { font-style: normal; color: var(--primary); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.header-meta { display: flex; align-items: center; gap: 18px; }
.header-region { color: var(--muted); font-size: .9rem; }
.header-phone { font-weight: 600; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--primary); }
.logo span { white-space: nowrap; }
@media (max-width: 720px) { .header-region { display: none; } }
@media (max-width: 560px) {
  .site-header .container { min-height: 58px; gap: 10px; }
  .logo { font-size: 1.02rem; }
  .logo .mark { width: 26px; height: 26px; }
  .header-meta .btn { padding: .72em 1em; font-size: .9rem; }
}
@media (max-width: 380px) {
  /* Auf sehr kleinen Screens reicht der Funnel/Hero-CTA — Header-Button ausblenden */
  .header-meta .btn { display: none; }
}

/* ---------- Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(34px, 5vw, 64px) clamp(40px, 6vw, 76px); position: relative; overflow: hidden; }
.hero::before { /* sehr dezenter Hintergrundverlauf */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 460px at 90% -10%, #ECFDF5, transparent 62%),
    radial-gradient(900px 420px at -8% 10%, #EFF6FF, transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hero-copy { padding-top: clamp(6px, 2vw, 26px); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 33ch; }
.trust-list { list-style: none; padding: 0; margin: 1.6em 0 1.8em; display: grid; gap: .7em; }
.trust-list li { display: flex; gap: .65em; align-items: flex-start; font-size: 1.02rem; }
.trust-list .ck { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--primary); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--muted); font-size: .92rem; margin-top: 1.1em; display: flex; gap: .5em; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 1.4em; color: var(--muted); font-size: .88rem; }
.badges span { display: inline-flex; align-items: center; gap: .4em; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { order: 1; }
  .funnel-shell { order: 2; }
  .hero .lede { max-width: 52ch; }
}

/* ---------- Funnel-Karte ---------------------------------------------------- */
.funnel-shell { position: relative; }
.funnel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: sticky; top: 84px;
}
@media (max-width: 880px) { .funnel-card { position: static; } }
.funnel-top { padding: 18px 22px 0; }
.funnel-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.funnel-kicker .title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.funnel-kicker .free { font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--primary-50); padding: .3em .7em; border-radius: 999px; }
.progress { height: 7px; background: var(--primary-50); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0%; background: var(--primary); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.progress-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; }

.funnel-body { padding: 16px 22px 22px; }
.step { display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h3 { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.16rem; margin-bottom: .2em; line-height: 1.25; }
.step .hint { color: var(--muted); font-size: .92rem; margin: 0 0 1.1em; }

/* Auswahl-Karten */
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .options.cols-2 { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: .8em; width: 100%; text-align: left;
  padding: 1em 1.05em; border: 1.5px solid var(--line); background: #fff;
  border-radius: var(--radius); cursor: pointer; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s; font-weight: 500;
}
.opt:hover { border-color: var(--primary-100); background: var(--primary-50); }
.opt.selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(46,94,78,.12); }
.opt .ic { flex: 0 0 auto; width: 26px; height: 26px; color: var(--primary); }
.opt .ck-pill { margin-left: auto; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; }
.opt.selected .ck-pill { background: var(--primary); border-color: var(--primary); }
.opt.selected .ck-pill svg { color: #fff; width: 13px; height: 13px; }
.opt:not(.selected) .ck-pill svg { display: none; }
.opt.multi { } /* Mehrfachauswahl visuell identisch */

/* Felder */
.fields { display: grid; gap: 14px; }
.fields.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .fields.cols-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35em; }
.field.col-span { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .opt-tag { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field .req-tag { font-weight: 600; color: var(--primary); font-size: .82rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8em .9em; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,94,78,.14);
}
.field .err { color: var(--danger); font-size: .82rem; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.microcopy { font-size: .85rem; color: var(--muted); display: flex; gap: .5em; align-items: flex-start; margin-top: 2px; }
.microcopy svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--primary); }

/* Consent */
.consent { display: grid; gap: 12px; margin-top: 4px; }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .88rem; color: var(--text); line-height: 1.45; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 22px; height: 22px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; position: relative; margin-top: 1px; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.check.req .star { color: var(--danger); }

/* Funnel-Navigation */
.funnel-nav { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.funnel-nav .btn-primary { flex: 1; }
.back-link { background: none; border: none; color: var(--muted); font-size: .92rem; cursor: pointer; padding: .6em .2em; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.step-secure { display: flex; align-items: center; gap: .5em; justify-content: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }
.step-secure svg { width: 15px; height: 15px; }

/* Preparing / Loading */
.preparing { text-align: center; padding: 14px 0 6px; }
.spinner { width: 46px; height: 46px; margin: 6px auto 18px; border-radius: 999px; border: 4px solid var(--primary-50); border-top-color: var(--primary); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prep-steps { list-style: none; padding: 0; margin: 16px auto 0; max-width: 320px; text-align: left; display: grid; gap: 10px; }
.prep-steps li { display: flex; gap: .6em; align-items: center; color: var(--muted); font-size: .95rem; opacity: .35; transition: opacity .4s; }
.prep-steps li.on { opacity: 1; color: var(--text); }
.prep-steps li .ck { width: 18px; height: 18px; color: var(--primary); flex: 0 0 auto; }

/* Ergebnis im Funnel (vor Danke-Seite, falls inline) */
.result-band { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.result-band .cat { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }

/* ---------- Generische Karten / Grids -------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
}
.card .ic-box { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic-box svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .35em; font-family: var(--sans); font-weight: 700; font-size: 1.12rem; }
.card p { margin: 0; color: var(--text); font-size: .98rem; }

/* Schritte 1-2-3 */
.steps3 { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 .s { position: relative; padding-top: 8px; }
.steps3 .num { width: 44px; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; margin-bottom: 14px; }
.steps3 h3 { font-family: var(--sans); font-size: 1.1rem; }
.steps3 p { color: var(--text); margin: 0; }

/* "Für welche Immobilien" Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: .55em; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .7em 1.15em; font-weight: 500; color: var(--ink); font-size: .98rem; }
.chip svg { width: 19px; height: 19px; color: var(--primary); }

/* Ergebnis-Liste (Was Sie erhalten) */
.deliver { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .deliver { grid-template-columns: 1fr; } }
.deliver-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.deliver-list li { display: flex; gap: .8em; align-items: flex-start; }
.deliver-list .ck { flex: 0 0 auto; width: 24px; height: 24px; color: var(--primary); margin-top: 1px; }
.deliver-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px,3vw,32px); }
.deliver-card .mini-head { display: flex; align-items: center; gap: .7em; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.deliver-card .mini-head .mark { width: 34px; height: 34px; }
.spanbar { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #A7F3D0 0%, var(--primary) 100%); margin: 6px 0 8px; }
.spanbar-wrap .lbl { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.deliver-card .blur-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }

/* Service-Gebiet */
.area-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px,4vw,48px); align-items: center; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.area-list .place { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8em 1em; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5em; }
.area-list .place svg { width: 17px; height: 17px; color: var(--gold); }
.map-card { aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card .map-badge { position: absolute; left: 12px; top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.map-card .map-badge svg { width: 14px; height: 14px; color: var(--primary); }

/* Trust-Sektion */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 680px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: .85em; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.trust-item .ck { flex: 0 0 auto; width: 24px; height: 24px; color: var(--primary); margin-top: 2px; }
.trust-item b { color: var(--ink); display: block; margin-bottom: 2px; }
.trust-item span { font-size: .94rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 18px 4px; font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .2s; }
.faq summary .pm::before { left: 4px; right: 4px; top: 11px; height: 2px; }
.faq summary .pm::after { top: 4px; bottom: 4px; left: 11px; width: 2px; }
.faq details[open] summary .pm::after { transform: scaleY(0); }
.faq details > div { padding: 0 4px 20px; color: var(--text); max-width: 70ch; }

/* CTA-Band */
.cta-band { text-align: center; }
.cta-band .inner { background: linear-gradient(135deg, #0F1D2E 0%, #113B2E 100%); color: #E2E8F0; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #B9C4D0; max-width: 52ch; margin-inline: auto 0; margin: 0 auto 1.6em; }
.cta-band .btn-primary { background: var(--primary); color: #fff; }
.cta-band .btn-primary:hover { background: var(--primary-d); }

/* ---------- Footer ---------------------------------------------------------- */
.site-footer { background: #0F1D2E; color: #9FB0C1; padding-block: clamp(40px, 5vw, 64px) 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9FB0C1; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #22354A; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #7288A0; font-size: .82rem; }
.disclaimer { color: #7288A0; font-size: .82rem; max-width: 60ch; margin-top: 10px; }

/* ---------- Cookie-Banner --------------------------------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px; display: none;
}
.cookie.show { display: block; animation: fade .3s ease; }
.cookie p { font-size: .9rem; margin: 0 0 14px; color: var(--text); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { padding: .7em 1.1em; font-size: .92rem; }
.cookie a { text-decoration: underline; }

/* ---------- Danke-Seite ----------------------------------------------------- */
.thanks-hero { padding-block: clamp(40px,6vw,80px); }
.thanks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items: start; }
@media (max-width: 900px) { .thanks-grid { grid-template-columns: 1fr; } }
.thanks-badge { display: inline-flex; align-items: center; gap: .6em; background: var(--primary-50); color: var(--primary); font-weight: 600; padding: .5em 1em; border-radius: 999px; font-size: .9rem; margin-bottom: 18px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px,3vw,30px); }
.summary-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .95rem; }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.cal-embed { min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal-placeholder { display: grid; place-items: center; text-align: center; padding: 40px 24px; color: var(--muted); min-height: 360px; }

/* ---------- Utilities ------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Orts-Hero-Bild (Wiedererkennung, generiert) ---------------- */
.hero-media{position:relative;margin:16px 0 4px;border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(20,40,30,.16)}
.hero-media img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;background:#e8ece9}
.hero-media-ort{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.94);color:#1c2b24;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.hero-media-ort svg{color:var(--primary, #2E5E4E)}
@media (max-width:720px){.hero-media{margin:12px 0 2px}.hero-media img{aspect-ratio:16/8}}
.hero-copy h1{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}

/* ---------------- Partner-Empfehlung (Danke-Seite) ---------------- */
.partner-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:clamp(20px,3vw,28px);position:relative}
.partner-rank{display:inline-flex;align-items:center;gap:.5em;background:var(--primary);color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:.45em 1em;border-radius:999px;margin-bottom:14px}
.partner-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-bottom:12px}
.partner-name{font-size:1.5rem;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.partner-stars{color:#F59E0B;font-size:1rem;font-weight:700}
.partner-stars b{color:var(--ink)}
.partner-stars span{color:var(--muted);font-weight:500;font-size:.88rem}
.partner-facts{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:10px}
.partner-facts li{display:flex;gap:.65em;align-items:flex-start;font-size:.97rem}
.partner-facts .ck{flex:0 0 auto;width:20px;height:20px;color:var(--primary);margin-top:2px}
.partner-avail{display:flex;align-items:center;gap:.55em;font-size:.9rem;font-weight:600;color:var(--ink);background:var(--primary-50);border:1px solid var(--primary-100);border-radius:var(--radius-sm);padding:.7em 1em;margin-bottom:16px}
.partner-avail .dot{width:9px;height:9px;border-radius:999px;background:var(--primary);box-shadow:0 0 0 3px rgba(5,150,105,.2);flex:0 0 auto}

/* ---------------- Slider-Schritte (Funnel) ---------------- */
.slider-wrap{padding:6px 2px 2px}
.slider-bubble{display:inline-block;background:var(--ink);color:#fff;font-weight:700;font-size:.95rem;padding:.35em .9em;border-radius:999px;margin-bottom:10px}
.slider-wrap input[type=range]{width:100%;appearance:none;-webkit-appearance:none;height:8px;border-radius:999px;background:var(--primary-100);outline:none;margin:6px 0 4px}
.slider-wrap input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:26px;height:26px;border-radius:999px;background:var(--primary);border:3px solid #fff;box-shadow:0 2px 8px rgba(15,29,46,.25);cursor:pointer}
.slider-wrap input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:999px;background:var(--primary);border:3px solid #fff;box-shadow:0 2px 8px rgba(15,29,46,.25);cursor:pointer}
.slider-scale{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted);margin-bottom:14px}
.slider-exact{display:flex;align-items:center;gap:10px;font-size:.9rem;color:var(--muted)}
.slider-exact input{width:110px;font-size:1rem;color:var(--ink);border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:.55em .7em}
.slider-exact input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(5,150,105,.14)}

/* Anrede-Chips im Kontakt-Schritt */
.anrede-row{margin-bottom:14px}
.anrede-row .options{grid-template-columns:1fr 1fr}

/* ---------------- Vollbild-Hero mit Ortsbild als Hintergrund ---------------- */
.hero.hero-bg{min-height:calc(100vh - 66px);display:flex;align-items:center}
.hero.hero-bg::after{content:"";position:absolute;inset:0;z-index:0;background-image:var(--hero-bg);background-size:cover;background-position:center}
.hero.hero-bg::before{z-index:1;background:linear-gradient(100deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.72) 58%,rgba(248,250,252,.42) 100%)}
.hero.hero-bg .container{position:relative;z-index:2}
.hero-ort-badge{position:absolute;top:14px;right:0;z-index:3;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.95);border:1px solid var(--line);color:var(--ink);padding:6px 14px;border-radius:999px;font-size:.88rem;font-weight:700;box-shadow:var(--shadow-sm)}
.hero-ort-badge svg{width:15px;height:15px;color:var(--primary)}
.hero-trust-inline{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--muted);font-size:.9rem;margin-top:1.2em}
.hero-trust-inline span{display:inline-flex;align-items:center;gap:.45em;font-weight:600;color:var(--text)}
.hero-trust-inline svg{width:17px;height:17px;color:var(--primary)}
@media (max-width:880px){
  .hero.hero-bg{min-height:0}
  .hero.hero-bg::before{background:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.9) 100%)}
}

/* ===== Kontakt-Split, SMS-Verifizierung, Bewertungs-Teaser ===== */
.teaser-card { background:#f0fdf6; border:1px solid #bbf0d5; border-radius:12px; padding:16px 18px; margin-bottom:18px; }
.teaser-head { font-weight:700; color:var(--primary-ink,#065f46); font-size:.95rem; text-align:center; }
.teaser-track { height:8px; border-radius:99px; background:#d7f2e4; margin:12px 8px 10px; overflow:hidden; }
.teaser-track span { display:block; height:100%; width:86%; border-radius:99px; background:var(--primary,#059669); }
.teaser-vals { display:flex; justify-content:space-between; gap:10px; }
.teaser-pill { background:var(--primary,#059669); color:#fff; border-radius:8px; padding:6px 12px; font-size:.95rem; position:relative; }
.teaser-pill b { filter: blur(3.5px); opacity:.9; user-select:none; letter-spacing:1px; }
.click-consent { display:block; margin-top:14px; font-size:.78rem; line-height:1.5; color:var(--muted,#5b6b63); }
.click-consent a { color:inherit; text-decoration:underline; }

.tel-row { display:flex; align-items:stretch; max-width:420px; margin:6px auto 0; border:1.5px solid var(--line,#d8e2dc); border-radius:12px; overflow:hidden; background:#fff; }
.tel-row:focus-within { border-color:var(--primary,#059669); box-shadow:0 0 0 3px rgba(5,150,105,.12); }
.tel-prefix { display:flex; align-items:center; padding:0 12px; background:#f4f7f5; border-right:1px solid var(--line,#d8e2dc); font-weight:600; white-space:nowrap; }
.tel-row input { flex:1; border:0; outline:0; padding:14px 14px; font-size:1.05rem; min-width:0; }

.code-sent { text-align:center; margin-bottom:14px; }
.code-row { display:flex; justify-content:center; gap:10px; }
.code-box { width:48px; height:56px; text-align:center; font-size:1.5rem; font-weight:700; border:1.5px solid var(--line,#d8e2dc); border-radius:10px; background:#fff; }
.code-box:focus { border-color:var(--primary,#059669); outline:0; box-shadow:0 0 0 3px rgba(5,150,105,.12); }
.code-resend { text-align:center; margin-top:16px; color:var(--muted,#5b6b63); font-size:.9rem; }
.linklike { background:none; border:0; padding:0; color:var(--primary,#059669); font:inherit; text-decoration:underline; cursor:pointer; }
.linklike:disabled { color:var(--muted,#9ab0a5); text-decoration:none; cursor:default; }
.code-skip { margin-top:8px; font-size:.85rem; }

@media (max-width: 480px) {
  .code-box { width:40px; height:50px; font-size:1.3rem; }
}

/* ===== Ergebnis-Seite: Bewertung + Partner-Logo ===== */
.valuation-card { background:#fff; border:1px solid var(--line,#d8e2dc); border-radius:14px; padding:22px 24px; text-align:center; margin-bottom:22px; box-shadow:0 6px 24px rgba(6,40,26,.06); }
.valuation-card .vlabel { font-weight:700; font-size:1rem; margin-bottom:6px; }
.valuation-card .vrange { font-size:clamp(1.6rem, 4.5vw, 2.2rem); font-weight:800; color:var(--primary,#059669); letter-spacing:-.5px; }
.valuation-card .vnote { color:var(--muted,#5b6b63); font-size:.82rem; margin-top:8px; }
.partner-logo { display:block; max-width:200px; max-height:44px; width:auto; height:auto; margin-bottom:12px; }

/* Mobil: Orts-Badge in den Textfluss statt absolut (überlappte die Eyebrow) */
@media (max-width: 760px) {
  .hero-ort-badge { position: static; margin-bottom: 12px; }
}

/* Cookie-Banner mobil kompakt halten (verdeckte sonst den Funnel-Start) */
@media (max-width: 640px) {
  .cookie { padding: 14px 16px; }
  .cookie p { font-size: .8rem; margin-bottom: 10px; line-height: 1.45; }
  .cookie .btn { padding: .55em .9em; font-size: .85rem; }
}

/* ===== Mobile-Hero-Fix 17.07.: Bild sichtbar + keine ausbrechende Headline ===== */
html, body { overflow-x: hidden; }

@media (max-width: 880px) {
  /* Ortsbild als sichtbarer Streifen oben (statt komplett überdeckt) */
  .hero.hero-bg { padding-top: 190px; }
  .hero.hero-bg::after { background-position: center 58%; }
  .hero.hero-bg::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.08) 110px,
      rgba(255,255,255,.85) 185px,
      rgba(255,255,255,.97) 230px,
      #fff 100%);
  }
  /* Badge sitzt auf dem Bild (Container beginnt erst nach dem Bildstreifen) */
  .hero.hero-bg .hero-ort-badge { position: absolute; top: -172px; left: 0; right: auto; margin: 0; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(1.65rem, 7.2vw, 2.05rem); }
  .hero.hero-bg .hero-ort-badge { top: -147px; }
  .hero-copy h1 { overflow-wrap: anywhere; }
  .hero.hero-bg { padding-top: 165px; }
  .hero.hero-bg::before {
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.08) 95px,
      rgba(255,255,255,.85) 160px,
      rgba(255,255,255,.97) 205px,
      #fff 100%);
  }
}

/* Grid-Kinder dürfen schrumpfen (verhindert Overflow bei schmalen Viewports) */
.opt, .funnel-shell, .hero-copy, .funnel-card { min-width: 0; }
/* [hidden] gewinnt immer gegen display:inline-flex (leerer Pin-Badge auf Seiten ohne Ort) */
.hero-ort-badge[hidden] { display: none !important; }

/* ===== Mobil: Ortsbild als klarer Foto-Streifen (voller Kontrast, Badge drauf) ===== */
.hero-photo { display: none; }
@media (max-width: 880px) {
  .hero.hero-bg { padding-top: 0; display: block; }
  .hero.hero-bg::after, .hero.hero-bg::before { display: none; }
  .hero.hero-bg .hero-ort-badge { display: none; }
  .hero-photo { display: block; height: 195px; position: relative; background-size: cover; background-position: center; }
  .hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9)); }
  .hero-photo-badge { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.96); border: 1px solid var(--line); color: var(--ink); padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 700; box-shadow: var(--shadow-sm); }
  .hero-photo-badge svg { width: 15px; height: 15px; color: var(--primary); }
}
@media (max-width: 520px) {
  .hero.hero-bg { padding-top: 0; }
  .hero-photo { height: 165px; }
}

/* Adress-Kartenvorschau im Lage-Schritt */
.addr-preview { margin-top: 16px; }
.addr-preview iframe { width: 100%; height: 210px; border: 0; border-radius: 12px; display: block; }

/* ===== Preisskala auf der Ergebnis-Seite (Ø bei 1/3, Key & Castle bei 2/3) ===== */
.price-scale { margin: 20px 0 6px; text-align: left; }
.ps-track { position: relative; height: 12px; border-radius: 99px; margin: 10px 2px;
  background: linear-gradient(90deg, #d7f2e4 0%, #7fd3ab 55%, var(--primary, #059669) 100%); }
.ps-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.ps-marker.ps-avg { left: 33.3%; }
.ps-marker.ps-kc { left: 66.6%; }
.ps-dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid #9ab0a5; box-shadow: 0 1px 4px rgba(6,40,26,.25); }
.ps-marker.ps-kc .ps-dot { border-color: var(--primary, #059669); width: 24px; height: 24px; }
.ps-ends { display: flex; justify-content: space-between; color: var(--muted, #5b6b63); font-size: .78rem; margin: 2px 2px 0; }
.ps-callout { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted, #5b6b63); margin: 6px 0; }
.ps-callout b { font-size: 1rem; color: var(--ink, #0f1d2e); white-space: nowrap; }
.ps-callout-kc { justify-content: flex-end; text-align: right; color: var(--primary-ink, #065f46); font-weight: 600; }
.ps-callout-kc b { color: var(--primary, #059669); font-size: 1.15rem; }
.ps-callout-avg { justify-content: flex-start; padding-left: 2px; }

/* ===== Form-Feinschliff 19.07.: Badge nie über der Karte, Optionen ohne Overflow ===== */
/* Orts-Badge immer im Textfluss — absolut positioniert kollidierte er auf Foto-Seiten mit der Funnel-Karte */
.hero-ort-badge { position: static !important; top: auto !important; right: auto !important; margin: 0 0 12px; }
@media (max-width: 880px) { .hero.hero-bg .hero-ort-badge { display: none !important; } }
/* Options-Label darf schrumpfen und trennen — der Auswahl-Kreis bleibt immer im Button */
.opt > span:not(.ck-pill) { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
/* Zwei Spalten erst, wenn auch lange Wörter wie „Doppelhaushälfte" sicher passen */
@media (max-width: 560px) { .options.cols-2 { grid-template-columns: 1fr; } }
