/* ImmoSocial Berlin | nur Schwarz und Weiß, keine externen Fonts (DSGVO-freundlich) */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.16);
  --thin: "Helvetica Neue", "Segoe UI", "Avenir Next", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--thin);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: #fff; color: #000; }

/* Dezentes graues Licht von oben links, Rand rechts unten */
.light {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(255,255,255,0.11), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255,255,255,0.05), transparent 70%);
}

.topbar, main, .footer { position: relative; z-index: 1; }

/* Header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px clamp(16px, 5vw, 64px);
}
.brand img { display: block; width: 64px; height: 64px; }
.topbar-city { font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }

/* Hero */
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.hero { padding: clamp(56px, 14vh, 150px) 0 clamp(56px, 12vh, 120px); }
.hero.is-compact { padding-bottom: 48px; }
.hero.is-compact #startBtn { display: none; }

.label {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 36px;
  font-size: .72rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 48px; height: 1px; background: var(--fg); opacity: .6; flex: none; }

h1 {
  font-weight: 200;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.sub {
  margin: 0 0 56px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 20px 34px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--fg); border-radius: 0;
  font: 400 .78rem/1 var(--thin);
  letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.btn svg { transition: transform .3s ease; }
.btn:hover { background: var(--fg); color: #000; }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; }
.btn:disabled { opacity: .5; cursor: wait; }

.btn-ghost {
  background: none; border: 0; color: var(--muted); padding: 12px 0;
  font: 400 .72rem var(--thin); letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
}
.btn-ghost:hover { color: var(--fg); }

/* Funnel */
.funnel { padding-bottom: 96px; animation: rise .7s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.card {
  max-width: 680px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}

.progress { height: 1px; background: var(--line); }
.progress-bar { height: 100%; width: 33%; background: var(--fg); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.step-count { margin: 14px 0 36px; font-size: .72rem; letter-spacing: .3em; color: var(--muted); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: none; }
.step.is-active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } }

legend {
  font-weight: 200;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px; padding: 0;
}

.field { display: block; }
.field > span { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg);
  font: 300 1.1rem var(--thin);
  transition: border-color .25s;
}
textarea {
  width: 100%; padding: 12px 0; resize: vertical; min-height: 110px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg); font: 300 1.05rem/1.6 var(--thin);
  transition: border-color .25s;
}
textarea:focus { outline: none; border-bottom-color: var(--fg); }
textarea.invalid { border-bottom-style: dashed; border-bottom-color: rgba(255,255,255,.9); }
.contact-form { margin-top: 28px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.contact-success { margin-top: 24px; padding: 24px; border: 1px solid var(--line); }
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-bottom-color: var(--fg); }
input.invalid { border-bottom-color: rgba(255,255,255,.9); border-bottom-style: dashed; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.grid .full { grid-column: 1 / -1; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center;
  min-height: 84px; padding: 14px;
  background: #000;
  font-size: 1.05rem; font-weight: 300; letter-spacing: .02em;
  transition: background .25s, color .25s;
}
.choice:hover span { background: #111; }
.choice input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: -6px; }
.choice input:checked + span { background: var(--fg); color: #000; }

.consent {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 32px 0 6px; font-size: .8rem; color: var(--muted); line-height: 1.6; cursor: pointer;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  margin: 3px 0 0; width: 16px; height: 16px; flex: none;
  border: 1px solid var(--muted); background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.consent input:checked { background: var(--fg); border-color: var(--fg); }
.consent input:checked::after { content: ""; width: 4px; height: 8px; border: solid #000; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.consent input.invalid { border-color: var(--fg); border-style: dashed; }
.consent a { color: var(--fg); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; }
.actions .btn { padding: 18px 30px; }

.error { display: none; margin: 14px 0 0; font-size: .82rem; color: var(--fg); }
.error.show { display: block; }

.success { padding: 12px 0; animation: fadeIn .6s ease; }
.success h2 { font-weight: 200; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; margin: 0 0 14px; }
.success p { color: var(--muted); max-width: 44ch; margin: 0; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.footer nav { display: flex; gap: 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rechtstexte */
.legal { max-width: 760px; padding: 40px 0 96px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: none; margin-bottom: 40px; }
.legal h2 { font-weight: 300; font-size: 1.25rem; margin: 40px 0 10px; }
.legal p, .legal li { color: rgba(255,255,255,.75); }
.legal .back { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.legal .back:hover { color: var(--fg); }

@media (max-width: 560px) {
  .grid, .choices { grid-template-columns: 1fr; }
  .choice span { min-height: 64px; }
  .hero .btn { width: 100%; padding: 20px 18px; letter-spacing: .14em; gap: 12px; }
  .label { gap: 12px; letter-spacing: .24em; }
  .label::before { width: 28px; }
}

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