/* Immoblatt · Startseite. Eine klebende 3D-Bühne, darüber scrollen die Kapitel. */
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-Variable.781c0569761e.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #EAEEF3; --ink: #14171E; --ink-2: #3D4350; --muted: #626A79; --line: rgba(20, 23, 30, .1);
  --accent: #C9483C; --accent-ink: #A8382E; --blue: #3F76D8; --glass: rgba(255, 255, 255, .6);
  --display: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --g-a: linear-gradient(120deg, #E95F78 0%, #C94B8C 55%, #8A6CF0 100%);
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 14px; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(234, 238, 243, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand i { width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, #E46A7C, #D04A5E); display: inline-block; }
.nav nav { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .8); }
.nav nav a { padding: 8px 15px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.nav nav a:hover { background: #fff; color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .link { font-weight: 700; font-size: 15px; text-decoration: none; }
.btn { box-shadow: 0 8px 20px rgba(20,23,30,.18); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 700 15px var(--body); text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.big { padding: 16px 26px; font-size: 16.5px; }
.btn.ghost { background: rgba(255, 255, 255, .65); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.ghost:hover { background: #fff; }

/* Bühne */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--bg); transition: opacity .6s; }
.stage canvas, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .poster { object-fit: cover; transition: opacity 1.2s; }
.stage.ready .poster { opacity: 0; }
.stage .scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(234, 238, 243, .78) 0%, rgba(234, 238, 243, .35) 34%, rgba(234, 238, 243, 0) 55%); transition: opacity .6s; }
.stage.dusk .scrim { background: linear-gradient(90deg, rgba(14, 18, 30, .6) 0%, rgba(14, 18, 30, .2) 36%, rgba(14, 18, 30, 0) 58%); }
.labels { position: absolute; inset: 0; pointer-events: none; }
.lab { position: absolute; transform: translate(-50%, -100%); padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 26px rgba(20, 23, 30, .12); font: 600 13px var(--body); white-space: nowrap; opacity: 0; color: var(--ink); }
.lab b { color: var(--accent); } .lab.blue b { color: var(--blue); }
.lab small { display: block; font-weight: 500; color: var(--muted); }

.progress { position: fixed; right: clamp(14px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); z-index: 5; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; transition: opacity .4s; }
.progress li { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 23, 30, .2); font-size: 0; transition: transform .3s, background .3s; }
.progress li.on { background: var(--accent); transform: scale(1.5); }
.dusk-ui .progress li { background: rgba(255, 255, 255, .35); } .dusk-ui .progress li.on { background: #FF8E7E; }

/* Kapitel */
main { position: relative; z-index: 2; }
.film { position: relative; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 120px clamp(20px, 7vw, 110px) 80px; max-width: 760px; }
.chapter > * { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.chapter.away > * { opacity: .0; transform: translateY(26px); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1.0; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 96px); }
h2 { font-size: clamp(36px, 4.6vw, 70px); }
h1 em, h2 em { font-style: normal; background: var(--g-a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* Hero: Preis in einer Zeile, „/ Einheit*“ kleiner und oben bündig mit „1 €“; Knöpfe nebeneinander */
.preiszeile { white-space: nowrap; }
.pro { font-size: .5em; vertical-align: .66em; letter-spacing: -0.02em; }
.nw { white-space: nowrap; }
/* Preis-Kapitel: zwei Zeilen mit „/ Einheit*“ hochgestellt, dazwischen mehr Luft */
#preis { position: relative; }
.preisvergleich { font-size: clamp(30px, min(3.8vw, 8svh), 64px); }
.preisvergleich .zeile { display: block; }
.preisvergleich .zeile + .zeile { margin-top: .35em; }
@media (min-width: 901px) { .hero .ctas { flex-wrap: nowrap; } }
/* Hero passt immer auf einen Bildschirm, damit „* pro Monat“ sichtbar bleibt: alles skaliert mit der Fensterhöhe mit */
.chapter.hero { gap: clamp(8px, 2svh, 18px); padding-top: clamp(76px, 13svh, 120px); padding-bottom: clamp(48px, 9svh, 80px); }
.hero h1 { font-size: clamp(28px, min(6.2vw, 10svh), 96px); }
.hero .eyebrow { font-size: clamp(11px, 1.6svh, 13px); }
.hero .lead { font-size: clamp(14px, min(1.5vw, 2.5svh), 21px); }
.hero .btn.big { padding: clamp(9px, 1.7svh, 16px) clamp(16px, 2.6svh, 26px); font-size: clamp(13.5px, 1.95svh, 16.5px); }
.hero .ctas { margin-top: 0; gap: clamp(8px, 1.4svh, 12px); }
.hero .hint { margin-top: clamp(6px, 3svh, 36px); }
.hero .hint::after { height: clamp(18px, 4svh, 36px); }
.hint { margin: 36px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); animation: drop 2s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; font-size: 18px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.duo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); margin: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; } .dot.red { background: var(--accent); } .dot.blue { background: var(--blue); margin-left: 12px; }
.finale { align-items: flex-start; }
.dusk-ui .chapter.finale h2, .dusk-ui .chapter.finale .eyebrow { color: #fff; }
.finale .btn.frage { margin-top: 18px; max-width: 100%; white-space: normal; text-align: left; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.finale .btn.frage:hover { background: rgba(255, 255, 255, .26); }
body:not(.dusk-ui) .finale .btn.frage { background: rgba(255, 255, 255, .65); color: var(--ink); border-color: transparent; }
.dusk-ui .chapter.finale em { background: linear-gradient(120deg, #FFB067, #FF7AA2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Inhalt nach dem Film */
.after { position: relative; background: #F6F7F9; padding: clamp(80px, 10vw, 140px) clamp(20px, 7vw, 110px); }
.after.alt { background: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; }
.section-title { font-size: clamp(34px, 4.2vw, 60px); margin: 12px 0 48px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 30px; }
.features h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; }
.fi { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--g-a); color: #fff; box-shadow: 0 8px 18px rgba(233,95,120,.3); }
.features > div:nth-child(4n+2) .fi { background: linear-gradient(135deg, #A99BFF, #5BB0F5); box-shadow: 0 8px 18px rgba(124,140,248,.3); }
.features > div:nth-child(4n+3) .fi { background: linear-gradient(135deg, #8EE3C8, #2E9C9A); box-shadow: 0 8px 18px rgba(71,194,166,.3); }
.features > div:nth-child(4n) .fi { background: linear-gradient(135deg, #FFD08A, #F07A5A); box-shadow: 0 8px 18px rgba(255,163,107,.3); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.facts b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border-radius: 20px; padding: 20px 24px; box-shadow: 0 1px 0 var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }
.cta-end { position: relative; padding: clamp(90px, 12vw, 170px) 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px;
  background: radial-gradient(900px 500px at 20% 10%, #F7D9DE, transparent 60%), radial-gradient(800px 600px at 90% 80%, #DCE5FA, transparent 60%), #F1EEF4; }
.cta-end h2 { font-size: clamp(46px, 7vw, 104px); }
.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px clamp(20px, 7vw, 110px); background: #F1EEF4; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; } .foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-cta .link { display: none; }
  h1 { font-size: clamp(30px, 9vw, 38px); }
  .hero h1 { font-size: clamp(24px, min(9vw, 5svh), 38px); }
  .chapter.hero { padding-bottom: calc(clamp(40px, 7svh, 64px) + env(safe-area-inset-bottom, 0px)); }
  .chapter { justify-content: flex-end; padding: 110px 20px calc(48px + env(safe-area-inset-bottom, 0px)); min-height: 100svh; }
  .chapter:not(.hero) > * { position: relative; }
  /* Ganz unten wieder auslaufen lassen, damit zwischen zwei Kapiteln keine harte Kante über die 3D-Szene läuft */
  .chapter { background: linear-gradient(0deg, rgba(234, 238, 243, 0) 0%, rgba(234, 238, 243, .9) 9%, rgba(234, 238, 243, .55) 30%, rgba(234, 238, 243, 0) 48%); }
  .dusk-ui .chapter.finale { background: linear-gradient(0deg, rgba(14, 18, 30, .75), rgba(14, 18, 30, 0) 60%); }
  .stage .scrim { background: linear-gradient(0deg, rgba(234, 238, 243, .5), rgba(234, 238, 243, 0) 50%); }
  .progress { display: none; }
  /* Etiketten außerhalb des Bildes (z. B. Preis-Etiketten) dürfen die Seite nicht verbreitern, sonst lässt sie sich seitlich schieben */
  html, body { overflow-x: clip; }
  .stage, .labels { overflow: hidden; }
  .foot nav { flex-wrap: wrap; gap: 8px 18px; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter > *, .stage, .poster { transition: none !important; }
  .chapter.away > * { opacity: 1; transform: none; }
  .hint::after { animation: none; }
}
.dusk-ui .nav .brand, .dusk-ui .nav-cta .link { color: #F4F6FA; transition: color .4s; }
.dusk-ui .nav-cta .btn { background: #F4F6FA; color: var(--ink); }
.dusk-ui .nav.solid .brand, .dusk-ui .nav.solid .nav-cta .link { color: var(--ink); }

/* Ladebildschirm */
.boot { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 90% at 72% 18%, #F7E8EE 0%, #EAEEF3 58%); transition: opacity .7s ease, visibility 0s .7s; animation: boot-off .7s 22s forwards; }
html.booted .boot { opacity: 0; visibility: hidden; }
/* Beim Neuladen oder Verlassen sofort wieder der Ladebildschirm: Safari zeigt sonst bis zum neuen Seitenaufbau das alte Bild mit dem Haus */
html.verlassen .boot { opacity: 1; visibility: visible; transition: none; animation: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.boot-logo { display: flex; align-items: center; gap: 12px; font: 800 32px var(--display); letter-spacing: -0.035em; color: var(--ink); }
.boot-logo i { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #E46A7C, #D04A5E); color: #D04A5E;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(208, 74, 94, .3); }
.boot-logo i svg { width: 76%; height: 76%; display: block; overflow: visible; }
/* Nur die drei Punkte springen, einer nach dem anderen. */
.boot-logo circle { transform-box: fill-box; transform-origin: center; animation: boot-hop 1.2s cubic-bezier(.3, 0, .3, 1) infinite; }
.boot-logo circle:nth-of-type(2) { animation-delay: .15s; }
.boot-logo circle:nth-of-type(3) { animation-delay: .3s; }
.boot p { margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.boot-bar { width: min(260px, 62vw); height: 4px; border-radius: 4px; background: rgba(20, 23, 30, .08); overflow: hidden; }
.boot-bar span { display: block; height: 100%; background: var(--g-a); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
@keyframes boot-hop { 0%, 50%, 100% { transform: translateY(0); } 22% { transform: translateY(-4px); } }
@keyframes boot-off { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .boot-logo circle { animation: none; } }

/* Preis-Fußnote unten im ersten Bild */
.chapter.hero { position: relative; }
.footnote { position: absolute; left: clamp(20px, 7vw, 110px); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Logo: Sprechblasen-Haus im App-Icon */
.brand i { display: inline-flex; align-items: center; justify-content: center; color: #D04A5E; flex: none; }
.brand i svg { width: 76%; height: 76%; display: block; }
