/* ============================================================================
   TT Traumdesign — Interior Motion
   Motion-Sprache aus dem Raum abgeleitet:
   · Wandpaneele heben sich (Intro)       · Rundbogen öffnet Bilder (Arch-Reveal)
   · Farbfächer fächert beim Scrollen auf  · Lichtstimmung wechselt (Tonwechsel)
   Alle versteckten Startzustände hängen an .js – ohne JavaScript ist alles sichtbar.
   ========================================================================== */

/* Registrierte Properties → Farben lassen sich weich überblenden */
@property --bg     { syntax: "<color>"; inherits: true; initial-value: #0a3049; }
@property --ink    { syntax: "<color>"; inherits: true; initial-value: #f3eee5; }
@property --soft   { syntax: "<color>"; inherits: true; initial-value: rgba(243, 238, 229, .74); }
@property --line   { syntax: "<color>"; inherits: true; initial-value: rgba(243, 238, 229, .16); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #d09a68; }

:root {
  --petrol-950: #0a3049;
  --petrol-900: #0f3f5a;
  --petrol-700: #155a78;
  --copper: #c08552;
  --copper-light: #d09a68;
  --copper-dark: #93592b;
  --bone: #f1ebe1;
  --bone-2: #e8e0d3;
  --ink-dark: #0b2a3d;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: min(100% - 2 * var(--gutter), 86rem);
  --section: clamp(6rem, 12vw, 11rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  interpolate-size: allow-keywords;
}

/* Ton-Sets */
.tone-dark, body[data-tone="dark"], html:not(.js) [data-tone="dark"] {
  --bg: var(--petrol-950);
  --ink: #f3eee5;
  --soft: rgba(243, 238, 229, .74);
  --line: rgba(243, 238, 229, .16);
  --accent: var(--copper-light);
}
body[data-tone="light"], html:not(.js) [data-tone="light"] {
  --bg: var(--bone);
  --ink: var(--ink-dark);
  --soft: rgba(11, 42, 61, .74);
  --line: rgba(11, 42, 61, .15);
  --accent: var(--copper-dark);
}
html:not(.js) [data-tone] { background: var(--bg); color: var(--ink); }

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: --bg .9s var(--ease), --ink .9s var(--ease), --soft .9s var(--ease),
              --line .9s var(--ease), --accent .9s var(--ease);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--copper); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 200;
  padding: .75rem 1.1rem; background: var(--bone); color: var(--ink-dark);
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--soft);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--accent); }

h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head__lead { margin-top: 1.75rem; max-width: 36rem; color: var(--soft); font-size: 1.1rem; }

/* ------------------------------------------------------------- Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1.05rem 1.6rem;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--petrol-950);
  font: 600 .9rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform .5s var(--ease), color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn__arrow { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn--small { padding: .75rem 1.15rem; font-size: .82rem; }
.btn--light { background: var(--bone); border-color: var(--bone); color: var(--petrol-950); }

.link {
  position: relative; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding-bottom: .25rem;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(0); }

/* -------------------------------------------------------------- Intro */
.intro { display: none; }
.js:not(.intro-seen):not(.reduce):not(.motion-failsafe) .intro {
  display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none;
  animation: intro-off 0s linear 2s forwards;
}
.intro__panel {
  position: absolute; top: 0; bottom: 0; width: calc(20% + 1px);
  background: var(--petrol-950);
  animation: panel-up 1s var(--ease-io) calc(.8s + var(--n) * .07s) forwards;
}
.intro__panel::before {  /* Vertäfelungs-Rahmen */
  content: ""; position: absolute; inset: clamp(.6rem, 1.4vw, 1.2rem);
  border: 1px solid rgba(208, 154, 104, .16); border-radius: 2px;
}
.intro__panel:nth-child(1) { left: 0;   --n: 0; }
.intro__panel:nth-child(2) { left: 20%; --n: 1; }
.intro__panel:nth-child(3) { left: 40%; --n: 2; }
.intro__panel:nth-child(4) { left: 60%; --n: 3; }
.intro__panel:nth-child(5) { left: 80%; --n: 4; }
.intro__arch {
  position: absolute; left: 50%; top: 50%; width: 5.5rem;
  transform: translate(-50%, -54%);
  fill: none; stroke: var(--copper-light); stroke-width: 1.4;
  animation: fade-out .35s ease .78s forwards;
}
.intro__arch path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .75s var(--ease) .05s forwards; }
.intro__mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -20%);
  font: 500 1.6rem/1 var(--serif); letter-spacing: .12em; color: #f3eee5;
  opacity: 0; animation: mark .8s var(--ease) .2s forwards;
}
@keyframes panel-up { to { transform: translateY(-101%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes mark { 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -35%); } }
@keyframes intro-off { to { visibility: hidden; } }

/* ------------------------------------------------------------ Progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* -------------------------------------------------------------- Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: transform .6s var(--ease), background-color .5s var(--ease);
}
.header__inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  height: 5rem;
  transition: height .5s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .header__inner { height: 4.25rem; }
.site-header.is-hidden { transform: translateY(-100%); }

.wordmark { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; margin-right: auto; }
.wordmark__tt { font: 500 1.6rem/1 var(--serif); letter-spacing: .08em; color: var(--accent); }
.wordmark__name { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }

.nav { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.nav a {
  position: relative; text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .35rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; position: relative; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 50%; top: 50%; width: 1.05rem; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease);
}
.menu-toggle span:first-child { transform: translate(-50%, -3.5px); }
.menu-toggle span:last-child { transform: translate(-50%, 3.5px); }
.menu-open .menu-toggle span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  background: var(--petrol-950); color: #f3eee5;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
}
.menu[hidden] { display: none; }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: .35rem; }
.menu nav a {
  font: 400 clamp(2.4rem, 11vw, 3.4rem)/1.1 var(--serif); text-decoration: none;
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu-open .menu nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .05s); }
.menu__contact { display: grid; gap: .4rem; font-size: .95rem; color: rgba(243, 238, 229, .74); }
.menu__contact a { text-decoration: none; }
.menu-open { overflow: hidden; }
.menu-open .site-header {
  --ink: #f3eee5; --line: rgba(243, 238, 229, .3); --accent: var(--copper-light);
  color: var(--ink); background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: 7.5rem 0 5rem;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 1.4rem + 6.3vw, 8.5rem);
  line-height: .94; letter-spacing: -.025em;
  margin-bottom: 2rem;
  width: max-content; max-width: calc(100vw - 2 * var(--gutter));
}
.hero__title .line { display: block; }
.hero__title .line + .line { padding-left: clamp(1rem, 4.5vw, 4.5rem); }
.hero__lead { max-width: 31rem; color: var(--soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 30rem); }

.arch { position: relative; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--petrol-900); }
.arch__inner { height: 100%; will-change: transform; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch { aspect-ratio: 2 / 3; }
.hero__arch .arch__inner { height: 112%; margin-top: -6%; }

.hero__detail {
  position: absolute; left: -22%; bottom: 7%; z-index: 2;
  width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 .5rem var(--bg), 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.hero__detail img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: 6%; right: -7%; z-index: 3;
  display: grid; place-items: center;
  width: clamp(6.5rem, 9vw, 8.25rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--accent); color: var(--petrol-950); text-decoration: none;
  transition: transform .5s var(--ease);
}
.badge:hover { transform: scale(1.06); }
.badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font: 600 9.2px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; fill: currentColor; }
.badge__arrow { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; left: 0; bottom: 2rem;
  width: 1px; height: 3.5rem; background: var(--line); overflow: hidden;
}
.scroll-cue span { position: absolute; inset: 0; background: var(--accent); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Hero – Startzustände (nur mit JS) */
.js .hero__title:not(.is-split) { visibility: hidden; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .scroll-cue {
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.js .hero__arch { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io) .15s; }
.js .hero__arch img { transform: scale(1.3); transition: transform 2.2s var(--ease) .15s; }
.js .hero__detail { clip-path: circle(0% at 50% 50%); transition: clip-path 1.2s var(--ease) .75s; }
.js .badge { opacity: 0; scale: .6; rotate: -40deg; transition: opacity .8s var(--ease) 1s, scale 1s var(--ease) 1s, rotate 1.2s var(--ease) 1s, transform .5s var(--ease); }
.js .site-header { translate: 0 -100%; transition: translate 1s var(--ease) .3s, transform .6s var(--ease), background-color .5s var(--ease); }

.is-ready .hero__eyebrow, .is-ready .hero__lead, .is-ready .hero__actions, .is-ready .scroll-cue { opacity: 1; transform: none; }
.is-ready .hero__eyebrow { transition-delay: .1s; }
.is-ready .hero__lead { transition-delay: .55s; }
.is-ready .hero__actions { transition-delay: .7s; }
.is-ready .scroll-cue { transition-delay: 1.1s; }
.is-ready .hero__arch { clip-path: inset(0 0 0 0); }
.is-ready .hero__arch img { transform: none; }
.is-ready .hero__detail { clip-path: circle(50% at 50% 50%); }
.is-ready .badge { opacity: 1; scale: 1; rotate: 0deg; }
.is-ready .site-header { translate: 0 0; }

/* ------------------------------------------------------- Split-Wörter */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .14em 0; margin: -.12em -.04em -.14em 0; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * .055s); }
.js [data-split].in-view .wi, .is-ready .hero__title .wi { transform: none; }
.is-ready .hero__title .wi { transition-delay: calc(.2s + var(--i) * .07s); }

/* ---------------------------------------------------- Reveal (generisch) */
.js [data-reveal] {
  opacity: 0; transform: translateY(2rem);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

.js [data-reveal="arch"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
.js [data-reveal="arch"] img { transform: scale(1.25); transition: transform 2.2s var(--ease); }
.js [data-reveal="arch"].in-view { clip-path: inset(0 0 0 0); }
.js [data-reveal="arch"].in-view img { transform: none; }

/* ------------------------------------------------------------- Marquee */
.marquee {
  overflow: hidden; padding: 1.6rem 0;
  border-block: 1px solid var(--line);
  font: italic 400 clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem)/1 var(--serif);
  white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track span { padding-inline: clamp(1.2rem, 2.5vw, 2.4rem); }
.marquee__track i { width: .45rem; height: .45rem; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---------------------------------------------------------- Leistungen */
.services { position: relative; padding: calc(var(--section) * .6) 0 calc(var(--section) * .5); }
.svc-list { counter-reset: svc; border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 2.5rem;
  align-items: baseline;
  padding: clamp(1.8rem, 3vw, 2.6rem) 0;
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform-origin: left;
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.svc:hover::before { transform: scaleX(1); transform-origin: left; }
.svc__num { font: 500 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--accent); }
.svc__title {
  font: 400 clamp(1.8rem, 1.2rem + 1.8vw, 2.9rem)/1.05 var(--serif);
  transition: transform .6s var(--ease), color .4s;
}
.svc:hover .svc__title { transform: translateX(.75rem); font-style: italic; }
.svc__text { margin: 0; color: var(--soft); max-width: 34rem; }

.js .svc[data-reveal] { opacity: 1; transform: none; }
.js .svc[data-reveal] > * { opacity: 0; transform: translateY(1.2rem); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + .15s); }
.js .svc[data-reveal]::after { transform: scaleX(0); transition: transform 1.3s var(--ease-io) var(--d, 0s); }
.js .svc[data-reveal].in-view > * { opacity: 1; transform: none; }
.js .svc[data-reveal].in-view::after { transform: scaleX(1); }


/* ------------------------------------------------------------ Material */
.material { padding: var(--section) 0; overflow: hidden; }
.material__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.material__copy h2 { margin-bottom: 2rem; }
.material__copy p { color: var(--soft); max-width: 32rem; }
.material__list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.material__list li {
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; transition: border-color .4s, background-color .4s;
}
.material__list li:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.fan { position: relative; height: clamp(24rem, 44vw, 34rem); }
.fan__blade {
  --w: clamp(3.4rem, 5vw, 4.5rem);
  position: absolute; left: 50%; bottom: 0;
  width: var(--w); height: 92%; margin-left: calc(var(--w) / -2);
  border-radius: 6px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .14), transparent 38%, rgba(0, 0, 0, .12)),
    var(--c);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, -8px 12px 30px -10px rgba(0, 0, 0, .5);
  transform-origin: 50% calc(100% - var(--w) / 2);
  transform: rotate(var(--r, 0deg)) translateY(var(--lift, 0));
  transition: transform .55s var(--ease);
  cursor: default;
}
.fan__blade::after {  /* Farbfeld-Trennlinie wie bei einem echten Fächer */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 30%; height: 1px; background: rgba(255, 255, 255, .22);
}
.fan__blade span {
  position: absolute; left: 50%; top: 1.1rem;
  writing-mode: vertical-rl; transform: translateX(-50%);
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--t, #f3eee5);
}
.fan__blade:hover { --lift: -1.4rem; }
.fan__rivet {
  position: absolute; left: 50%; bottom: calc(clamp(3.4rem, 5vw, 4.5rem) / 2); z-index: 10;
  width: .9rem; height: .9rem; margin: 0 0 -.45rem -.45rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f1d9b4, #a86d3c 60%, #5b3719);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
/* Statisch aufgefächert (ohne JS / reduzierte Bewegung) – JS überschreibt --r */
.fan__blade:nth-child(1) { --r: -54deg; }
.fan__blade:nth-child(2) { --r: -36deg; }
.fan__blade:nth-child(3) { --r: -18deg; }
.fan__blade:nth-child(4) { --r: 0deg; }
.fan__blade:nth-child(5) { --r: 18deg; }
.fan__blade:nth-child(6) { --r: 36deg; }
.fan__blade:nth-child(7) { --r: 54deg; }

/* --------------------------------------------------------------- Räume */
.rooms { padding: calc(var(--section) * .5) 0 var(--section); }
.rooms__track {
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  outline-offset: -4px;
}
.rooms__track::-webkit-scrollbar { display: none; }
.rooms__intro { flex: 0 0 min(80vw, 26rem); scroll-snap-align: start; padding-right: 2rem; }
.rooms__intro h2 { margin-bottom: 1.5rem; }
.rooms__intro p { color: var(--soft); }
.rooms__note { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.room { flex: none; scroll-snap-align: center; }
.room__img { position: relative; overflow: hidden; border-radius: 4px; background: var(--petrol-900); }
.room__img img { width: 116%; max-width: none; height: 100%; object-fit: cover; margin-left: -8%; transform: translate3d(var(--px, 0), 0, 0) scale(var(--ps, 1)); will-change: transform; }
.room--tall .room__img   { aspect-ratio: 2 / 3;   height: min(72vh, 44rem); }
.room--mid .room__img    { aspect-ratio: 11 / 15; height: min(64vh, 38rem); }
.room--wide .room__img   { aspect-ratio: 6 / 5;   height: min(56vh, 34rem); }
.room--square .room__img { aspect-ratio: 1;       height: min(60vh, 36rem); }
.room figcaption { display: flex; gap: .75rem; margin-top: 1rem; font-size: .88rem; color: var(--soft); }
.room figcaption span { color: var(--accent); font-weight: 600; }
.room:nth-child(odd) { transform: translateY(2.5rem); }

.rooms__progress { display: none; }

/* Gepinnt (mit Bewegung, alle Bildschirmgrößen) */
.rooms.is-pinned { padding: 0; }
.rooms.is-pinned .rooms__pin { height: var(--pin-h, 400vh); }
.rooms.is-pinned .rooms__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.rooms.is-pinned .rooms__track { overflow: visible; scroll-snap-type: none; padding-left: calc((100vw - min(100vw - 2 * var(--gutter), 86rem)) / 2); transform: translate3d(var(--x, 0), 0, 0); will-change: transform; }
.rooms.is-pinned .rooms__progress {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.5rem; height: 1px; background: var(--line);
}
.rooms.is-pinned .rooms__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--rp, 0)); }

/* -------------------------------------------------------------- Ablauf */
.process { padding: var(--section) 0; }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.process__head { position: sticky; top: 7rem; margin-bottom: 0; }
.steps { position: relative; padding-left: clamp(3rem, 5vw, 4.5rem); }
.steps::before, .steps::after {
  content: ""; position: absolute; left: .5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line);
}
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; padding: 0 0 clamp(3rem, 6vw, 5rem); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; top: .55rem; left: calc(-1 * clamp(3rem, 5vw, 4.5rem) + .5rem - .4rem);
  width: .8rem; height: .8rem; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 1px solid var(--line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.step__num { display: block; font: italic 400 clamp(3rem, 2rem + 3vw, 4.75rem)/1 var(--serif); color: var(--accent); margin-bottom: .75rem; }
.step h3 { font: 400 clamp(1.7rem, 1.3rem + 1vw, 2.2rem)/1.1 var(--serif); margin-bottom: .8rem; }
.step p { color: var(--soft); max-width: 30rem; margin: 0; }
.js:not(.reduce) .step { opacity: .28; transition: opacity .7s var(--ease); }
.js:not(.reduce) .step.is-active { opacity: 1; }
.step.is-active::before { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* ----------------------------------------------------------------- FAQ */
.faq { padding: 0 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; cursor: pointer; list-style: none;
  font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.65rem)/1.25 var(--serif);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary i { position: relative; flex: none; width: 1rem; height: 1rem; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { color: var(--soft); max-width: 42rem; padding-bottom: 1.6rem; margin: 0; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .6s var(--ease), content-visibility .6s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ------------------------------------------------------------- Kontakt */
.contact { padding: var(--section) 0; }
.contact__head h2 { font-size: clamp(3rem, 1.5rem + 6vw, 7.5rem); line-height: .98; margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__details p { color: var(--soft); max-width: 26rem; }
.contact__details dl { margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.contact__details dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: .35rem; }
.contact__details dd { margin: 0; font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.7rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.contact__details dd a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__details dd a:hover { background-size: 100% 1px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2rem; }
.hp { position: absolute; left: -9999px; }
.chips { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips legend { width: 100%; margin-bottom: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--petrol-950); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.field { position: relative; display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea {
  width: 100%; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.05rem/1.5 var(--sans);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field textarea::placeholder { color: var(--soft); opacity: .7; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: .5rem; }
.form__footer p { margin: 0; max-width: 22rem; font-size: .82rem; color: var(--soft); }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; color: var(--accent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* -------------------------------------------------------------- Footer */
.site-footer { padding: clamp(4rem, 8vw, 7rem) 0 2rem; border-top: 1px solid var(--line); }
.footer__big {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font: 400 clamp(3.4rem, 1rem + 11.5vw, 13rem)/.9 var(--serif); letter-spacing: -.03em;
  white-space: nowrap;
}
.footer__big span { color: var(--accent); font-style: italic; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; padding-bottom: 3rem; }
.footer__grid p, .footer__grid address { margin: 0; color: var(--soft); font-style: normal; font-size: .95rem; }
.site-footer nav { display: grid; gap: .45rem; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line); }
.form__footer p a { color: var(--ink); text-underline-offset: .2em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--soft); }
.js .footer__big { clip-path: inset(-30% -5% 130% -5%); transform: translateY(20%); transition: clip-path 1.4s var(--ease-io), transform 1.4s var(--ease); }
.js .footer__big.in-view { clip-path: inset(-30% -5% -30% -5%); transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header__cta { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; gap: 3rem; align-items: start; }
  .hero__title { width: auto; }
  .hero__visual { justify-self: center; width: min(78vw, 24rem); margin-right: -4vw; }
  .hero__detail { left: -16%; }
  .badge { right: -4%; }
  .scroll-cue { display: none; }
  .material__grid, .process__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .svc { grid-template-columns: 3rem 1fr; }
  .svc__text { grid-column: 2; }
  .fan { max-width: 30rem; margin-inline: auto; width: 100%; }
  .room--tall .room__img, .room--mid .room__img, .room--wide .room__img, .room--square .room__img { height: auto; width: min(78vw, 24rem); }
  .room:nth-child(odd) { transform: none; }
  /* Gepinnt am Handy: Bildhöhe am Bildschirm ausrichten, Breite max. ~78vw */
  .rooms.is-pinned .room__img { width: auto; }
  .rooms.is-pinned .room--tall .room__img   { height: min(58svh, 117vw); }
  .rooms.is-pinned .room--mid .room__img    { height: min(54svh, 106vw); }
  .rooms.is-pinned .room--wide .room__img   { height: min(44svh, 65vw); }
  .rooms.is-pinned .room--square .room__img { height: min(48svh, 78vw); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > p { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  .fan { height: 21rem; }
  .fan__blade { --w: 2.9rem; }
  .fan__blade:nth-child(1) { --r: -33deg; } .fan__blade:nth-child(2) { --r: -22deg; } .fan__blade:nth-child(3) { --r: -11deg; }
  .fan__blade:nth-child(5) { --r: 11deg; } .fan__blade:nth-child(6) { --r: 22deg; } .fan__blade:nth-child(7) { --r: 33deg; }
  .fan__blade span { font-size: .6rem; letter-spacing: .16em; }
  .fan__rivet { bottom: 1.45rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------- Reduzierte Bewegung / Failsafe */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
.reduce .hero__title:not(.is-split), .motion-failsafe .hero__title:not(.is-split) { visibility: visible; }
.reduce [data-split] .wi, .motion-failsafe [data-split] .wi,
.reduce [data-reveal], .motion-failsafe [data-reveal],
.reduce .svc[data-reveal] > *, .motion-failsafe .svc[data-reveal] > *,
.reduce .hero__eyebrow, .reduce .hero__lead, .reduce .hero__actions, .reduce .scroll-cue,
.motion-failsafe .hero__eyebrow, .motion-failsafe .hero__lead, .motion-failsafe .hero__actions, .motion-failsafe .scroll-cue,
.reduce .badge, .motion-failsafe .badge,
.reduce .footer__big, .motion-failsafe .footer__big { opacity: 1 !important; transform: none !important; scale: 1 !important; rotate: 0deg !important; }
.reduce .hero__arch, .reduce [data-reveal="arch"], .reduce .hero__detail, .reduce .footer__big,
.motion-failsafe .hero__arch, .motion-failsafe [data-reveal="arch"], .motion-failsafe .hero__detail, .motion-failsafe .footer__big { clip-path: none !important; }
.reduce .hero__arch img, .reduce [data-reveal="arch"] img,
.motion-failsafe .hero__arch img, .motion-failsafe [data-reveal="arch"] img { transform: none !important; }
.reduce .svc[data-reveal]::after, .motion-failsafe .svc[data-reveal]::after { transform: none !important; }
.reduce .site-header, .motion-failsafe .site-header { translate: 0 0 !important; }
.reduce .badge svg:first-child { animation: none; }

/* ------------------------------------------------ Impressum / Datenschutz */
.legal-page { font-size: 1rem; }
.legal-header, .legal-footer {
  width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.legal-header { padding: 2rem 0; }
.legal-header .wordmark { margin-right: 0; }
.legal { width: min(100% - 2 * var(--gutter), 46rem); margin: clamp(2rem, 6vw, 4rem) auto clamp(4rem, 8vw, 6rem); }
.legal h1 { font: 400 clamp(2.8rem, 2rem + 4vw, 4.5rem)/1 var(--serif); letter-spacing: -.015em; margin-bottom: 1.5rem; hyphens: manual; }
.legal h2 { font: 400 clamp(1.5rem, 1.3rem + .6vw, 1.9rem)/1.2 var(--serif); margin: 2.75rem 0 .8rem; }
.legal p, .legal dd { color: var(--soft); }
.legal a { color: var(--ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal__intro { font-size: 1.1rem; }
.legal__list { margin: 0; display: grid; gap: .9rem; }
.legal__list div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: .25rem 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.legal__list dt { font-weight: 600; font-size: .9rem; }
.legal__list dd { margin: 0; }
.legal__date { margin-top: 3rem; font-size: .85rem; }
.legal-footer { padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--soft); flex-wrap: wrap; }
.todo { background: #ffe58a; color: #3a2a00; padding: 0 .3em; border-radius: 3px; }
@media (max-width: 600px) { .legal__list div { grid-template-columns: 1fr; } }
