/* ImmoWert-Check — white-label Eigentümer-Lead-Maschine
   Aesthetic: premium limestone + deep pine + brass. Fonts: Prata / Schibsted Grotesk. */

:root {
  --brand: #0e3b2e;            /* deep pine — overridable per Makler via BRAND config */
  --brand-soft: #16543f;
  --brand-tint: #e7efe9;
  --brass: #b9892f;
  --brass-soft: #f5ead2;
  --paper: #f5f2ea;
  --card: #fffefb;
  --ink: #182420;
  --ink-soft: #46544d;
  --ink-faint: #7d897f;
  --line: #ddd6c6;
  --ok: #1f7a4d;
  --err: #b3402f;
  --radius: 16px;
  --shadow: 0 18px 50px -18px rgba(14, 59, 46, .25);
  --serif: 'Prata', serif;
  --sans: 'Schibsted Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px;
}
.muted { color: var(--ink-soft); }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
nav.scrolled { background: rgba(245, 242, 234, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px;
}
.logo .name { font-weight: 700; font-size: 17px; line-height: 1.15; }
.logo .claim { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang-switch button {
  border: 0; background: transparent; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; cursor: pointer; color: var(--ink-faint); transition: all .25s;
}
.lang-switch button.active { background: var(--brand); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
  box-shadow: 0 10px 24px -10px rgba(14,59,46,.5);
}
.btn:hover { transform: translateY(-2px); background: var(--brand-soft); box-shadow: 0 16px 32px -12px rgba(14,59,46,.55); }
.btn.brass { background: var(--brass); box-shadow: 0 10px 24px -10px rgba(185,137,47,.55); }
.btn.brass:hover { background: #a77b26; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.nav-cta { display: none; }
@media (min-width: 760px) { .nav-cta { display: inline-flex; padding: 10px 20px; font-size: 14px; } }

/* ---------- Hero ---------- */
header.hero {
  position: relative; padding: 150px 0 90px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(185,137,47,.14), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(14,59,46,.10), transparent 60%),
    var(--paper);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-orb.o1 { width: 380px; height: 380px; background: rgba(185,137,47,.22); top: -120px; right: 8%; }
.hero-orb.o2 { width: 300px; height: 300px; background: rgba(14,59,46,.18); bottom: -80px; left: -60px; animation-delay: -6s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.1; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .sub { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin-bottom: 28px; }
.hero-points { list-style: none; display: grid; gap: 11px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.hero-points .tick {
  flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- Wizard card ---------- */
.wizard {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 30px 30px 26px; position: relative; overflow: hidden;
}
.wizard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brass));
}
.wiz-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wiz-title { font-weight: 700; font-size: 18px; }
.wiz-step-label { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.progress { height: 6px; background: var(--brand-tint); border-radius: 999px; overflow: hidden; margin: 10px 0 22px; }
.progress .bar { height: 100%; width: 20%; background: linear-gradient(90deg, var(--brand), var(--brass)); border-radius: 999px; transition: width .5s cubic-bezier(.22,1,.36,1); }

.step { display: none; animation: stepIn .45s cubic-bezier(.22,1,.36,1); }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: 19px; margin-bottom: 16px; font-weight: 700; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 18px 14px; text-align: center; cursor: pointer; font-family: var(--sans);
  transition: all .22s ease;
}
.tile .ico { font-size: 26px; display: block; margin-bottom: 7px; }
.tile .lbl { font-size: 14.5px; font-weight: 700; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }

.f-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.f-row.single { grid-template-columns: 1fr; }
.field-g { display: flex; flex-direction: column; gap: 6px; }
.field-g label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field-g input, .field-g select {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field-g input:focus, .field-g select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14,59,46,.10);
}
.field-g.invalid input, .field-g.invalid select { border-color: var(--err); }
.f-err { font-size: 12.5px; color: var(--err); min-height: 17px; margin-top: 6px; }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: all .2s; background: #fff;
}
.radio-card:hover { border-color: var(--brand); }
.radio-card.selected { border-color: var(--brand); background: var(--brand-tint); }
.radio-card .dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 18px;
  transition: all .2s; position: relative;
}
.radio-card.selected .dot { border-color: var(--brand); }
.radio-card.selected .dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand);
}
.radio-card .t { font-size: 14.5px; font-weight: 600; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 12.8px; color: var(--ink-soft); margin-top: 14px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 16px; }

.wiz-nav { display: flex; gap: 12px; margin-top: 22px; }
.wiz-nav .btn { flex: 1; }
.wiz-nav .back {
  flex: 0 0 auto; background: transparent; color: var(--ink-faint); border: 1.5px solid var(--line);
  box-shadow: none; padding: 13px 18px;
}
.wiz-nav .back:hover { color: var(--brand); border-color: var(--brand); background: transparent; transform: none; }

.wiz-success { text-align: center; padding: 26px 6px 12px; display: none; }
.wiz-success.show { display: block; animation: stepIn .5s ease; }
.check-ring {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--brand-tint); display: grid; place-items: center;
}
.check-ring svg { width: 40px; height: 40px; }
.check-ring path {
  stroke: var(--brand); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .2s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.wiz-success h3 { font-size: 21px; margin-bottom: 8px; }
.wiz-success p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
@media (max-width: 759px) { .trust-item:nth-child(2n) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.trust-item .big { font-family: var(--serif); font-size: 24px; color: var(--brand); margin-bottom: 4px; }
.trust-item .sm { font-size: 13px; color: var(--ink-faint); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }

/* Steps */
.steps3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; position: relative; transition: transform .3s ease, box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-card .n {
  font-family: var(--serif); font-size: 54px; color: var(--brand-tint); position: absolute; top: 14px; right: 22px;
  -webkit-text-stroke: 1px var(--brand); line-height: 1;
}
.step-card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-tint);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.step-card h3 { font-size: 19px; margin-bottom: 9px; font-weight: 700; }
.step-card p { font-size: 14.8px; color: var(--ink-soft); }

/* Stats band */
.stats { background: var(--brand); color: #f2f0e8; position: relative; overflow: hidden; }
.stats::after {
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; position: relative; z-index: 1; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; gap: 36px; } }
.stat .v { font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); color: #fff; }
.stat .v .unit { font-size: .55em; color: var(--brass-soft); }
.stat .l { font-size: 14px; color: rgba(242,240,232,.75); margin-top: 6px; }

/* Report preview */
.report-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .report-grid { grid-template-columns: 1fr 1fr; } }
.report-pages { position: relative; height: 380px; }
.rp {
  position: absolute; width: 240px; height: 336px; background: #fff; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: 0 22px 44px -18px rgba(24,36,32,.3);
  padding: 22px 18px; transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.rp.p1 { left: 4%; top: 22px; transform: rotate(-5deg); z-index: 1; }
.rp.p2 { left: 32%; top: 0; transform: rotate(2deg); z-index: 2; }
.report-pages:hover .rp.p1 { transform: rotate(-8deg) translateX(-14px); }
.report-pages:hover .rp.p2 { transform: rotate(4deg) translateY(-8px); }
.rp .rp-brand { width: 34px; height: 8px; background: var(--brass); border-radius: 3px; margin-bottom: 14px; }
.rp .rp-title { height: 13px; background: var(--ink); border-radius: 3px; width: 75%; margin-bottom: 6px; }
.rp .rp-sub { height: 8px; background: var(--line); border-radius: 3px; width: 50%; margin-bottom: 18px; }
.rp .rp-line { height: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 7px; }
.rp .rp-chart { height: 90px; background: linear-gradient(180deg, var(--brand-tint), transparent); border-radius: 6px; margin: 14px 0; position: relative; overflow: hidden; }
.rp .rp-chart::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 12px; height: 2px; background: var(--brand);
  transform: rotate(-9deg); transform-origin: left bottom;
}
.rp .rp-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-tint); border-radius: 4px; padding: 3px 8px;
}
.report-copy ul { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.report-copy li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.report-copy .tick { color: var(--brass); font-weight: 800; }

/* Person / trust */
.person { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.person-grid { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .person-grid { grid-template-columns: .9fr 1.1fr; } }
.person-visual {
  aspect-ratio: 4/4.6; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-soft) 60%, #1d6b50 100%);
  display: grid; place-items: center;
}
.person-visual .initials { font-family: var(--serif); font-size: 96px; color: rgba(255,255,255,.85); }
.person-visual .badge {
  position: absolute; bottom: 18px; left: 18px; right: 18px; background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 13px 16px; font-size: 13px; color: var(--ink-soft);
  backdrop-filter: blur(6px);
}
.person-visual .badge b { display: block; color: var(--ink); font-size: 15px; }
blockquote.testimonial {
  font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink);
  border-left: 3px solid var(--brass); padding-left: 20px; margin: 26px 0 10px; min-height: 96px;
}
.testimonial-meta { font-size: 13.5px; color: var(--ink-faint); padding-left: 23px; }
.testi-dots { display: flex; gap: 8px; padding-left: 23px; margin-top: 18px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: all .3s; }
.testi-dots button.active { background: var(--brass); transform: scale(1.3); }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ink);
  padding: 22px 44px 22px 2px; position: relative;
}
.faq-q::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--brass); transition: transform .3s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.faq-a p { padding: 0 2px 22px; font-size: 15.3px; color: var(--ink-soft); max-width: 660px; }

/* Final CTA */
.final { background: linear-gradient(150deg, var(--brand) 0%, #0a2c22 100%); color: #f2f0e8; text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: rgba(185,137,47,.15); filter: blur(80px); top: -200px; right: -100px;
}
.final h2 { color: #fff; max-width: 640px; margin: 0 auto 16px; }
.final p { color: rgba(242,240,232,.8); max-width: 520px; margin: 0 auto 32px; }

/* Footer */
footer.site { padding: 44px 0 110px; font-size: 13.5px; color: var(--ink-faint); }
@media (min-width: 760px) { footer.site { padding-bottom: 44px; } }
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--brand); }
.demo-note {
  margin-top: 26px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--ink-faint); max-width: 720px;
}

/* Mobile bottom bar */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,254,251,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.bottom-bar .btn { flex: 1; padding: 12px 10px; font-size: 14px; }
@media (min-width: 760px) { .bottom-bar { display: none; } }

/* Legal pages */
.legal { padding: 140px 0 80px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 26px; }
.legal h2 { font-size: 21px; font-family: var(--sans); font-weight: 700; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; } .reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

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