/* ============================================================
   ATELIER NORDLICHT — Premium-Demo (Architektur)
   Echte Fotografie + editoriale Typografie. Self-hosted Fonts,
   keine externen Requests. Eine Bewegungssprache (--ease),
   Apple-taugliche Feder-Physik im JS, reduced-motion-fest.
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Anton';
  src: url('../../assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --paper:    #ece7dd;
  --paper-2:  #e3ddd0;
  --paper-3:  #d8d1c2;
  --ink:      #17191b;
  --ink-2:    #1b1e20;
  --ink-soft: #46463f;
  --stone:    #7b756a;
  --line:     rgba(23, 25, 27, 0.14);
  --line-2:   rgba(23, 25, 27, 0.28);
  --accent:   #b4653e;
  --accent-2: #cd8a5d;
  --accent-lite: #e0a570;               /* Akzent auf dunklem Grund */
  --accent-soft: rgba(180, 101, 62, 0.12);

  --on-dark:      #ece7dd;
  --on-dark-soft: rgba(236, 231, 221, 0.66);
  --line-dark:    rgba(236, 231, 221, 0.16);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, sans-serif;
  --tech:  'Space Grotesk', 'Hanken Grotesk', sans-serif;

  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --wrap: 1200px;
  --nav-h: 76px;
}

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

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.06; font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--tech); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
}
.eyebrow span { color: var(--accent); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; font-size: 0.68rem; letter-spacing: 0.1em; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--tech); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23,25,27,0.22); }
.btn-solid:active { transform: translateY(-1px) scale(0.98); transition-timing-function: var(--ease-spring); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0,0,0,0.28); }
.btn-ghost-light { background: rgba(236,231,221,0.05); color: var(--on-dark); border-color: rgba(236,231,221,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(236,231,221,0.14); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }
.btn:active { transition-duration: 0.09s; }
.nav-cta:active { transform: translateY(0) scale(0.97); transition-duration: 0.09s; }

/* ══════════════ Preloader ══════════════ */
.preloading { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 3000; background: #0a0b0d; color: var(--on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.preloader.is-done { opacity: 0; transform: translateY(-2.5%); pointer-events: none; }
.pre-word { font-family: 'Anton', var(--tech); font-weight: 400; text-transform: uppercase; text-align: center;
  font-size: clamp(2.6rem, 1.4rem + 6.4vw, 7rem); line-height: 0.9; letter-spacing: 0.01em; }
.pre-word span { color: var(--accent-lite); }
.pre-sub { font-family: var(--tech); font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-dark-soft); }
.pre-count { font-family: 'Anton', var(--tech); font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.4rem); line-height: 1; margin-top: 6px; }
.pre-count::after { content: '%'; font-size: 0.38em; vertical-align: super; color: var(--on-dark-soft); margin-left: 4px; }
.pre-bar { width: min(280px, 60vw); height: 2px; background: rgba(236, 231, 221, 0.14); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #6a90ff); }
@media (prefers-reduced-motion: reduce) { .preloader { transition: opacity 0.2s; } .preloader.is-done { transform: none; } }

/* ══════════════ Scroll-Fortschritt ══════════════ */
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; }
.scrollbar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ══════════════ Navigation ══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 5vw, 56px); color: var(--on-dark);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), color 0.4s var(--ease);
}
.nav.is-stuck {
  height: 62px; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.nav.is-stuck::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background: linear-gradient(var(--paper), transparent);
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); opacity: 0.7;
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .nav.is-stuck::after { display: none; }
}
@media (prefers-contrast: more) {
  .nav.is-stuck { background: var(--paper); backdrop-filter: none; border-bottom: 1px solid var(--ink); }
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--tech); font-weight: 600; font-size: 0.94rem; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; }
.wordmark-mark { width: 20px; height: 20px; overflow: visible; }
.wordmark-mark line { stroke: currentColor; stroke-width: 1.6; }
.wordmark-mark .mark-dot { fill: var(--accent-lite); transition: transform 0.5s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.nav.is-stuck .wordmark-mark .mark-dot { fill: var(--accent); }
.wordmark:hover .mark-dot { transform: translateY(9px); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-family: var(--tech); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em; color: inherit; opacity: 0.82; padding: 9px 14px; position: relative; transition: opacity 0.3s var(--ease); }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent-lite); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav.is-stuck .nav-links a:not(.nav-cta)::after { background: var(--accent); }
.nav-links a:not(.nav-cta):hover { opacity: 1; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; opacity: 1 !important; color: var(--ink) !important; background: var(--paper); border-radius: 999px; padding: 10px 20px !important; transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); background: var(--accent); color: var(--paper) !important; }
.nav-burger { display: none; }

/* ══════════════ HERO ══════════════ */
.hero { position: relative; min-height: 100svh; color: var(--on-dark); }
.hero.is-pinned { height: 550vh; min-height: 0; }
.hero-story { position: absolute; left: clamp(20px, 5vw, 56px); bottom: clamp(110px, 20vh, 230px); z-index: 3; width: min(620px, 80vw); pointer-events: none; }
.hero-story p { position: absolute; left: 0; bottom: 0; margin: 0; opacity: 0; will-change: opacity, transform;
  font-family: var(--serif); font-size: clamp(1.45rem, 1rem + 2.1vw, 2.8rem); line-height: 1.24; letter-spacing: -0.02em;
  color: var(--paper); text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55); }
.hero-story em { font-style: italic; color: var(--accent-lite); display: block; margin-bottom: 6px; }
.hero-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; padding: var(--nav-h) clamp(20px, 5vw, 56px) 0;
}
/* Lese-Schleier: dunkelt links + unten hinter der Schrift ab (über der 3D-Szene),
   damit alle Texte immer klar lesbar sind. Liegt zwischen Canvas (z0) und Text (z2/3). */
.hero-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,10,13,0.85) 0%, rgba(8,10,13,0.42) 28%, rgba(8,10,13,0) 54%),
    linear-gradient(0deg, rgba(8,10,13,0.72) 0%, rgba(8,10,13,0) 32%);
}
.hero-media { position: absolute; left: 0; right: 0; top: -8%; bottom: -8%; z-index: -1; overflow: hidden; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.11); } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; }
.hero-veil { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(16,18,20,0.94) 0%, rgba(16,18,20,0.56) 38%, rgba(16,18,20,0.42) 66%, rgba(16,18,20,0.56) 100%),
  linear-gradient(90deg, rgba(16,18,20,0.74), rgba(16,18,20,0.22) 52%, transparent 74%); }
.hero-copy { position: relative; z-index: 2; max-width: 940px; width: 100%; padding-bottom: clamp(56px, 9vh, 120px); }
.tag { font-family: var(--tech); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); margin: 0 0 26px; padding-left: 40px; position: relative; }
.tag::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 28px; height: 1.5px; background: var(--accent); }
.tag-light { color: var(--on-dark-soft); }
.tag-light::before { background: var(--accent-lite); }

.hero-title { color: var(--paper); font-size: clamp(3rem, 1.4rem + 7vw, 7rem); line-height: 0.97; letter-spacing: -0.03em; margin: 0 0 32px; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-title em { font-style: italic; color: var(--accent-lite); font-weight: 400; }

.hero-lead { max-width: 480px; font-size: 1.16rem; line-height: 1.6; color: rgba(236,231,221,0.9); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scrollcue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--tech); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark-soft); }
.scrollcue-line { width: 1px; height: 40px; background: rgba(236,231,221,0.3); position: relative; overflow: hidden; }
.scrollcue-line::after { content: ""; position: absolute; inset: 0; background: var(--accent-lite); animation: cue 2.1s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ══════════════ HALTUNG ══════════════ */
.haltung { padding: clamp(84px, 11vw, 150px) 0; }
.haltung-top { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 76px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.statement { font-size: clamp(1.7rem, 1rem + 2.5vw, 3rem); line-height: 1.16; font-weight: 400; letter-spacing: -0.02em; max-width: 24ch; }
.statement em { font-style: italic; color: var(--accent); }
.haltung-figure { margin: 0; }
.figure-mask { overflow: hidden; border-radius: 6px; aspect-ratio: 5 / 4; box-shadow: 0 30px 70px rgba(23,25,27,0.16); }
.haltung-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.haltung-figure:hover img { transform: scale(1.05); }
.haltung-figure figcaption { font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 14px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.principle { border-top: 1px solid var(--line-2); padding-top: 22px; }
.principle-num { font-family: var(--serif); font-style: italic; font-size: 1.55rem; color: var(--accent); display: block; margin-bottom: 16px; }
.principle p { color: var(--ink-soft); font-size: 1.04rem; }

/* ══════════════ PROJEKTE ══════════════ */
.projekte { padding: clamp(60px, 8vw, 104px) 0 clamp(88px, 12vw, 148px); }
.projekte-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.projekte-head h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); flex: 1; }
.projekte-head .eyebrow { margin: 0; width: 100%; }
.projekte-hint { font-family: var(--tech); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

.rail { display: flex; gap: clamp(18px, 2.4vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(20px, 5vw, 56px) 28px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail:focus-visible { outline-offset: -2px; }
.proj { scroll-snap-align: center; flex: 0 0 clamp(280px, 44vw, 460px); display: flex; flex-direction: column; }
.proj-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: 0 12px 30px rgba(23,25,27,0.10); transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s var(--ease); filter: saturate(0.96); }
.proj:hover .proj-media { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(23,25,27,0.20); }
.proj:hover .proj-media img { transform: scale(1.06); filter: saturate(1.05); }
.proj-meta { padding: 20px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.proj-meta h3 { font-size: 1.5rem; }
.proj-meta p { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--tech); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.proj-meta p span { position: relative; }
.proj-meta p span + span::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); translate: 0 -50%; }

/* ══════════════ MARQUEE (kinetisches Band) ══════════════ */
.marquee { overflow: hidden; border-block: 1px solid var(--line-2); background: var(--paper-2); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.8rem); line-height: 1; color: var(--ink); white-space: nowrap; padding-right: 0.25em; letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════ ZAHLEN (dunkel) ══════════════ */
.stats { background: var(--ink-2); color: var(--on-dark); padding: clamp(70px, 9vw, 118px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 1px solid var(--line-dark); padding-left: 22px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 1.6rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.03em; color: var(--on-dark); text-shadow: 0 0 34px rgba(205, 138, 93, 0.18); }
.stat span { font-family: var(--tech); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 12px; display: block; }

/* ══════════════ PROZESS ══════════════ */
.prozess { padding: clamp(84px, 11vw, 150px) 0; }
.prozess > .wrap > h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); max-width: 16ch; margin-bottom: clamp(48px, 6vw, 80px); }
.steps { position: relative; padding-left: 68px; }
.steps-line { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 4px; height: auto; }
.steps-track { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.steps-fill { stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num { position: relative; left: -68px; margin-right: -68px; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); font-family: var(--tech); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.step h3 { font-size: 1.6rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 56ch; }

/* ══════════════ ZITAT (Porträt-Split) ══════════════ */
.quote { background: var(--ink-2); color: var(--on-dark); padding: clamp(84px, 11vw, 150px) 0; }
.quote-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.quote-portrait { margin: 0; width: clamp(150px, 20vw, 240px); flex: none; }
.quote-portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 1.05rem + 2.4vw, 3rem); line-height: 1.24; letter-spacing: -0.02em; color: var(--on-dark); max-width: 22ch; }
.quote p::before { content: "„"; color: var(--accent-lite); }
.quote footer { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.q-name { font-family: var(--tech); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.86rem; color: var(--on-dark); }
.q-role { font-family: var(--tech); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--on-dark-soft); }

/* ══════════════ KONTAKT ══════════════ */
.kontakt { padding: clamp(84px, 11vw, 150px) 0; }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.kontakt-copy h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); max-width: 14ch; margin-bottom: 24px; }
.kontakt-intro { color: var(--ink-soft); font-size: 1.1rem; max-width: 44ch; }
.kontakt-meta { list-style: none; margin: 40px 0 0; padding: 0; }
.kontakt-meta li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.kontakt-meta li span { display: inline-block; width: 100px; font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.kontakt-form { background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 3vw, 38px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--tech); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 4px; padding: 13px 14px; resize: vertical; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b23b2e; }
.form-note { margin-top: 16px; min-height: 1.2em; font-family: var(--tech); font-size: 0.84rem; letter-spacing: 0.03em; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #b23b2e; }

/* ══════════════ FOOTER ══════════════ */
.foot { background: var(--ink); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: center; padding-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--tech); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.94rem; }
.foot-brand small { color: var(--on-dark-soft); letter-spacing: 0.1em; font-size: 0.72rem; }
.wordmark-mark-foot { width: 14px; height: 14px; flex: none; border-radius: 2px; background: var(--accent); box-shadow: 0 0 20px rgba(205,138,93,0.4); }
.foot-nav { display: flex; gap: 22px; }
.foot-nav a { font-family: var(--tech); font-size: 0.84rem; letter-spacing: 0.06em; color: var(--on-dark-soft); transition: color 0.3s var(--ease); }
.foot-nav a:hover { color: var(--on-dark); }
.foot-legal { font-family: var(--tech); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--on-dark-soft); text-align: right; }
.foot-lejama { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 26px 24px; border-top: 1px solid var(--line-dark); font-family: var(--tech); font-size: 0.9rem; letter-spacing: 0.02em; color: var(--on-dark-soft); transition: background 0.4s var(--ease); }
.foot-lejama strong { color: var(--on-dark); font-weight: 600; }
.foot-lejama-cta { color: var(--accent-lite); font-weight: 600; }
.foot-lejama:hover { background: rgba(236,231,221,0.03); }
.foot-lejama:hover .foot-lejama-cta { color: #fff; }

/* ══════════════ Architektur-Cursor ══════════════ */
.xcursor { position: fixed; top: 0; left: 0; z-index: 130; width: 34px; height: 34px; border: 1px solid var(--accent-lite); border-radius: 50%; pointer-events: none; translate: -50% -50%; opacity: 0; scale: 0.6; transition: opacity 0.3s var(--ease), scale 0.3s var(--ease-spring); mix-blend-mode: difference; }
.xcursor::before, .xcursor::after { content: ""; position: absolute; background: var(--accent-lite); }
.xcursor::before { left: 50%; top: -6px; bottom: -6px; width: 1px; translate: -50% 0; }
.xcursor::after { top: 50%; left: -6px; right: -6px; height: 1px; translate: 0 -50%; }
.xcursor.is-on { opacity: 1; scale: 1; }

/* ══════════════ Reveal-System ══════════════ */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.hero [data-reveal] { transform: translateY(16px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.hero-title .word { opacity: 0; transform: translateY(105%); }
.hero-title.play .word { animation: wordUp 0.9s var(--ease) both; animation-delay: calc(0.15s + var(--i, 0) * 0.09s); }
@keyframes wordUp { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════ Responsive ══════════════ */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 auto; top: 0; padding: 92px 32px 32px; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px rgba(23,25,27,0.14);
    transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.5s; }
  .nav.is-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0s; }
  .nav-links a { font-size: 1.2rem; padding: 12px 0; opacity: 1; }
  .nav-cta { margin: 12px 0 0 0; }
  .nav-burger { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; z-index: 121; color: inherit; }
  .nav-burger span { display: block; width: 18px; height: 1.6px; background: currentColor; margin-inline: auto; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
  .nav.is-open .nav-burger { color: var(--ink); }
  .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
  .nav.is-open .nav-burger span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }
  .haltung-top { grid-template-columns: 1fr; gap: 32px; }
  .principles { grid-template-columns: 1fr; gap: 8px; }
  .principle { padding: 22px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .quote-grid { grid-template-columns: auto 1fr; gap: 24px; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 22px; }
  .foot-legal { text-align: left; }
}
@media (max-width: 560px) {
  .hero-lead { font-size: 1.05rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-portrait { width: 128px; }
}

/* ══════════════ Reduced Motion ══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-title .word { opacity: 1 !important; transform: none !important; }
  .steps-fill { stroke-dashoffset: 0 !important; }
  .scrollcue-line::after { display: none; }
  .xcursor { display: none; }
}

/* ════════════════════════════════════════════════════════════
   DURCHGEHEND DUNKLER, CINEMATISCHER LOOK (Rest der Seite)
   Zieht Haltung/Projekte/Prozess/Kontakt/Footer in dieselbe
   Welt wie den 3D-Hero. Neutrale Tokens werden invertiert;
   helle CTAs bleiben bewusst hell (Kontrast auf Dunkel).
   ════════════════════════════════════════════════════════════ */
:root {
  --paper: #0f1217;
  --paper-2: #161b22;
  --paper-3: #1e242c;
  --ink: #ebe6dc;
  --ink-2: #090c10;
  --ink-soft: #a9a498;
  --stone: #8c867a;
  --line: rgba(235, 230, 220, 0.10);
  --line-2: rgba(235, 230, 220, 0.19);
  --accent: #cd7e4e;
  --accent-2: #db9c6d;
  --accent-soft: rgba(205, 126, 78, 0.16);
}
body { background: radial-gradient(125% 85% at 50% 0%, #12161c 0%, #0c0f13 62%); }
.foot { background: #080b0e; }
.field input:focus, .field textarea:focus { background: var(--paper-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.kontakt-form { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.proj-media { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.proj:hover .proj-media { box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65); }
.haltung-figure .figure-mask { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
/* Helle CTAs bleiben hell */
.btn-light { background: #ece7dd; color: #17191b; }
.nav-cta { background: #ece7dd !important; color: #17191b !important; }
.nav-cta:hover { background: var(--accent) !important; color: #17191b !important; }
/* Hero-Texte bleiben hell — die Hero-Welt ist immer dunkel (nicht vom Token abhängig) */
.hero-title { color: #ece7dd; }
.hero-story p { color: #ece7dd; }

/* ════════════════════════════════════════════════════════════
   AUFWERTUNG DER INHALT-SEKTIONEN — cinematische Reveals & Hover
   ════════════════════════════════════════════════════════════ */
/* Bilder „entwickeln" sich beim Scroll-In (Clip-Wipe von unten/oben) */
[data-reveal] .figure-mask img,
[data-reveal] .proj-media img { clip-path: inset(0 0 101% 0); }
[data-reveal].in .figure-mask img,
[data-reveal].in .proj-media img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.quote-portrait[data-reveal] img { clip-path: inset(101% 0 0 0); }
.quote-portrait[data-reveal].in img { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); }

/* Projekt-Karten: edler Hover (dunkler Verlauf + Akzent-Titel) */
.proj-media { position: relative; }
.proj-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 10, 13, 0.5), transparent 55%);
  transition: opacity 0.5s var(--ease);
}
.proj:hover .proj-media::after { opacity: 1; }
.proj-meta h3 { transition: color 0.4s var(--ease); }
.proj:hover .proj-meta h3 { color: var(--accent-lite); }

/* Zahlen dramatischer, Formular klarer abgesetzt */
.stat strong { text-shadow: 0 0 44px rgba(205, 138, 93, 0.25); }
.kontakt-form { border-color: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] .figure-mask img, [data-reveal] .proj-media img,
  .quote-portrait[data-reveal] img { clip-path: none !important; }
}
