/* =========================================================================
   KRAUERHUSEGG – Zentrales Stylesheet
   -------------------------------------------------------------------------
   Aufbau:
     1. Farb-/Schrift-Palette (hier zentral aendern)
     2. Grundlagen / Reset
     3. Kopf (Header + Navigation)
     4. Hero
     5. Allgemeine Sektionen / Typografie
     6. Wohnungsplan (Filter, Schema, Tiles, Liste, Legende)
     7. Karten / Raster (Konzept, Baurecht, Finanzierung, Kontakt)
     8. Modale (Detail + Formular)
     9. Formular
    10. Footer
    11. Responsive (mobil)
   ========================================================================= */

/* 1. PALETTE ============================================================== */
:root {
  --paper:      #F4F1EA;   /* Seitenhintergrund (warmes Papier) */
  --panel:      #FCFBF7;   /* Karten / Eingabefelder */
  --ink:        #23271F;   /* Haupttext (warmes Schwarz) */
  --ink-soft:   #5C6157;   /* Sekundaertext */
  --line:       #DCDACF;   /* Trennlinien / Raender */
  --dark:       #11160D;   /* dunkle Sektionen / Footer */

  --green:        oklch(0.40 0.05 150);  /* Markenton (Buttons, Akzente) */
  --green-bright: oklch(0.58 0.11 150);  /* helleres Gruen */

  /* Status-Farben */
  --st-frei-bg:        oklch(0.58 0.11 150);   --st-frei-fg: #FCFBF7;   --st-frei-bd: oklch(0.50 0.11 150);
  --st-nachrueck-bg:   oklch(0.88 0.14 92);    --st-nachrueck-fg: oklch(0.43 0.10 78);  --st-nachrueck-bd: oklch(0.79 0.15 90);
  --st-reserviert-bg:  oklch(0.95 0.055 56);   --st-reserviert-fg: oklch(0.52 0.13 46); --st-reserviert-bd: oklch(0.82 0.12 54);
  --st-finanziert-bg:  oklch(0.91 0.004 130);  --st-finanziert-fg: oklch(0.50 0.01 130);--st-finanziert-bd: oklch(0.85 0.005 130);

  --serif: 'Spectral', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

/* 2. GRUNDLAGEN =========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: oklch(0.85 0.09 150); color: oklch(0.25 0.03 150); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.section--dark { background: var(--dark); color: #E8E9E0; }
.section--tint { background: oklch(0.96 0.014 145); border-top: 1px solid oklch(0.90 0.012 140); border-bottom: 1px solid oklch(0.90 0.012 140); }

/* 3. HEADER / NAV ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 32px;
  background: rgba(244,241,234,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.88 0.01 120);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: 0.01em; }
.brand__place { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.52 0.04 150); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  text-decoration: none; color: oklch(0.40 0.02 150);
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
}
.nav-link:hover { background: oklch(0.97 0.012 150); }
.nav-link.is-active { color: var(--green); background: oklch(0.95 0.02 150); }
.nav-cta {
  text-decoration: none; color: #fcfbf7; background: var(--green);
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 8px; margin-left: 6px;
}

/* Hamburger-Button – nur auf dem Handy sichtbar */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s, opacity .2s; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 4. HERO ================================================================= */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end; padding: 48px 32px 56px;
  color: var(--paper);
  /* Foto liegt auf dem bestehenden CDN. Fuer rein lokalen Betrieb das Bild
     nach assets/img/ kopieren und die URL auf ../img/bilddrone-roelli2.jpg aendern. */
  background-image:
    linear-gradient(to top, rgba(20,28,16,0.78) 0%, rgba(20,28,16,0.28) 45%, rgba(20,28,16,0.15) 100%),
    url('../img/bilddrone-roelli2.jpg');
  background-size: cover; background-position: center 60%;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__eyebrow { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.86 0.06 150); margin-bottom: 18px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px,6vw,76px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.01em; max-width: 16ch; }
.hero__lead { font-size: clamp(16px,1.6vw,20px); max-width: 54ch; color: rgba(244,241,234,0.9); margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(244,241,234,0.22); }
.hero__stat-num { font-family: var(--serif); font-size: 32px; line-height: 1; }
.hero__stat-lbl { font-size: 13px; color: rgba(244,241,234,0.72); margin-top: 4px; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-block; text-decoration: none; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 10px; border: none; }
.btn--primary { background: var(--green); color: #fcfbf7; }
.btn--bright  { background: var(--green-bright); color: #11160d; }
.btn--ghost   { background: transparent; color: var(--paper); border: 1px solid rgba(244,241,234,0.4); }
.btn--outline { background: transparent; color: oklch(0.34 0.03 150); border: 1px solid var(--line); }

/* 5. SEKTIONEN / TYPO ===================================================== */
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.52 0.06 150); margin-bottom: 14px; }
.section--dark .eyebrow { color: oklch(0.70 0.08 150); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3.6vw,42px); margin: 0 0 18px; line-height: 1.1; letter-spacing: -0.01em; }
.lead { color: var(--ink-soft); font-size: 16px; max-width: 62ch; margin: 0 0 28px; }
.section--dark .lead { color: rgba(232,233,224,0.78); }
.muted { color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col--top { align-items: start; }

/* 6. WOHNUNGSPLAN ========================================================= */
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 8px; }

.filterbar { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 16px; padding: 18px 20px; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 22px 32px; align-items: center; }
.filtergroup { display: flex; flex-direction: column; gap: 8px; }
.filtergroup__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.55 0.02 140); font-weight: 600; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; transition: all .15s; background: var(--panel); color: oklch(0.30 0.02 150); border: 1px solid oklch(0.86 0.01 130); }
.chip:hover { border-color: oklch(0.70 0.04 150); }
.chip.is-active { background: var(--green); color: #fcfbf7; border-color: var(--green); }
.filter-reset { cursor: pointer; align-self: flex-end; margin-left: auto; background: transparent; border: none; color: oklch(0.52 0.04 150); font-family: var(--sans); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 18px; font-size: 13px; color: oklch(0.42 0.02 140); }
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.legend__swatch { width: 13px; height: 13px; border-radius: 4px; }
.legend__count { margin-left: auto; font-weight: 600; color: oklch(0.34 0.03 150); }
.sw-frei       { background: var(--st-frei-bg); }
.sw-nachrueck  { background: var(--st-nachrueck-bg); border: 1px solid var(--st-nachrueck-bd); }
.sw-reserviert { background: var(--st-reserviert-bg); border: 1px solid var(--st-reserviert-bd); }
.sw-finanziert { background: var(--st-finanziert-bg); border: 1px solid var(--st-finanziert-bd); }

.plan-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: start; }

.plan-stage { position: relative; background: linear-gradient(165deg, oklch(0.95 0.02 150), oklch(0.93 0.025 135)); border: 1px solid oklch(0.88 0.012 140); border-radius: 18px; padding: 26px; min-height: 520px; overflow: hidden; }
.plan-toggle { cursor: pointer; background: var(--panel); border: 1px solid oklch(0.86 0.01 130); color: oklch(0.34 0.03 150); font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 10px; }
.plan-toggle:hover { background: oklch(0.97 0.012 150); }

.cluster { margin-bottom: 30px; }
.cluster:last-child { margin-bottom: 0; }
.cluster__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cluster__name { font-family: var(--serif); font-size: 19px; color: oklch(0.32 0.04 150); }
.cluster__rule { height: 1px; flex: 1; background: oklch(0.84 0.02 140); }
.cluster__row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.cluster__row + .cluster__row { margin-top: 14px; }

.building { background: var(--panel); border: 1px solid oklch(0.88 0.01 140); border-radius: 12px; padding: 10px; }
.building--narrow { width: 120px; }
.building--grow { flex: 1; min-width: 230px; }
.building__name { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.55 0.03 150); text-align: center; margin-bottom: 8px; font-weight: 600; }
.building__floor { display: flex; align-items: center; gap: 8px; }
.building__floor + .building__floor { margin-top: 6px; }
.building__floor-lbl { font-family: var(--mono); font-size: 9px; color: oklch(0.55 0.02 140); width: 26px; }
.units-col { display: flex; flex-direction: column; gap: 6px; }
.units-row { display: flex; gap: 6px; flex: 1; }

/* Eine anklickbare Einheit im Plan */
.tile {
  cursor: pointer; font-family: var(--mono);
  border-radius: 8px; border: 1.5px solid var(--line);
  transition: transform .15s, box-shadow .15s, opacity .15s, filter .15s;
  box-shadow: 0 1px 2px rgba(20,30,15,0.07);
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.tile--stacked { flex-direction: row; justify-content: space-between; padding: 9px 11px; }
.tile--house  { flex: 1; flex-direction: column; height: 90px; }
.tile--flat   { flex: 1; flex-direction: column; height: 52px; }
.tile__id   { font-weight: 600; font-size: 14px; }
.tile__rooms{ font-size: 10px; opacity: 0.82; }
.tile--flat .tile__id { font-size: 13px; }
.tile--flat .tile__rooms { font-size: 9px; }
.tile:hover, .tile.is-selected { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 18px rgba(20,30,15,0.18); }
.tile.is-selected { box-shadow: 0 0 0 3px var(--green), 0 10px 22px rgba(20,30,15,0.20); }
.tile.is-dimmed { opacity: 0.2; pointer-events: none; }
/* Statusfarben der Tiles */
.tile.st-frei       { background: var(--st-frei-bg);       color: var(--st-frei-fg);       border-color: var(--st-frei-bd); }
.tile.st-nachrueck  { background: var(--st-nachrueck-bg);  color: var(--st-nachrueck-fg);  border-color: var(--st-nachrueck-bd); }
.tile.st-reserviert { background: var(--st-reserviert-bg); color: var(--st-reserviert-fg); border-color: var(--st-reserviert-bd); }
.tile.st-finanziert { background: var(--st-finanziert-bg); color: var(--st-finanziert-fg); border-color: var(--st-finanziert-bd); }

.plan-note { margin: 0; font-size: 11px; color: oklch(0.55 0.02 140); font-family: var(--mono); }
.plan-real { display: flex; flex-direction: column; gap: 12px; }
.plan-real img { width: 100%; border-radius: 12px; border: 1px solid oklch(0.85 0.01 140); display: block; }
.is-hidden { display: none !important; }

/* Liste rechts ----------------------------------------------------------- */
.unitlist { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 18px; overflow: hidden; }
.unitlist__head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 13px 18px; border-bottom: 1px solid oklch(0.91 0.008 130); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.55 0.02 140); font-weight: 600; }
.unitlist__head span:last-child { text-align: right; }
.unitlist__body { max-height: 560px; overflow-y: auto; }
.unitrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 13px 18px; cursor: pointer; border-bottom: 1px solid oklch(0.93 0.006 130); border-left: 3px solid transparent; transition: background .12s; }
.unitrow:hover, .unitrow.is-active { background: oklch(0.97 0.012 150); }
.unitrow.is-active { border-left-color: oklch(0.58 0.09 150); }
.unitrow.is-dimmed { display: none; }
.unitrow__id { font-family: var(--mono); font-weight: 600; font-size: 15px; color: oklch(0.28 0.03 150); }
.unitrow__status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: oklch(0.48 0.02 140); margin-top: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-frei { background: oklch(0.55 0.13 150); } .dot-nachrueck { background: oklch(0.74 0.16 88); }
.dot-reserviert { background: oklch(0.68 0.15 50); } .dot-finanziert { background: oklch(0.60 0.012 130); }
.unitrow__type { font-size: 13px; font-weight: 600; color: oklch(0.30 0.02 150); }
.unitrow__meta { font-size: 12px; color: oklch(0.5 0.02 140); margin-top: 3px; }
.unitrow__cost { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 500; color: oklch(0.32 0.03 150); white-space: nowrap; }
.list-empty { padding: 40px 20px; text-align: center; color: oklch(0.5 0.02 140); font-size: 14px; }

/* Phasen-Karten (Finanzierung) */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 14px; padding: 22px; }
.phase__num { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fcfbf7; font-family: var(--serif); font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.phase__when { font-size: 12px; font-family: var(--mono); color: oklch(0.52 0.04 150); text-transform: uppercase; letter-spacing: 0.04em; }
.phase__title { font-family: var(--serif); font-size: 20px; color: oklch(0.30 0.04 150); margin: 4px 0 10px; }
.phase p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Team-Liste (Konzept) */
.team { border-top: 1px solid var(--line); }
.team__row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.team__role { color: var(--ink-soft); font-size: 14px; }
.team__who { font-weight: 600; font-size: 15px; color: oklch(0.30 0.03 150); text-align: right; }

/* Zeitplan / Roadmap (Ablauf) */
.timeline { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.tl-step { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tl-step__num { width: 36px; height: 36px; border-radius: 50%; background: oklch(0.95 0.02 150); border: 1px solid oklch(0.86 0.05 150); color: var(--green); font-family: var(--mono); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tl-step__title { font-weight: 600; font-size: 16px; color: oklch(0.28 0.03 150); }
.tl-step__when { font-family: var(--mono); font-size: 13px; color: oklch(0.50 0.04 150); white-space: nowrap; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--serif); font-size: 19px; color: oklch(0.28 0.03 150); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 24px; color: var(--green); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq__answer { padding: 0 0 22px; color: var(--ink-soft); font-size: 15px; max-width: 68ch; line-height: 1.6; }

/* Hinweis-/Status-Banner */
.notice { background: oklch(0.96 0.03 150); border: 1px solid oklch(0.86 0.05 150); border-radius: 16px; padding: 24px 28px; }
.notice--tint { background: oklch(0.95 0.055 78); border-color: oklch(0.84 0.10 80); }
.notice__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.45 0.08 150); font-weight: 600; margin-bottom: 10px; }
.notice__label .dot { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.58 0.13 150); }
.notice p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }
.notice p + p { margin-top: 10px; }

/* 7. KARTEN / RASTER ====================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 14px; padding: 22px; }
.card__title { font-family: var(--serif); font-size: 24px; color: var(--green); margin-bottom: 8px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 4/3; object-fit: cover; background: #222; }

/* Finanzierungs-Tabelle / Raten */
.stage-list { display: flex; flex-direction: column; background: var(--panel); border: 1px solid oklch(0.90 0.01 140); border-radius: 14px; overflow: hidden; }
.stage-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid oklch(0.93 0.008 140); }
.stage-row:last-child { border-bottom: none; }
.stage-row__title { font-weight: 600; font-size: 15px; }
.stage-row__sub { font-size: 13px; color: oklch(0.5 0.02 140); }
.stage-row__amt { font-family: var(--mono); font-weight: 600; color: var(--green); text-align: right; }
.stage-row__total { font-size: 11px; color: oklch(0.55 0.02 140); font-family: var(--mono); }

.kpi { background: var(--panel); border: 1px solid oklch(0.90 0.01 140); border-radius: 14px; padding: 24px; }
.kpi__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; font-size: 13px; margin-top: 14px; }
.kpi__grid span { padding-top: 8px; }
.kpi__grid .col-head { text-align: right; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.55 0.02 140); padding-top: 0; }
.kpi__grid .col-head.is-median { font-weight: 600; }
.kpi__row-label { font-weight: 600; color: oklch(0.32 0.03 150); border-top: 1px solid oklch(0.92 0.008 140); }
.kpi__val { text-align: right; font-family: var(--mono); border-top: 1px solid oklch(0.92 0.008 140); }
.kpi__val.is-median { font-weight: 600; color: var(--green); }

/* Kontakt-Karten */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; text-align: left; }
.contact-card { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 14px; padding: 20px; }
.contact-card__role { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.55 0.02 140); margin-bottom: 8px; }
.contact-card__name { font-weight: 600; font-size: 16px; }
.contact-card__org { font-size: 14px; color: oklch(0.45 0.02 140); margin-top: 4px; }
.contact-card a { display: block; font-size: 14px; color: var(--green); text-decoration: none; font-family: var(--mono); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.actions-center { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 40px; }

/* 8. MODALE =============================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(17,22,13,0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--paper); border-radius: 20px; max-width: 780px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(17,22,13,0.4); animation: pop .3s cubic-bezier(.2,.8,.2,1) both; }
.modal--narrow { max-width: 560px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.modal__head { position: relative; padding: 28px 30px 0; }
.modal__close { position: absolute; top: 20px; right: 22px; cursor: pointer; background: var(--panel); border: 1px solid oklch(0.88 0.01 130); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; color: oklch(0.4 0.02 140); line-height: 1; }
.modal__code { font-family: var(--mono); font-weight: 600; font-size: 34px; color: oklch(0.26 0.03 150); }
.modal__sub { font-size: 15px; color: oklch(0.45 0.02 140); margin-top: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.badge .dot { width: 9px; height: 9px; }
.badge.st-frei       { background: oklch(0.95 0.05 150);  color: oklch(0.40 0.10 150); }
.badge.st-nachrueck  { background: oklch(0.93 0.11 95);   color: oklch(0.45 0.11 80); }
.badge.st-reserviert { background: oklch(0.95 0.06 56);   color: oklch(0.50 0.13 46); }
.badge.st-finanziert { background: oklch(0.93 0.004 130); color: oklch(0.48 0.01 130); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 22px 30px 6px; }
.fact { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid oklch(0.90 0.008 140); }
.fact__k { color: oklch(0.5 0.02 140); font-size: 14px; }
.fact__v { font-weight: 600; font-size: 14px; }
.fact--cost { grid-column: 1/-1; align-items: baseline; padding: 14px 0 4px; border-bottom: none; }
.fact--cost .fact__v { font-family: var(--serif); font-size: 24px; color: oklch(0.30 0.04 150); font-weight: 400; }

.plan-block { padding: 10px 30px 0; }
.plan-block__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.plan-block__head .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.55 0.02 140); font-weight: 600; }
.plan-block__head .meta { font-size: 11px; color: oklch(0.55 0.02 140); font-family: var(--mono); }
.plan-block a { display: block; border-radius: 12px; border: 1px solid oklch(0.88 0.01 140); background: #fff; overflow: hidden; }
.plan-block img { display: block; width: 100%; height: auto; }

.finance { padding: 8px 30px 0; }
.finance__head { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.finance__head .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.55 0.02 140); font-weight: 600; }
.tag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: oklch(0.93 0.03 78); color: oklch(0.46 0.10 60); }
.finance__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 8px; }
.finance__cell { background: var(--panel); border: 1px solid oklch(0.90 0.008 130); border-radius: 11px; padding: 14px 16px; }
.finance__cell .k { font-size: 12px; color: oklch(0.5 0.02 140); margin-bottom: 5px; }
.finance__cell .v { font-family: var(--mono); font-weight: 600; font-size: 17px; color: oklch(0.30 0.04 150); }
.fineprint { font-size: 11px; color: oklch(0.55 0.02 140); line-height: 1.5; }
.modal__actions { padding: 20px 30px 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--sm { padding: 13px 24px; font-size: 14px; }

/* 9. FORMULAR ============================================================= */
.form { padding: 30px 36px 34px; }
.form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.form__title { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; line-height: 1.1; }
.form__intro { color: oklch(0.45 0.02 140); font-size: 14px; margin: 0 0 18px; }
.form__fields { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 600; color: oklch(0.40 0.02 140); }
.field input, .field textarea { font-family: var(--sans); font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid oklch(0.86 0.01 130); background: var(--panel); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: oklch(0.50 0.08 150); outline: none; }
.field textarea { resize: vertical; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 160px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: oklch(0.45 0.02 140); line-height: 1.4; }
.checkbox input { margin-top: 2px; width: 17px; height: 17px; accent-color: oklch(0.45 0.07 150); flex: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn[disabled] { background: oklch(0.62 0.012 130) !important; opacity: .7; cursor: not-allowed; }
.form-success { padding: 48px 36px; text-align: center; }
.form-success__check { width: 56px; height: 56px; border-radius: 50%; background: oklch(0.92 0.06 150); color: oklch(0.42 0.10 150); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; }

/* 10. FOOTER ============================================================== */
.site-footer { padding: 28px 32px; background: var(--dark); color: rgba(232,233,224,0.6); font-size: 13px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer__brand { font-family: var(--serif); color: #E8E9E0; font-size: 15px; }

/* 11. RESPONSIVE ========================================================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .plan-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }

  /* Mobiles Menü: Hamburger zeigen, Nav einklappen */
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, margin .3s ease;
    margin: 0;
  }
  .site-nav.is-open { max-height: 70vh; opacity: 1; margin-top: 14px; overflow-y: auto; }
  .nav-link { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav-link:hover, .nav-link.is-active { background: oklch(0.95 0.02 150); }
  .nav-cta { margin: 6px 0 2px; text-align: center; padding: 14px 16px; font-size: 16px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 52px 0; }
  .facts { grid-template-columns: 1fr; }
  .finance__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .kpi__grid { font-size: 11px; gap: 6px; }
  .tl-step { grid-template-columns: 36px 1fr; gap: 12px; }
  .tl-step__when { grid-column: 2; }
}
