/* =========================================================
   immobreeze – Warteliste-Landingpage
   Design: "Vorschlag D – Studio (neue Farben)"
   Farben kommen aus /assets/immobreeze-tokens.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ib-bg);
  color: var(--ib-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ib-stone); text-decoration: none; }
a:hover { color: var(--ib-stone-dark); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font-family: inherit; }

h1, h2, h3 { color: var(--ib-text); }

/* ---------- Hilfsklassen ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 840px; }

.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;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ib-shadow); color: var(--ib-text-invert);
  padding: 12px 20px; border-radius: 0 0 var(--ib-radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--ib-text-invert); }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--ib-stone);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700;
  padding: 15px 24px; border-radius: var(--ib-radius-sm);
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap; text-align: center;
}
.btn--dark   { background: var(--ib-shadow); color: var(--ib-text-invert); }
.btn--dark:hover  { background: #1E2425; color: var(--ib-text-invert); transform: translateY(-1px); }
.btn--accent { background: var(--ib-autumn); color: var(--ib-text-invert); }
.btn--accent:hover { background: #622C1F; color: var(--ib-text-invert); transform: translateY(-1px); }
.btn--pill   { border-radius: var(--ib-radius-pill); }
.btn--sm     { padding: 11px 20px; font-size: 14px; border-radius: var(--ib-radius-pill); }
.btn--lg     { padding: 16px 28px; }
.btn--block  { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; }

.site-header__inner {
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ib-text); line-height: 1;
}
.brand:hover { color: var(--ib-text); }
.brand__mark { flex: none; }
.brand__text span { color: var(--ib-stone); }
.brand--sm { font-size: 26px; gap: 12px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14px; font-weight: 600; color: var(--ib-text-muted);
}
.site-nav a:hover { color: var(--ib-text); }
.site-nav .btn { color: var(--ib-text-invert); }

.burger {
  display: none; width: 44px; height: 40px; flex: none;
  background: transparent; border: 1px solid var(--ib-border-strong);
  border-radius: var(--ib-radius-sm); padding: 10px 9px;
}
.burger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--ib-text); transition: transform .2s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column; gap: 4px;
  margin: 14px 32px 0; padding: 14px;
  background: var(--ib-surface); border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-md); box-shadow: var(--ib-shadow-md);
}
.drawer.is-open { display: flex; }
.drawer a {
  padding: 12px 14px; border-radius: var(--ib-radius-sm);
  font-size: 15px; font-weight: 600; color: var(--ib-text-muted);
}
.drawer a:hover { background: var(--ib-bg); color: var(--ib-text); }
.drawer .btn { margin-top: 6px; color: var(--ib-text-invert); }
.drawer .btn:hover { background: #1E2425; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--hero { padding: 64px 0 0; }
.section--flush { padding-top: 0; }

.section-hd { max-width: 38em; margin: 0 auto; text-align: center; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ib-stone);
}

.section-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.15;
  margin: 14px 0 0; text-wrap: balance;
}
.section-title--left { text-align: left; margin: 0 0 28px; }

.section-sub {
  font-size: 16.5px; line-height: 1.65; color: var(--ib-text-muted);
  margin: 14px auto 0; max-width: 44em;
}

/* ---------- Hero ---------- */
.hero-card {
  position: relative; overflow: hidden;
  background: var(--ib-stone);
  border-radius: var(--ib-radius-lg);
  padding: 72px 64px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero-card__blob {
  position: absolute; right: -60px; bottom: -90px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(144, 175, 197, .28);
}
.hero-card__text { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--ib-radius-pill);
}
.pill--accent { background: var(--ib-autumn); color: var(--ib-text-invert); }

.hero-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.01em;
  margin: 24px 0 0; color: var(--ib-text-invert); text-wrap: balance;
}

.hero-lead {
  font-size: 17.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  margin: 20px 0 0; max-width: 36em;
}
.hero-lead strong { color: #FFF; }

.social-proof {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .86);
}
.social-proof strong { color: #FFF; }
.social-proof__dots { display: flex; flex: none; }
.social-proof__dots span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ib-stone);
}
.social-proof__dots span:nth-child(1) { background: var(--ib-autumn); }
.social-proof__dots span:nth-child(2) { background: var(--ib-bg);     margin-left: -10px; }
.social-proof__dots span:nth-child(3) { background: var(--ib-shadow); margin-left: -10px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .82);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before {
  content: '✓'; font-weight: 700; color: var(--ib-mist);
}

/* ---------- Signup-Karte ---------- */
.signup {
  position: relative;
  background: var(--ib-bg);
  border-radius: var(--ib-radius-md);
  padding: 28px;
  box-shadow: var(--ib-shadow-lg);
}
.signup__label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ib-text-subtle); margin-bottom: 14px;
}
.signup__form { display: flex; flex-direction: column; gap: 10px; }
.signup__form input[type="text"]:not(.hp),
.signup__form input[type="email"] {
  width: 100%; padding: 15px 16px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ib-text);
  background: var(--ib-surface);
  border: 1px solid var(--ib-border); border-radius: var(--ib-radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.signup__form input::placeholder { color: var(--ib-text-subtle); }
.signup__form input:focus {
  border-color: var(--ib-stone);
  box-shadow: 0 0 0 3px rgba(51, 107, 135, .16);
}
.signup__form input.is-error {
  border-color: var(--ib-danger);
  box-shadow: 0 0 0 3px rgba(162, 64, 44, .14);
}

/* Einwilligung (Art. 6 Abs. 1 lit. a DSGVO) */
.consent {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 4px 0 2px; cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex: none;
  accent-color: var(--ib-stone); cursor: pointer;
}
.consent__text { font-size: 12.5px; line-height: 1.5; color: var(--ib-text-muted); }
.consent__text a { text-decoration: underline; }
.consent.is-error .consent__text { color: var(--ib-danger); }
.consent.is-error input[type="checkbox"] { outline: 2px solid var(--ib-danger); outline-offset: 2px; }

.signup__status {
  font-size: 13.5px; font-weight: 600; line-height: 1.5;
  margin: 12px 0 0; min-height: 1px;
}
.signup__status.is-success { color: var(--ib-success); }
.signup__status.is-error   { color: var(--ib-danger); }

.signup__note {
  font-size: 12.5px; line-height: 1.55; color: var(--ib-text-subtle);
  margin: 12px 0 0; text-align: center;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
.feature {
  border-radius: var(--ib-radius-md); padding: 32px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--ib-shadow-md); }
.feature--plain       { background: var(--ib-surface); }
.feature--tint        { background: var(--ib-surface-2); }
.feature--tint-strong { background: var(--ib-surface-3); }

.feature__no {
  width: 42px; height: 42px; border-radius: var(--ib-radius-sm);
  background: rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: var(--ib-text);
}
.feature--plain .feature__no { background: var(--ib-bg); }
.feature h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.feature p  { font-size: 14.5px; line-height: 1.6; color: var(--ib-text-2); }

/* ---------- CTA ---------- */
.cta {
  background: var(--ib-shadow);
  border-radius: var(--ib-radius-lg);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2;
  color: var(--ib-text-invert);
}
.cta__sub { font-size: 16px; color: rgba(255, 255, 255, .66); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: var(--ib-surface);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  padding: 22px 26px;
}
.faq__item[open] { border-color: var(--ib-border-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; color: var(--ib-text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item .plus {
  flex: none; font-size: 22px; line-height: 1; color: var(--ib-stone);
  transition: transform .2s ease;
}
.faq__item[open] .plus { transform: rotate(45deg); }
.faq__item p {
  font-size: 15px; line-height: 1.65; color: var(--ib-text-muted);
  margin: 14px 0 0; max-width: 62ch;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ib-footer); margin-top: 88px; }
.site-footer__inner {
  padding-top: 48px; padding-bottom: 32px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.site-footer__claim {
  font-size: 14px; color: var(--ib-text-muted);
  margin-top: 8px; max-width: 32ch;
}
.site-footer__links { display: flex; gap: 18px; font-size: 14px; }
.site-footer__links a { color: var(--ib-text-muted); }
.site-footer__links a:hover { color: var(--ib-text); }
.site-footer__bottom {
  padding-bottom: 36px; font-size: 13px; color: var(--ib-text-subtle);
}

/* ---------- Rechtsseiten (Datenschutz, Impressum) ---------- */
.legal { padding: 56px 0 88px; }
.legal__back { font-size: 14px; font-weight: 600; color: var(--ib-text-muted); }
.legal__meta { font-size: 15px; color: var(--ib-text-subtle); margin-top: 12px; }

.legal__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 14px 0 0;
}

.legal__body {
  background: var(--ib-surface); border-radius: var(--ib-radius-md);
  padding: 40px; margin-top: 36px;
  display: flex; flex-direction: column; gap: 34px;
}
.legal__body section { display: flex; flex-direction: column; gap: 10px; }
.legal__body h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 24px; line-height: 1.25;
}
.legal__body p { font-size: 15.5px; line-height: 1.7; color: var(--ib-text-2); }
.legal__body a { text-decoration: underline; }

.legal__nav { display: flex; gap: 18px; font-size: 14px; margin-top: 28px; }
.legal__nav a { color: var(--ib-text-muted); }
.legal__nav a:hover { color: var(--ib-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-card { grid-template-columns: 1fr; gap: 36px; padding: 56px 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .burger { display: block; }
  .brand { font-size: 27px; gap: 11px; }
  .brand__mark { width: 44px; height: 44px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .drawer { margin-left: 20px; margin-right: 20px; }
  .section { padding: 64px 0; }
  .section--hero { padding: 36px 0 0; }
  .hero-card { padding: 40px 24px; border-radius: var(--ib-radius-md); }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .feature { padding: 26px; }
  .cta { padding: 36px 26px; }
  .cta .btn { width: 100%; }
  .faq__item { padding: 18px 20px; }
  .faq__item summary { font-size: 16px; }
  .site-footer { margin-top: 64px; }
  .legal { padding: 36px 0 64px; }
  .legal__body { padding: 26px; border-radius: var(--ib-radius-sm); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
