/* © WLBC – Wohnen im Lünepark. Nutzung nur nach Freigabe durch WLBC. */
/* =====================================================================
   Wohnen im Lünepark · Design
   Modern, ruhig, ein Akzent: Anthrazit, Weiß, warmes Steingrau, Lindgrün aus dem Logo.
   Schriften: Inter Tight (Überschriften), Inter (Text), Geist Mono (Zahlen, Labels).
   Der Akzent sitzt zentral in --accent und lässt sich nach dem neuen Logo tauschen.
   ===================================================================== */
:root {
  --bg: #f3f2ef;
  --bg-2: #e9e7e2;
  --surface: #ffffff;
  --ink: #111214;
  --ink-2: #474a50;
  --muted: #85888e;
  --line: rgba(17, 18, 20, 0.09);
  --line-2: rgba(17, 18, 20, 0.06);
  --accent: #94c82a;        /* Lindgrün aus dem Logo */
  --accent-2: #a2d03a;
  --accent-deep: #4d7819;   /* Text-Grün auf hellem Grund */
  --accent-soft: #edf4dc;
  --on-accent: #0f1012;
  --dark: #0f1012;
  --dark-2: #1a1b1e;
  --dark-3: #24262a;
  --on-dark: #f3f2ef;
  --on-dark-2: #9a9ca2;
  --sold: #a3a39f;

  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1360px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --sec: clamp(5rem, 10vw, 9rem);
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --demo-h: 0px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* Kein seitliches Wischen auf dem Handy. Bewusst nur clip (kein hidden):
   hidden macht body zum Scroll-Container und legt die festgehaltenen Abschnitte (sticky) lahm. */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--sec) 0; position: relative; }
.section--warm { background: var(--bg-2); }
.section--paper { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--green { background: #eef3e4; }

/* ---------- Typografie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.idx { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.55rem; padding: 0 0.5em; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.7rem; letter-spacing: 0; }
.section--dark .eyebrow { color: var(--on-dark-2); }
.section--dark .idx { background: var(--on-dark); color: var(--dark); }

.h-display, .h-1, .h-2, .h-3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.h-display { font-size: clamp(3rem, 7.6vw, 7.4rem); line-height: 0.92; letter-spacing: -0.045em; }
.h-1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 0.98; }
.h-2 { font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1.02; }
.h-3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; }
.h-display em, .h-1 em, .h-2 em, .h-3 em { font-style: normal; color: var(--muted); }
.section--dark .h-1 em, .section--dark .h-2 em { color: var(--on-dark-2); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.section--dark .lead { color: var(--on-dark-2); }
.small { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: 3rem; }
.head .h-1, .head .h-2 { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold, .btn--leaf, .btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -14px rgba(148, 200, 42, 0.8); }
.btn--gold:hover, .btn--leaf:hover, .btn--accent:hover { background: var(--accent-2); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); color: var(--on-accent); }
.btn--line { background: var(--bg-2); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--glass { background: rgba(255, 255, 255, 0.1); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.92rem; color: var(--ink); transition: color 0.3s, gap 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent-deep); gap: 0.8em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: var(--demo-h); z-index: 60;
  height: var(--nav-h); display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--pad); color: #fff;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), height 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.5s var(--ease);
}
.nav.is-solid { background: rgba(243, 242, 239, 0.82); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); color: var(--ink); height: 64px; box-shadow: 0 1px 0 var(--line-2); }
.nav.is-hidden { transform: translateY(-100%); }
.nav--light { color: var(--ink); }
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand img { height: 2.6rem; width: auto; transition: height 0.45s var(--ease); }
.nav.is-solid .brand img { height: 2.2rem; }
.brand__light { display: none; }
.nav.is-solid .brand__dark, .nav--light .brand__dark, .nav-open .brand__dark { display: none; }
.nav.is-solid .brand__light, .nav--light .brand__light, .nav-open .brand__light { display: block; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.04em; }
.brand__word i { font-style: normal; color: var(--accent); }
.brand__sub { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.nav__links { display: flex; gap: 0.3rem; margin-left: auto; font-size: 0.88rem; font-weight: 500; }
.nav__links a { padding: 0.5rem 0.85rem; border-radius: 999px; opacity: 0.8; transition: opacity 0.3s, background 0.3s; }
.nav__links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.nav .btn { height: 2.7rem; padding: 0 1.2rem; font-size: 0.85rem; }
.nav:not(.is-solid):not(.nav--light) .btn--dark { background: #fff; color: var(--ink); }
.nav:not(.is-solid):not(.nav--light) .btn--dark:hover { background: var(--accent); color: var(--on-accent); }
.nav__toggle { display: none; width: 2.8rem; height: 2.8rem; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 0.7rem; right: 0.7rem; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 1.15rem; }
.nav__toggle span:nth-child(2) { top: 1.6rem; }
.nav-open .nav__toggle span:nth-child(1) { top: 1.38rem; transform: rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { top: 1.38rem; transform: rotate(-45deg); }
.nav-panel {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: calc(var(--demo-h) + 6rem) var(--pad) 2rem;
  display: flex; flex-direction: column; gap: 1.6rem; clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); visibility: hidden;
}
.nav-open .nav-panel { clip-path: inset(0 0 0 0); visibility: visible; }
.nav-open .nav { color: var(--ink); background: transparent; box-shadow: none; }
.nav-panel a { font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; display: flex; gap: 1rem; align-items: baseline; }
.nav-panel a span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0; color: var(--accent); }
.nav-panel__foot { margin-top: auto; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Preloader ---------- */
.preload { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); transition: opacity 0.9s var(--ease), visibility 0.9s; }
.preload.is-done { opacity: 0; visibility: hidden; }
.preload img { width: min(300px, 64vw); height: auto; display: block; margin: 0 auto; }
.preload__bar { width: 200px; height: 2px; margin: 1.6rem auto 0; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.preload__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }

/* ---------- Hero mit 3D-Modell ---------- */
.lhero { position: relative; min-height: 100svh; overflow: hidden; color: var(--on-dark); background: radial-gradient(55% 60% at 72% 58%, rgba(148, 200, 42, 0.13), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(255, 255, 255, 0.06), transparent 70%), var(--dark); }
.lhero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(70% 70% at 70% 60%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 70% 60%, #000, transparent 75%); }
.lhero__stage { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; cursor: grab; }
.lhero__stage.is-dragging { cursor: grabbing; }
.lhero__stage canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.lhero__stage.is-ready canvas { opacity: 1; }
.lhero__inner { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; pointer-events: none; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 8rem; }
.lhero__inner a, .lhero__inner button { pointer-events: auto; }
.lhero__logo { width: min(250px, 58vw); height: auto; margin-bottom: 1.8rem; }
.lhero__tag { display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; padding: 0.45rem 0.9rem 0.45rem 0.55rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(243, 242, 239, 0.85); }
.lhero__tag i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(148, 200, 42, 0.25); }
.lhero__title { font-size: clamp(3rem, 6.2vw, 6rem); max-width: 8.5em; margin: 1.6rem 0 1.5rem; }
.lhero__title em { color: rgba(243, 242, 239, 0.42); }
.lhero .lead { color: rgba(243, 242, 239, 0.7); max-width: 29em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.lhero__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.lhero__meta .container { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; padding-top: 1.2rem; padding-bottom: 2rem; }
.lhero__meta .container > div { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.lhero__meta span { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-2); }
.lhero__meta b { display: block; margin-top: 0.35rem; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.15rem, 1.9vw, 1.6rem); }
.lhero__hint { position: absolute; right: var(--pad); top: calc(var(--nav-h) + 1.5rem); z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(243, 242, 239, 0.75); pointer-events: none; }
.no-3d .lhero__stage::after { content: ''; position: absolute; inset: 0; background: url(../img/lageplan.jpg) center / cover; opacity: 0.2; }

/* ---------- Kennzahlen, Chips, Fakten ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro__copy p + p { margin-top: 1.1rem; }
.intro__copy p { color: var(--ink-2); font-size: 1.04rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2rem; }
.chips li { padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.84rem; font-weight: 500; background: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.stat { padding: clamp(1.4rem, 2.6vw, 2.2rem); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; min-height: 11rem; }
.stat__num { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.05em; display: flex; align-items: baseline; gap: 0.15em; font-variant-numeric: tabular-nums; }
.stat__num small { font-family: var(--mono); font-weight: 500; font-size: 0.3em; letter-spacing: 0; color: var(--accent-deep); text-transform: uppercase; }
.stat__label { margin-top: 1rem; font-size: 0.86rem; color: var(--muted); }
.stat--accent { background: var(--dark); color: var(--on-dark); }
.stat--accent .stat__num { color: var(--accent); }
.stat--accent .stat__num small, .stat--accent .stat__label { color: var(--on-dark-2); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.facts li span { color: var(--muted); }
.facts li b { font-weight: 600; text-align: right; }
.facts--single { grid-template-columns: 1fr; }

/* ---------- Bild-Platzhalter (Visualisierungen folgen) ---------- */
.viz-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(10rem, 16vw, 15rem); gap: 0.75rem; }
.viz-grid .ph:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.viz-grid .ph:nth-child(2), .viz-grid .ph:nth-child(3) { grid-column: span 2; }
.viz-grid .ph:nth-child(4), .viz-grid .ph:nth-child(5), .viz-grid .ph:nth-child(6) { grid-column: span 2; }
.ph { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(150deg, #e2dfd9, #d3cfc7); color: var(--ink-2); }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 10%, rgba(255, 255, 255, 0.55), transparent 60%); }
.ph__in { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.ph__icon { display: none; }
.ph b { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--ink); }
.ph span { flex: none; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 0.35rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.6); }
.viz-grid .ph:nth-child(1) b { font-size: 1.5rem; }

/* ---------- Haus in 3D (scrollgesteuert) ---------- */
.house { position: relative; height: 220vh; background: var(--bg); }
.house__pin { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; padding: 1.2rem 0; }
.house__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.1rem; }
.house__head .h-2 { margin-top: 0.9rem; }
.floor-toggle { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); opacity: 0.35; pointer-events: none; transition: opacity 0.5s; }
.floor-toggle.is-ready { opacity: 1; pointer-events: auto; }
.floor-toggle button[data-floor] { display: flex; align-items: baseline; gap: 0.45rem; padding: 0.65rem 1.05rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); transition: 0.3s var(--ease); }
.floor-toggle button[data-floor] small { font-family: var(--mono); font-weight: 500; font-size: 0.68rem; color: var(--muted); }
.floor-toggle button[data-floor]:hover { background: var(--bg); }
.floor-toggle button[data-floor].is-active { background: var(--ink); color: #fff; }
.floor-toggle button[data-floor].is-active small { color: var(--accent); }
.floor-toggle .fl-s { display: none; }
.start__ui .floor-toggle { flex-wrap: nowrap; }
.start__ui .floor-toggle button[data-floor] { padding: 0.62rem 0.9rem; white-space: nowrap; }
.xstage { position: relative; flex: 1; min-height: 0; margin: 0 clamp(0.75rem, 2vw, 2rem); border-radius: 28px; overflow: hidden; background: radial-gradient(60% 60% at 50% 60%, #ffffff, transparent 75%), linear-gradient(180deg, #ecebe7, #e0ded8); touch-action: pan-y; cursor: grab; }
.xstage.is-dragging { cursor: grabbing; }
.xstage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s var(--ease); }
.xstage.is-ready canvas { opacity: 1; }
.xstage__cap { pointer-events: none; position: absolute; left: 1rem; bottom: 1rem; padding: 0.55rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; }
.xstage__legend { pointer-events: none; position: absolute; right: 1rem; bottom: 1rem; display: flex; gap: 0.9rem; padding: 0.55rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-family: var(--mono); font-size: 0.7rem; }
.xstage__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.xstage__legend i { width: 0.6rem; height: 0.6rem; border-radius: 3px; background: var(--accent); }
.xstage__legend span:nth-child(2) i { background: #d8b46a; }
.xstage__legend span:nth-child(3) i { background: var(--sold); }
.xstage__load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; transition: opacity 0.6s; pointer-events: none; }
.xstage.is-ready .xstage__load { opacity: 0; }
.xtip { position: absolute; left: 0; top: 0; z-index: 4; min-width: 15rem; padding: 1rem 1.05rem; border-radius: 16px; background: rgba(15, 16, 18, 0.94); backdrop-filter: blur(10px); color: #fff; font-size: 0.8rem; line-height: 1.45; pointer-events: none; opacity: 0; transition: opacity 0.2s; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.5); }
.xtip.is-on { opacity: 1; }
.xtip b { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.35rem; margin-bottom: 0.2rem; }
.xtip span { display: block; color: rgba(255, 255, 255, 0.65); }
.xtip .xtip__row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.6rem; color: #fff; }
.xtip strong { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }
.xtip .badge { font-style: normal; }
.xtip em { display: block; margin-top: 0.65rem; padding-top: 0.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-style: normal; font-weight: 600; color: var(--accent); }
.no-3d .xstage::after { content: '3D-Ansicht auf diesem Gerät nicht verfügbar'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* ---------- Wohnungen ---------- */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.75rem; padding: 0.6rem; border-radius: var(--r); background: var(--surface); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); }
.seg button { padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.83rem; font-weight: 600; color: var(--muted); transition: 0.3s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--ink); color: #fff; }
.finder__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-left: 0.6rem; }
.finder__count { margin-left: auto; padding-right: 0.8rem; font-size: 0.86rem; color: var(--muted); }
.finder__count b { font-family: var(--mono); color: var(--ink); }
.finder select { height: 2.5rem; padding: 0 2.2rem 0 1rem; border-radius: 999px; border: 0; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111214' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center; appearance: none; font-size: 0.83rem; font-weight: 600; cursor: pointer; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.75rem; }
/* Wohnungsliste auf der Startseite: fünf Wohnungen je Reihe */
.units[data-units] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.units[data-units] .unit__body { padding: 1rem 1.05rem 1.1rem; }
.units[data-units] .unit__nr { font-size: 1.35rem; }
.units[data-units] .unit__body { flex: 1; grid-template-rows: auto auto 1fr; }
.units[data-units] .unit__specs { gap: 0; font-size: 0.8rem; color: var(--ink-2); }
.units[data-units] .unit__specs span { padding: 0; background: none; font-size: inherit; }
.units[data-units] .unit__specs span + span::before { content: '·'; margin: 0 0.4em; color: var(--muted); }
.units[data-units] .unit__foot { align-self: end; padding-top: 0.2rem; }
.units[data-units] .unit__price { font-size: 0.95rem; }
.units[data-units] .unit__go { width: 2.2rem; height: 2.2rem; flex: none; }
.units[data-units] .unit__plan img { top: 3rem; left: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 4.1rem); }
@media (max-width: 1200px) { .units[data-units] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .units[data-units] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .units[data-units] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } .units[data-units] .unit__specs span:nth-child(3) { display: none; } .units[data-units] .unit__price small { display: none; } }
.unit { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.unit:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(17, 18, 20, 0.28); }
.unit__plan { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.unit__plan img { position: absolute; top: 3.4rem; left: 1.5rem; width: calc(100% - 3rem); height: calc(100% - 4.9rem); object-fit: contain; mix-blend-mode: multiply; transition: transform 0.8s var(--ease); }
.unit:hover .unit__plan img { transform: scale(1.04); }
.unit__plan .badge { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.unit__body { padding: 1.1rem 1.25rem 1.25rem; display: grid; gap: 0.8rem; border-top: 1px solid var(--line-2); }
.unit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.unit__nr { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1; }
.unit__nr small { display: block; margin-top: 0.4rem; font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.unit__specs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.unit__specs span { padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--bg); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.unit__foot { display: flex; justify-content: space-between; align-items: center; }
.unit__price { font-family: var(--mono); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.unit__price small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0; color: var(--muted); }
.unit__go { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: 0.4s var(--ease); }
.unit:hover .unit__go { background: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
.unit.is-sold .unit__plan img { opacity: 0.45; filter: grayscale(1); }
.unit.is-sold .unit__nr, .unit.is-sold .unit__price { color: var(--muted); }
.unit.is-hidden { display: none; }
.badge { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.32rem 0.7rem; border-radius: 999px; font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg); color: var(--ink); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--frei { background: var(--accent-soft); color: var(--accent-deep); }
.badge--frei::before { background: #7fb51b; }
.badge--reserviert { background: #f1ece2; color: #8a6a35; }
.badge--verkauft { background: #ecebe8; color: #8b8b87; }
.badge--anfrage { background: #ecebe8; color: var(--ink-2); }
.xtip .badge--frei { background: rgba(148, 200, 42, 0.2); color: #c6e57f; }
.xtip .badge--verkauft { background: rgba(255, 255, 255, 0.1); color: #bdbdb9; }
.units__note { margin-top: 1.6rem; font-size: 0.8rem; color: var(--muted); max-width: 62em; }

/* ---------- Geschosspläne ---------- */
.floors-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); margin-bottom: 1.2rem; }
.floors-tabs button { padding: 0.55rem 1.05rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: 0.3s var(--ease); }
.floors-tabs button:hover { color: var(--ink); }
.floors-tabs button.is-active { background: var(--ink); color: #fff; }
.floors-img { display: block; background: #fff; border-radius: var(--r); padding: clamp(1rem, 3vw, 2.5rem); cursor: zoom-in; }
/* Alle Geschosse (auch Keller) in derselben festen Fläche, Plan mittig eingepasst */
.floors-img img { width: 100%; height: auto; aspect-ratio: 1.85 / 1; object-fit: contain; }

/* ---------- Ausstattung ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.feat { padding: clamp(1.5rem, 2.6vw, 2.2rem); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; min-height: 15rem; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.feat:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(45, 70, 10, 0.35); }
.feat i { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: #e6f0d0; color: var(--accent-deep); margin-bottom: auto; }
.feat i svg { width: 1.35rem; height: 1.35rem; }
.feat b { display: block; margin-top: 2.2rem; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.feat p { margin-top: 0.55rem; color: var(--ink-2); font-size: 0.92rem; }
.feat--soft { background: #dfeac3; }
.feat--soft i { background: rgba(255, 255, 255, 0.6); }
.feat--big { background: var(--accent); color: var(--on-accent); }
.feat--big:hover { background: var(--accent-2); }
.feat--big i { margin-bottom: 0; }
.feat--big i { background: rgba(15, 16, 18, 0.1); color: var(--on-accent); }
.feat--big b { color: var(--on-accent); }
.feat--big p { color: rgba(15, 16, 18, 0.7); }
.feat--big .feat__num { font-family: var(--display); font-weight: 600; letter-spacing: -0.06em; font-size: clamp(4rem, 7vw, 6rem); line-height: 0.9; margin-top: auto; }

/* ---------- Lage ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.loc__media { position: relative; border-radius: var(--r); overflow: hidden; min-height: 28rem; background: var(--bg-2); cursor: zoom-in; }
.loc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dist { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dist th { text-align: left; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 0 0.7rem; }
.dist td { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.dist td:not(:first-child) { font-family: var(--mono); font-size: 0.86rem; }
.dist td:not(:first-child), .dist th:not(:first-child) { text-align: right; }
.dist td:first-child { font-weight: 600; }
.dist td:not(:first-child), .dist th:not(:first-child) { padding-left: 0.9rem; white-space: nowrap; }
@media (max-width: 720px) { .dist { font-size: 0.82rem; } .dist td:not(:first-child) { font-size: 0.76rem; } .dist td:not(:first-child), .dist th:not(:first-child) { padding-left: 0.55rem; } }

/* ---------- Finanzierung ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; }
.calc__in { padding: clamp(1.6rem, 3.5vw, 3rem); border-radius: var(--r); background: var(--surface); display: grid; gap: 1.7rem; align-content: start; }
.calc__out { padding: clamp(1.6rem, 3.5vw, 3rem); border-radius: var(--r); background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; }
.fld { display: grid; gap: 0.45rem; }
.fld label, .fld > span { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.field-r { display: grid; gap: 0.6rem; }
.field-r__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.88rem; }
.field-r__top label { color: var(--ink-2); font-weight: 500; }
.field-r__top output { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--bg-2) var(--p, 50%)); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: var(--bg-2); }
input[type='range']::-moz-range-progress { height: 4px; background: var(--ink); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); transition: transform 0.2s; }
input[type='range']::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); }
input[type='range']:active::-webkit-slider-thumb { transform: scale(1.15); }
.select { min-height: 3.2rem; padding: 0.8rem 2.6rem 0.8rem 1.1rem; line-height: 1.35; border-radius: var(--r-sm); border: 0; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111214' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1.1rem center; appearance: none; width: 100%; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.calc__label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-2); }
.calc__big { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.055em; margin: 0.7rem 0 0.4rem; font-variant-numeric: tabular-nums; }
.calc__big small { font-family: var(--mono); font-weight: 500; font-size: 0.17em; letter-spacing: 0; color: var(--on-dark-2); margin-left: 0.5em; }
.calc__rows { margin-top: auto; padding-top: 2rem; }
.calc__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.9rem; }
.calc__rows li b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__rows li span { color: var(--on-dark-2); }
.calc__rows li.is-sum { border-bottom: 0; color: #fff; }
.calc__rows li.is-sum b { color: var(--accent); font-size: 1.05rem; }
.calc__bar { display: flex; gap: 3px; height: 10px; margin-top: 1.4rem; }
.calc__bar i { display: block; height: 100%; border-radius: 10px; transition: width 0.6s var(--ease); }
.calc__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.75rem; font-size: 0.75rem; color: var(--on-dark-2); }
.calc__legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.45em; background: var(--c); }
.calc__note { margin-top: 1.4rem; font-size: 0.78rem; color: var(--muted); max-width: 70em; }
/* KfW-40-Förderkredit */
.kfw { display: grid; gap: 1.4rem; padding: 1.2rem 1.3rem; border-radius: calc(var(--r) * 0.7); background: var(--accent-soft, #eaf4d3); }
.kfw__head { display: flex; align-items: center; gap: 0.9rem; cursor: pointer; }
.kfw__head input { position: absolute; opacity: 0; pointer-events: none; }
.kfw__head b { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.kfw__head small { display: block; font-size: 0.78rem; color: var(--ink-2); margin-top: 0.15rem; }
.kfw__switch { flex: none; position: relative; width: 44px; height: 26px; border-radius: 26px; background: rgba(0, 0, 0, 0.16); transition: background 0.25s; }
.kfw__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease); }
.kfw__head input:checked + .kfw__switch { background: var(--accent); }
.kfw__head input:checked + .kfw__switch::after { transform: translateX(18px); }
.kfw__head input:focus-visible + .kfw__switch { outline: 2px solid var(--ink); outline-offset: 2px; }
.kfw__body { display: grid; gap: 1.4rem; }
.calc:not(.is-kfw) .kfw__body { display: none; }
.calc__rows li.is-kfw span { padding-left: 0.9rem; }
.calc__rows li[hidden], .calc__legend span[hidden] { display: none; }

/* ---------- Bauträger ---------- */
.builder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.6rem, 4vw, 3.5rem); border-radius: var(--r); background: var(--surface); }
.builder img { width: clamp(7rem, 12vw, 9.5rem); height: auto; border-radius: var(--r-sm); }
.builder .h-2 { margin: 1rem 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); }
.contact__person { display: flex; gap: 1rem; align-items: center; margin-top: 2.2rem; }
.contact__avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
.contact__person b { display: block; }
.contact__person span { font-size: 0.85rem; color: var(--muted); }
.channels { margin-top: 2rem; display: grid; gap: 0.4rem; }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; font-size: 0.95rem; transition: background 0.3s, color 0.3s; }
.channels a:hover { background: var(--ink); color: #fff; }
.channels span { font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-content: start; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r); background: var(--surface); }
.form .full { grid-column: 1 / -1; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 0.95rem 1.05rem; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--bg); transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; font-size: 0.95rem; }
.fld textarea { resize: vertical; min-height: 7.5rem; }
.fld select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111214' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1.1rem center; cursor: pointer; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 18, 20, 0.06); }
.pick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 0.6rem 1.05rem; border-radius: 999px; background: var(--bg); font-size: 0.86rem; font-weight: 600; transition: 0.3s var(--ease); }
.pick input:checked + span { background: var(--ink); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 0.7rem; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.consent input { accent-color: var(--accent); margin-top: 0.2rem; flex: none; }
.consent a { text-decoration: underline; }
.form__ok { grid-column: 1 / -1; display: none; padding: 1rem 0; }
.form__err { margin: 0; padding: 0.8rem 1rem; border-radius: 12px; background: #fbeae6; color: #8a2f1c; font-size: 0.88rem; }
.form button[disabled] { opacity: 0.6; pointer-events: none; }
.form.is-sent > *:not(.form__ok) { display: none; }
.form.is-sent .form__ok { display: block; animation: rise 0.7s var(--ease); }
.form__ok b { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.8rem; display: block; margin: 1rem 0 0.4rem; }
.form__ok p { color: var(--ink-2); font-size: 0.95rem; }
.form__ok .tick { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 1.2rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: 0.88rem; }
.footer__logo { width: min(340px, 70vw); height: auto; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.footer__mega { font-family: var(--display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(4.5rem, 17vw, 15rem); color: var(--on-dark); margin-bottom: clamp(2.5rem, 5vw, 4rem); white-space: nowrap; }
.footer__mega i { font-style: normal; color: var(--accent); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer h4 { color: var(--on-dark); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.footer li + li { margin-top: 0.45rem; }
.footer a:hover { color: var(--on-dark); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: 0.78rem; }
.footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.footer__credit { margin-top: 1.2rem; text-align: right; font-size: 0.68rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.38); }
.footer__credit a { color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer__credit a:hover { color: var(--accent); }
.footer__login { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--dark-3); color: var(--on-dark); font-weight: 600; transition: background 0.3s, color 0.3s; }
.footer__login svg { width: 0.9rem; height: 0.9rem; }
.footer__login:hover { background: var(--accent); color: var(--on-accent) !important; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 16, 18, 0.95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); background: #fff; padding: clamp(0.6rem, 2vw, 1.6rem); transform: scale(0.97); transition: transform 0.5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; }
.lightbox__btn { position: absolute; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; display: grid; place-items: center; font-size: 1.1rem; transition: background 0.3s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll-Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(10% 5% 10% 5% round var(--r)); transition: clip-path 1.4s var(--ease); }
[data-reveal='clip'].is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-mask > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }

/* ---------- Entwurfs-Hinweis ---------- */
.draft { position: fixed; right: 1rem; bottom: 1rem; z-index: 140; display: inline-flex; align-items: center; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.draft i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 0.55rem; }

/* ---------- Detailseite Wohnung ---------- */
.detail { padding-top: calc(64px + clamp(2rem, 4vw, 3.5rem)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.detail__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin: 1.6rem 0 2.4rem; }
.detail__head .h-1 { margin: 1rem 0 0.9rem; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.detail__meta span { padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--surface); font-size: 0.85rem; font-weight: 600; }
.detail__price { text-align: right; }
.detail__price b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.detail__price span { display: block; margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.detail__side { position: sticky; top: calc(64px + 1.2rem); display: grid; gap: 0.75rem; }
.plan-box { position: relative; border-radius: var(--r); background: #fff; overflow: hidden; }
.plan-box__bar { position: absolute; top: 1rem; left: 1rem; right: 1rem; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; pointer-events: none; }
.plan-box__bar > * { pointer-events: auto; }
.plan-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); }
.plan-switch button { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.plan-switch button.is-active { background: var(--ink); color: #fff; }
.plan-box__zoom { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--bg); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.plan__frame { display: grid; place-items: center; min-height: clamp(24rem, 46vw, 40rem); padding: clamp(4.5rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); cursor: zoom-in; }
.plan__frame img { width: 100%; max-height: 38rem; object-fit: contain; mix-blend-mode: multiply; transition: opacity 0.3s; }
.plan-note { margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); }
.plan-note a { color: var(--ink); font-weight: 600; }
.card { border-radius: var(--r); padding: clamp(1.3rem, 2.5vw, 2rem); background: var(--surface); }
.card h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.4rem; margin-bottom: 1rem; }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark .small { color: var(--on-dark-2); }
.card--dark .link-arrow { color: var(--on-dark); }
.card--dark .link-arrow:hover { color: var(--accent); }
.card .facts li { padding: 0.8rem 0; }
.card .facts li:last-child { border-bottom: 0; }
.card .btn { width: 100%; }
.detail__copy { margin-top: 0.75rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r); background: var(--surface); }
.detail__copy p { color: var(--ink-2); }
.detail__copy p + p { margin-top: 0.9rem; }
.detail__copy .facts { margin-top: 1.6rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.75rem; }
.pager a { display: grid; gap: 0.25rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--surface); transition: background 0.3s, color 0.3s; }
.pager a:hover { background: var(--ink); color: #fff; }
.pager a span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pager a b { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.35rem; }
.pager a:last-child { text-align: right; }
.u3d { margin-top: 0.75rem; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.u3d__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; }
.u3d__legend { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; }
.u3d__legend i { width: 0.75rem; height: 0.75rem; border-radius: 3px; background: var(--accent); }
.u3d__stage { position: relative; height: clamp(18rem, 34vw, 26rem); background: radial-gradient(60% 60% at 50% 55%, #fff, transparent 75%), linear-gradient(180deg, #efeeea, #e3e1db); touch-action: pan-y; cursor: grab; }
.u3d__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.8s var(--ease); }
.u3d__stage.is-ready canvas { opacity: 1; }
.u3d__cap { position: absolute; left: 0.9rem; bottom: 0.9rem; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-family: var(--mono); font-size: 0.68rem; pointer-events: none; }


/* ---------- Lage: Spotlight auf dem Lageplan ----------
   Die Umgebung atmet ruhig und dauerhaft leicht ins Graue, das Haus
   Konrad-Zuse-Allee 20/22 bleibt dabei immer farbig. */
.spot { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--dark); cursor: zoom-in; isolation: isolate; }
.spot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Graue Kopie liegt darüber, nur ihre Deckkraft wird animiert (schonend für den Rechner) */
.spot__grey { filter: grayscale(0.85) brightness(0.8); opacity: 0; will-change: opacity; }
.spot.is-on .spot__grey { animation: spot-breathe 7s ease-in-out 0.3s infinite; }
@keyframes spot-breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* Farbiger Ausschnitt: Haus mit Rasenfläche und Einfahrt, deckungsgleich mit dem Bild */
.spot__sharp { position: absolute; left: 40.8%; top: 64%; width: 47.4%; height: 29.1%; border-radius: 6px; background: url(../img/lageplan-flug.jpg?v=2) 77.57% 90.27% / 210.97% 343.64% no-repeat; }
.spot__street { position: absolute; top: 50%; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); white-space: nowrap; transform-origin: 0 0; transform: rotate(-90deg) translate(-50%, -50%); }
.spot__street--w { left: 3.3%; }
.spot__street--e { left: 95.6%; }
@media (max-width: 720px) { .spot__street { font-size: 0.5rem; } }
@media (prefers-reduced-motion: reduce) { .spot.is-on .spot__img { animation: none; } }


/* ---------- Hero mit Visualisierung (hell) ---------- */
.lhero--photo { color: var(--ink); background: var(--bg); min-height: 100svh; height: 100svh; }
/* Genau eine Bildschirmhöhe wie die anderen Abschnitte; Bild füllt die Fläche */
.lhero--photo .lhero__inner { min-height: 100svh; }
.lhero--photo::after { display: none; }
.lhero__bg { position: absolute; inset: 0; overflow: hidden; }
/* Bild 15 % dunkler, damit die helle Schrift gut lesbar ist */
.lhero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.15); pointer-events: none; }
.lhero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; transform-origin: 50% 55%; animation: hero-zoom 12s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
/* Text direkt auf dem Himmel des Bildes: dunkle Schrift, kein Kasten, kein Verlauf */
.lhero__card { align-self: flex-start; max-width: 44rem; pointer-events: auto; }
.lhero--photo .lhero__inner { justify-content: flex-start; padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.5rem)); }
.lhero--photo .lhero__tag { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; color: #fff; font-weight: 500; }
.lhero--photo .lhero__meta .container { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.35); }
.lhero--photo .lhero__meta .container > div { border-top: 1px solid rgba(255, 255, 255, 0.6); }
.lhero--photo .lhero__card { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3); }
.lhero--photo .lhero__card .btn { text-shadow: none; }
/* /* Überschrift: weicher Textschatten; die Einblend-Maske bekommt rundum Platz, damit nichts hart abgeschnitten wird */
.lhero--photo .lhero__title { text-shadow: none; filter: none; }
.lhero--photo .lhero__title .line-mask { padding: 0.12em 0.3em 0.22em; margin: -0.12em -0.3em -0.22em; }
.lhero--photo .lhero__title .line-mask > span { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.22); }
.lhero--photo .lhero__title { font-size: clamp(2.8rem, 5.2vw, 5.2rem); margin: 1.2rem 0 1rem; }
.lhero--photo .lhero__title em { color: rgba(255, 255, 255, 0.85); }
.lhero--photo .lead { max-width: 34em; }
.lhero--photo .lead { color: #fff; font-weight: 500; }
.lhero--photo .lhero__meta span { color: rgba(255, 255, 255, 0.92); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.35); }
.btn--white:hover { background: var(--ink); color: #fff; }
.preload { background: var(--bg); color: var(--ink); }
.preload__bar { background: rgba(17, 18, 20, 0.1); }
/* Visualisierungen */
.viz { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--bg-2); cursor: zoom-in; }
.viz img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.viz:hover img { transform: scale(1.04); }
.viz span { position: absolute; left: 1rem; bottom: 1rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }
/* Galerie: oben Garten- und Straßenseite, darunter drei Innenansichten */
.viz-grid:has(.viz) { grid-auto-rows: auto; }
.viz-grid .viz { grid-column: span 3; aspect-ratio: 4 / 3; }
.viz-grid .viz--in { grid-column: span 2; aspect-ratio: 5 / 4; }
.viz-grid--fotos { margin-top: 0.75rem; }
.viz-grid--fotos .viz { grid-column: span 2; aspect-ratio: 3 / 2; }
.viz-grid--fotos .viz:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 720px) {
  /* Handy: Schrift ebenfalls direkt auf dem Bild (Himmel oben) */
  /* Handy-Hero: Himmel oben, darunter das ganze Haus breiter als der Bildschirm,
     das langsam von links nach rechts gleitet – so ist das ganze Gebäude zu sehen */
  .lhero--photo { aspect-ratio: auto; min-height: 100svh; background: linear-gradient(180deg, #5f86b6 0%, #6b93c4 45%, #7aa0cc 100%); }
  .lhero--photo .lhero__inner { min-height: 100svh; padding-top: calc(var(--nav-h) + 1.2rem); }
  .lhero--photo .lhero__bg { top: auto; height: auto; bottom: 0; }
  .lhero--photo .lhero__bg img { width: 175vw; max-width: none; height: auto; object-fit: initial; animation: hero-pan 26s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%); }
  @keyframes hero-pan { from { transform: translateX(0); } to { transform: translateX(-75vw); } }
  .lhero--photo .lhero__bg::after { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 30%, rgba(0,0,0,0.15) 100%); }
  .lhero--photo .lhero__title { font-size: 2.65rem; margin: 0.9rem 0 0.8rem; }
  .lhero.lhero--photo .lead { display: block; font-size: 0.98rem; }
  .lhero--photo .lead br { display: none; }
  .lhero--photo .hero__actions { flex-wrap: nowrap; gap: 0.5rem; margin-top: 1.4rem; }
  .lhero--photo .hero__actions .btn { flex: 1 1 0; min-width: 0; height: 2.9rem; padding: 0 0.7rem; font-size: 0.82rem; }
  .lhero--photo .hero__actions .btn svg { display: none; }
  .lhero--photo .lhero__meta { display: block; }
  .lhero--photo .lhero__meta .container { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding-bottom: 1.4rem; }
  .lhero--photo .lhero__meta .container > div:nth-child(2), .lhero--photo .lhero__meta .container > div:nth-child(3) { display: none; }
  .lhero--photo .lhero__meta b { font-size: 1.15rem; }
  /* Startsequenz Handy: Überschrift dunkel auf hellem Grund über dem Bildband */
  .start .start__intro { color: var(--ink); text-shadow: none; top: calc(64px + 1rem); }
  .start .start__intro .eyebrow { color: var(--muted); }
  .start .start__intro .h-2 { font-size: 1.75rem; }
  .start .start__intro .h-2 em { color: var(--muted); }
  .start .start__cue { font-size: 0.82rem; }
  .start .start__rail { display: none; }
  .start .start__point { left: 34%; top: 50%; }
  .start .start__intro .h-2 { font-size: 1.45rem; }
  .bw .bw__tip { width: calc(100vw - 1.5rem); display: grid; grid-template-columns: 42% 1fr; align-items: stretch; transition: opacity 0.25s; }
  .bw .bw__view { height: auto; min-height: 9.5rem; }
  .bw .bw__view::after { display: none; }
  .bw .bw__txt { padding: 0.8rem 0.9rem; font-size: 0.74rem; }
  .bw .bw__txt b { font-size: 1.15rem; }
  .bw .bw__txt .xtip__row { margin-top: 0.35rem; }
  .bw .bw__txt em { margin-top: 0.4rem; padding-top: 0.4rem; font-size: 0.72rem; }
  .viz-grid .viz { grid-column: span 2; }
  .viz-grid .viz--in { grid-column: span 1; }
  .viz-grid .viz--in:first-of-type, .viz-grid .viz--in:nth-child(3) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .viz-grid--fotos .viz:not(:first-child) { grid-column: span 1; aspect-ratio: 1 / 1; }
}


/* ---------- TEST: Wohnungen im Bild ---------- */
.bw { position: relative; width: 100%; aspect-ratio: 4608 / 3746; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.bw > img, .bw > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.bw > canvas { pointer-events: none; }
.bw__hint { position: absolute; left: 1rem; bottom: 1rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.03em; pointer-events: none; transition: opacity 0.4s; }
.bw:hover .bw__hint { opacity: 0; }
.bw.is-ready > img { visibility: hidden; }
.bw__tip { display: block; width: 21rem; min-width: 0; padding: 0; overflow: hidden; border-radius: 20px; background: rgba(15, 16, 18, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity 0.25s, transform 0.12s linear; }
.bw__view { position: relative; height: 13rem; background: radial-gradient(70% 80% at 50% 45%, rgba(148, 200, 42, 0.16), transparent 70%), linear-gradient(180deg, #23262b, #16181b); }
.bw__mini { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bw__view::after { content: '3D aus dem IFC-Modell'; position: absolute; left: 0.8rem; top: 0.7rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.bw__txt { padding: 0.9rem 1.05rem 1rem; }
/* Wohnungsseite: eigene Wohnung in der Gartenansicht */
.detail .container { max-width: 1720px; }
.detail__grid { grid-template-columns: minmax(0, 1fr) 23rem; gap: clamp(1rem, 2.5vw, 2.5rem); }
.views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; align-items: stretch; }
.views > * { margin-top: 0 !important; display: flex; flex-direction: column; }
.views .bw--detail, .views .u3d__stage { flex: 1; height: auto; aspect-ratio: 4608 / 3746; }
@media (max-width: 1020px) { .detail__grid { grid-template-columns: 1fr; } .views { grid-template-columns: 1fr; } }
.bwd { margin-top: 0.75rem; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.bwd .u3d__head { padding: 1.1rem 1.3rem; }
.bw--detail { border-radius: 0; }
.bw__label { position: absolute; transform: translate(-50%, calc(-100% - 12px)); padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); transition: opacity 0.3s; }
.bw__label:empty { display: none; }
.bw__label::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.bw__label.is-off { opacity: 0; }
.bw--detail .bw__tip { width: 18rem; }
.bw--detail .bw__view { height: 10.5rem; }


/* ---------- Start: Visualisierung -> IFC-Modell (scrollgesteuert) ---------- */
.start { position: relative; height: 450vh; background: var(--bg); }
.start__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.start__model.xstage { position: absolute; inset: 0; margin: 0; border-radius: 0; background: radial-gradient(60% 60% at 50% 55%, #ffffff, transparent 75%), linear-gradient(180deg, #ecebe7, #e0ded8); pointer-events: none; }
.start.is-explore .start__model { pointer-events: auto; }
.start__photo.bw { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: 2; will-change: opacity; }
.start.is-scrolled .start__photo { pointer-events: none; }
.start__hero.lhero { position: absolute; inset: 0; z-index: 3; min-height: 0; height: auto; background: none; overflow: visible; pointer-events: none; }
.start__hero .lhero__inner { min-height: 100%; height: 100%; }
.start__hero .lhero__card { pointer-events: none; }
.start__hero a, .start__hero button { pointer-events: auto; }
.start__intro { position: absolute; left: 0; right: 0; top: calc(64px + 1.4rem); z-index: 3; pointer-events: none; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3); transition: opacity 0.35s var(--ease); }
.start__intro .eyebrow { color: rgba(255, 255, 255, 0.9); }
.start__intro .h-2 { margin-top: 0.8rem; max-width: 15em; }
.start__intro .h-2 em { color: rgba(255, 255, 255, 0.82); }
/* Beim Überfahren einer Wohnung tritt der Hero-Text zurück, damit Bild und Karte frei sind */
.start__hero .lhero__card, .start__hero .lhero__meta { transition: opacity 0.35s var(--ease); }
.start__photo.is-hover ~ .start__intro { opacity: 0 !important; }
.start__photo.is-hover ~ .start__point, .start.was-used .start__point, .start.is-scrolled .start__point { opacity: 0 !important; }
.start__ui { position: absolute; left: 0; right: 0; top: calc(64px + 1.2rem); z-index: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; opacity: 0; pointer-events: none; }
.start.is-explore .start__ui { pointer-events: auto; }
.start__ui .h-2 { margin-top: 0.8rem; }
.start__ui .floor-toggle { opacity: 1; pointer-events: auto; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); }
.start__badge { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.9rem 0.45rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-shadow: none; }
.start__badge i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--on-accent); animation: badge-blink 1.6s ease-in-out infinite; }
@keyframes badge-blink { 50% { opacity: 0.25; } }
/* Zeiger-Hinweis mitten auf dem Haus */
.start__point { position: absolute; left: 58%; top: 56%; z-index: 3; pointer-events: none; transition: opacity 0.4s var(--ease); }
.start__ring { position: absolute; left: -1.4rem; top: -1.4rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(148, 200, 42, 0.5); animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.start__pill { position: absolute; left: 1.6rem; top: 0.6rem; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; padding: 0.55rem 0.95rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.86rem; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55); }
.start__pill svg { width: 1rem; height: 1rem; color: var(--accent-deep); }
/* Deutlicher Hinweis: es geht weiter */
.start__cue { position: absolute; left: 50%; bottom: 1.4rem; z-index: 5; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.6rem 0.55rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); transition: opacity 0.4s var(--ease), background 0.3s; }
.start__cue:hover { background: #000; }
.start__next { opacity: 0; pointer-events: none; }
.start__cue i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: cue-bounce 1.4s var(--ease) infinite; }
.start__cue i svg { width: 1.1rem; height: 1.1rem; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
/* Fortschritt der Sequenz rechts */
.start__rail { position: absolute; right: var(--pad); top: 50%; z-index: 5; transform: translateY(-50%); display: grid; grid-template-rows: repeat(3, 4.2rem); padding-left: 1.1rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); pointer-events: none; }
.start__rail b { position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.start__rail b i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.start.is-scrolled .start__rail { color: var(--ink-2); text-shadow: none; }
.start.is-scrolled .start__rail b { background: rgba(17, 18, 20, 0.12); }
.start .lhero__meta { bottom: 3.6rem; }
.start .xstage__cap, .start .xstage__legend { bottom: 1.4rem; }
.start .xstage__cap { left: var(--pad); }
.start .xstage__legend { right: var(--pad); }
@media (max-width: 720px) {
  .start { height: 360vh; }
  .start__ui { flex-direction: column; align-items: flex-start; top: calc(64px + 0.8rem); }
}

/* Wohnungsseite Handy: feste Leiste mit Preis + Anfrage */
.mbar { display: none; }
@media (max-width: 1020px) {
  .mbar { position: fixed; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom)); z-index: 120; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0.55rem 0.55rem 1.1rem; border-radius: 999px; background: rgba(15, 16, 18, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }
  .mbar b { display: block; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: 1.15rem; line-height: 1.1; }
  .mbar span { display: block; font-size: 0.72rem; color: var(--on-dark-2); }
  .mbar .btn { height: 2.8rem; padding: 0 1.3rem; font-size: 0.86rem; }
  .mbar .btn--line { background: var(--dark-3); color: #fff; }
  .has-mbar .draft { bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .has-mbar .footer { padding-bottom: 6rem; }
}

/* Texte je nach Bedienung (Maus oder Finger) */
.only-touch { display: none; }
@media (hover: none) { .only-hover { display: none !important; } .only-touch { display: inline !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav > .btn { display: none; }
  .head--split, .intro, .loc, .contact, .calc, .detail__grid { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .loc__media { min-height: 22rem; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .lhero__meta .container { grid-template-columns: repeat(3, 1fr); row-gap: 0.4rem; }
  .finder { border-radius: var(--r); }
}
@media (max-width: 720px) {
  :root { --nav-h: 64px; --r: 16px; }
  .brand__sub { display: none; }
  .viz-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 9rem; }
  .viz-grid .ph:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .viz-grid .ph:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .ph__in { flex-direction: column; align-items: flex-start; gap: 0.4rem; left: 0.9rem; bottom: 0.8rem; }
  .ph b { font-size: 0.95rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .house__head { flex-direction: column; align-items: flex-start; }
  .floor-toggle button[data-floor] { padding: 0.55rem 0.75rem; font-size: 0.8rem; }
  .floor-toggle button[data-floor] small { display: none; }
  .floor-toggle .fl-l { display: none; }
  .floor-toggle .fl-s { display: inline; }
  .start__ui .floor-toggle button[data-floor] { padding: 0.55rem 0.7rem; }
  .xstage__legend { display: none; }
  .lhero .lead { display: none; }
  .lhero__inner { justify-content: flex-start; padding-top: calc(var(--nav-h) + 1.5rem); }
  .lhero__meta { display: none; }
  .lhero__hint { top: auto; bottom: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .detail__head { grid-template-columns: 1fr; }
  .detail__price { text-align: left; }
  .finder__count { margin-left: 0; width: 100%; padding-left: 0.6rem; }
  .finder__label { display: none; }
  .finder__rooms { display: none; }
  .builder { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .stat { min-height: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-reveal='clip'] { opacity: 1; transform: none; clip-path: none; }
  .line-mask > span { transform: none; }
}

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal { padding: calc(64px + clamp(2.5rem, 6vw, 5rem)) 0 clamp(4rem, 8vw, 7rem); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal__body { max-width: 44rem; font-size: 0.98rem; line-height: 1.65; color: var(--ink-2); }
.legal__body h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); margin: 2.6rem 0 0.8rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 0.78rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 0.4rem; }
.legal__body p + p { margin-top: 0.8rem; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } }
.legal__body ul { margin: 0.6rem 0 0.8rem; padding-left: 1.1rem; }
.legal__body li { margin: 0.3rem 0; }
.legal__body li::marker { color: var(--accent); }
.legal__body b { color: var(--ink); font-weight: 600; }
/* Solange der „Entwurf“-Hinweis unten rechts steht, bleibt der Designed-by-Vermerk darüber frei */
body:has(.draft) .footer { padding-bottom: 5rem; }
