/* ENERGETICS Landingpage 3D
   Tokens: ENERGETICS Design System (Claude Design, colors_and_type.css),
   ohne Google-Import — die Schriften liefert schriften.css. */

:root {
  --color-brand-dark: #141619;
  --color-brand-darker: #191919;
  --color-brand-light: #f4f0e8;
  --color-brand-accent: #92764f;
  --color-brand-gray: #666666;
  --color-brand-border: #ded6ca;
  --color-cream-50: #faf7f2;
  --color-ink-600: #2c3035;
  --color-tan-700: #6e5836;
  --color-tan-300: #c2a98c;

  --fg-1: var(--color-brand-dark);
  --fg-2: var(--color-brand-gray);
  --fg-on-dark: #ffffff;
  --fg-on-dark-2: rgba(255, 255, 255, 0.7);
  --fg-on-dark-3: rgba(255, 255, 255, 0.5);
  --bg-page: var(--color-brand-light);
  --bg-surface: #ffffff;
  --border-subtle: var(--color-brand-border);
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1400px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 72px;

  /* Blaupausen-Raster: die Textur des Zeichenpapiers aus der Bau-Sequenz */
  --paper:
    linear-gradient(rgba(20,22,25,0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,25,0.075) 1px, transparent 1px),
    linear-gradient(rgba(20,22,25,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,25,0.032) 1px, transparent 1px);
}

/* ── Basis ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { overflow: visible; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--color-brand-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--color-brand-accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--fg-1); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eb {
  display: block;
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.on-dark .eb { color: var(--fg-on-dark-3); }

.h-sec {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(32px, 4.6vw, 68px);
  text-wrap: balance;
}
.h-sec .ton { color: var(--fg-2); }
.on-dark .h-sec .ton { color: var(--fg-on-dark-3); }

.lead {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--fg-2);
  text-wrap: pretty;
}
.on-dark .lead { color: var(--fg-on-dark-2); }

.text-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.14); }
/* Wasserzeichen auf dem Raster: deckend gefüllt, damit die Rasterlinien nicht
   durch die Buchstaben laufen. Sand (tan-100) → Salbei (cream-200). */
.text-fill {
  color: #e8dac0;
  background: linear-gradient(180deg, #e8dac0 0%, #eae2d6 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pill-Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 300ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--ink { background: var(--fg-1); color: #fff; }
.btn--ink:hover { background: var(--color-ink-600); color: #fff; }
.btn--outline { border-color: var(--fg-1); color: var(--fg-1); background: transparent; }
.btn--outline:hover { background: var(--fg-1); color: #fff; }
.btn--light { background: #fff; color: var(--fg-1); }
.btn--light:hover { background: var(--color-brand-accent); color: #fff; }
.btn--lg { padding: 18px 28px; font-size: 11px; }

/* Einblenden */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Kopfzeile ───────────────────────────────────────────────────────── */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 40px;
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-out), padding 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.header.is-scrolled {
  padding-block: 14px;
  background: rgba(238, 240, 234, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgba(213, 214, 208, 0.7);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-1); }
.brand__mark { height: 30px; width: auto; }
.wordmark {
  display: block; height: 12px; aspect-ratio: 3000 / 222.2222;
  background: currentColor;
  -webkit-mask: url("../logo.svg") center / contain no-repeat;
  mask: url("../logo.svg") center / contain no-repeat;
}
.wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.header__nav { display: none; gap: 28px; }
.header__nav a {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--fg-2);
  transition: color 300ms var(--ease-out);
}
.header__nav a:hover { color: var(--fg-1); }
.header__end { display: flex; align-items: center; gap: 20px; }
.header__tel { display: none; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--fg-1); }
.header .btn { padding: 11px 20px; font-weight: 700; letter-spacing: 0.2em; }
@media (min-width: 1100px) { .header__nav { display: flex; } }
@media (min-width: 1280px) { .header__tel { display: inline; } }
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .header { padding: 16px; }
  .header.is-scrolled { padding-block: 10px; }
  .brand__mark { height: 24px; }
  .wordmark { height: 9px; }
}

/* ── Bau-Sequenz (Claude Design, Landingpage v2) ──────────────────────── */

.track { position: relative; height: 900vh; }
.track__sticky { position:-webkit-sticky; position:sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.track__paper, .track__sky { position: absolute; inset: 0; }
.track__paper {
  background-color: var(--bg-page);
  background-image: var(--paper);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: center center;
}
.track__sky { opacity: 0; background: linear-gradient(180deg, #8f97a8 0%, #b8b5b7 50%, #e6ccb0 100%); }

.track__hero { position: absolute; inset: 0; pointer-events: none; }
.track__watermark {
  position: absolute; left: 0; right: 0; bottom: -1.2vw;
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18vw; line-height: 0.8; letter-spacing: -0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.track__frame { position: absolute; inset: 104px 20px 20px 20px; border: 1px solid rgba(20,22,25,0.18); }

.track__canvas, .track__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.track__overlay { opacity: 0; pointer-events: none; }

/* Ohne WebGL: Skizze, dann Foto */
.track__fallback { position: absolute; inset: 14% 6% 10% 38%; display: none; }
.track.is-nowebgl .track__fallback { display: block; }
.track.is-nowebgl .track__canvas { visibility: hidden; }
.track__fallback svg, .track__fallback img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity 700ms var(--ease-out);
}
.track__fallback img {
  object-fit: contain; opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.track__fallback text { font-family: var(--font-hand); font-size: 6px; }

.track__labels { position: absolute; inset: 0; pointer-events: none; }
.track__label { position: absolute; left: 0; top: 0; opacity: 0; }
.track__label span {
  display: block; font-family: var(--font-hand); font-weight: 500; font-size: 24px;
  color: var(--fg-1); white-space: nowrap;
}
.track__label--w span { transform: translate(-50%, -50%); }
.track__label--h span { transform: translate(-50%, -50%) rotate(-90deg); }
.track__label--note span { transform: translate(-6px, -100%); line-height: 1.05; }
.track__label--note svg { position: absolute; left: -92px; top: 2px; }

/* Textspalte */
.track__copy {
  position: absolute; z-index: 4;
  left: max(32px, calc((100vw - 1400px) / 2 + 40px));
  top: 50%;
  width: min(420px, 31vw);
  transform: translateY(-40%);
  display: grid;
}
.track__block { grid-area: 1 / 1; }
.js .track__block { opacity: 0; transform: translateY(20px); }
.track__block .eb { margin-bottom: 18px; }
.track__block h1, .track__block h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.04; color: var(--fg-1); text-wrap: balance;
  font-size: clamp(30px, 3.1vw, 48px);
}
.track__block h1 { font-size: clamp(32px, 3.5vw, 56px); }
.track__block p:not(.eb) { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.track__block--dusk .eb, .track__block--dusk p:not(.eb) { color: var(--color-ink-600); }
.track__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.track__trust {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; padding: 0; list-style: none;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
}
.track__trust li { display: flex; align-items: center; gap: 8px; }
.track__trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-brand-accent); }
.track__block .btn--lg { margin-top: 28px; border-radius: 12px; line-height: 1.4; }

/* Phasen-Navigation */
.phases { position: absolute; z-index: 5; right: 32px; top: 62%; transform: translateY(-50%); }
.phases__rail { position: absolute; right: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--border-subtle); }
.phases__fill { width: 1px; height: 0; background: var(--color-brand-accent); }
.phases ol { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.phases li { display: flex; justify-content: flex-end; }
.phases button {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  min-width: 24px; min-height: 24px; padding: 2px 0; border: 0; background: none; cursor: pointer;
}
.phases__label {
  display: none;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2);
  transition: color 300ms var(--ease-out);
}
.phases__dot {
  display: block; width: 9px; height: 9px; border-radius: 999px;
  background: var(--bg-page); border: 1px solid rgba(20,22,25,0.35);
  transition: background 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.phases button.is-active .phases__label { color: var(--fg-1); font-weight: 600; }
.phases button.is-active .phases__dot { background: var(--color-brand-accent); border-color: var(--color-brand-accent); box-shadow: 0 0 0 4px rgba(161,133,104,0.22); }
.phases button:hover .phases__label { color: var(--fg-1); }
@media (min-width: 1100px) { .phases__label { display: inline; } }

.track__hint {
  position: absolute; left: max(32px, calc((100vw - 1400px) / 2 + 40px)); bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2);
}
.track__hint span:last-child { display: block; width: 32px; height: 1px; background: var(--fg-1); opacity: 0.4; }

@media (max-width: 767px) {
  .track__watermark { bottom: 41%; }
  .track__frame, .track__hint, .track__label--note svg { display: none; }
  .track__fallback { inset: 10% 6% 40% 6%; }
  .track__label span { font-size: 17px; }
  .track__copy {
    left:0; right:0; top:auto; bottom:0;
    width: auto; transform: none;
    padding:20px 20px calc(22px + env(safe-area-inset-bottom));
    background: rgba(244,240,232,.94);
    border: 1px solid rgba(222, 215, 203, 0.9);
  }
  .track__block h2 { font-size: 24px; }
  .track__block h1 { font-size: 28px; }
  .track__block p:not(.eb) { font-size: 15px; margin-top: 12px; }
  .track__block .eb { margin-bottom: 12px; }
  .track__actions { margin-top: 20px; }
  .track__trust { margin-top: 16px; }
  .track__block .btn--lg { margin-top: 18px; padding: 15px 20px; font-size: 10px; white-space: normal; }
  .phases { right: 10px; top: 34%; }
  .phases ol { gap: 0; }
}

/* Ohne JavaScript: Sequenz als ruhige Liste, fertiges Haus als Bild */
html:not(.js) .track { height: auto; }
html:not(.js) .track__sticky { position: relative; height: auto; overflow: visible; padding: 120px var(--gutter) 64px; }
html:not(.js) .track__canvas, html:not(.js) .track__overlay, html:not(.js) .phases,
html:not(.js) .track__hint, html:not(.js) .track__hero, html:not(.js) .track__labels { display: none; }
html:not(.js) .track__fallback { display: block; position: relative; inset: auto; aspect-ratio: 16 / 10; max-width: 900px; margin: 0 auto 48px; }
html:not(.js) .track__fallback svg { display: none; }
html:not(.js) .track__fallback img { opacity: 1; }
html:not(.js) .track__copy { position: relative; inset: auto; transform: none; width: auto; max-width: 720px; margin: 0 auto; gap: 48px; background: none; border: 0; padding: 0; }
html:not(.js) .track__block { grid-area: auto; }

/* ── Abschnitte allgemein ───────────────────────────────────────────── */

.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--color-brand-dark); color: var(--fg-on-dark); }
.section--surface { background: var(--bg-surface); }
.section--paper { background-color: var(--bg-page); background-image: var(--paper); background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; }
.section__head { display: grid; gap: 28px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1.15fr 1fr; } }

/* ── Kennzahlen ─────────────────────────────────────────────────────── */

.facts { padding-block: clamp(56px, 7vw, 96px); }
.facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.fact { padding: 28px 24px 28px 0; border-top: 1px solid var(--border-on-dark); }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.fact dd small { font-size: 0.42em; letter-spacing: 0; color: var(--color-brand-accent); margin-left: 4px; }
.fact dt { order: 2; margin-top: 14px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-3); line-height: 1.6; }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (min-width: 900px) {
  .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding-left: 28px; border-top: 0; border-left: 1px solid var(--border-on-dark); }
  .fact:first-child { padding-left: 0; border-left: 0; }
}

/* ── Ansatz ─────────────────────────────────────────────────────────── */

.principles { display:grid; gap:24px; border:0; }
.principle { position:relative; border-radius:12px; padding:clamp(28px,4vw,56px); background:#fff; box-shadow:0 4px 18px rgba(21,43,67,.04); }
.principle__no { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--color-brand-accent); letter-spacing: 0.06em; }
.principle h3 {
  margin: 28px 0 18px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.principle h3 .ton { color: var(--fg-2); }
.principle p { margin: 0; max-width: 52ch; color: var(--fg-2); line-height: 1.65; text-wrap: pretty; }
@media (min-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }

/* ── Leistungen ─────────────────────────────────────────────────────── */

.film { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; padding-block: var(--section-y) clamp(48px, 6vw, 88px); }
.film__video, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { opacity: 0; transition: opacity 1200ms var(--ease-out); }
.film__video.is-playing { opacity: 1; }
.film__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,0.35) 0%, rgba(20,22,25,0.55) 45%, rgba(20,22,25,0.94) 100%); }
.film .wrap { position: relative; }
.film__inner { display: grid; gap: 28px 64px; align-items: end; }
@media (min-width: 900px) { .film__inner { grid-template-columns: 1.15fr 1fr; } }

.services { padding-top: clamp(48px, 6vw, 88px); }
.cards { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); border-left: 1px solid var(--border-subtle); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--bg-page);
  box-shadow: inset -1px 0 var(--border-subtle), inset 0 -1px var(--border-subtle);
  transition: background 400ms var(--ease-out);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--color-brand-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.card:hover { background: var(--bg-surface); }
.card:hover::before { transform: scaleX(1); }
.card__index { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--color-brand-accent); letter-spacing: 0.06em; }
.card__name { margin: 40px 0 14px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.card__lead { margin: 0 0 14px; font-weight: 500; color: var(--fg-1); line-height: 1.5; }
.card__note { margin: 0 0 22px; font-size: 15px; color: var(--fg-2); line-height: 1.65; text-wrap: pretty; }
.card__points { margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--border-subtle); display: grid; gap: 8px; }
.card__points li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--fg-1); }
.card__points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--color-brand-accent); }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 36px);
  background: var(--color-brand-dark); color: #fff;
}
.cta-row p { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.01em; }
.cta-row p span { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: 15px; letter-spacing: 0; color: var(--fg-on-dark-2); }

/* ── Referenzen ─────────────────────────────────────────────────────── */

.refgroup + .refgroup { margin-top: clamp(40px, 5vw, 72px); }
.refgroup__title { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; font-size: 10px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); }
.refgroup__title::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.refgrid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .refgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .refgrid--lead { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .refgrid--lead li:first-child { grid-row: span 2; }
  .refgrid--lead li:first-child img { height: 100%; aspect-ratio: auto; }
}
.refitem { margin: 0; height: 100%; display: flex; flex-direction: column; }
.refitem__img { overflow: hidden; flex: 1; background: var(--color-brand-border); }
.refitem img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.refitem:hover img { transform: scale(1.04); }
.refitem figcaption { margin-top: 12px; font-size: 14px; color: var(--fg-2); }
.refnote { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 70ch; font-size: 13px; line-height: 1.6; color: var(--fg-2); }

/* ── Grundriss ──────────────────────────────────────────────────────
   Plan freigestellt (transparentes WebP), kein Rahmen. Fadenkreuz nach dem
   Vorbild der Energetics-Homepage (fadenkreuz.tsx): Achsen über die volle
   Fläche, Punkt, Ablesung als Pille mit Raumname. */

.plan-layout { display: grid; gap: 40px 64px; align-items: center; }
@media (min-width: 1100px) { .plan-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.plan-layout > * { min-width: 0; }
.plan__hint { display: flex; gap: 10px; align-items: baseline; margin: 32px 0 0; font-size: 14px; line-height: 1.55; color: var(--fg-1); }
.plan__hint span { color: var(--color-brand-accent); font-size: 16px; }
.plan__caption { margin: 16px 0 0; max-width: 52ch; font-size: 13px; line-height: 1.6; color: var(--fg-2); }

.plan { margin: 0; max-width: 780px; justify-self: end; width: 100%; }
.plan__frame { position: relative; line-height: 0; touch-action: pan-y; }
.plan__frame.is-live { cursor: none; }
.plan__image { width: 100%; height: auto; }
.plan__cursor { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 180ms ease; }
.plan__frame.is-active .plan__cursor { opacity: 1; }
.plan__axis { position: absolute; background: rgba(20, 22, 25, 0.35); }
.plan__axis--v { top: 0; bottom: 0; width: 1px; left: var(--px, 0px); transform: translateX(-50%); }
.plan__axis--h { left: 0; right: 0; height: 1px; top: var(--py, 0px); transform: translateY(-50%); }
.plan__dot {
  position: absolute; left: var(--px, 0px); top: var(--py, 0px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-brand-accent); box-shadow: 0 0 0 4px rgba(161, 133, 104, 0.25);
  transform: translate(-50%, -50%);
}
.plan__read {
  position: absolute; left: var(--px, 0px); top: var(--py, 0px); transform: translate(14px, 14px);
  padding: 6px 10px; border-radius: 999px;
  background: var(--color-tan-700); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan__read.is-left { transform: translate(calc(-100% - 14px), 14px); }
.plan__read.is-up { transform: translate(14px, calc(-100% - 14px)); }
.plan__read.is-left.is-up { transform: translate(calc(-100% - 14px), calc(-100% - 14px)); }

/* ── Team ─────────────────────────────────────────────────────────────
   Framer „Team Card 12": Porträt 240 × 240 / Radius 20, daneben Position als
   Pille (Radius 8), Name, Bio, Icon-Knöpfe 28 × 24 mit Hover auf 50 %.
   Unter 600 px die „Phone"-Variante: Bild oben, volle Breite. */

.tcards { display: grid; gap: 56px 48px; }
@media (min-width: 1100px) { .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcard { display: flex; align-items: center; gap: 24px; }
.tcard__img { flex: none; width: 240px; height: 240px; overflow: hidden; border-radius: 20px; background: var(--color-brand-border); }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 900ms var(--ease-out); }
.tcard:hover .tcard__img img { transform: scale(1.04); }
.tcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tcard__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tcard__pos {
  padding: 4px 8px; border-radius: 8px; background: var(--bg-surface);
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--color-tan-700);
}
.tcard__name { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg-1); }
.tcard__bio { margin: -4px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.tcard__links { display: flex; gap: 8px; }
.tcard__btn {
  display: grid; place-items: center; width: 32px; height: 28px; border-radius: 8px;
  background: var(--bg-surface); color: var(--fg-1);
  transition: opacity 400ms var(--ease-out);
}
.tcard__btn:hover { opacity: 0.5; }
.tcard__btn svg { width: 13px; height: 13px; }
@media (max-width: 599px) {
  .tcard { flex-direction: column; align-items: stretch; }
  .tcard__img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

/* ── Ablauf (EGI) ───────────────────────────────────────────────────── */

.timeline { --progress: 0; position: relative; margin: 0; padding: 0; list-style: none; }
.timeline__rail { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--border-on-dark); }
.timeline__fill { display: block; width: 1px; height: calc(var(--progress) * 100%); background: var(--color-brand-accent); }
.timeline__item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 24px; padding-bottom: clamp(36px, 4vw, 56px); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__index {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--color-brand-dark); border: 1px solid var(--border-on-dark);
  font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--color-brand-accent);
}
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding-top: 8px; }
.timeline__name { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.01em; }
.timeline__span { margin: 0; padding: 6px 12px; border: 1px solid var(--border-on-dark); border-radius: 999px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-2); }
.timeline__note { margin: 14px 0 0; max-width: 62ch; color: var(--fg-on-dark-2); line-height: 1.65; text-wrap: pretty; }
@media (min-width: 900px) { .ablauf__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; } .ablauf__grid .section__head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faq__grid { display: grid; gap: 48px 64px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 1fr 1.35fr; } .faq__aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; } }
.faq__aside .lead { margin-top: 24px; }
.faq__aside .btn { margin-top: 32px; }
.faq__list { border-top: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -0.005em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--border-subtle); border-radius: 999px; transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform 300ms var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--fg-1); border-color: var(--fg-1); color: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .faq__icon { border-color: var(--fg-1); }
.faq__body { padding: 0 56px 28px 0; }
.faq__body p { margin: 0; color: var(--fg-2); line-height: 1.7; max-width: 64ch; }

/* ── Kontakt ────────────────────────────────────────────────────────── */

.contact { overflow: hidden; }
.contact__watermark {
  position: absolute; left: 0; right: 0; bottom: -2.4vw; text-align: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 18vw; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap;
}
.contact__grid { position: relative; display: grid; gap: 48px 72px; }
.contact__grid > *, .faq__grid > *, .section__head > *, .film__inner > * { min-width: 0; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.05fr; } }
.contact__promises { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.contact__promises li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.contact__promises svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--color-brand-accent); }
.contact__details { display: grid; gap: 0; margin: 40px 0 0; font-style: normal; border-top: 1px solid var(--border-subtle); }
.contact__detail { display: grid; grid-template-columns: 130px 1fr; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); font-size: 15px; }
.contact__key { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); padding-top: 3px; }
.contact__detail a { text-decoration: none; border-bottom: 1px solid var(--border-subtle); transition: border-color 300ms var(--ease-out); }
.contact__detail a:hover { border-color: var(--color-brand-accent); }

.form { padding: clamp(24px, 3.4vw, 48px); background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: 0 32px 80px rgba(20,22,25,0.08); }
.form__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; }
.form__sub { margin: 0 0 28px; font-size: 14px; color: var(--fg-2); }
.form fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.form legend, .form label { display: block; margin-bottom: 10px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--border-subtle); border-radius: 999px;
  font-size: 13px; cursor: pointer; transition: background 250ms var(--ease-out), border-color 250ms var(--ease-out), color 250ms var(--ease-out);
}
.chip span:hover { border-color: var(--fg-1); }
.chip input:checked + span { background: var(--fg-1); border-color: var(--fg-1); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--color-brand-accent); outline-offset: 2px; }
.field { margin-bottom: 18px; }
.field__input {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--fg-1);
  background: var(--color-cream-50); border: 1px solid var(--border-subtle); border-radius: 0;
  transition: border-color 250ms var(--ease-out), background 250ms var(--ease-out);
}
.field__input:focus { outline: none; border-color: var(--fg-1); background: #fff; }
textarea.field__input { resize: vertical; min-height: 130px; }
.field-pair { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.form__hint { margin: -4px 0 16px; font-size: 12px; color: var(--fg-2); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; white-space: normal; text-align: center; }
.form__status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--color-tan-700); }
.form__privacy { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--fg-2); }
.form__privacy a { color: inherit; }

/* ── Fußzeile ───────────────────────────────────────────────────────── */

.footer { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0 32px; background: linear-gradient(rgba(8,15,25,.62),rgba(8,15,25,.72)), #080a0f url('../bilder/footer-blueprint.png') center bottom / 100% auto no-repeat; color: var(--fg-on-dark-2); }
.footer__grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand { color: #fff; }
.footer__claim { margin: 20px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; }
.footer h2 { margin: 0 0 16px; font-family: var(--font-body); font-weight: 400; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-3); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; transition: color 300ms var(--ease-out); }
.footer a:hover { color: #fff; }
.footer__watermark {
  margin-top: clamp(48px, 6vw, 88px);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-align: center;
  font-size: 18vw; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap;
}
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-on-dark); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-3); }

/* ── Mobile-CTA ─────────────────────────────────────────────────────── */

.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    position: fixed; z-index: 39; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(238, 240, 234, 0.9);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid rgba(213, 214, 208, 0.9);
    transform: translateY(110%); transition: transform 400ms var(--ease-out);
  }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { justify-content: center; padding: 14px 18px; }
  .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Sequenz-Ebenen ausgenommen: ihre Überblendung IST die Reduced-Motion-Fassung */
  *:not(.track__block):not(.track__overlay):not(.track__sky):not(.track__paper),
  *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .refitem:hover img { transform: none; }
}

/* Editorial opening, sharing the sticky stage with the blueprint. */
.track { height: 900vh; }
.intro {
  position:-webkit-sticky; position:sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #141619; color: #faf7f2;
}
.intro__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.intro__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,25,.76) 0%, rgba(20,22,25,.64) 30%, rgba(20,22,25,.48) 58%, rgba(20,22,25,.04) 85%), linear-gradient(0deg, rgba(12,13,15,.85), transparent 30%, transparent 78%, rgba(12,13,15,.35)); }
.intro__content { position: absolute; left: max(40px, calc((100vw - 1400px) / 2 + 40px)); top: 50%; transform: translateY(-47%); width: 67%; }
.intro__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: .18em; margin: 0 0 28px; color: #d1c5b4; }
.intro__eyebrow > span { width: 6px; height: 6px; background: #a98b5c; }
.intro h1 { font: 700 clamp(56px, 7.7vw, 118px)/.98 var(--font-display); letter-spacing: -.055em; text-transform: uppercase; margin: 0; }
.intro h1 span { color: #b99a70; }
.intro__lead { margin: 28px 0 0; max-width: 440px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; color: #c9cbce; text-wrap: pretty; }
.intro__actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.intro__actions .btn { background: #faf7f2; color: #141619; font-size: 10px; }
.intro__actions .btn:hover { background: #e8dac0; }
.intro__actions .btn > span { font-size: 19px; line-height: 1; }
.intro__secondary { font-size: 12px; text-decoration: none; padding-block: 12px; border-bottom: 1px solid #767a80; }
.intro__secondary span { margin-left: 16px; }
.intro__trust { margin-top: 20px; font-size: 11px; color: #a8abb0; }
.intro__caption { position: absolute; right: 40px; bottom: 132px; display: grid; gap: 7px; text-align: right; font-size: 9px; letter-spacing: .14em; color: #e4e5e7; }
.intro__caption span:first-child { color: #b99a70; }
.intro__bottom { position: absolute; inset: auto 40px 0; height: 100px; border-top: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: space-between; }
.intro__explore { border: 0; background: none; color: #faf7f2; display: flex; gap: 16px; align-items: center; padding: 10px 0; cursor: pointer; text-align: left; font-size: 12px; text-decoration: none; }
.intro__explore small { display: block; margin-top: 6px; color: #a8abb0; font-size: 10px; }
.intro__arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 18px; transition: transform 300ms; }
.intro__explore:hover .intro__arrow { transform: translateY(4px); }
.intro__skip { color: #c9cbce; font-size: 10px; text-decoration: none; }
.intro__skip span { padding-left: 20px; }
.header.is-intro { color: #faf7f2; background: transparent; border-color: rgba(255,255,255,.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.is-intro .brand, .header.is-intro .header__nav a, .header.is-intro .header__tel, .header.is-intro .btn { color: #faf7f2; }
.header.is-intro .brand__mark { filter: grayscale(1) brightness(0) invert(1); }
.header.is-intro .btn { border-color: rgba(255,255,255,.5); }
.header.is-intro .btn:hover { background: #faf7f2; color: #141619; }
.track__watermark { opacity: .38; }
@media (max-width: 767px) {
  .intro__image { width: 100%; height: 100%; object-position: 62% center; }
  .intro__shade { background: linear-gradient(90deg, rgba(20,22,25,.87), rgba(20,22,25,.3)), linear-gradient(0deg, #141619 0%, rgba(20,22,25,.55) 35%, rgba(20,22,25,.15) 70%, rgba(20,22,25,.45)); }
  .intro__content { left: 24px; right: 24px; width: auto; top: 47%; transform: translateY(-42%); }
  .intro__eyebrow { font-size: 8px; letter-spacing: .11em; margin-bottom: 24px; }
  .intro h1 { font-size: clamp(44px, 10.8vw, 78px); }
  .intro__lead { font-size: 14px; max-width: 340px; margin-top: 22px; }
  .intro__lead br { display: none; }
  .intro__actions { gap: 20px; margin-top: 24px; flex-wrap: wrap; }
  .intro__actions .btn { padding: 16px 21px; }
  .intro__trust { font-size: 10px; max-width: 260px; line-height: 1.6; }
  .intro__caption { right: 24px; bottom: 112px; font-size: 8px; }
  .intro__caption span:last-child { display: none; }
  .intro__bottom { left: 24px; right: 24px; height: 88px; padding-bottom: env(safe-area-inset-bottom); }
  .intro__skip { display: none; }
}
@media (max-height: 650px) and (min-width: 768px) {
  .intro h1 { font-size: 9vh; }
  .intro__eyebrow { margin-bottom: 16px; }
  .intro__lead { margin-top: 16px; }
  .intro__actions { margin-top: 18px; }
  .intro__bottom { height: 74px; }
  .intro__caption { bottom: 92px; }
}
html:not(.js) .intro { position: relative; min-height: 760px; }
html:not(.js) .intro__explore { display: none; }
@media (max-width: 767px) and (max-height: 700px) {
  .intro__content { top: 45%; }
  .intro__eyebrow { margin-bottom: 16px; }
  .intro h1 { font-size: clamp(38px, 10vw, 64px); }
  .intro__lead { margin-top: 16px; font-size: 13px; }
  .intro__actions { gap: 12px; margin-top: 18px; }
  .intro__actions .btn { padding: 14px 18px; font-size: 9px; }
  .intro__secondary { font-size: 10px; }
  .intro__trust, .intro__caption { display: none; }
  .intro__bottom { height: 72px; }
}

/* A real foreground section rises across the pinned opening photograph. */
main { isolation:auto; overflow:visible; }
main > section:not(.intro) { position: relative; z-index: 2; }
.track__sticky { background: var(--bg-page); }
.brand__mark { filter: grayscale(1) brightness(0); }
.header, .header.is-intro, .header.is-scrolled {
  padding-block: 22px;
  border: 0;
  background: rgba(238, 240, 234, var(--nav-surface, 0));
  color: rgb(var(--nav-ink, 246), var(--nav-ink, 246), var(--nav-ink, 246));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: none;
}
.header .brand, .header.is-intro .brand,
.header .header__nav a, .header.is-intro .header__nav a,
.header .header__tel, .header.is-intro .header__tel,
.header .btn, .header.is-intro .btn { color: inherit; }
.header .btn, .header.is-intro .btn { border-color: currentColor; }
.header .wordmark { height: 13px; }
.intro__contact { display: grid; gap: 8px; text-align: right; font-size: 12px; font-style: normal; color: #faf7f2; }
.intro__contact a { text-decoration: none; }
.intro__contact span { font-size: 10px; color: #c9cbce; }
.track__fallback { right: 1%; left: 41%; }
@media (max-width: 767px) {
  .header, .header.is-intro, .header.is-scrolled { padding-block: 16px; }
  .header .wordmark { height: 10px; }
  .intro__contact { font-size: 10px; }
  .intro__contact span { max-width: 130px; font-size: 9px; }
  .intro__explore { max-width: 50%; font-size: 10px; gap: 10px; }
  .intro__explore small { display: none; }
  .intro__arrow { flex: none; width: 30px; height: 30px; }
  .track__fallback { inset: 10% 6% 40% 6%; }
}

.footer .brand__mark { filter: grayscale(1) brightness(0) invert(1); }
.header__nav a { transition: none; }

/* Services: one idea per card, technical depth on demand. */
.cards.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; border: 0; align-items: start; }
.service-tile { min-width: 0; background: #faf7f2; border: 1px solid rgba(20,22,25,.09); }
.service-tile__visual { position: relative; height: 232px; display: grid; place-items: center; overflow: hidden; background-color: #eee8df; background-image: linear-gradient(rgba(20,22,25,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,22,25,.035) 1px, transparent 1px); background-size: 24px 24px; color: #4a4e54; }
.service-tile:nth-child(2n) .service-tile__visual { background-color: #1f2226; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); color: #c9cbce; }
.service-tile__visual svg { width: 280px; height: 220px; transition: transform 700ms var(--ease-out); }
.service-tile:hover .service-tile__visual svg { transform: translateY(-5px); }
.service-tile__visual .accent { stroke: #92764f; stroke-width: 2; }
.service-tile__number { position: absolute; top: 24px; left: 28px; font: 500 12px var(--font-display); letter-spacing: .12em; color: #8f7245; }
.service-tile:nth-child(2n) .service-tile__number { color: #b99a70; }
.service-tile__body { padding: 32px 36px 24px; }
.service-tile h3 { margin: 0 0 18px; font: 700 clamp(21px, 2.2vw, 30px)/1.12 var(--font-display); letter-spacing: -.025em; text-transform: uppercase; }
.service-tile__promise { margin: 0 0 12px; font-size: 17px; line-height: 1.5; font-weight: 500; }
.service-tile__text { margin: 0; max-width: 46ch; min-height: 5em; font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.service-tile__details { border-top: 1px solid var(--border-subtle); margin-top: 26px; }
.service-tile__details summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; padding: 20px 0 0; font-size: 12px; font-weight: 500; }
.service-tile__details summary::-webkit-details-marker { display: none; }
.service-tile__details summary span { font-size: 22px; font-weight: 300; line-height: 1; color: #8f7245; transition: transform 200ms; }
.service-tile__details[open] summary span { transform: rotate(45deg); }
.service-tile__details > div { padding: 8px 0 12px; font-size: 14px; line-height: 1.7; color: var(--fg-2); }
.service-tile__details ul { padding-left: 18px; display: grid; gap: 8px; }
@media (max-width: 719px) {
  .cards.services-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-tile__visual { height: 200px; }
  .service-tile__visual svg { height: 190px; }
  .service-tile__body { padding: 26px 24px 22px; }
  .service-tile__text { min-height: 0; }
}
@media (max-width:359px) { .service-tile h3 { font-size:18.5px; } }
@media (prefers-reduced-motion: reduce) { .service-tile:hover .service-tile__visual svg { transform: none; } }
/* Keep the pinned opening behind the build stage, not behind later content. */
main > section:not(.intro):not(.track):not(.section--dark) { background-color: var(--bg-page); }

/* A consistent light palette for the complete services grid. */
.service-tile:nth-child(2n) .service-tile__visual {
  background-color: #eee8df;
  background-image: linear-gradient(rgba(20,22,25,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,22,25,.035) 1px, transparent 1px);
  color: #4a4e54;
}
.service-tile:nth-child(2n) .service-tile__number { color: #8f7245; }
.service-tile { transition: box-shadow 450ms var(--ease-out), border-color 450ms var(--ease-out); }
.service-tile__visual svg path, .service-tile__visual svg rect { transition: stroke 450ms, stroke-dashoffset 900ms var(--ease-out); stroke-dasharray: 800; stroke-dashoffset: 0; }
@media (hover: hover) {
  .service-tile:hover { border-color:transparent; box-shadow:0 12px 32px rgba(21,43,67,.09); }
  .service-tile:hover .service-tile__visual svg { transform: translateY(-6px) scale(1.06); }
  .service-tile:hover .service-tile__visual .accent { animation: architectural-line 1000ms var(--ease-out) both; }
}
@keyframes architectural-line { from { stroke-dashoffset: 800; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .service-tile:hover .service-tile__visual svg { transform: none; }
  .service-tile:hover .service-tile__visual .accent { animation: none; }
}
.track__label span { font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: .03em; }
@media (min-width: 768px) {
  .track__fallback { left: calc(6% + var(--composition, 0) * 35%); right: calc(6% - var(--composition, 0) * 5%); }
}
.services .cta-row { background: #eae2d6; color: var(--fg-1); }
.services .cta-row p span { color: var(--fg-2); }
.services .cta-row .btn { background: var(--color-brand-dark); color: #fff; }

.track__label span { font-family: var(--font-hand); font-size: 22px; }

/* Project viewer: generous imagery, quiet captions, direct selection. */
.project-gallery__stage { margin: 0; background: #eae2d6; }
.project-gallery__stage > img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.project-gallery__caption { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; background: var(--bg-page); border-bottom: 1px solid var(--border-subtle); font-size: 14px; line-height: 1.5; }
.project-gallery__caption > span:last-child { flex: none; color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-gallery__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.project-gallery__toolbar p { margin: 0; color: var(--fg-2); font-size: 12px; }
.project-gallery__toolbar > div { display: flex; gap: 8px; }
.project-gallery__toolbar button { width: 44px; height: 44px; border: 1px solid var(--border-subtle); background: transparent; cursor: pointer; font-size: 20px; transition: background 200ms; }
.project-gallery__toolbar button:hover { background: #eae2d6; }
.project-gallery__thumbs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.project-gallery__thumbs button { position: relative; padding: 0; border: 0; background: #eae2d6; cursor: pointer; opacity: .55; transition: opacity 250ms; }
.project-gallery__thumbs button:hover, .project-gallery__thumbs button[aria-current="true"] { opacity: 1; }
.project-gallery__thumbs button[aria-current="true"]::after { content: ''; position: absolute; inset: -4px; border: 1px solid #8f7245; pointer-events: none; }
.project-gallery__thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.project-gallery__thumbs button > span { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; font-size: 9px; background: #faf7f2; }
.project-gallery__note { margin: 24px 0 0; color: var(--fg-2); font-size: 11px; }
.tcard__pos { padding: 0; border-radius: 0; background: transparent; color: var(--fg-2); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.tcard__head { flex-direction: column-reverse; gap: 12px; }
.tcard__img { border-radius: 3px; }
.track__copy.is-dusk { padding: 28px; background: #141619; border: 0; }
.track__copy.is-dusk .track__block h2 { color: #faf7f2; }
.track__copy.is-dusk .track__block p:not(.eb) { color: #e4e5e7; }
.track__copy.is-dusk .btn { background: #faf7f2; color: #141619; white-space: normal; }
@media (max-width: 767px) {
  .project-gallery__stage > img { aspect-ratio: 4 / 3; }
  .project-gallery__caption { padding: 18px 0; font-size: 12px; }
  .project-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .track__copy.is-dusk { padding: 20px; }
}
.track__copy.is-dusk .btn { max-width: 100%; font-size: 10px; letter-spacing: .12em; }
.track__copy.is-dusk .btn > span { min-width: 0; }

/* Gallery v18, adapted from the supplied Framer source. */
#referenzen > .wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,500px); align-items: center; gap: clamp(48px,8vw,120px); }
#referenzen .section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin: 0; max-width: 500px; }
#referenzen .h-sec { font-size: clamp(36px,4.5vw,64px); text-wrap: balance; }
#referenzen .section__head .btn { margin-top: 8px; }
.project-gallery { min-width: 0; width: 100%; max-width: 500px; }
.project-gallery__stage { position: relative; aspect-ratio: 1; width: 100%; background: #fff; border: 5px solid #fff; border-radius: 32px; overflow: hidden; }
.project-gallery__stage > img.gallery-v18__image { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 27px; opacity: 0; transition: opacity 400ms cubic-bezier(.2,.65,.3,1); }
.project-gallery__stage > img.gallery-v18__image.is-active { opacity: 1; }
.project-gallery__caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.project-gallery__thumbs { display: block; margin-top: 18px; overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 25px, #000 calc(100% - 25px), transparent); }
.gallery-ticker { display: flex; width: max-content; animation: gallery-v18-ticker var(--ticker-duration,16.56s) linear infinite; }
.gallery-ticker__group { display: flex; gap: 10px; padding-right: 10px; }
.project-gallery__thumbs button { flex: 0 0 82px; width: 82px; height: 82px; border-radius: 10px; overflow: hidden; opacity: 1; }
.project-gallery__thumbs img { width: 82px; height: 82px; aspect-ratio: 1; object-fit: cover; }
.project-gallery__thumbs button > span { display: none; }
.project-gallery__thumbs button[aria-current="true"]::after { inset: 0; border: 2px solid #92764f; border-radius: 10px; }
.project-gallery__thumbs:focus-within .gallery-ticker { animation-play-state: paused; }
.project-gallery__note { margin: 14px 0 0; font-size: 10px; color: var(--fg-2); }
@keyframes gallery-v18-ticker { to { transform: translateX(-50%); } }
/* No panel over the house: stronger ink and a soft light text halo. */
.track__copy.is-dusk { padding: 0; background: transparent; border: 0; }
.track__copy.is-dusk .track__block h2 { color: #141619; text-shadow:none; }
.track__copy.is-dusk .track__block p:not(.eb) { color: #141619; text-shadow:none; }
.track__copy.is-dusk .btn { background: #141619; color: #faf7f2; }
@media (max-width: 899px) {
  #referenzen > .wrap { grid-template-columns: 1fr; gap: 42px; }
  #referenzen .section__head, .project-gallery { max-width: 600px; width: 100%; margin-inline: auto; }
}
@media (max-width: 767px) {
  .track__copy.is-dusk { padding: 20px; background: rgba(244,240,232,.94); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-ticker { animation: none; }
  .project-gallery__thumbs { overflow-x: auto; mask-image: none; }
  .gallery-ticker__group[aria-hidden="true"] { display: none; }
  .project-gallery__stage > img.gallery-v18__image { transition: none; }
}
html:not(.js) .project-gallery__thumbs { display: none; }

/* Gallery v2: five staggered columns rise behind the editorial introduction. */
#referenzen { position: relative; overflow: hidden; padding: 80px var(--gutter) 460px; min-height: 880px; }
#referenzen > .wrap { display: block; padding-inline: 0; position: static; }
#referenzen .section__head { position: relative; z-index: 3; max-width: 590px; margin: 0; gap: 18px; }
#referenzen .section__head .lead { max-width: 46ch; }
#referenzen .h-sec { max-width: 10ch; }
.gallery-v2 { display: flex; gap: 12px; align-items: flex-end; position: absolute; top: 160px; left: -10px; right: -10px; height: 650px; z-index: 1; padding-bottom: 28px; mask-image: linear-gradient(to bottom,#000 86%,transparent); }
.gallery-v2__column { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; gap: 12px; }
.gallery-v2__image { display: block; width: 100%; height: 245px; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #eae2d6; cursor: zoom-in; box-shadow: 0 8px 20px rgba(20,22,25,.08); }
.gallery-v2__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.gallery-v2__image:hover img { transform: scale(1.045); }
.gallery-v2__column:nth-child(2) .gallery-v2__image { height: 185px; }
.gallery-v2__column:nth-child(3) .gallery-v2__image { height: 245px; }
.gallery-v2__column:nth-child(4) .gallery-v2__image { height: 285px; }
.gallery-v2__column:nth-child(5) .gallery-v2__image { height: 305px; }
.gallery-v2__note { position: absolute; bottom: 30px; right: var(--gutter); font-size: 10px; color: var(--fg-2); }
.gallery-viewer { width:min(1280px,94vw,120svh); max-width:94vw; max-height:90svh; padding:0; background:transparent; color:#fff; border:0; border-radius:14px; overflow:hidden; box-shadow:0 24px 100px rgba(0,0,0,.35); }
.gallery-viewer::backdrop { background:rgba(8,15,25,.86); backdrop-filter:blur(12px); }
.gallery-viewer figure { position:relative; margin:0; }
.gallery-viewer figure::before { content:""; position:absolute; inset:0 0 auto; height:100px; background:linear-gradient(180deg,rgba(8,15,25,.45),transparent); pointer-events:none; }
.gallery-viewer img { display:block; width:100%; height:auto; max-height:90svh; object-fit:contain; }
.gallery-viewer figcaption { position:absolute; inset:auto 0 0; padding:72px clamp(22px,3vw,40px) clamp(22px,3vw,36px); background:linear-gradient(transparent,rgba(8,15,25,.78)); color:#fff; font-size:clamp(15px,1.6vw,21px); font-weight:500; line-height:1.4; pointer-events:none; }
.gallery-viewer__close { position:absolute; z-index:2; right:18px; top:18px; display:grid; place-items:center; width:46px; height:46px; border:1px solid rgba(255,255,255,.25); border-radius:50%; background:rgba(8,15,25,.38); backdrop-filter:blur(12px); color:#fff; font-size:30px; line-height:1; cursor:pointer; transition:background 200ms ease,transform 200ms ease; }
.gallery-viewer__close:hover { background:rgba(8,15,25,.7); transform:rotate(90deg); }
.gallery-viewer__close:focus-visible { outline:2px solid #fff; outline-offset:-5px; }
@media(prefers-reduced-motion:reduce) { .gallery-viewer__close { transition:none; } }
/* Trace the actual Caveat glyph outlines, then fill the ink, letter by letter. */
.track__label--w .handwriting { width: 95px; height: 32px; }
.track__label--h .handwriting { width: 95px; height: 32px; }
.track__label--note .handwriting { width: 112px; height: 76px; }
.handwriting { display: block; overflow: visible; color: #141619; }
.handwriting-glyph { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-written .handwriting-glyph { animation: handwriting-ink 650ms ease-out both; animation-delay: calc(var(--letter) * 85ms); }
@keyframes handwriting-ink { 0% { stroke-dashoffset: 1; fill-opacity: 0; } 72% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
.track__label--note .sun-arrow { position: absolute; left: -90px; top: 2px; width: 96px; height: 84px; overflow: visible; }
.sun-arrow path { stroke: #141619; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-written .sun-arrow path { animation: sun-arrow-draw 850ms ease-out 1.35s both; }
@keyframes sun-arrow-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 899px) {
  #referenzen { min-height: 760px; padding-top: 60px; padding-bottom: 380px; }
  #referenzen .section__head { max-width: 440px; margin: 0; }
  .gallery-v2 { top: 240px; height: 470px; }
  .gallery-v2__column .gallery-v2__image { height: 190px; }
  .gallery-v2__column:nth-child(2) .gallery-v2__image { height: 140px; }
  .gallery-v2__column:nth-child(3) .gallery-v2__image { height: 170px; }
  .gallery-v2__column:nth-child(4) .gallery-v2__image { height: 200px; }
  .gallery-v2__column:nth-child(5) .gallery-v2__image { height: 220px; }
}
@media (max-width: 599px) {
  #referenzen { padding-top: 60px; padding-bottom: 320px; min-height: 760px; }
  #referenzen .section__head { max-width: none; }
  #referenzen .section__head .lead { font-size: 15px; }
  .gallery-v2 { top: 385px; height: 310px; gap: 8px; }
  .gallery-v2__column { gap: 8px; }
  .gallery-v2__column .gallery-v2__image { height: 130px; }
  .gallery-v2__column:nth-child(2) .gallery-v2__image { height: 85px; }
  .gallery-v2__column:nth-child(3) .gallery-v2__image { height: 105px; }
  .gallery-v2__column:nth-child(4) .gallery-v2__image { height: 125px; }
  .gallery-v2__column:nth-child(5) .gallery-v2__image { height: 140px; }
  .gallery-v2__image { border-radius: 8px; }
  .track__label--note .handwriting { width: 80px; height: 54px; }
  .track__label--note .sun-arrow { display: block; width: 55px; height: 48px; left: -50px; top: 0; }
  .track__label--w .handwriting, .track__label--h .handwriting { width: 70px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .handwriting-glyph { fill-opacity: 1; stroke-dashoffset: 0; animation: none !important; }
  .sun-arrow path { stroke-dashoffset: 0; animation: none !important; }
  .gallery-v2__image:hover img { transform: none; }
}
.track__label--note span .handwriting { position: static; inset: auto; }
@media (min-width: 900px) { .gallery-v2__column:nth-child(3) .gallery-v2__image { height: 190px; } }

/* Consolidated finishing pass: surfaces, hierarchy and alignment. */
.track { height: 1100vh; }
.header, .header.is-intro, .header.is-scrolled {
  background: rgba(250,247,242,.62);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  color: #141619;
  transition: background 280ms ease, color 240ms ease;
}
.header.nav-dark { background: rgba(20,22,25,.34); color: #faf7f2; }
.header .brand, .header .header__nav a, .header .header__tel, .header .btn { color: inherit; }
.header .btn:hover { background: #141619; color: #faf7f2; }
.header.nav-dark .btn:hover { background: #faf7f2; color: #141619; }
.facts { background: #eae2d6; padding-block: 88px; }
.facts__head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 56px; }
.facts__head h2 { margin: 0; font: 700 clamp(36px,4.6vw,68px)/1.08 var(--font-display); letter-spacing: -.025em; }
.facts__head h2 > span { display:inline-block; margin-top:8px; font-size:.78em; line-height:1.15; }
.facts__head h2 span { color: #8b755c; }
.facts__head p { margin: 0; font-size: 14px; line-height: 1.7; color: #625548; }
.facts__grid { gap: 0; border-top: 1px solid #d2c5b3; padding-top: 36px; }
.fact { padding: 0 28px; border: 0; border-left: 1px solid #d2c5b3; display: flex; flex-direction: column; }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact dd { margin: 0 0 22px; font: 500 clamp(42px,5vw,70px)/1 var(--font-display); letter-spacing: -.06em; color: #141619; }
.fact dd span { font-size: 19px; margin-left: 8px; letter-spacing: -.02em; }
.fact dd > span:not(.fact__value),.fact dd small { color:#b99a70; }
.fact dd small { font-size: 16px; margin-right: 8px; letter-spacing: 0; }
.fact dt { font-size: 13px; line-height: 1.5; color: #141619; letter-spacing: 0; text-transform: none; }
.fact p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: #625548; }
#ansatz .section__head--split { display: block; max-width: 820px; }
.service-tile__visual, .service-tile:nth-child(2n) .service-tile__visual { background: radial-gradient(ellipse at 50% 45%,#fff 0%,#f4f0e8 60%,#eae2d6 100%); height: 200px; }
.service-tile__visual svg.service-symbol { width: 118px; height: 118px; color: #152b43; padding: 12px; border-radius: 24px; background: rgba(255,255,255,.70); box-shadow: 0 12px 26px rgba(20,22,25,.05), inset 0 0 0 1px rgba(255,255,255,.9); overflow: visible; }
.service-symbol .symbol-accent { stroke: #92714a; }
.service-tile.symbol-active .service-symbol path, .service-tile.symbol-active .service-symbol circle { animation: service-ink 1600ms cubic-bezier(.2,.65,.3,1) both; stroke-dasharray: 180; }
.service-tile.symbol-active .service-symbol path:nth-of-type(2) { animation-delay: 180ms; }
.service-tile.symbol-active .service-symbol path:nth-of-type(3) { animation-delay: 360ms; }
@keyframes service-ink { from { stroke-dashoffset: 180; opacity: .15; } to { stroke-dashoffset: 0; opacity: 1; } }
.service-invitation { margin-top: 72px; padding: 40px; display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; align-items: center; background: #eee7dc; border-radius: 20px; border: 1px solid #d8cbb9; }
.service-invitation__drawing { width: 140px; height: 140px; color: #92764f; border-radius: 50%; background: #f7f2ea; display: grid; place-items: center; }
.service-invitation__drawing svg { width: 110px; height: 100px; }
.service-invitation h3 { margin: 0 0 12px; font: 500 clamp(26px,3vw,40px)/1.1 var(--font-display); letter-spacing: -.03em; }
.service-invitation p { margin: 0; font-size: 14px; line-height: 1.7; color: #625548; }
#referenzen .gallery-v2__note { position: static; margin: -4px 0 0; color: #857763; font-size: 10px; }
main > #team { background-color: #eee7dc; }
#team .tcard__img { background: #ded1bf; }
main > #erstgespraech { background: linear-gradient(180deg,#faf7f2 0%,#f1ebe2 45%,#e5dacb 100%); padding-block: 100px 64px; }
.contact__grid { grid-template-columns: .95fr 1.05fr; gap: 56px; padding: 56px; max-width: 1200px; width: calc(100% - 2 * var(--gutter)); background: rgba(255,255,255,.58); border: 1px solid rgba(161,133,104,.25); border-radius: 24px; box-shadow: 0 20px 65px rgba(35,52,28,.04); }
.contact__intro .h-sec { font-size: clamp(34px,4vw,54px); text-transform: none; font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.contact__intro .h-sec .ton { color: #92764f; }
.contact__intro .lead { margin: 24px 0 36px; font-size: 15px; line-height: 1.75; color: #5e5143; max-width: 38ch; }
.contact__routes { display: grid; gap: 0; margin-bottom: 32px; }
.contact__routes a { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 22px 0; border-top: 1px solid #ded4c6; text-decoration: none; }
.contact__routes a span { font-size: 11px; color: #8c7962; grid-column: 1; }
.contact__routes a strong { font-size: clamp(17px,1.8vw,24px); letter-spacing: -.02em; font-weight: 500; grid-column: 1; overflow-wrap: anywhere; }
.contact__routes a i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 24px; font-style: normal; color: #92764f; }
.contact__intro address { font-size: 13px; font-style: normal; line-height: 1.9; color: #514639; }
.contact__intro address span { color: #8c7962; }
.contact .form { padding: 0 0 0 48px; border: 0; border-left: 1px solid #ded4c6; background: transparent; box-shadow: none; }
.contact .form__title { text-transform: none; font-size: 25px; font-weight: 500; margin-bottom: 28px; }
.contact .form legend, .contact .form label { font-size: 11px; letter-spacing: .035em; text-transform: none; color: #5e5143; }
.contact .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact .chip:last-child { grid-column: 1 / -1; }
.contact .chip { margin-bottom: 0; }
.contact .chip span { display: block; text-align: center; padding: 10px 12px; font-size: 12px; background: rgba(255,255,255,.45); border-radius: 8px; }
.contact .chip input:checked + span { background: #152b43; border-color: #152b43; color: #fff; }
.contact .field__input { border-radius: 8px; background: rgba(255,255,255,.8); border-color: #d8cbb9; font-size: 14px; }
.contact textarea.field__input { min-height: 110px; }
.contact .form .btn { background: #152b43; }
.contact .form__privacy { font-size: 10px; color: #8b755c; }
main > #faq { background-color: #e5dacb; padding-top: 48px; }
#faq .faq__item { border-color: #d2c5b3; }
#faq .faq__body, #faq .lead { color: #5e5143; }
/* Ursprüngliche Footer-Anordnung: Bildmarke links, große Wortmarke mittig. */
.footer { text-align: left; }
.footer__symbol { display: inline-flex; }
.footer__symbol img { width: 164px; height: 120px; object-fit: contain; filter: brightness(0) invert(1); }
.footer__grid { max-width: none; margin: 0; align-items: start; }
.footer .footer__claim { margin: 20px 0 0; max-width: 34ch; }
.footer__watermark { position: relative; left: 50%; transform: translateX(-50%); width: calc(100vw - 32px); font-size: 16.8vw; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(250,247,242,.75); }

.is-written .handwriting-glyph { animation-duration: 420ms; animation-delay: calc(var(--letter) * 24ms); }
.is-written .sun-arrow path { animation-duration: 500ms; animation-delay: 450ms; }
@media (max-width: 959px) {
  .facts__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 20px; }
  .fact { padding-left: 24px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .service-invitation { grid-template-columns: 110px 1fr; padding: 30px; gap: 24px; }
  .service-invitation__drawing { width: 110px; height: 110px; }
  .service-invitation > .btn { grid-column: 2; justify-self: start; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .contact .form { padding: 36px 0 0; border-left: 0; border-top: 1px solid #ded4c6; }
}
@media (max-width: 599px) {
  .facts { padding-block: 56px; }
  .facts__head { display: block; margin-bottom: 32px; }
  .facts__head p { margin-top: 20px; font-size: 12px; }
  .fact { padding-left: 16px; }
  .fact dd { font-size: 42px; }
  .fact dd span { font-size: 14px; }
  .fact dt { font-size: 12px; }
  .fact p { font-size: 10px; }
  .service-invitation { display: flex; flex-direction: column; text-align: center; padding: 30px 24px; }
  .service-invitation__drawing { width: 90px; height: 90px; }
  .service-invitation__drawing svg { width: 80px; }
  .service-invitation p br { display: none; }
  .service-tile__visual, .service-tile:nth-child(2n) .service-tile__visual { height: 170px; }
  .service-tile__visual svg.service-symbol { width: 102px; height: 102px; }
  main > #erstgespraech { padding-top: 64px; }
  .contact__grid { padding: 28px 22px; border-radius: 16px; }
  .contact .field-pair { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__symbol img { width: 140px; height: 106px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-tile.symbol-active .service-symbol path, .service-tile.symbol-active .service-symbol circle { animation: none; stroke-dashoffset: 0; }
}

.fact dt { order: 2; }
.fact dd:not(.fact__note) { order: 1; }
.fact dd.fact__note { order: 3; margin: 8px 0 0; font-family: var(--font-body); font-size: 11px; line-height: 1.5; color: #625548; letter-spacing: 0; }
.contact .chip input:checked + span, .contact .form .btn { background: #141619; border-color: #141619; }
main > section.facts { background-color: #eae2d6; }
.contact .form legend, .contact .form label { font-size: 12px; }
.contact__routes a span { font-size: 12px; }
.contact .form__privacy { font-size: 11px; }

/* The gallery ends exactly at the shared lower edge of its image columns. */
#referenzen { min-height: 0; height: 810px; padding-bottom: 0; }
.gallery-v2 { padding-bottom: 0; }
@media (max-width: 899px) { #referenzen { height: 710px; min-height: 0; padding-bottom: 0; } }
@media (max-width: 599px) { #referenzen { height: 695px; min-height: 0; padding-bottom: 0; } }
.gallery-v2 { mask-image: none; -webkit-mask-image: none; }

/* Dark anchors around the lighter editorial content. */
main > section.facts { background: #141619; color: #faf7f2; }
.facts__head h2, .facts .fact dd:not(.fact__note), .facts .fact dt { color: #faf7f2; }
.facts__head h2 span { color: #b99a70; }
.facts__head p, .facts .fact dd.fact__note { color: #b8b1a6; }
.facts__grid, .facts .fact { border-color: rgba(250,247,242,.16); }
.service-invitation { position: relative; overflow: hidden; isolation: isolate; grid-template-columns: 1fr auto; padding: 56px; min-height: 270px; background: #141619; border: 0; color: #faf7f2; }
.service-invitation__image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.service-invitation::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(12,13,15,.94),rgba(12,13,15,.82) 46%,rgba(12,13,15,.48)); }
.service-invitation > div, .service-invitation > a { position: relative; }
.service-invitation h3 { font-size: clamp(32px,4vw,52px); }
.service-invitation p { color: #e4e5e7; font-size: 15px; }
.service-invitation .btn { background: #faf7f2; color: #141619; }
main > #referenzen, main > #team { background-color: #f4f0e8; }
#referenzen .gallery-v2__note { position: absolute; top: 104px; bottom: auto; height: auto; right: var(--gutter); z-index: 3; max-width: 320px; pointer-events: none; margin: 0; text-align: right; font-size: 10px; }
/* The view stays pinned longer and camera progress is damped in the scene. */
.track { height: 1600vh; }
@media (min-width: 768px) {
  .track__copy { left: max(32px, calc((100vw - 1400px) / 2 + 40px)); right: max(32px, calc((100vw - 1400px) / 2 + 40px)); width: auto; grid-template-columns: 1fr 1fr; gap: 12vw; }
  .track__block { width: min(420px,31vw); }
  .track__block.is-right { grid-area: 1 / 2; justify-self: end; }
  .track__fallback { left: calc(6% + var(--composition,0) * 35% - var(--house-left,0) * 40%); right: calc(6% - var(--composition,0) * 5% + var(--house-left,0) * 40%); }
}
@media (max-width: 899px) {
  #referenzen .gallery-v2__note { top: 212px; right: var(--gutter); max-width: 240px; }
  .service-invitation { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .service-invitation > .btn { grid-column: 1; justify-self: start; }
}
@media (max-width: 767px) {
  .track__copy { grid-template-columns: 1fr; }
  .track__block.is-right { grid-area: 1 / 1; justify-self: auto; width: auto; }
}
@media (max-width: 599px) {
  #referenzen .gallery-v2__note { top: 355px; right: 16px; max-width: calc(100% - 32px); }
  .service-invitation { padding: 36px 26px; min-height: 290px; align-items: center; }
  .service-invitation::before { background: rgba(12,13,15,.78); }
  .service-invitation p { font-size: 14px; }
}

/* Transparente Kopfzeile; sichtbar beim Hochscrollen. */
.header, .header.is-intro, .header.is-scrolled { background: rgba(250,247,242,.13); backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%); border: 0; transition: transform 400ms var(--ease-out), background 400ms ease, color 300ms ease; }
.header.nav-dark { background: rgba(20,22,25,.12); }
.header.is-hidden { transform: translateY(-110%); pointer-events: none; }
.header__burger { display: none; color: inherit; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.header__burger span { display: block; height: 1.5px; width: 24px; background: currentColor; margin: 6px 0; transition: transform 250ms ease; }
.header.menu-open .header__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header.menu-open .header__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 90; background:#152b43; color:#b99a70; padding:100px var(--gutter) calc(40px + env(safe-area-inset-bottom)); overflow-y:auto; }
.mobile-menu__links { display: grid; gap: 22px; }
.mobile-menu a { color:#b99a70; text-decoration: none; font-family: var(--font-display); font-size: clamp(26px,6vw,46px); }
.mobile-menu .mobile-menu__phone { display:flex; align-items:center; gap:12px; width:max-content; min-height:44px; margin-top:20px; font-family:var(--font-body); font-size:16px; }
.mobile-menu__phone svg { width:20px; height:20px; flex:none; }
html.menu-open { overflow: hidden; }
.header.menu-open { z-index: 100; color: #141619; }
@media(max-width:1099px) { .header__end { display:none; } .header__burger { display:block; } }
@media(prefers-reduced-motion:reduce) { .header, .header__burger span { transition:none; } }

.intro__image, .intro__video { object-position: center 43%; }
.intro__video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 800ms ease; }
.intro__video.is-playing { opacity:1; }
@media(prefers-reduced-motion:reduce) { .intro__video { display:none; } }

/* Ablauf: ruhige Phasenkarten mit klarer Reihenfolge. */
.timeline { display:grid; gap:16px; }
.timeline__rail { display:none; }
.timeline__item, .timeline__item:last-child { grid-template-columns:64px minmax(0,1fr); gap:24px; padding:30px; border:1px solid rgba(250,247,242,.12); border-radius:16px; background:linear-gradient(125deg,rgba(250,247,242,.045),rgba(250,247,242,.012)); transition:background 300ms ease,border-color 300ms ease,transform 300ms ease; }
.timeline__item:hover { transform:translateX(-5px); border-color:rgba(201,177,137,.5); background:rgba(201,177,137,.055); }
.timeline__index { width:auto; height:auto; display:block; background:none; border:0; border-radius:0; font-size:48px; font-weight:500; line-height:1; letter-spacing:-.06em; color:rgba(201,177,137,.8); }
.timeline__head { display:flex; flex-direction:column-reverse; align-items:flex-start; gap:12px; padding:0; }
.timeline__name { font-size:clamp(23px,2.1vw,30px); font-weight:500; text-transform:none; line-height:1.15; }
.timeline__span { padding:0; border:0; border-radius:0; font-size:10px; letter-spacing:.15em; color:#b99a70; }
.timeline__note { margin-top:16px; font-size:15px; line-height:1.75; color:#c0b9ae; }
.footer__symbol img { width:112px; height:84px; }
.footer__watermark { left:auto; transform:none; width:100%; font-size:inherit; line-height:0; }
.footer__watermark svg { display:block; width:100%; height:auto; overflow:visible; }
.footer__watermark path { fill:none; stroke:rgba(250,247,242,.75); stroke-width:1; vector-effect:non-scaling-stroke; }
@media(max-width:599px) {
 .timeline__item,.timeline__item:last-child { padding:24px 20px; grid-template-columns:42px minmax(0,1fr); gap:16px; }
 .timeline__index { font-size:34px; }
 .timeline__name { font-size:23px; }
 .footer__symbol img { width:96px; height:72px; }
}
@media(prefers-reduced-motion:reduce) { .timeline__item { transition:none; } .timeline__item:hover { transform:none; } }

/* Kompaktere Footer-Bildmarke und Begleittext. */
.footer__symbol img { width:88px; height:66px; }
.footer .footer__claim { font-size:12px; line-height:1.65; margin-top:16px; }
@media(max-width:599px) { .footer__symbol img { width:80px; height:60px; } }

/* Redaktionelle Verfeinerung: Bilder, Timeline und zusammenhängender Kontakt. */
#referenzen { height:890px; padding-bottom:80px; }
#team .tcard__img, #team .tcard__img img { border-radius:12px; overflow:hidden; }
#team .tcard__img { box-shadow:0 12px 30px rgba(21,43,67,.13),0 3px 8px rgba(21,43,67,.07); }
.facts__grid { border-top:0; padding-top:0; }
.service-invitation .btn, #ablauf .btn--light { background:linear-gradient(125deg,#d9c4a2,#b99b70); color:#152b43; border:1px solid #dfcda9; box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 24px rgba(0,0,0,.12); transition:background 300ms,transform 300ms,box-shadow 300ms; }
.service-invitation .btn:hover, #ablauf .btn--light:hover { background:#e5d4b8; transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.2); }
.service-tile__visual { position:relative; isolation:isolate; overflow:hidden; background-size:cover; background-position:center; }
.service-tile__visual::before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(15,38,61,.52),rgba(21,43,67,.3)); z-index:-1; }
.service-tile:nth-child(1) .service-tile__visual { background-image:url('../referenzen/quartier-masterplan.webp'); }
.service-tile:nth-child(2) .service-tile__visual { background-image:url('../referenzen/mehrfamilienhaus-holzfassade.webp'); }
.service-tile:nth-child(3) .service-tile__visual { background-image:url('../referenzen/wohnraum-dachterrasse.webp'); }
.service-tile:nth-child(4) .service-tile__visual { background-image:url('../referenzen/doppelhaus-holzeingang.webp'); }
.service-tile:nth-child(5) .service-tile__visual { background-image:url('../referenzen/einfamilienhaus-abend.webp'); }
.service-tile:nth-child(6) .service-tile__visual { background-image:url('../referenzen/reihenhauszeile.webp'); }
.service-tile__number { color:#fff; }
.service-tile__visual svg.service-symbol { background:rgba(250,247,242,.88); backdrop-filter:blur(12px); transition:transform 600ms cubic-bezier(.2,.7,.2,1),box-shadow 600ms; }
.service-tile .service-symbol path,.service-tile .service-symbol circle { animation:none!important; stroke-dasharray:none!important; stroke-dashoffset:0!important; }
.service-tile:hover .service-symbol,.service-tile:focus-within .service-symbol { transform:translateY(-6px) rotate(-4deg) scale(1.05); box-shadow:0 18px 32px rgba(20,22,25,.2); }
.service-symbol .symbol-accent { transform-box:fill-box; transform-origin:center; transition:transform 650ms cubic-bezier(.2,.7,.2,1); }
.service-tile:hover .symbol-accent,.service-tile:focus-within .symbol-accent { transform:rotate(8deg); }
.timeline { gap:0; padding-left:0; }
.timeline::before { content:""; position:absolute; left:25px; top:28px; bottom:50px; width:1px; background:linear-gradient(#b99a70,rgba(201,177,137,.2)); }
.timeline__item,.timeline__item:last-child { padding:0 0 44px; gap:28px; grid-template-columns:52px minmax(0,1fr); border:0; border-radius:0; background:none; }
.timeline__item:hover { background:none; transform:none; border:0; }
.timeline__index { display:grid; place-items:center; width:52px; height:52px; border:1px solid rgba(201,177,137,.65); border-radius:50%; background:#141619; font-size:18px; letter-spacing:0; color:#b99a70; box-shadow:0 0 0 8px #141619; }
.timeline__item>div { padding:4px 0 28px; border-bottom:1px solid rgba(250,247,242,.13); }
.timeline__item:last-child>div { border-bottom:0; padding-bottom:0; }
.timeline__head { gap:10px; }
.contact__grid { padding:0; gap:0; overflow:hidden; }
.contact__intro { padding:48px 40px; background:linear-gradient(130deg,rgba(20,22,25,.88),rgba(20,22,25,.55)),url('../referenzen/einfamilienhaus-abend.webp') center/cover; color:#faf7f2; }
.contact__intro .h-sec,.contact__intro .h-sec .ton { color:#faf7f2; }
.contact__intro .lead,.contact__intro address,.contact__intro address span,.contact__routes a span { color:#e3ddd4; }
.contact__routes a { color:#faf7f2; border-color:rgba(255,255,255,.2); }
.contact__routes a i { color:#d5bc95; }
.contact__grid>.form { padding:48px 40px; border-left:0; margin:0; }
@media(max-width:899px) { #referenzen { height:774px; padding-bottom:64px; } .contact__intro,.contact__grid>.form { padding:36px 28px; } }
@media(max-width:599px) { #referenzen { height:751px; padding-bottom:56px; } .timeline__item,.timeline__item:last-child { grid-template-columns:44px minmax(0,1fr); gap:20px; padding:0 0 30px; } .timeline::before { left:21px; } .timeline__index { width:44px; height:44px; font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .service-symbol,.service-symbol .symbol-accent,.service-invitation .btn,#ablauf .btn--light { transition:none!important; transform:none!important; } }
.service-tile .service-tile__visual, .service-tile:nth-child(2n) .service-tile__visual { background-size:cover; background-position:center 60%; }
.service-tile .service-tile__number, .service-tile:nth-child(2n) .service-tile__number { color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.45); }
/* Bildausschnitte, Markenakzente und Kartenabschluss. */
.contact__intro { background-image:linear-gradient(130deg,rgba(12,22,36,.91),rgba(12,22,36,.77)),url('../referenzen/wohnraum-dachterrasse.webp'); background-position:center; }
.service-tile .service-tile__visual,.service-tile:nth-child(2n) .service-tile__visual { background-position:center 85%; }
#ablauf { border-radius:0 0 clamp(32px,5vw,80px) clamp(32px,5vw,80px); overflow:hidden; position:relative; }
main > #erstgespraech { padding-bottom:112px; }
main > #faq { padding-top:96px; }
.h-sec .ton,.on-dark .h-sec .ton,.principle h3 .ton { color:#92764f; }
.on-dark .h-sec .ton { color:#b99a70; }
.contact__intro .h-sec .ton { color:#b99a70; }
.btn--ink,.form .btn--ink { background:#152b43; color:#faf7f2; }
.btn--ink:hover,.form .btn--ink:hover { background:#23425f; color:#fff; }
.header .btn:hover { background:#152b43; color:#fff; }
@media(max-width:599px) { main > #erstgespraech { padding-bottom:72px; } main > #faq { padding-top:56px; } }

.ablauf-surround { background:#faf7f2; }
.ablauf-surround { position:relative; z-index:2; }
.contact .form .btn,.contact .chip input:checked + span { background:#152b43; border-color:#152b43; color:#faf7f2; }
.contact .form .btn:hover { background:#23425f; border-color:#23425f; }
/* Dezenter Kartenradius und warmer beiger Kontaktverlauf. */
.ablauf-surround { background:#f6f4ef; }
#ablauf { border-radius:0 0 clamp(20px,2.4vw,36px) clamp(20px,2.4vw,36px); }
main > #erstgespraech { background:linear-gradient(180deg,#f6f4ef 0%,#eee8de 48%,#e5dacb 100%); }
main > #faq { background-color:#e5dacb; }
#faq .faq__item { border-color:#cfc1af; }
#faq .faq__body,#faq .lead { color:#5c5348; }
/* Gleicher Radius wie die Kontaktkarte. */
#ablauf { border-bottom-left-radius:24px; border-bottom-right-radius:24px; }
@media(max-width:599px) { #ablauf { border-bottom-left-radius:16px; border-bottom-right-radius:16px; } }

/* Scroll-Fortschritt zwischen den Mittelpunkten der fünf Zahlenkreise. */
#ablauf { overflow:visible; }
.timeline::before,.timeline::after { content:""; position:absolute; left:25px; top:var(--rail-top,26px); bottom:auto; width:2px; height:var(--rail-height,calc(100% - 80px)); pointer-events:none; }
.timeline::before { background:rgba(201,177,137,.22); }
.timeline::after { background:#b99a70; transform:scaleY(var(--progress,0)); transform-origin:top; }
.timeline__index { z-index:2; transition:background-color 350ms ease,color 350ms ease,border-color 350ms ease; }
.timeline__item.is-reached .timeline__index { background:#b99a70; border-color:#b99a70; color:#152b43; }
@media(min-width:900px) { #ablauf .ablauf__grid { align-items:start; } #ablauf .section__head { position:sticky; top:104px; align-self:start; } }
@media(max-width:599px) { .timeline::before,.timeline::after { left:21px; } }
@media(prefers-reduced-motion:reduce) { .timeline__index { transition:none; } }
/* Einheitliche Rundungen und primärer Hero-CTA. */
.service-tile { border-radius:12px; overflow:hidden; }
#leistungen { border-radius:0 0 24px 24px; overflow:clip; }
.intro__actions .btn--light { background:linear-gradient(125deg,#d9c4a2,#b99b70); color:#152b43; border:1px solid #dfcda9; box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 24px rgba(0,0,0,.12); transition:background 300ms,transform 300ms,box-shadow 300ms; }
.intro__actions .btn--light:hover { background:#e5d4b8; color:#152b43; transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.2); }
@media(max-width:599px) { #leistungen { border-radius:0 0 16px 16px; } }
@media(prefers-reduced-motion:reduce) { .intro__actions .btn--light { transition:none; transform:none; } }

/* Größere erste Textphase und ruhige Links in jeder Bauphase. */
.track__block:first-child h2 { font-size:clamp(36px,4.3vw,64px); line-height:1.04; letter-spacing:-.035em; }
.headline-nowrap { white-space:nowrap; }
@media(max-width:899px) { .track__block:nth-child(4) h2 { font-size:clamp(19px,5.2vw,30px); } }
.track__block:nth-child(8) h2 { font-size:clamp(40px,4.6vw,70px); line-height:1.04; letter-spacing:-.035em; }
@media(max-width:767px) { .track__block:nth-child(8) h2 { font-size:clamp(34px,9vw,46px); } }
.track__block:first-child { position:relative; top:-24px; }
@media(min-width:900px) {
  .track__block:nth-child(4) h2 { width:min(540px,44vw); text-wrap:initial; }
  .track__block:not(:first-child) { position:relative; top:clamp(-230px,-22vh,-140px); }
  .track__block:first-child { top:clamp(-200px,-18vh,-120px); width:min(650px,49vw); }
  .track__block:first-child h2 { text-wrap:initial; }
  .track__block:first-child p { max-width:420px; }
}
.track__block .build-cta { margin-top:26px; padding:8px 0; border:0; border-bottom:1px solid rgba(21,43,67,.35); border-radius:0; background:transparent; color:#152b43; box-shadow:none; font-size:11px; letter-spacing:.12em; gap:24px; }
.track__block .build-cta:hover { background:transparent; color:#8c6e49; border-color:#8c6e49; }
.fact dd .fact__value { font:inherit; letter-spacing:inherit; margin:0; color:inherit; }
@media(max-width:767px) { .track__block:first-child h2 { font-size:clamp(30px,8vw,42px); } }
/* Heller, nur leicht getönter beiger Verlauf. */
.ablauf-surround { background:#f8f7f4; }
main > #erstgespraech { background:linear-gradient(180deg,#f8f7f4 0%,#f5f1eb 48%,#efe8de 100%); }
main > #faq { background:linear-gradient(180deg,#efe8de 0%,#f7f5f1 18%,#faf9f6 100%); }

.form__consent { display:flex; align-items:flex-start; gap:12px; margin:24px 0; font-size:12px; line-height:1.65; color:#554e45; }
.form__consent input { flex:0 0 18px; width:18px; height:18px; margin-top:3px; accent-color:#152b43; }
.form [aria-invalid=true] { outline:2px solid #a54536; outline-offset:2px; }
.form button:disabled { opacity:.6; cursor:wait; }
.form .form__consent { display:flex; align-items:flex-start; gap:12px; }
/* Konsistente Hover-Paare ohne Wechsel zwischen Verlauf und Vollfarbe. */
.btn { transition:background-color 220ms ease,color 220ms ease,border-color 220ms ease,box-shadow 220ms ease,transform 220ms ease; }
.btn--ink,.contact .form .btn { background-image:none; background-color:#152b43; border-color:#152b43; color:#faf7f2; }
.btn--ink:is(:hover,:focus-visible),.contact .form .btn:is(:hover,:focus-visible) { background-image:none; background-color:#b99a70; border-color:#b99a70; color:#152b43; }
.intro__actions .btn--light,.service-invitation .btn,#ablauf .btn--light { background-image:none; background-color:#b99a70; color:#152b43; border-color:#b99a70; transition:background-color 220ms ease,color 220ms ease,border-color 220ms ease,box-shadow 220ms ease,transform 220ms ease; }
.intro__actions .btn--light:is(:hover,:focus-visible),.service-invitation .btn:is(:hover,:focus-visible),#ablauf .btn--light:is(:hover,:focus-visible) { background-image:none; background-color:#152b43; border-color:#152b43; color:#faf7f2; }
.service-invitation .btn:is(:hover,:focus-visible) { border-color:#c2a98c; }
.btn--outline:is(:hover,:focus-visible),.header .btn:is(:hover,:focus-visible),.header.is-intro .btn:is(:hover,:focus-visible) { background-image:none; background-color:#152b43; border-color:#152b43; color:#faf7f2; }
.header.nav-dark .btn:is(:hover,:focus-visible) { background-color:#b99a70; border-color:#b99a70; color:#152b43; }
.track__block .build-cta,.track__copy.is-dusk .build-cta { background:transparent; color:#152b43; }
.track__block .build-cta:is(:hover,:focus-visible) { background:transparent; color:#8c6e49; }
@media(prefers-reduced-motion:reduce) { .btn { transition:none!important; } }

/* Nur die CTA-Box ist eine Karte, nicht der gesamte Leistungsabschnitt. */
#leistungen { border-radius:0; }
.service-invitation { grid-template-columns:minmax(0,1fr); justify-items:start; gap:26px; }
.service-invitation > .btn { grid-column:1; justify-self:start; }
.service-invitation::before { background:linear-gradient(100deg,rgba(13,32,52,.95),rgba(17,43,68,.84) 55%,rgba(17,43,68,.65)); }
#referenzen { height:1010px; min-height:0; padding-top:140px; padding-bottom:140px; }
#referenzen .gallery-v2 { top:220px; }
#referenzen .gallery-v2__note { top:164px; }
.js [data-reveal] { transition-duration:650ms; transform:translateY(14px); }
.js [data-reveal].is-in { transform:none; }
.js .gallery-v2__image[data-reveal] { transform:translateY(26px) scale(.98); transition:opacity 750ms var(--ease-out),transform 750ms var(--ease-out),box-shadow 300ms ease; transition-delay:var(--d,0ms); }
.js .gallery-v2__image.is-in { transform:none; }
.gallery-v2__image:focus-visible { outline:2px solid #92764f; outline-offset:5px; }
.btn svg,.btn>span[aria-hidden] { transition:transform 250ms ease; }
.btn:is(:hover,:focus-visible) svg,.btn:is(:hover,:focus-visible)>span[aria-hidden] { transform:translateX(3px); }
.tcard__img img { transition:transform 750ms var(--ease-out); }
.tcard:is(:hover,:focus-within) .tcard__img img { transform:scale(1.025); }
.field__input { transition:border-color 220ms ease,box-shadow 220ms ease; }
.field__input:focus { border-color:#92764f; box-shadow:0 0 0 3px rgba(161,133,104,.12); }
.chip span { transition:background-color 220ms ease,color 220ms ease,border-color 220ms ease,transform 220ms ease; }
.chip:hover span { border-color:#92764f; transform:translateY(-2px); }
.footer a:not(.footer__symbol) { text-decoration:underline; text-decoration-color:transparent; text-underline-offset:5px; transition:color 220ms ease,text-decoration-color 220ms ease; }
.footer a:not(.footer__symbol):is(:hover,:focus-visible) { color:#b99a70; text-decoration-color:currentColor; }
@media(max-width:899px) { #referenzen { height:894px; padding-top:120px; padding-bottom:124px; } #referenzen .gallery-v2 { top:300px; } #referenzen .gallery-v2__note { top:272px; } }
@media(max-width:599px) { #referenzen { height:880px; padding-top:100px; padding-bottom:125px; } #referenzen .gallery-v2 { top:445px; } #referenzen .gallery-v2__note { top:415px; } .service-invitation { align-items:flex-start; text-align:left; } }
@media(prefers-reduced-motion:reduce) {
 .js [data-reveal],.js .gallery-v2__image[data-reveal] { opacity:1; transform:none; transition:none; }
 .btn svg,.btn>span[aria-hidden],.tcard__img img,.chip span { transition:none; }
 .btn:hover svg,.btn:hover>span[aria-hidden],.tcard:hover .tcard__img img,.chip:hover span { transform:none; }
}



/* Galerie als Ganzes tiefer setzen, ursprüngliche Bildproportionen beibehalten. */
#referenzen { height:1130px; }
#referenzen .gallery-v2 { top:340px; }
@media(max-width:899px) { #referenzen { height:974px; } #referenzen .gallery-v2 { top:380px; } }
@media(max-width:599px) { #referenzen { height:936px; } #referenzen .gallery-v2 { top:501px; } }

/* Helle beige Leistungscontainer und ruhige warme Oberflächen. */
.service-tile,.service-tile:nth-child(2n) { background:#f0e8dc; border-color:#e0d4c4; }
.service-tile__body { background:transparent; }
.service-tile details,.service-tile summary { border-color:#d9ccba; }
.service-tile__visual svg.service-symbol { background:rgba(250,247,242,.90); }
.contact__grid { border-color:#e5e3dc; background:#f7f7f4; }

/* Kundeneigene Architektur-Motive: volle Breite und natürliche Proportionen. */
#ablauf { background-color:#080a0c; background-image:url('../bilder/ablauf-blueprint.png'); background-size:100% auto; background-position:center; background-repeat:no-repeat; }
main > section.facts { background-color:#141619; background-image:linear-gradient(rgba(8,15,25,.22),rgba(8,15,25,.28)),url('../bilder/kpi-blueprint.png'); background-size:100% auto; background-position:center; background-repeat:no-repeat; }
.contact__intro { padding:0; display:flex; flex-direction:column; gap:0; }
.contact__copy { position:relative; z-index:1; padding:48px 40px 0; }
.contact__blueprint { display:block; width:100%; height:auto; margin:-88px 0 0; padding:0; border:0; border-radius:0; flex-shrink:0; }
@media(max-width:899px) { .contact__intro { padding:0; } .contact__copy { padding:36px 28px 0; } }
/* Dezente Phasenlinks auch vor dem fertigen Haus und beim Anbau. */
.track__copy.is-dusk .track__block .build-cta,
.track__copy.is-dusk .track__block .build-cta:is(:hover,:focus-visible) {
 background:transparent; background-image:none; box-shadow:none; border:0; border-bottom:1px solid rgba(21,43,67,.35); border-radius:0; color:#152b43;
}
.track__copy.is-dusk .track__block .build-cta:is(:hover,:focus-visible) { color:#8c6e49; border-bottom-color:#8c6e49; }

.intro__lead .intro__subheading { display:block; margin-bottom:16px; font:600 clamp(20px,2.1vw,30px)/1.3 var(--font-body); letter-spacing:-.025em; }
.intro__lead strong { display:block; font-weight:700; }
@media(max-width:599px) { .intro__lead .intro__subheading { font-size:20px; margin-bottom:12px; } }
/* Leistungsflächen aus dem warmen Markenbeige, ohne Rosastich. */
.service-tile,.service-tile:nth-child(2n) { background:#fff; border-color:transparent; box-shadow:0 4px 18px rgba(21,43,67,.04); color:#141619; --fg-2:#5e5143; }
.service-tile:hover,.service-tile:nth-child(2n):hover { border-color:transparent; box-shadow:0 12px 32px rgba(21,43,67,.09); }
.service-tile h3,.service-tile__promise,.service-tile__details summary { color:#141619; }
.service-tile__details summary span { color:#8f7245; }
#leistungen { background-color:#f5f1e7; }
.service-tile details,.service-tile summary { border-color:#e4dfd6; }
.service-tile__visual svg.service-symbol { background:rgba(246,240,226,.96); color:#152b43; box-shadow:0 12px 26px rgba(8,15,25,.12),inset 0 0 0 1px rgba(255,255,255,.5); }
.service-tile .service-symbol .symbol-accent { stroke:#92764f; }
.service-tile__details summary span { color:#433523; }

/* Terminbereich bleibt hinter der aufgleitenden Kontaktfläche stehen. */
.ablauf-surround { position:sticky; top:var(--ablauf-sticky-top,0); z-index:2; background:#152b43; }
#ablauf { border-radius:0; background-image:linear-gradient(110deg,rgba(15,38,61,.72),rgba(17,43,68,.48)),url('../bilder/ablauf-blueprint.png'); }
main > #erstgespraech,main > #faq { position:relative; z-index:3; }

/* Selektive Hervorhebung und kräftigeres Markenbeige. */
.intro__lead .intro__services { display:block; font-weight:400; }
.intro__lead .intro__services strong { display:inline; font-weight:700; }
.tcard__btn,.tcard__btn:is(:hover,:focus-visible) { background:transparent; border:0; box-shadow:none; opacity:1; }
.tcard__btn { width:36px; height:36px; color:#152b43; transition:color 220ms ease,transform 220ms ease; }
.tcard__btn svg { width:18px; height:18px; }
.tcard__btn:is(:hover,:focus-visible) { color:#92764f; transform:translateY(-2px); }
.tcard__pos { font-weight:700; }
.contact__routes a span { font-weight:700; }
.contact__routes a i { background:none; box-shadow:none; border:0; }
#team .section__head--split,.film__inner { grid-template-columns:1fr; }

/* Einheitliche Großschreibung für alle Überschriften, inklusive Formulartitel. */
:root body :is(h1, h2, h3, h4, h5, h6, .h-sec, .form__title) { text-transform: uppercase; font-weight:700; }
:root body .btn { font-weight: 800; }
#leistungen-titel { font-size:clamp(42px,6vw,88px); line-height:1.03; }
:root body .intro__actions .btn--light { font-weight:900; -webkit-text-stroke:.3px currentColor; }
.header.nav-build-dusk { background:rgba(8,20,34,.1); }
.header.nav-on-build { transition:transform 400ms var(--ease-out),background 160ms ease,color 120ms ease; }
.header .brand,.header .header__nav a,.header .header__tel,.header .btn { color:inherit; }
.header .btn:is(:hover,:focus-visible),.header.is-intro .btn:is(:hover,:focus-visible) { background:#b99a70; border-color:#b99a70; color:#152b43; }
#faq .btn--outline { padding-inline:0; border:0; background:transparent; box-shadow:none; color:#152b43; }
#faq .btn--outline:is(:hover,:focus-visible) { background:transparent; color:#8c6e49; box-shadow:none; }

/* Schwarzblauer Terminbereich mit durchscheinender Originalzeichnung. */
.ablauf-surround { position:relative; top:auto; background:#080f19; }
#ablauf { position:relative; isolation:isolate; background-color:#080f19; background-image:none; }
#ablauf::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(110deg,rgba(8,20,36,.42),rgba(10,28,48,.12)),url('../bilder/ablauf-blueprint.png') center / auto 100% no-repeat; transform:scaleX(-1); }
#ablauf .timeline__index { background-color:#080f19; box-shadow:0 0 0 8px #080f19; }
#ablauf .timeline__item.is-reached .timeline__index { background-color:#b99a70; color:#152b43; }
.header.menu-open,.header.menu-open.nav-dark,.header.menu-open.nav-build-dusk { background:#152b43; color:#b99a70; }
.header.menu-open .brand { color:#fff; }
@media(max-width:599px) {
  #referenzen > .wrap { gap:0; }
  #referenzen .gallery-v2__note { position:static; margin:16px 0 0; max-width:none; text-align:left; }
}

/* Mobile contact glass follows the surface beneath it. */
@media (max-width:767px) {
  .mobile-cta { background:rgba(250,247,242,.13); border-top:0; backdrop-filter:blur(24px) saturate(1.25); -webkit-backdrop-filter:blur(24px) saturate(1.25); color:#152b43; }
  .mobile-cta.is-dark { background:rgba(20,22,25,.12); color:#fff; }
  .mobile-cta .mobile-cta__phone { width:48px; min-height:48px; padding:0; align-self:center; color:inherit; border-color:currentColor; background:transparent; }
  .mobile-cta__phone svg { flex:none; }
}
.header.nav-dark .brand { color:#fff; }

/* Contrast is resolved per navbar item, including the blur transition zone. */
.header:not(.menu-open) :is(.brand,.header__nav a,.header__tel,.header__end > .btn,.header__burger) { color:#141619; transition:color 120ms ease,filter 120ms ease; }
.header:not(.menu-open) :is(.brand,.header__nav a,.header__tel,.header__end > .btn,.header__burger).nav-light-ink { color:#fff; filter:drop-shadow(0 1px 3px rgba(8,20,34,.55)); }
.header:not(.menu-open) .btn:is(:hover,:focus-visible) { color:#152b43; filter:none; }

:root body :is(.intro__actions .btn--light, .service-invitation .btn, #ablauf .btn--light, .contact-modal__next) { font-weight:900; -webkit-text-stroke:.45px currentColor; }

.mobile-cta .mobile-cta__phone { border-radius:50%; }

/* Contact dialog: one former column per fullscreen step. */
html.contact-open,html.contact-open body { overflow:hidden; }
.contact-launch { background:linear-gradient(180deg,#faf9f6,#f2eee7); padding-block:100px; }
.contact-launch__inner { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.contact-launch .lead { max-width:40ch; margin:0 0 28px; }
.contact-modal { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:#f7f7f4; color:#152b43; overflow-y:auto; overscroll-behavior:contain; }
.contact-modal::backdrop { background:rgba(8,20,34,.65); backdrop-filter:blur(12px); }
.contact-modal [hidden] { display:none!important; }
.contact-modal__toolbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:20px; min-height:80px; padding:16px clamp(20px,5vw,80px); background:rgba(247,247,244,.9); backdrop-filter:blur(24px); color:#152b43; }
.contact-modal[data-step="0"] { background:#0c1624; }
.contact-modal[data-step="0"] .contact-modal__toolbar { background:rgba(12,22,36,.88); color:#faf7f2; }
.contact-modal__progress { font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.contact-modal__close { display:grid; place-items:center; margin-left:auto; width:44px; height:44px; flex:none; padding:10px; background:transparent; border:1px solid currentColor; border-radius:12px; color:inherit; cursor:pointer; }
.contact-modal__close svg { width:22px; height:22px; }
.contact-modal__back { min-height:44px; padding:8px 0; border:0; background:transparent; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.contact-modal .contact__intro { position:relative; isolation:isolate; min-height:calc(100dvh - 80px); justify-content:center; overflow:hidden; }
.contact-modal .contact__copy { width:min(100%,860px); margin:auto; padding:clamp(32px,5vh,72px) clamp(24px,5vw,64px); }
.contact-modal .contact__intro .h-sec { font-size:clamp(38px,5.5vw,76px); }
.contact-modal .contact__intro .lead { max-width:48ch; }
.contact-modal .contact__blueprint { position:absolute; z-index:-1; right:0; bottom:0; width:min(65vw,750px); margin:0; opacity:.18; pointer-events:none; }
.contact-modal__next { margin-top:32px; background:#b99a70; color:#152b43; border-color:#b99a70; font-weight:900; }
.contact-modal__next:is(:hover,:focus-visible) { background:#d5bd98; color:#152b43; }
.contact-modal .form { width:min(100%,820px); margin:0 auto; padding:clamp(28px,5vh,64px) clamp(24px,5vw,64px) max(32px,env(safe-area-inset-bottom)); border:0; min-height:calc(100dvh - 80px); }
.contact-modal .form__title { font-size:clamp(32px,4vw,52px); line-height:1.1; }
.contact-modal :is(.form,.contact__intro):not([hidden]) { animation:contact-step-in 240ms ease both; }
.contact-modal :focus-visible { outline:2px solid #b99a70; outline-offset:5px; }
.contact-modal h2:focus { outline:none; }
@keyframes contact-step-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media(max-width:767px) { .contact-launch__inner { grid-template-columns:1fr; gap:28px; } .contact-modal__toolbar { min-height:72px; gap:14px; } .contact-modal .contact__intro,.contact-modal .form { min-height:calc(100dvh - 72px); } .contact-modal .contact__routes a strong { font-size:20px; } }
@media(prefers-reduced-motion:reduce) { .contact-modal :is(.form,.contact__intro):not([hidden]) { animation:none; } }

/* Quiet trust cues beside the hero's contact details. */
.intro__trust { display:flex; flex-wrap:wrap; gap:16px 30px; margin:0; padding:0; list-style:none; color:#faf7f2; }
.intro__trust li { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:500; line-height:1.3; }
.intro__trust svg { width:22px; height:22px; flex:none; color:#d5bd98; }
@media(max-width:767px) { .intro__trust { flex-direction:column; gap:10px; } .intro__trust li { font-size:10px; gap:8px; } .intro__trust svg { width:17px; height:17px; } .intro__bottom { gap:12px; } }

.contact .contact__routes a { border-color:rgba(185,154,112,.65); }
.contact .contact__routes a :is(span,i) { color:#b99a70; }

/* One mobile type scale; only the active phase determines the panel height. */
@media(max-width:767px) {
  .h-sec { font-size:clamp(36px,9.4vw,52px); }
  #referenzen .h-sec { font-size:clamp(40px,10.3vw,54px); }
  #leistungen-titel { font-size:clamp(38px,11.3vw,54px); }
  .intro h1 { font-size:clamp(42px,10.8vw,76px); }
  .principle h3 { font-size:clamp(28px,7.5vw,36px); }
  .service-tile h3 { font-size:clamp(23px,6.2vw,30px); }
  .timeline__name { font-size:25px; }
  .track__copy { display:block; }
  .js .track__copy .track__block { position:absolute; top:20px; left:20px; right:20px; bottom:auto; width:auto; }
  .js .track__copy .track__block.is-current { position:relative; inset:auto; }
  .track__copy .track__block :is(h1,h2) { font-size:clamp(30px,8.7vw,38px); line-height:1.06; letter-spacing:-.025em; }
  .track__copy .track__block p:not(.eb) { font-size:15px; line-height:1.6; }
}

@media(max-width:767px) {
  .h-sec,.service-tile h3 { overflow-wrap:anywhere; hyphens:auto; }
  .track__block .headline-nowrap { white-space:normal; }
}

/* A single live form returns to its visible page slot when the modal closes. */
.contact__form-slot { min-width:0; }
.contact__form-slot > .form { margin:0; padding:48px 40px; border:0; }
@media(max-width:899px) { .contact__form-slot > .form { padding:36px 28px; } }

@media(min-width:900px) { #ablauf::before { background-size:cover; } }
#erstgespraech .contact__intro { justify-content:space-between; }
#erstgespraech .contact__blueprint { margin-bottom:0; }
