/* ==========================================================================
   Soliva Weiningen — Prototype Stylesheet
   Tokens 1:1 aus DESIGN.md / Figma. Ycode-orientiert (CSS Custom Properties).
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben (CI fix) */
  --green: #193425;
  --green-deep: #131913;
  --blue: #bad5e6;
  --terracotta: #80342b;
  --cream: #f7eac8;

  /* Neutrale (aus Figma abgeleitet) */
  --paper: #f7f5f5;        /* echtes Off-White der Website (Figma) */
  --ink: #193425;          /* Standardtext = Grün */
  --ink-muted: #4b5a4f;
  --nav-ink: #1a1a1a;      /* Nav-Text laut Figma */
  --line: #ded9cc;
  --on-primary: #f7f5f5;   /* Text auf Grün-Button */
  --on-dark: #f7eac8;      /* Text/Headlines auf dunklen Drench-Flächen */
  --field-bg: #fdfcf8;     /* Formularfelder (getöntes Off-White) */
  --status-ok: #4a9d6a;    /* Status „verfügbar" */

  /* Typografie */
  --font-display: "Halant", Georgia, "Times New Roman", serif;
  --font-body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.55rem, 8.4vw, 7.2rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.45rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1.4vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);
  --radius: 6px;
  --radius-img: 10px;

  --shadow-soft: 0 22px 50px -30px rgba(19, 25, 19, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(128, 52, 43, 0.18); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
.leben :focus-visible, .isometrie :focus-visible, .kontakt :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
.h1, h1 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.02em; text-wrap: balance; }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 42ch; }
p { max-width: 65ch; }
.measure { max-width: 56ch; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
section[id], main[id] { scroll-margin-top: 5.5rem; }
.eyebrow {
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-muted); font-weight: 500;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 200;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--green); color: var(--on-primary);
  padding: 0.7rem 1.1rem; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Sun device ---------- */
.sun { width: 1em; height: 1em; color: inherit; }
.sun use, .sun path { fill: currentColor; }
.sunburst { color: var(--cream); opacity: 0.9; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: 72px; padding-block: 0.75rem;
}

/* Logo */
/* Logo = echtes SVG (vom Kunden, flach → Safari-tauglich als CSS-Mask).
   Als Mask statt <img>, damit dieselbe Datei je Kontext eingefärbt werden kann
   (grün im Header, cremefarben im Footer). Der Link bleibt 44px Touch-Target. */
.logo { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; line-height: 1; position: relative; z-index: 110; }
.logo__mark {
  display: block; width: 150px; height: 28px; flex: none;
  background-color: var(--green);
  -webkit-mask: url(../img/soliva-logo.svg) left center / contain no-repeat;
  mask: url(../img/soliva-logo.svg) left center / contain no-repeat;
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem;
  font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--nav-ink); position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 0.55rem; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }

.btn.header-cta { white-space: nowrap; min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.8rem; letter-spacing: 0.05em; }

/* Burger */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; position: relative; z-index: 110; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--nav-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-radius: var(--radius); border: 2px solid var(--green);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--green); color: var(--on-primary); }
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--on-primary); transform: translateY(-2px); }
.btn--on-dark { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--on-dark:hover { background: var(--cream); color: var(--green-deep); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--blue); color: var(--green); }
.hero__inner { padding-block: clamp(2.5rem, 6vw, 5rem); }
/* Eigener Typescale für die Hero-H1: Die informierende Headline ist länger als die
   frühere Kurzfassung. Ohne eigene Skalierung würde sie bei --fs-h1 (bis 7.2rem)
   dreizeilig umbrechen, „Eigentumswohnungen" trennen und das Hero-Bild aus dem
   sichtbaren Bereich drücken. 24ch hält „Vier Eigentumswohnungen" auf einer Zeile. */
.hero h1 { color: var(--green); max-width: 24ch; font-size: clamp(2.1rem, 5.2vw, 4.6rem); }
.hero__lead { margin-top: 1.6rem; color: var(--green); max-width: 46ch; opacity: 0.92; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__media {
  width: 100%; aspect-ratio: 1440 / 602; overflow: hidden; background: #cdd8de;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Lichtkonzept (paper) — asymmetrisches Editorial-Raster (robust über Breiten)
   ========================================================================== */
.lichtkonzept { background: var(--paper); color: var(--ink); }
.lichtkonzept__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.lichtkonzept__head { grid-column: 1 / span 7; }
.lichtkonzept__head .sun { width: clamp(2rem, 4vw, 3.2rem); height: clamp(2rem, 4vw, 3.2rem); color: var(--terracotta); margin-bottom: 1.4rem; }
.lichtkonzept__head h2 { max-width: 18ch; }
.lichtkonzept__aside { grid-column: 9 / span 4; align-self: end; }
.lichtkonzept__aside p { color: var(--ink-muted); font-size: 1rem; }

.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); }
.kicker .sun { width: 0.95em; height: 0.95em; color: var(--terracotta); }

.meta-row {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted);
}
.meta-row li { display: inline-flex; align-items: center; gap: 1.4rem; }
.meta-row li:not(:last-child)::after { content: "\00B7"; color: var(--terracotta); }

/* ==========================================================================
   Architektur (green-deep) — dynamisch: versetzt/überlappend + Ebenen
   ========================================================================== */
/* ==========================================================================
   Leben (Architektur-Ersatz, Figma 15-1585) — dunkel, zwei gespiegelte Zeilen
   ========================================================================== */
.leben { background: var(--green); color: var(--on-dark); overflow: hidden; }
.leben__inner { display: flex; flex-direction: column; gap: clamp(3.5rem, 6vw, 5.5rem); }

.leben__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }

.leben__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.9rem, 1.75vw, 1.5625rem); }
.leben__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 305 / 628; border-radius: 5px;
}

.leben__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding-block: clamp(0.5rem, 2vw, 1.875rem); }
.leben__kicker { font-size: 1rem; color: #717658; }
.leben__title { margin-top: 0.4rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.85vw, 3.4375rem); line-height: 1.2; color: #fff; }
.leben__body { max-width: 27.75rem; }
.leben__body > p { font-weight: 300; font-size: 0.96rem; line-height: 1.3; color: #fff; }
/* feature-list Basis (wird von .leben genutzt) */
.feature-list { display: grid; gap: 0.9rem; }
.feature-list li { display: flex; align-items: baseline; gap: 0.75rem; color: var(--on-dark); }
.feature-list .sun { flex: none; width: 0.9rem; height: 0.9rem; color: var(--blue); transform: translateY(0.15rem); }

.leben .feature-list { margin-top: 2.6rem; gap: 0.9rem; }
.leben .feature-list li { color: var(--cream); font-size: 1.0625rem; line-height: 1.65; }
.leben .feature-list .sun { color: var(--cream); }

@media (max-width: 900px) {
  .leben__row { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Mobil immer: Text zuerst, Bilder danach */
  .leben__row .leben__panel { order: 1; }
  .leben__row .leben__media { order: 2; }
  .leben__media img { aspect-ratio: 3 / 4; }
  .leben__panel { gap: 1.5rem; }
}

/* ==========================================================================
   Footer (green-deep)
   ========================================================================== */
.site-footer { background: var(--green); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 1px solid rgba(247, 234, 200, 0.14); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.site-footer .logo__mark { background-color: var(--cream); }
.footer-brand { max-width: 32ch; }
.footer-brand p { margin-top: 1rem; color: var(--on-dark); opacity: 0.8; font-size: 0.95rem; }
.footer-col h3 { font-family: var(--font-body); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 0.9rem; }
.footer-col a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0.25rem 0; color: var(--on-dark); opacity: 0.85; }
.footer-col a:hover { opacity: 1; }
.site-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(247,234,200,0.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-small); color: var(--on-dark); opacity: 0.7;
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--blue); }

/* ==========================================================================
   Switcher (cream) — interaktiver Durchschalter: Liste + wechselndes Bild
   ========================================================================== */
.switcher { background: var(--blue); color: var(--green); padding-block: var(--section-y); overflow: hidden; }
.switcher__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.switcher__head h2 { margin-top: 0.7rem; max-width: 18ch; }
.switcher__inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: stretch; }
.switcher__left { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.switcher__tabs { display: grid; gap: 0.1rem; }
.switcher__tab {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; min-height: 48px; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.55rem, 2.7vw, 2.5rem); line-height: 1.18;
  color: var(--ink-muted);
  padding: 0.35rem 0; transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.switcher__tab:hover { color: var(--green); }
.switcher__tab.is-active { color: var(--green); }
/* Punkt auf allen Tabs angelegt (reserviert den Platz → kein Text-Sprung beim Wechsel),
   per Flex exakt auf die Textmitte zentriert, sichtbar nur beim aktiven Tab. */
.switcher__tab::before {
  content: ""; flex: none; width: 0.3em; height: 0.3em; border-radius: 50%;
  background: var(--terracotta); opacity: 0; transform: scale(0.4);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.switcher__tab.is-active::before { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .switcher__tab::before { transition: none; } }
.switcher__caption { margin-top: 1.6rem; max-width: 44ch; color: var(--ink-muted); min-height: 4.5em; }
.switcher__stage { position: relative; min-height: clamp(340px, 40vw, 560px); border-radius: var(--radius-img); overflow: hidden; background: var(--blue); }
.switcher__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.switcher__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .switcher__img { transition: none; } }

/* ==========================================================================
   Wohnungen — Geschoss-Liste (knüpft an Ebenen-Motiv an)
   ========================================================================== */
.wohnungen { background: var(--paper); color: var(--ink); }
.wohnungen__intro { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.wohnungen__intro h2 { margin-top: 0.7rem; max-width: 20ch; }
.wohnungen__intro .lead { margin-top: 1rem; color: var(--ink-muted); max-width: 56ch; }

/* Wohnungen = native <details>-Accordions (kein JS nötig). Die Zeile (<summary>)
   behält das bisherige 3-Spalten-Raster; der Ausklapp-Pfeil sitzt in .unit__cta
   direkt neben dem Status-Pill, dadurch bleibt das Raster unverändert und der
   Pfeil ist auf Desktop wie Mobil sauber vertikal zentriert. */
.units { border-top: 1px solid var(--line); }
.units > li { list-style: none; }
.unit { display: block; border-bottom: 1px solid var(--line); }

.unit__row {
  display: grid; grid-template-columns: minmax(220px, 1.5fr) 1.2fr auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.3rem, 3vw, 2rem) 0;
  cursor: pointer; list-style: none;
}
.unit__row::-webkit-details-marker { display: none; }
.unit__row::marker { content: ""; }
.unit__row:focus-visible { outline: 2px solid var(--terracotta); outline-offset: -4px; }
.unit__row:hover .unit__floor { color: var(--terracotta); }

.unit__id { display: flex; align-items: baseline; gap: 0.85rem; }
.unit__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--terracotta); line-height: 1; }
.unit__idtext { display: flex; flex-direction: column; gap: 3px; }
.unit__floor { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--green); line-height: 1.1; transition: color 0.25s var(--ease); }
.unit__desc { font-size: 0.85rem; color: var(--ink-muted); }

.unit__quick { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; font-size: 0.95rem; color: var(--ink); }

.unit__cta { display: flex; align-items: center; justify-content: flex-end; gap: 0.9rem; }
.unit__status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green);
  background: rgba(25, 52, 37, 0.08); padding: 0.28rem 0.65rem; border-radius: 999px;
  white-space: nowrap;
}
.unit__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status-ok); flex: none; }
.unit__chev { width: 20px; height: 20px; flex: none; color: var(--terracotta); transition: transform 0.3s var(--ease); }
.unit[open] .unit__chev { transform: rotate(180deg); }

/* Ausklapp-Panel */
.unit__panel {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 0 0 clamp(1.5rem, 3vw, 2.2rem);
}
.unit[open] .unit__panel { animation: unit-open 0.32s var(--ease); }
@keyframes unit-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.unit__plan {
  display: grid; place-items: center; min-height: 190px;
  border: 1px dashed var(--line); border-radius: var(--radius-img);
  background: rgba(25, 52, 37, 0.025);
}
.unit__plan-note { font-size: 0.8rem; color: var(--ink-muted); text-align: center; padding: 1rem; }

.unit__facts { display: flex; flex-direction: column; gap: 1.3rem; }
.unit__facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1rem 1.8rem; margin: 0; }
.unit__facts-grid dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.unit__facts-grid dd { font-size: 0.95rem; color: var(--ink); margin: 2px 0 0; }

.unit__panel-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); margin-top: auto;
}
.unit__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); margin: 0; line-height: 1.2; }
.unit__price span { display: block; font-family: var(--font-body); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 2px; }
.unit__panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; }
.unit__panel-links .btn { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
.unit__plan-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.85rem; color: var(--ink-muted); border-bottom: 1px solid currentColor; }
.unit__plan-link:hover { color: var(--terracotta); }
.unit__plan-link[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.units__note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-muted); }

@media (max-width: 760px) {
  .unit__row { grid-template-columns: 1fr; gap: 0.85rem; align-items: start; }
  /* Mobil: Status links, Pfeil rechts am Zeilenende */
  .unit__cta { justify-content: space-between; }
  .unit__panel { grid-template-columns: 1fr; }
  .unit__plan { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .unit__chev, .unit__floor { transition: none; }
  .unit[open] .unit__panel { animation: none; }
}

/* ==========================================================================
   Gebäude-Isometrie — reservierter Platzhalter (green-deep Stage)
   ========================================================================== */
.isometrie { background: var(--green-deep); color: var(--on-dark); }
.isometrie__frame {
  border: 1px dashed rgba(247, 234, 200, 0.32); border-radius: var(--radius-img);
  background: rgba(247, 234, 200, 0.03);
  min-height: clamp(280px, 34vw, 460px); padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; text-align: center;
}
.isometrie__frame .sun { width: clamp(2rem, 4vw, 3rem); height: clamp(2rem, 4vw, 3rem); color: var(--blue); }
.isometrie__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--on-dark); }
.isometrie__sub { max-width: 48ch; color: var(--on-dark); opacity: 0.85; font-size: 0.95rem; }

/* ==========================================================================
   Lage & Umgebung — gebrandete Mapbox-Karte
   ========================================================================== */
.lage { background: var(--paper); color: var(--ink); }
.lage__intro { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.lage__intro h2 { margin-top: 0.7rem; max-width: 20ch; }
.lage__intro .lead { margin-top: 1rem; color: var(--ink-muted); max-width: 60ch; }

.map-wrap { position: relative; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-soft); }
#soliva-map { width: 100%; height: clamp(440px, 68vh, 720px); background: #e9e3d6; }

.map-filter {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: rgba(247, 245, 245, 0.94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px;
  /* Solid-Fallback wenn backdrop-filter nicht unterstützt wird */
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .map-filter { background: var(--paper); }
}
.map-filter {
  max-width: min(330px, calc(100% - 32px)); box-shadow: 0 12px 30px -16px rgba(19, 25, 19, 0.4);
}
.map-filter__head { margin-bottom: 12px; }
.map-filter__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--green); line-height: 1.1; }
.map-filter__sub { font-size: 0.85rem; color: var(--ink-muted); margin-top: 3px; }

.map-filter__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.9rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green); color: var(--cream); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s var(--ease);
}
.map-filter__toggle:hover { background: var(--green-deep); }
.map-filter__chev { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.map-filter.is-open .map-filter__chev { transform: rotate(180deg); }

.map-list-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.map-filter.is-open .map-list-wrap { grid-template-rows: 1fr; }
.no-js .map-list-wrap { grid-template-rows: 1fr; }
.no-js .map-filter__toggle { display: none; }
.map-list-inner { overflow: hidden; min-height: 0; }
.map-list { max-height: 46vh; overflow-y: auto; margin-top: 12px; padding-right: 4px; }
.map-list__group { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin: 0.9rem 0 0.3rem; }
.map-list__group:first-child { margin-top: 0; }
.map-list__item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px; text-align: left;
  padding: 0.45rem 0.4rem; border: 0; background: none; border-radius: 8px; cursor: pointer;
  transition: background 0.15s var(--ease);
}
.map-list__item:hover, .map-list__item:focus-visible { background: rgba(25, 52, 37, 0.07); }
.map-list__ico { width: 22px; height: 22px; flex: none; color: var(--green); display: grid; place-items: center; }
.map-list__ico svg { width: 19px; height: 19px; }
.map-list__name { flex: 1; font-size: 0.9rem; color: var(--ink); line-height: 1.2; }
.map-list__star { color: var(--terracotta); }
.map-list__dist { font-size: 0.74rem; color: var(--ink-muted); white-space: nowrap; }
.map-list__item--origin { border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
.map-list__item--origin .map-list__ico { color: var(--terracotta); }
.map-list__item--origin .map-list__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--green); }
@media (prefers-reduced-motion: reduce) { .map-list-wrap, .map-filter__chev { transition: none; } }

/* Marker */
/* Marker: äusseres Element wird von Mapbox per transform positioniert (KEINE
   eigene transition/transform darauf, sonst Wobble beim Pan). Hover am Inner-Pin. */
.poi-marker { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.poi-marker__pin {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: grid; place-items: center; border: 2px solid var(--cream);
  box-shadow: 0 4px 12px rgba(19, 25, 19, 0.35);
  transition: transform 0.2s var(--ease);
}
.poi-marker:hover .poi-marker__pin, .poi-marker:focus-visible .poi-marker__pin { transform: scale(1.14); }
.poi-marker__pin svg { width: 18px; height: 18px; }
.poi-marker--hi .poi-marker__pin { background: var(--terracotta); }

.poi-origin { display: flex; align-items: center; gap: 8px; pointer-events: none; }
.poi-origin__dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--green);
  display: grid; place-items: center; border: 2px solid var(--green); box-shadow: 0 4px 14px rgba(19, 25, 19, 0.4);
}
.poi-origin__dot svg { width: 20px; height: 20px; }
.poi-origin__lbl { font-family: var(--font-display); background: var(--green); color: var(--cream); padding: 3px 11px; border-radius: 999px; font-size: 0.95rem; }
#soliva-map .mapboxgl-ctrl-group button { width: 44px; height: 44px; }
#soliva-map .mapboxgl-popup-close-button { min-width: 44px; min-height: 44px; }

/* Popup (Mapbox-Defaults überschreiben) */
.soliva-popup .mapboxgl-popup-content {
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 16px 40px -20px rgba(19, 25, 19, 0.5); font-family: var(--font-body);
}
.soliva-popup .mapboxgl-popup-close-button { font-size: 20px; color: var(--ink-muted); padding: 2px 8px; }
.soliva-popup .mapboxgl-popup-close-button:hover { background: transparent; color: var(--green); }
.soliva-popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.soliva-popup.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.soliva-popup.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { border-bottom-color: var(--paper); }
.soliva-popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.soliva-popup.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.soliva-popup.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { border-top-color: var(--paper); }
.soliva-popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: var(--paper); }
.soliva-popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: var(--paper); }
.map-pop__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--green); margin-bottom: 0.5rem; line-height: 1.15; }
.map-pop__tag { font-family: var(--font-body); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--terracotta); color: var(--cream); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.map-pop__dist { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.5rem; }
.map-pop__ico { width: 16px; height: 16px; flex: none; color: var(--terracotta); }
.map-pop__blurb { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.map-pop__link { font-size: 0.85rem; font-weight: 500; color: var(--green); border-bottom: 1px solid currentColor; }
.map-pop__link:hover { color: var(--terracotta); }

@media (max-width: 600px) {
  .map-wrap { box-shadow: none; overflow: visible; }
  .map-filter { position: static; max-width: none; margin-bottom: 12px; }
  #soliva-map { border-radius: var(--radius-img); }
}

/* Erreichbarkeit (Tabelle unter der Karte) — volle Containerbreite */
.reach { margin-top: clamp(2rem, 4vw, 3rem); }
.reach__table th:nth-child(2), .reach__table td:nth-child(2) { width: 32%; }
.reach__table th:last-child, .reach__table td:last-child { width: 22%; }
.reach__title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--green); margin-bottom: 1rem; }
.reach__table { width: 100%; border-collapse: collapse; }
.reach__table th, .reach__table td { text-align: left; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.reach__table thead th { font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 500; }
.reach__table tbody th { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.reach__table td { color: var(--ink-muted); font-size: 0.92rem; }
.reach__table td:last-child, .reach__table th:last-child { text-align: right; padding-right: 0; }
.reach__note { margin-top: 0.85rem; font-size: 0.8rem; color: var(--ink-muted); }

/* ==========================================================================
   FAQ (cream) — Accordion + FAQPage-Schema
   ========================================================================== */
.faq { background: var(--cream); color: var(--ink); }
.faq__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.faq__intro h2 { margin-top: 0.7rem; max-width: 14ch; }
.faq__intro .lead { margin-top: 1rem; color: var(--ink-muted); max-width: 40ch; }
@media (min-width: 880px) { .faq__inner { grid-template-columns: 4fr 7fr; align-items: start; } }

/* FAQ = natives <details>/<summary>: klappt auch ohne JS auf (kein Script nötig). */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer;
  list-style: none;                 /* <summary>-Standardmarker entfernen */
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.faq-q__text {
  margin: 0; font-weight: inherit;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--green); line-height: 1.25;
}
.faq-chev { width: 22px; height: 22px; flex: none; color: var(--terracotta); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a p { padding: 0 0 1.2rem; color: var(--ink-muted); max-width: 64ch; }
.faq-item[open] .faq-a { animation: faq-open 0.32s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .faq-chev { transition: none; }
  .faq-item[open] .faq-a { animation: none; }
}

/* ==========================================================================
   CTA + Kontakt (terracotta) — Formular + Broschüre
   ========================================================================== */
.kontakt { background: var(--green-deep); color: var(--cream); padding-block: var(--section-y); }
.kontakt__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 880px) { .kontakt__inner { grid-template-columns: 1fr 1fr; } }
.kicker--on-dark { color: rgba(247, 234, 200, 0.85); }
.kicker--on-dark .sun { color: var(--cream); }
.kontakt__lead h2 { color: var(--cream); margin-top: 0.7rem; max-width: 16ch; }
.kontakt__text { margin-top: 1rem; color: var(--cream); opacity: 0.9; max-width: 42ch; }
.kontakt__direct { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.kontakt__direct dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.kontakt__direct dd { margin: 3px 0 0; }
.kontakt__direct a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); border-bottom: 1px solid rgba(247, 234, 200, 0.4); }
.kontakt__direct a:hover { border-color: var(--cream); }
.kontakt__brochure { margin-top: 1.8rem; }
.kontakt__soon { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; margin-left: 0.5rem; }
.kontakt__brochure:disabled { opacity: 0.75; cursor: not-allowed; }
.kontakt__brochure:disabled:hover { background: transparent; color: var(--cream); transform: none; }
.kontakt__by { margin-top: 1.8rem; font-size: 0.82rem; color: var(--cream); opacity: 0.65; max-width: 46ch; }

.kontakt__form { background: var(--paper); color: var(--ink); border-radius: var(--radius-img); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; }
.field > label { display: block; font-size: 0.82rem; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field-bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.85rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(25, 52, 37, 0.12); }
.field textarea { resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.field--check input { width: auto; margin-top: 0.2rem; flex: none; }
.field--check span { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }
.field--check a { color: var(--green); text-decoration: underline; }
.kontakt__submit { width: 100%; margin-top: 0.3rem; }
.kontakt__hint { margin-top: 0.8rem; font-size: 0.75rem; color: var(--ink-muted); }
.kontakt__success { margin-top: 1rem; padding: 0.8rem 1rem; background: rgba(25, 52, 37, 0.08); border-radius: 6px; color: var(--green); font-size: 0.9rem; }

/* ==========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */
.legal { background: var(--paper); color: var(--ink); padding-block: clamp(3rem, 7vw, 6rem); }
.legal__inner { max-width: 72ch; }
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 1.5rem; }
.legal__back:hover { color: var(--green); }
.legal h1 { font-size: var(--fs-h2); color: var(--green); margin-bottom: 1.4rem; }
.legal h2 { font-size: var(--fs-h3); color: var(--green); margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--ink); line-height: 1.7; margin-bottom: 1rem; max-width: 68ch; }
.legal ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.legal li { color: var(--ink); line-height: 1.7; margin-bottom: 0.4rem; }
.legal a { color: var(--green); text-decoration: underline; }
.legal__back, .legal p > a { min-height: 44px; }
.legal p > a { display: inline-flex; align-items: center; }
.legal a:hover { color: var(--terracotta); }
.legal .ph { color: var(--terracotta); font-style: italic; }
.legal__note { margin-top: 2.5rem; padding: 1rem 1.2rem; background: var(--cream); border-radius: var(--radius); font-size: 0.9rem; color: var(--ink-muted); }

/* ==========================================================================
   Reveal on scroll (progressive enhancement)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal[data-delay="1"].is-in { transition-delay: 0.08s; }
.js .reveal[data-delay="2"].is-in { transition-delay: 0.16s; }
.js .reveal[data-delay="3"].is-in { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  body.nav-open { overflow: hidden; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: 90;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.5rem;
    min-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(6rem + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: var(--blue); opacity: 0; transition: opacity 0.3s var(--ease);
    visibility: hidden; pointer-events: none;
  }
  .nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; text-transform: none; letter-spacing: 0; color: var(--green); min-height: 56px; }
  .nav a:not(.btn)::after { display: none; }
  .header-cta { display: none; }
  .header-cta--mobile { display: inline-flex; margin-top: 1.5rem; }

}

@media (max-width: 768px) {
  /* Lichtkonzept: 12-Spalten-Raster mobil sauber stapeln */
  .lichtkonzept__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .lichtkonzept__head, .lichtkonzept__aside { grid-column: 1; min-width: 0; }

  /* Intro-Collage → gestapelt */
  .intro__stage { position: static; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-top: clamp(2rem, 8vw, 3rem); }
  .intro__text { position: static; transform: none; width: 100%; }
  .intro__img { position: static; transform: none; width: min(360px, 82%); box-shadow: var(--shadow-soft); }
  .intro__img--3 { transform: none; }

  /* Switcher → gestapelt, Bild zuerst */
  .switcher__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .switcher__stage { order: -1; min-height: 62vw; }
  .switcher__left { padding: clamp(1.5rem, 5vw, 2rem) 0; }
  .switcher__tab { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .switcher__caption { min-height: 0; }
}

@media (min-width: 881px) { .nav a.header-cta--mobile { display: none; } }

@media (max-width: 480px) {
  .hero__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Übernahmen von der Hauptseite (Consent, Karten-Gating, Formular, Sheet)
   ========================================================================== */

/* Cookie-Banner (Silktide) — Theming auf Soliva */
#stcm-wrapper {
  --fontFamily: var(--font-body);
  --primaryColor: #193425;
  --backgroundColor: #ffffff;
  --textColor: #193425;
  --boxShadow: 0 10px 34px rgba(19, 25, 19, 0.22);
  --backdropBackgroundColor: rgba(19, 25, 19, 0.5);
  --backdropBackgroundBlur: 2px;
  --iconColor: #f7eac8;
  --iconBackgroundColor: #193425;
}

#stcm-wrapper .stcm-logo,
#stcm-wrapper .stcm-credit-link { display: none !important; }

/* Schwebendes Cookie-Icon kleiner als der Silktide-Default (60px).
   44px ist die Untergrenze: Auf diesen Wert wurden in der Accessibility-Runde
   alle Bedienelemente als Touch-Target gesetzt, darunter würde es dahinter
   zurückfallen. Das SVG skaliert proportional mit. */
#stcm-wrapper #stcm-icon {
  width: 44px; height: 44px;
  bottom: 14px; left: 14px;
}
#stcm-wrapper #stcm-icon.stcm-pos-bottom-right { left: auto; right: 14px; }
#stcm-wrapper #stcm-icon svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  #stcm-wrapper #stcm-icon { display: none !important; }
}

/* Karten-Consent-Platzhalter (vor Mapbox-Freigabe) */
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  text-align: center;
  background: #e9e3d6;
  z-index: 4;
}

.map-consent__text {
  max-width: 46ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Footer: Cookie-Einstellungen-Button wie ein Footer-Link */
.footer-cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--on-dark);
  opacity: 0.85;
  cursor: pointer;
  text-align: left;
}

.footer-cookie-btn:hover { opacity: 1; }

/* Formular: Honeypot + Fehlermeldung */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}

.kontakt__error { margin-top: 0.85rem; font-size: 0.875rem; color: var(--terracotta); }
.kontakt__error a { color: inherit; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav, .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after,
  .switcher__tab, .poi-marker__pin { transition: none; }
}

/* Wohnungs-Status: Ampelfarben aus dem Sheet */
.unit[data-status="reserviert"] .unit__status::before { background: #d99a2b; }
.unit[data-status="verkauft"] .unit__status::before { background: #b0453a; }
