/* =========================================================
   Köpenicker Straße 90 — Styles
   Dark/Light Theme wird per Scroll gewechselt (@property)
   ========================================================= */

@property --bg { syntax: '<color>'; inherits: true; initial-value: #10211b; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #ece8dc; }

:root {
  --ink: #10211b;
  --ink-rgb: 16, 33, 27;
  --ink-2: #0c1a15;
  --ink-3: #17302a;
  --paper: #ece8dc;
  --paper-rgb: 236, 232, 220;
  --paper-fg: #12201a;
  --brass: #d7a648;
  --brass-2: #ecc16a;
  --brass-deep: #906514;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 4.2vw, 72px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  --bg: var(--ink);
  --fg: var(--paper);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: --bg .9s var(--ease), --fg .9s var(--ease);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  --mute: color-mix(in srgb, var(--fg) 58%, transparent);
  --soft: color-mix(in srgb, var(--fg) 8%, transparent);
}
body[data-theme="light"] { --bg: var(--paper); --fg: var(--paper-fg); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--ink); }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  color: var(--mute);
}
.display, .h1, .h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.015em; }
.display { font-size: clamp(54px, 9.4vw, 168px); }
.h1 { font-size: clamp(46px, 7.4vw, 124px); }
.h2 { font-size: clamp(38px, 5.6vw, 92px); }
em { font-style: italic; color: var(--brass); }
body[data-theme="light"] em { color: var(--brass-deep); }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; max-width: 44ch; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.fine { font-size: 12.5px; color: var(--mute); max-width: 70ch; }
.sec-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 110px); }
.sec-head--row { grid-template-columns: 1fr minmax(260px, 420px); align-items: end; gap: clamp(32px, 6vw, 120px); }

/* split-word masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .26em .28em .26em; margin: -.08em -.26em -.28em -.26em; }
.wi { display: inline-block; will-change: transform; }
.mask { display: block; overflow: hidden; padding: .08em .26em .28em .26em; margin: -.08em -.26em -.28em -.26em; }
.mask__in { display: block; will-change: transform; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper);
  display: none; align-items: center; justify-content: center;
}
.js .loader { display: flex; }
.loader__inner { display: flex; align-items: baseline; gap: 22px; }
.loader__label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; }
.loader__count { font-family: var(--serif); font-size: clamp(80px, 14vw, 220px); line-height: .9; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; height: 1px; background: rgba(var(--paper-rgb),.15); }
.loader__bar i { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }

/* ---------- Grain / Progress / Cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.cursor { position: fixed; top: 0; left: 0; z-index: 960; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor i { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.is-big i { transform: scale(4.2); }
.cursor.is-link i { transform: scale(2.2); }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px var(--pad); color: #fff; mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { font-size: 14px; letter-spacing: .06em; font-weight: 400; }
.nav__brand b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; margin-left: 2px; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 44px); font-size: 13px; letter-spacing: .04em; }
.nav__links a, .nav__cta { position: relative; padding: 4px 0; }
.nav__links a::after, .nav__cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 13px; letter-spacing: .04em; display: inline-flex; gap: 8px; align-items: center; }
.nav__cta span { transition: transform .4s var(--ease); }
.nav__cta:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: var(--paper); }
.hero__media { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 55%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb),.55) 0%, rgba(var(--ink-rgb),0) 28%, rgba(var(--ink-rgb),0) 45%, rgba(var(--ink-rgb),.86) 100%),
    linear-gradient(90deg, rgba(var(--ink-rgb),.45), rgba(var(--ink-rgb),0) 60%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%; padding: calc(var(--nav-h) + 24px) var(--pad) clamp(28px, 4.5vw, 56px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(20px, 3vw, 44px);
  max-width: 1480px; margin-inline: auto;
}
.hero__eyebrow { color: rgba(var(--paper-rgb),.75); }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 14.6vw, 260px); line-height: .88; letter-spacing: -.03em; }
.hero__title em { color: var(--brass-2); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 22px; border-top: 1px solid rgba(var(--paper-rgb),.25); }
.hero__lede { max-width: 46ch; font-size: clamp(15px, 1.15vw, 18px); color: rgba(var(--paper-rgb),.82); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.hero__scrollline { position: relative; width: 56px; height: 1px; background: rgba(var(--paper-rgb),.3); overflow: hidden; }
.hero__scrollline::after { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateX(-100%); animation: sline 2.2s var(--ease) infinite; }
@keyframes sline { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Vision ---------- */
.vision { padding-bottom: 0; }
.vision .wrap { display: grid; gap: clamp(28px, 4vw, 56px); }
.vision__text {
  font-family: var(--serif); font-size: clamp(30px, 4.7vw, 76px); line-height: 1.06; letter-spacing: -.012em;
  max-width: 24em; text-wrap: balance;
}
.gsap-ready .vision__text .sw { opacity: .14; }
.band { margin: clamp(80px, 12vw, 180px) 0 0; position: relative; }
.band__frame { overflow: hidden; height: clamp(360px, 78vh, 860px); clip-path: inset(0 var(--bandInset, 12%) 0 var(--bandInset, 12%)); }
.band__frame img { width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band__cap { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.vision + .facts { padding-top: clamp(96px, 14vw, 200px); }

/* ---------- Facts ---------- */
.facts__grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 28px clamp(10px, 1.6vw, 28px) 36px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fact + .fact { padding-left: clamp(14px, 1.8vw, 32px); }
.fact:last-child { border-right: 0; }
.fact dt { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); min-height: 2.8em; }
.fact dd { display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); line-height: .95; }
.fact .num { font-size: clamp(54px, 6.2vw, 108px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact small { font-family: var(--sans); font-size: 15px; color: var(--mute); }
.fact p { font-size: 14.5px; color: color-mix(in srgb, var(--fg) 70%, transparent); max-width: 26ch; }
.facts .fine { margin-top: 40px; }

/* ---------- Das Haus (pinned) ---------- */
.house { padding-bottom: 0; }
.house__intro { display: grid; gap: 32px; padding-bottom: clamp(48px, 7vw, 100px); }
.house__sticky {
  position: relative; height: 100svh; min-height: 640px; width: 100%;
  display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(20px, 2.6vw, 48px);
  padding: calc(var(--nav-h) - 8px) var(--pad) 76px; max-width: 1560px; margin-inline: auto; align-items: stretch;
  border-top: 1px solid var(--line);
}
.house__stage { position: relative; display: grid; place-items: center; perspective: 2400px; overflow: visible; }
.stack {
  position: relative; width: min(27vw, 440px); aspect-ratio: 400 / 220;
  transform-style: preserve-3d;
  transform: translateY(6%) rotateX(60deg) rotateZ(-36deg);
}
.slab { position: absolute; inset: 0; transform-style: preserve-3d; --tint: #888; }
.slab__s, .slab__t {
  position: absolute; inset: 0;
  clip-path: polygon(0 52%, 36% 52%, 36% 0, 66% 0, 66% 52%, 100% 52%, 100% 100%, 0 100%);
}
.slab__s { background: var(--ink-3); }
.slab__t {
  background: color-mix(in srgb, var(--paper) 9%, var(--ink-2));
  transition: background .8s var(--ease);
}
.slab.is-on .slab__t { background: var(--tint); }
.slab.is-on .slab__s { background: color-mix(in srgb, var(--tint) 45%, var(--ink)); }
.slab.is-past .slab__t { background: color-mix(in srgb, var(--paper) 14%, var(--ink-2)); }
.slab__t b {
  position: absolute; left: 4.5%; bottom: 10%; font: 400 clamp(11px, 1.05vw, 15px)/1 var(--sans); letter-spacing: .14em;
  color: rgba(var(--paper-rgb),.4); transition: color .6s;
}
.slab.is-on .slab__t b { color: rgba(var(--ink-rgb),.8); }
.slab__t::after {
  content: ''; position: absolute; left: 42%; top: 12%; width: 18%; height: 44%;
  border: 1px solid rgba(var(--paper-rgb),.08);
}
.slab.is-on .slab__t::after { border-color: rgba(var(--ink-rgb),.28); }
.house__meter { position: absolute; left: 0; bottom: 4px; display: flex; flex-direction: column; gap: 6px; }
.house__meter-label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.house__meter-val { font-family: var(--serif); font-size: clamp(72px, 9vw, 150px); line-height: .85; letter-spacing: -.03em; }

.house__panel { position: relative; padding-right: 64px; min-height: 0; }
.floors { position: relative; height: 100%; }
.floor { position: absolute; inset: 0; display: flex; flex-direction: column; gap: clamp(16px, 2.2vh, 28px); visibility: hidden; opacity: 0; }
.floor.is-on { visibility: visible; opacity: 1; }
.floor__media { position: relative; flex: 1 1 0; min-height: 220px; overflow: hidden; background: var(--ink-2); }
.floor__media img { width: 100%; height: 100%; object-fit: cover; }
.floor__body { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 28px; min-height: 0; flex: 0 0 auto; }
.floor__id { display: flex; flex-direction: column; gap: 8px; }
.floor__lvl { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 76px); line-height: .9; letter-spacing: -.02em; }
.floor__area { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.floor__txt h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 48px); line-height: 1; margin-bottom: 14px; letter-spacing: -.01em; }
.floor__txt p { font-size: clamp(14.5px, 1.05vw, 16.5px); max-width: 52ch; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; }
.floor__note { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.floor__note::before { content: '— '; }

/* Schematic media */
.floor__media--plan { display: grid; place-items: center; background: color-mix(in srgb, var(--tint, var(--brass)) 16%, var(--ink-2)); }
.floor__media--plan img { object-fit: contain; padding: 1.2%; }

.floor__media--trio { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; background: transparent; }
.floor__media--trio img { height: 100%; }
.floor__media--sky { background: linear-gradient(180deg, var(--ink-3) 0%, color-mix(in srgb, var(--brass) 30%, var(--ink-3)) 62%, var(--brass) 100%); display: grid; place-items: end start; padding: 18px; }
.sky__sun { position: absolute; left: 62%; top: 44%; width: clamp(80px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #f5dfae, #e0a85b 60%, rgba(224,168,91,0) 72%); filter: blur(1px); }
.sky__line { position: absolute; left: 0; right: 0; bottom: 22%; height: 1px; background: rgba(var(--paper-rgb),.35); }
.sky__cap { position: relative; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(var(--paper-rgb),.65); }

/* Rail */
.rail { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: flex; flex-direction: column-reverse; justify-content: space-between; align-items: flex-end; padding-block: 6px; }
.rail::before { content: ''; position: absolute; right: 5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rail__fill { position: absolute; right: 5px; bottom: 0; width: 1px; height: 0; background: var(--brass); }
.rail button { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 0 4px 14px; font-size: 11px; letter-spacing: .12em; color: var(--mute); transition: color .4s; }
.rail button::after { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--mute); background: var(--bg); transition: all .4s var(--ease); }
.rail button.is-on { color: var(--fg); }
.rail button.is-on::after { background: var(--brass); border-color: var(--brass); transform: scale(1.25); }
.rail button.is-past::after { border-color: var(--brass); }

/* ---------- Reel ---------- */
.reel { position: relative; }
.reel__sticky { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel__head { position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.reel__count { font-family: var(--serif); font-size: 28px; display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.reel__count i { font-style: normal; color: var(--mute); }
.reel__count span:last-child { color: var(--mute); }
.reel__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); height: 100%; padding: calc(var(--nav-h) + 40px) var(--pad) 60px; width: max-content; will-change: transform; }
.reel__intro { flex: 0 0 min(80vw, 640px); display: grid; gap: 28px; }
.reel__hint { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.reel__end { flex: 0 0 8vw; }
.card { flex: 0 0 auto; display: grid; gap: 14px; align-content: start; }
.card--low { margin-top: 12vh; }
.card__img { overflow: hidden; height: min(46vh, 520px); }
.card--wide .card__img { aspect-ratio: 3 / 2; }
.card--tall .card__img { aspect-ratio: 4 / 5; }
.card__img img { width: 120%; max-width: none; height: 100%; margin-left: -10%; object-fit: cover; will-change: transform; }
.card figcaption { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; gap: 14px; }
.card figcaption b { font-weight: 400; color: var(--brass); }
.reel__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; height: 1px; background: var(--line); }
.reel__bar i { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }

/* ---------- Haltung ---------- */
.haltung__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.haltung__head { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 28px; }
.principles { display: grid; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__n { font-family: var(--serif); font-size: 22px; color: var(--brass-deep); }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; margin-bottom: 14px; }
.principle p { max-width: 46ch; color: color-mix(in srgb, var(--fg) 75%, transparent); }

/* ---------- Plans ---------- */
.plans { padding-top: 0; }
.plans__tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.plans__tabs button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; letter-spacing: .04em; transition: all .4s var(--ease); }
.plans__tabs button:hover { border-color: var(--fg); }
.plans__tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.plans__view { position: relative; aspect-ratio: 16 / 7.4; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-bottom: 18px; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.025); transition: opacity .7s var(--ease), transform 1.2s var(--ease); padding: 2%; }
.plan.is-on { opacity: 1; transform: none; }

/* ---------- Lage ---------- */
.lage__grid { display: grid; grid-template-columns: 8fr 5fr; gap: clamp(32px, 6vw, 110px); align-items: start; margin-bottom: 36px; }
.transit { position: sticky; top: calc(var(--nav-h) + 12px); }
.transit svg { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--nav-h) - 70px); overflow: hidden; background: color-mix(in srgb, var(--paper) 3%, var(--ink)); border: 1px solid var(--line); }
.transit .fine { margin-top: 10px; }
.t-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.t-line--s { stroke: var(--paper); }
.t-line--u { stroke: var(--brass); }
.t-walk { fill: none; stroke: var(--paper); stroke-width: 2; stroke-dasharray: .02 .025; opacity: .8; stroke-dashoffset: 1; }
.t-spree { fill: none; stroke: rgba(var(--paper-rgb),.18); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.t-spree-label { fill: rgba(var(--paper-rgb),.38); font: 400 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.t-st circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.t-st--hub circle { stroke-width: 3.5; fill: var(--paper); }
.t-st--hl circle { fill: var(--brass); stroke: var(--paper); }
.t-st text { fill: rgba(var(--paper-rgb),.82); font: 300 13px var(--sans); letter-spacing: .02em; }
.t-house rect { fill: var(--brass-2); }
.t-house text { fill: var(--brass-2); font: 400 15px var(--sans); }
.t-pulse { fill: none; stroke: var(--brass-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.t-pulse--2 { animation-delay: 1.4s; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(4.4); opacity: 0; } }
.t-legend text { fill: rgba(var(--paper-rgb),.55); font: 300 12px var(--sans); letter-spacing: .08em; }
.t-line--s2, .t-line--u2, .t-walk2 { stroke-width: 4; stroke-linecap: round; }
.t-line--s2 { stroke: var(--paper); } .t-line--u2 { stroke: var(--brass); } .t-walk2 { stroke: var(--paper); stroke-dasharray: 2 5; stroke-width: 2; }

.routes { display: grid; }
.route { padding: 26px 0; border-top: 1px solid var(--line); }
.route:last-child { border-bottom: 1px solid var(--line); }
.route__top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.route h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; }
.route p { color: color-mix(in srgb, var(--fg) 72%, transparent); max-width: 44ch; font-size: 15.5px; }
.badge { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap; }
.badge--u { background: var(--brass); }
.badge--hub, .badge--car, .badge--walk { background: transparent; color: var(--fg); border: 1px solid var(--line); }

.hops { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); margin: clamp(36px, 5vw, 72px) 0 22px; }
.hops li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; padding: 22px 16px 24px 0; }
.hops li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hops b { font: 400 clamp(44px, 5vw, 84px)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hops small { font-size: 13px; color: var(--mute); }
.hops span { grid-column: 1 / -1; margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 899px) { .hops { grid-template-columns: 1fr 1fr; } .hops li:nth-child(odd) { padding-left: 0; border-left: 0; } .hops li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Mieten ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.model { position: relative; padding: clamp(24px, 2.6vw, 40px); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; transition: transform .8s var(--ease), background .6s, color .6s; min-height: 520px; }
.model:hover { transform: translateY(-8px); }
.model--hl { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.model__n { font-family: var(--serif); font-size: 22px; color: var(--brass-deep); }
.model--hl .model__n { color: var(--brass-2); }
.model h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.3vw, 54px); line-height: 1; }
.model__big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); font-style: italic; color: var(--brass-deep); }
.model--hl .model__big { color: var(--brass-2); }
.model > p:not(.model__big) { font-size: 15.5px; opacity: .8; }
.model ul { margin-top: auto; display: grid; gap: 0; }
.model li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 14px; display: flex; gap: 10px; }
.model li::before { content: '+'; color: var(--brass-deep); }
.model--hl li::before { color: var(--brass-2); }
.perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px, 5vw, 72px); }
.perks li { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; }

/* ---------- Kontakt ---------- */
.kontakt__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.kontakt__grid > div { display: grid; gap: 32px; }
.kontakt__direct { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.3; }
.kontakt__direct a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.kontakt__direct a:hover { background-size: 100% 1px; }
.form { display: grid; gap: 22px; }
.form label > span, .form legend { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; padding: 0; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--fg); font: 300 19px/1.4 var(--sans); outline: none; transition: border-color .4s; border-radius: 0; resize: none;
}
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--fg) 30%, transparent); }
.form input:focus, .form textarea:focus { border-color: var(--brass); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.form .chips label > span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; letter-spacing: .02em; color: var(--fg); text-transform: none; margin: 0; transition: all .4s var(--ease); }
.form .chips label:hover > span { border-color: var(--fg); }
.form .chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form .chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; background: var(--paper); color: var(--ink); font-size: 15px; letter-spacing: .04em; border-radius: 99px; width: 100%; transition: background .5s var(--ease), color .5s; position: relative; overflow: hidden; }
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover { background: var(--brass); }
.btn:hover i { transform: translateX(6px); }
.form .fine { margin-top: -6px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 100px) 0 36px; border-top: 1px solid var(--line); color: var(--paper); background: var(--ink); }
.footer__big { font-family: var(--serif); font-size: clamp(220px, 46vw, 760px); line-height: .72; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(var(--paper-rgb),.28); letter-spacing: -.04em; margin-bottom: clamp(24px, 3vw, 48px); user-select: none; padding-top: .06em; }
.footer__big span { display: inline-block; will-change: transform; }
.footer__row { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: rgba(var(--paper-rgb),.7); flex-wrap: wrap; }
.footer__row b { color: var(--paper); font-weight: 400; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 26px 16px 30px 0; border-right: 0; border-top: 1px solid var(--line); }
  .fact:first-child { grid-column: 1 / -1; border-top: 0; }
  .fact:nth-child(odd):not(:first-child) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .models { grid-template-columns: 1fr; }
  .model { min-height: 0; }
  .nav__links { display: none; }
}
@media (max-width: 899px) {
  body { font-size: 16px; }
  .sec-head--row, .haltung__grid, .lage__grid, .kontakt__grid { grid-template-columns: 1fr; }
  .haltung__head, .transit { position: static; }

  /* Haus: normal flow statt Pin */
  .house__sticky { display: block; height: auto; min-height: 0; padding: 0 var(--pad); border-top: 0; }
  .house__stage, .rail { display: none; }
  .house__panel { padding: 0; }
  .floors { display: grid; gap: 64px; height: auto; }
  .floor { position: static; visibility: visible; opacity: 1; }
  .floor__media { flex-basis: auto; height: 62vw; min-height: 220px; }
  .floor__body { grid-template-columns: 1fr; gap: 14px; }
  .floor__id { flex-direction: row; align-items: baseline; gap: 16px; }

  /* Reel: native Swipe */
  .reel__sticky { height: auto; min-height: 0; padding: 120px 0 56px; display: block; overflow: visible; }
  .reel__head, .reel__bar { display: none; }
  .reel__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 12px; align-items: flex-start; height: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .reel__track::-webkit-scrollbar { display: none; }
  .reel__track > * { scroll-snap-align: start; }
  .reel__intro { flex-basis: 82vw; }
  .card--low { margin-top: 0; }
  .card__img { height: auto; width: 78vw; }
  .card--tall .card__img { width: 64vw; }
  .card__img img { width: 100%; margin: 0; }
  .plans__view { aspect-ratio: 4 / 3; }
  .footer__row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scrollline::after, .t-pulse { animation: none; }
  .gsap-ready .vision__text .sw { opacity: 1; }
}


/* Grundriss-Overlay & Umschalter */
.floor__plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.2%; background: color-mix(in srgb, var(--tint, var(--brass)) 16%, var(--ink-2)); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.floor__media.is-plan .floor__plan { opacity: 1; visibility: visible; }
.floor__toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: rgba(var(--ink-rgb), .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .4s, color .4s; }
.floor__toggle:hover { background: var(--paper); color: var(--ink); }
/* Keine Zeilenumbrüche in Etagenangaben */
.floor__lvl, .floor__area, .rail button, .house__meter-val, .slab__t b { white-space: nowrap; }

.m-lm path { fill: color-mix(in srgb, var(--brass) 38%, transparent); stroke: var(--brass); stroke-width: 1.2; stroke-linejoin: round; }
.m-lm circle { fill: var(--brass-2); }
.m-lm text { fill: var(--brass-2); font: 500 14px var(--sans); letter-spacing: .02em; paint-order: stroke; stroke: var(--ink); stroke-width: 4.5px; stroke-linejoin: round; }
.m-lm-key { fill: color-mix(in srgb, var(--brass) 38%, transparent); stroke: var(--brass); stroke-width: 1; }

/* ---------- Lage-Karte (OSM, maßstäblich) ---------- */
#map { font-family: var(--sans); }
.m-water path { fill: color-mix(in srgb, var(--paper) 14%, var(--ink)); }
.m-water .m-river { fill: none; stroke: color-mix(in srgb, var(--paper) 11%, var(--ink)); stroke-width: 32; stroke-linecap: round; stroke-linejoin: round; }
.m-water .m-canal { fill: none; stroke: color-mix(in srgb, var(--paper) 11%, var(--ink)); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.m-bld path { fill: color-mix(in srgb, var(--paper) 9%, var(--ink)); stroke: none; }
.m-roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-minor { stroke: rgba(var(--paper-rgb), .10); stroke-width: 1.1; }
.r-ped { stroke: rgba(var(--paper-rgb), .08); stroke-width: .9; }
.r-mid { stroke: rgba(var(--paper-rgb), .17); stroke-width: 2; }
.r-major { stroke: rgba(var(--paper-rgb), .30); stroke-width: 3.6; }
.m-rail path { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.m-ubahn { stroke: rgba(var(--paper-rgb), .28); stroke-width: 1.4; stroke-dasharray: 3 3; }
.m-sbahn-bed { stroke: var(--ink); stroke-width: 6; }
.m-sbahn { stroke: var(--paper); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.m-u8 { stroke: var(--brass); stroke-width: 3.4; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round !important; }
.m-legend path { fill: none; }
.m-legend .m-sbahn, .m-legend .m-u8 { stroke-dasharray: none; stroke-dashoffset: 0; }
.m-legend .m-ubahn { stroke-dasharray: 3 3; }
.m-ring { fill: none; stroke: rgba(var(--paper-rgb), .38); stroke-width: 1; stroke-dasharray: 2 5; }
.m-ringlab { fill: rgba(var(--paper-rgb), .55); font: 400 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; paint-order: stroke; stroke: var(--ink); stroke-width: 4px; }
.m-street { fill: rgba(var(--paper-rgb), .5); font: 400 12.5px var(--sans); letter-spacing: .08em; paint-order: stroke; stroke: var(--ink); stroke-width: 3px; }
.m-waterlab { fill: rgba(var(--paper-rgb), .38); font: italic 400 19px var(--serif); letter-spacing: .2em; }
.m-house-fp { fill: var(--brass-2); stroke: none; }
.m-walk { fill: none; stroke: var(--brass-2); stroke-width: 1.6; stroke-dasharray: .015 .02; stroke-dashoffset: 1; }
.m-walk--l { stroke-dasharray: 3 3; stroke-dashoffset: 0; }
.m-st circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.m-st .m-num { fill: var(--ink); font: 600 14px var(--sans); }
.m-stname { fill: var(--paper); font: 500 17px var(--sans); paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.m-stsub { fill: rgba(var(--paper-rgb), .62); font: 400 13px var(--sans); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.m-house rect { fill: var(--brass-2); stroke: var(--ink); stroke-width: 2; }
.m-house circle { fill: none; }
.m-house text { fill: var(--brass-2); font: 600 18px var(--sans); paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
.m-pulse { fill: none; stroke: var(--brass-2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.m-pulse--2 { animation-delay: 1.4s; }
.m-scale path { fill: none; stroke: rgba(var(--paper-rgb), .7); stroke-width: 1.5; }
.m-scale text, .m-north text, .m-legend text { fill: rgba(var(--paper-rgb), .75); font: 400 13px var(--sans); letter-spacing: .06em; }
.m-north path { fill: rgba(var(--paper-rgb), .7); }
.route__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--paper); color: var(--ink); font: 500 13px var(--sans); }
@media (prefers-reduced-motion: reduce) { .m-pulse { animation: none; } }

/* Kontakt-CTA (Startseite) */
.kontakt__cta { display: grid; gap: 32px; justify-items: start; }
.kontakt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.btn--inline { width: auto; min-width: 320px; }

/* ---------- Unterseiten ---------- */
.subpage .page-hero { padding-top: clamp(130px, 14vw, 200px); padding-bottom: clamp(70px, 9vw, 140px); }
.subpage .page-hero .display { margin: 18px 0 8px; }
.subpage .page-hero .h1 { margin: 18px 0 8px; }
.subpage .kontakt__grid > div { display: grid; gap: 30px; align-content: start; }
.subpage .page-hero > .wrap > * { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.steps { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px auto 1fr; gap: 6px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps b { font: 400 22px var(--serif); color: var(--brass); }
.steps span { font: 400 24px var(--serif); }
.steps small { color: var(--mute); font-size: 14px; }
.footer--slim { padding-top: clamp(40px, 5vw, 70px); }
.footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.footer a:hover { background-size: 100% 1px; color: var(--paper); }
.legal__wrap { max-width: 880px; }
.legal__lead { font-size: 19px; color: var(--mute); margin: 0 0 clamp(36px, 5vw, 64px); }
.legal h2 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); margin: 44px 0 12px; color: var(--paper); }
.legal p { max-width: 68ch; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.legal a { color: var(--brass-2); border-bottom: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); }
.nav__cta[href="kontakt.html"].is-current { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .subpage .page-hero > .wrap > * { animation: none; } }

/* ---------- Dock: Besichtigung vereinbaren (mittig, schwarz transparent) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 790; display: flex; justify-content: center; pointer-events: none; padding-inline: 14px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.dock__bar { pointer-events: auto; display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 26px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.dock__text { color: #fff; font: 400 14px var(--sans); letter-spacing: .06em; white-space: nowrap; }
.dock__btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 24px; border-radius: 99px; background: var(--brass); color: #10211b; font: 500 14px var(--sans); letter-spacing: .03em; white-space: nowrap; transition: background .4s var(--ease), transform .4s var(--ease); }
.dock__btn span { transition: transform .4s var(--ease); }
.dock__btn:hover { background: var(--brass-2); }
.dock__btn:hover span { transform: translateX(4px); }
.dock.is-away { opacity: 0; transform: translateY(70px); }
.dock.is-away .dock__bar { pointer-events: none; }
@media (max-width: 560px) { .dock { bottom: 12px; } .dock__bar { gap: 12px; padding-left: 18px; } .dock__text { font-size: 12.5px; } .dock__btn { padding: 0 16px; height: 40px; font-size: 13px; } }

/* Sprachumschalter im Header */
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav .lang { display: flex; align-items: center; gap: 0; }
.nav .lang button { height: 26px; min-width: 34px; padding: 0 9px; border: 0; background: transparent; color: rgba(255,255,255,.55); font: 500 12px var(--sans); letter-spacing: .14em; cursor: pointer; transition: color .3s; }
.nav .lang button + button { border-left: 1px solid rgba(255,255,255,.3); }
.nav .lang button:hover { color: #fff; }
.nav .lang button[aria-pressed="true"] { color: #fff; }

/* ---------- Einwilligungs-Banner ---------- */
.consent { position: fixed; z-index: 900; left: 18px; bottom: 18px; width: min(430px, calc(100vw - 36px)); padding: 22px 22px 20px; border-radius: 22px; background: rgba(0,0,0,.78); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 60px rgba(0,0,0,.45); color: #f3efe6; opacity: 0; transform: translateY(40px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.consent.is-in { opacity: 1; transform: none; }
.consent__title { font: 400 24px/1.1 var(--serif); margin: 0 0 8px; }
.consent__text { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; color: rgba(243,239,230,.8); }
.consent__text a { color: var(--brass-2); border-bottom: 1px solid rgba(236,193,106,.5); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn { height: 44px; border-radius: 99px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; font: 500 14px var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.consent__btn:hover { background: #fff; color: #10211b; border-color: #fff; }
.consent__btn.is-current { border-color: var(--brass); }
.consent__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.has-consent-banner .dock { opacity: 0; transform: translateY(70px); pointer-events: none; }
.footer__legal a[data-consent-open] { cursor: pointer; }
@media (max-width: 560px) { .consent { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; } .consent__title { font-size: 21px; } }
