/* ═══════════════════════════════════════════════════════════
   küchenform — Küchenstudio Köln
   ═══════════════════════════════════════════════════════════ */

/* ── Schriften (lokal gehostet — kein Google-Fonts-Request, DSGVO) ── */
/* Archivo normal — variable (latin) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo normal — variable (latin-ext) */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo italic — variable (latin) */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-var-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo italic — variable (latin-ext) */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo-var-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal — variable (latin) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal — variable (latin-ext) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1a1817;
  --ink-2: #232120;
  --cream: #f6f5f2;
  --cream-2: #eceae5;
  --red: #c51718;
  --red-2: #e8514d;
  --line: rgba(26, 24, 23, .16);
  --line-inv: rgba(246, 245, 242, .18);
  --ease: cubic-bezier(.62, .05, .01, .99);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --font-d: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
  --font-b: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; overflow-x: hidden; overflow-x: clip; }
html.is-locked { overflow: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip statt hidden: hidden macht body zum Scroll-Container und bricht
     position:sticky (Prozess-Sektion), sobald html ein eigenes overflow hat */
  overflow-x: clip;
}

::selection { background: var(--red); color: var(--cream); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-family: var(--font-d); font-style: italic; font-weight: 500; }

:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
main:focus, .menu:focus { outline: none; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 4000;
  background: var(--ink); color: var(--cream);
  padding: .85rem 1.4rem; font-size: 12px; letter-spacing: .12em;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ── Grain overlay ─────────────────────────────────────────── */
.grain {
  position: fixed; inset: -100px; z-index: 2000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain 1.4s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-34px, 22px); }
  50% { transform: translate(18px, -30px); }
  75% { transform: translate(-26px, -14px); }
  100% { transform: translate(0, 0); }
}

/* ── Custom cursor ─────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream);
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out),
              background-color .45s, opacity .3s;
  opacity: 0;
}
.cursor.is-active { opacity: 1; }
.cursor--view, .cursor--swatch, .cursor--zoom {
  width: 88px; height: 88px;
  background: var(--red);
  mix-blend-mode: normal;
}
.cursor__label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity .3s;
  transform: translateX(.11em);
}
.cursor--view .cursor__label, .cursor--swatch .cursor__label, .cursor--zoom .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 4vw;
  color: var(--ink);
  opacity: 0; transform: translateY(-12px);
  transition: opacity .8s ease .2s, transform .8s var(--ease-out) .2s,
              background-color .5s ease, padding .5s var(--ease-out), color .4s ease;
}
body.is-loaded .nav { opacity: 1; transform: none; }
.nav.is-scrolled {
  background: rgba(246, 245, 242, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 1rem 4vw;
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 19px; width: auto; display: block; transition: filter .4s ease; }
body.menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--cream); }
body.menu-open .nav__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 1.75rem; align-items: center; }
.nav__links a {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  position: relative; padding: .3rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.2rem !important; }
.nav__cta::after { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 6px; padding: .5rem; }
.nav__burger span { width: 26px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }

/* ── Mobile menu ───────────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; padding: 12vh 8vw 12vh;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  /* Zentriert wird über margin:auto am Link-Block statt über
     justify-content — sonst würde bei mehr Einträgen, als das Fenster
     hoch ist, der obere Teil abgeschnitten statt scrollbar zu sein. */
  overflow-y: auto; overscroll-behavior: contain;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); }
.menu__links { display: flex; flex-direction: column; gap: .1rem; margin: auto 0; }
.menu__links a {
  font-family: var(--font-d); font-weight: 500;
  /* Auch an die Fensterhöhe gekoppelt: zehn Einträge passen sonst auf
     flachen Laptop-Fenstern nicht mehr ohne Scrollen ins Menü. */
  font-size: clamp(1.5rem, min(5.6vw, 5.2vh), 2.9rem); line-height: 1.25;
  display: flex; align-items: baseline; gap: 1.2rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
body.menu-open .menu__links a {
  opacity: 1; transform: none;
  transition-delay: calc(.25s + var(--i) * .07s);
}
.menu__links em { font-size: .85rem; opacity: .45; }
.menu__foot { position: absolute; bottom: 4vh; left: 8vw; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .4; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Smooth-scroll wrapper ─────────────────────────────────── */
.smooth { position: relative; }
body.has-smooth .smooth {
  position: fixed; top: 0; left: 0; width: 100%;
  will-change: transform;
}

/* ── Shared bits ───────────────────────────────────────────── */
.section-tag {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  opacity: .55; font-weight: 400;
}
.section-tag--inv { opacity: .6; }

.h-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.h-line > span {
  display: inline-block; will-change: transform;
  transform: translateY(115%);
}
body.is-loaded .hero__title .h-line > span {
  transform: translateY(0);
  transition: transform 1.2s var(--ease) calc(.55s + var(--i) * .09s);
}
.h-line--reveal > span { transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .05s); }
.h-line--reveal.is-inview > span { transform: translateY(0); }

[data-reveal] {
  opacity: 0; transform: translateY(44px);
  transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-inview { opacity: 1; transform: none; }

[data-hero-fade] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s ease var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
body.is-loaded [data-hero-fade] { opacity: 1; transform: none; }

.link-line {
  display: inline-block; position: relative; padding-bottom: 2px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.link-line i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-out); }
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: left; }
.link-line:hover i { transform: translateX(5px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh 4vw 10vh;
  overflow: hidden;
}
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 18%, rgba(197, 23, 24, .09), transparent 65%),
    radial-gradient(45% 40% at 8% 85%, rgba(197, 23, 24, .05), transparent 60%);
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
  opacity: 0;
}
body.is-loaded .hero__video {
  opacity: var(--hero-video-o, 1);
  transition: opacity .8s var(--ease-out);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 78%, var(--cream));
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
  margin-bottom: 3.5vh;
}
.hero__title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(2.9rem, 9.2vw, 8.6rem);
  line-height: 1.02; letter-spacing: -.015em;
}
.hero__title em { color: var(--red); }
.hero__meta {
  margin-top: 6vh; display: flex; gap: 4rem; align-items: flex-end;
  justify-content: space-between; max-width: 640px;
}
.hero__meta p { font-size: .95rem; opacity: .75; }
.hero__scroll {
  position: absolute; bottom: 4vh; left: 4vw;
  display: flex; align-items: center; gap: .8rem;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .5;
}
.hero__scroll i { display: block; width: 56px; height: 1px; background: currentColor; overflow: hidden; position: relative; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(102%); }
}

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  background: var(--ink); color: var(--cream);
  overflow: hidden; padding: 1.4rem 0;
  border-top: 1px solid var(--line-inv); border-bottom: 1px solid var(--line-inv);
}
/* Dauer = 26 s je Textkopie pro Hälfte (Markup: 2) — script.js schreibt
   sie neu, sobald es die Kopien an die Viewport-Breite angepasst hat. */
.marquee__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.marquee__track span {
  font-family: var(--font-d); font-weight: 500; font-style: italic;
  font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: .08em;
  white-space: nowrap; padding-right: .5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Manifesto ─────────────────────────────────────────────── */
.manifesto { padding: 11vh 4vw; max-width: 1200px; margin: 0 auto; }
.manifesto__text {
  margin-top: 3.5vh;
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.35; letter-spacing: -.01em;
}
.manifesto__text .w { opacity: .13; transition: opacity .45s ease; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__sig { margin-top: 3.5vh; font-size: .85rem; opacity: .55; font-style: italic; font-family: var(--font-d); }

/* ── Works ─────────────────────────────────────────────────── */
.works { background: var(--ink); color: var(--cream); padding: 10vh 4vw 12vh; }
.works__head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-inv); padding-bottom: 2rem;
}
.works__count { font-size: .85rem; opacity: .55; text-align: right; }

.work {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 2.5vw;
  align-items: end; margin-top: 9vh; cursor: pointer;
}
.work__media { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work--alt .work__media { grid-column: 5 / 13; }
.work__info { grid-column: 9 / 13; padding-bottom: .5rem; }
.work--alt .work__info { grid-column: 1 / 5; grid-row: 1; text-align: right; }
.work__index { font-size: 11px; letter-spacing: .24em; opacity: .5; }
.work__name {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; margin: .8rem 0;
  transition: color .4s;
}
.work:hover .work__name { color: var(--red-2); }
.work__tags { font-size: .8rem; opacity: .55; }
.work__year { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .4; margin-top: .4rem; }

.parallax { position: absolute; inset: -80px 0; will-change: transform; }
.artwork { position: absolute; inset: 0; overflow: hidden; transition: transform 1.3s var(--ease-out); }
.work:hover .artwork { transform: scale(1.045); }
.artwork::before, .artwork::after { content: ""; position: absolute; inset: 0; }

/* — Ausstellungsküchen (Fotos aus der Ausstellung in der Schanzenstraße) — */
.artwork { background-color: var(--ink-2); }
.artwork > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.artwork::after {
  background: radial-gradient(130% 110% at 50% 45%, transparent 62%, rgba(10, 9, 8, .32) 100%);
}

/* Overlay-Varianten: CSS-Hintergründe — die Bilder sind beim Öffnen bereits im Cache */
.artwork--rot,
.artwork--weiss,
.artwork--nussbaum,
.artwork--creme {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.artwork--rot { background-image: url("assets/ausstellung_01_hd.jpg"); }
.artwork--weiss { background-image: url("assets/ausstellung_03_hd.jpg"); }
.artwork--nussbaum { background-image: url("assets/ausstellung_07_hd.jpg"); }
.artwork--creme { background-image: url("assets/ausstellung_10_hd.jpg"); }

/* ── 360° Tour + Filmstrip ─────────────────────────────────── */
.tour { background: var(--ink); color: var(--cream); padding: 0 0 12vh; overflow: hidden; }
.tour__head {
  margin: 0 4vw; padding: 8vh 0 0;
  border-top: 1px solid var(--line-inv);
  display: flex; justify-content: space-between; align-items: baseline; gap: 3rem;
}
.tour__hint { font-size: .85rem; opacity: .55; text-align: right; }
.tour__embed {
  position: relative; margin: 5vh 4vw 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: url("assets/ausstellung_05_hd.jpg") center/cover no-repeat;
}
.tour__start {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; text-align: center; color: #fff;
  background: radial-gradient(80% 80% at 50% 55%, rgba(12, 10, 9, .38), rgba(12, 10, 9, .72));
  transition: background .5s ease;
}
.tour__start:hover { background: radial-gradient(80% 80% at 50% 55%, rgba(12, 10, 9, .26), rgba(12, 10, 9, .66)); }
.tour__badge {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #fff;
  transition: color .45s ease;
}
.tour__start:hover .tour__badge { color: var(--red-2); -webkit-text-stroke-color: var(--red-2); }
.tour__label {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  padding: .75rem 1.6rem; margin-top: 1rem;
  transition: background .4s, border-color .4s;
}
.tour__start:hover .tour__label { background: var(--red); border-color: var(--red); }
.tour__note { font-size: .7rem; opacity: .55; letter-spacing: .06em; }
/* Prototyp: Platzhalter ohne Tour dahinter — Hover-Reaktionen stillgelegt,
   damit die Fläche nicht klickbar wirkt. */
.tour__start--demo { cursor: default; }
.tour__start--demo:hover { background: radial-gradient(80% 80% at 50% 55%, rgba(12, 10, 9, .38), rgba(12, 10, 9, .72)); }
.tour__start--demo:hover .tour__badge { color: transparent; -webkit-text-stroke-color: #fff; }
.tour__start--demo:hover .tour__label { background: none; border-color: rgba(255, 255, 255, .5); }
.tour__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__embed.is-live .tour__start { display: none; }
.tour__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 6;
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(12, 10, 9, .72); color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  font-size: 1.5rem; line-height: 1;
  transition: background .3s ease, transform .3s var(--ease-out);
}
.tour__close:hover { background: var(--red); transform: rotate(90deg); }
.tour__embed.is-live .tour__close { display: flex; }
.tour__fallback { margin: 1.6rem 4vw 0; font-size: .8rem; opacity: .6; }
.tour__fallback .link-line { font-size: 10px; }

.filmstrip { margin-top: 9vh; display: grid; gap: 1.2vw; }
.filmstrip__row { display: flex; width: max-content; will-change: transform; animation: filmstrip 60s linear infinite; }
.filmstrip__row--rev { animation-direction: reverse; }
.filmstrip__row:hover { animation-play-state: paused; }
.filmstrip__set { display: flex; gap: 1.2vw; padding-right: 1.2vw; }
.filmstrip__btn { display: block; padding: 0; }
.filmstrip img {
  height: clamp(150px, 24vh, 250px); width: auto; display: block;
  filter: saturate(.92);
  transition: filter .5s ease;
}
.filmstrip__btn:hover img { filter: saturate(1.05); }
@keyframes filmstrip { to { transform: translateX(-50%); } }

/* ── Galerie-Lightbox ──────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1600; visibility: hidden; }
.lightbox.is-open { visibility: visible; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(12, 10, 9, .93);
  opacity: 0; transition: opacity .45s ease;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__stage {
  position: absolute; inset: 8vh 9vw 10vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; pointer-events: none;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100% - 3rem);
  display: block; pointer-events: auto;
  opacity: 0; transform: scale(.97);
  transition: opacity .45s ease, transform .6s var(--ease-out);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8);
}
.lightbox.is-open .lightbox__img { opacity: 1; transform: none; }
.lightbox__caption {
  align-self: stretch; display: flex; justify-content: space-between; gap: 2rem;
  color: var(--cream); font-size: .8rem; opacity: .75;
}
.lightbox__count { font-family: var(--font-d); letter-spacing: .12em; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2;
  padding: .7rem 1.3rem;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--cream); color: var(--ink); border-radius: 999px;
  transition: background .4s, color .4s;
}
.lightbox__close:hover { background: var(--red); color: #fff; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-inv); color: var(--cream);
  font-size: 1.1rem; line-height: 1;
  transition: background .4s, border-color .4s;
}
.lightbox__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lightbox__arrow--prev { left: 1.6rem; }
.lightbox__arrow--next { right: 1.6rem; }
@media (max-width: 860px) {
  .lightbox__stage { inset: 10vh 4vw 14vh; }
  .lightbox__caption { flex-direction: column; gap: .3rem; }
  .lightbox__arrow--prev { left: .7rem; }
  .lightbox__arrow--next { right: .7rem; }
  .lightbox__arrow { top: auto; bottom: 3vh; transform: none; }
}

/* ── Process (horizontal) ──────────────────────────────────── */
.process { position: relative; height: 400vh; background: var(--cream); }
.process__stage {
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  will-change: transform;
}
body:not(.has-smooth) .process__stage { position: sticky; top: 0; }
.process__head {
  position: absolute; top: 9vh; left: 4vw; right: 4vw;
  display: flex; justify-content: space-between; align-items: center; gap: 3rem;
}
.process__progress { flex: 1; max-width: 320px; height: 1px; background: var(--line); position: relative; }
.process__progress span { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--red); }
.process__track { display: flex; gap: 7vw; padding: 0 8vw; width: max-content; align-items: center; will-change: transform; }
.step { width: 32vw; min-width: 400px; }
.step__num {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(5rem, 16vh, 10rem);
  line-height: 1; display: block; color: transparent;
  -webkit-text-stroke: 1px rgba(21, 19, 16, .45);
}
.step__num-fill {
  font-weight: inherit;
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}
.step__title {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 2.5rem 0 1rem;
}
.step__text { max-width: 42ch; opacity: .7; font-size: .95rem; }

/* ── Stats ─────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 5vh 3vw; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; display: block;
}
.stat__label {
  display: block; margin-top: 1rem; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .5;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere;
}

/* ── Materials ─────────────────────────────────────────────── */
.materials { padding: 10vh 4vw; }
.materials__grid {
  margin-top: 4.5vh; display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start;
}
.material { width: 100%; display: flex; align-items: baseline; gap: 1.6rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.materials__list li:first-child .material { border-top: 1px solid var(--line); }
.material__index { font-size: 11px; letter-spacing: .2em; opacity: .4; }
.material__name {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  flex: 1; transition: transform .5s var(--ease-out), color .4s;
}
.material__origin { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .4; }
.material:hover .material__name, .material.is-active .material__name { transform: translateX(14px); color: var(--red); }
.materials__preview { position: sticky; top: 14vh; }
.materials__swatch {
  aspect-ratio: 4 / 3;
  background: url("assets/stil_modern.jpg") center/cover no-repeat;
  transition: background .7s ease, transform .8s var(--ease-out);
  box-shadow: 0 40px 80px -30px rgba(26, 24, 23, .45);
}
.materials__caption { margin-top: 1.4rem; font-size: .85rem; opacity: .6; min-height: 2.6em; transition: opacity .3s; }

/* ── Services ──────────────────────────────────────────────── */
.services { position: relative; padding: 10vh 4vw; }
.services__list { margin-top: 4.5vh; border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid; grid-template-columns: 60px 1fr 1fr 60px;
  align-items: baseline; gap: 0 2rem; padding: 1.9rem 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.service__index { font-size: 11px; letter-spacing: .2em; opacity: .4; }
.service__title {
  font-family: var(--font-d); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.5rem);
  transition: transform .5s var(--ease-out), color .4s;
}
.service:hover .service__title { transform: translateX(16px); color: var(--red); }
.service__desc { font-size: .85rem; opacity: .55; }
.service__arrow { justify-self: end; transition: transform .45s var(--ease-out); }
.service:hover .service__arrow { transform: translateX(8px) rotate(-45deg); }
.services__float {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  width: 320px; opacity: 0;
  padding: 1.4rem 1.6rem;
  background: var(--ink); color: var(--cream);
  font-size: .85rem; line-height: 1.55;
  transform: scale(.85);
  transition: opacity .4s ease, transform .5s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(21, 19, 16, .5);
}
.services__float.is-visible { opacity: 1; transform: scale(1); }
.service__info {
  grid-column: 2 / -1; max-width: 58ch;
  max-height: 0; overflow: hidden; opacity: 0;
  font-size: .88rem; line-height: 1.6;
  transition: max-height .55s var(--ease), opacity .45s ease, margin-top .55s var(--ease);
}
.service.is-open .service__info { max-height: 16em; opacity: .7; margin-top: .5rem; }
.service.is-open .service__arrow { transform: translateX(8px) rotate(90deg); }

/* ── Markenpartner ─────────────────────────────────────────── */
.brands { padding: 10vh 4vw; }
.brands__grid {
  margin-top: 4.5vh;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.brands__grid li {
  padding: 2.4rem 2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.brands__name {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: .7rem;
}
.brands__grid li:hover .brands__name { color: var(--red); }
.brands__desc { font-size: .85rem; opacity: .6; max-width: 34ch; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { padding: 10vh 4vw 12vh; max-width: 1200px; margin: 0 auto; }
.faq__list { margin-top: 4.5vh; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1.6rem;
  padding: 1.7rem 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__index { font-size: 11px; letter-spacing: .2em; opacity: .4; }
.faq__q {
  flex: 1; font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1.3;
  transition: color .4s;
}
.faq__item summary:hover .faq__q { color: var(--red); }
.faq__icon { position: relative; width: 14px; height: 14px; align-self: center; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform .45s var(--ease);
}
.faq__icon::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.faq__icon::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item[open] .faq__icon::before { transform: rotate(180deg); }
.faq__a { padding: 0 0 2.2rem calc(1.6rem + 2ch); max-width: 62ch; }
.faq__a p { font-size: .95rem; opacity: .75; }
.faq__a .link-line { font-size: inherit; text-transform: none; letter-spacing: 0; opacity: 1; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--cream); padding: 10vh 4vw 3vh; }
.footer__hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4rem; margin: 4vh 0 7vh; flex-wrap: wrap;
}
.footer__title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(3rem, 9vw, 8.4rem); line-height: 1.02; letter-spacing: -.015em;
}
.footer__title em { color: var(--red-2); }
.footer__btn {
  flex-shrink: 0; width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-inv);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9;
  position: relative; overflow: hidden; will-change: transform;
}
.footer__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--red); transform: scale(0);
  transition: transform .6s var(--ease);
}
.footer__btn:hover::before { transform: scale(1); }
.footer__btn span { position: relative; z-index: 1; transition: color .4s; }
.footer__btn:hover span { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem;
  border-top: 1px solid var(--line-inv); padding-top: 5vh;
}
.footer__grid h4 {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  opacity: .45; margin-bottom: 1.1rem; font-weight: 400;
}
.footer__grid p, .footer__grid a { font-size: .9rem; opacity: .8; }
.footer__clock { font-family: var(--font-d); font-size: 1.4rem !important; letter-spacing: .06em; }
.footer__route { margin-top: .9rem; opacity: .8; }
.footer__base {
  margin-top: 6vh; display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; opacity: .55;
}

/* ── Project overlay ───────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 1500; visibility: hidden; }
.overlay.is-open { visibility: visible; }
.overlay__backdrop {
  position: absolute; inset: 0; background: rgba(10, 9, 7, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s ease;
}
.overlay.is-open .overlay__backdrop { opacity: 1; }
.overlay__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(680px, 100%);
  background: var(--cream); color: var(--ink);
  transform: translateX(102%);
  transition: transform .85s var(--ease);
  overflow-y: auto;
}
.overlay.is-open .overlay__panel { transform: translateX(0); }
.overlay__close {
  position: sticky; top: 0; z-index: 2; float: right;
  margin: 1.4rem; padding: .7rem 1.3rem;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--ink); color: var(--cream); border-radius: 999px;
  transition: background .4s;
}
.overlay__close:hover { background: var(--red); }
.overlay__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.overlay__body { padding: 3.5rem 3rem 4rem; }
.overlay__index { font-size: 11px; letter-spacing: .24em; opacity: .45; }
.overlay__title {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .8rem 0 1.6rem;
}
.overlay__desc { opacity: .75; max-width: 52ch; }
.overlay__specs { margin-top: 3rem; border-top: 1px solid var(--line); }
.overlay__specs > div { display: flex; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.overlay__specs dt { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .45; padding-top: .2em; }
.overlay__specs dd { font-size: .9rem; text-align: right; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .materials__grid { grid-template-columns: 1fr; }
  .materials__preview { position: relative; top: 0; }
  .service { grid-template-columns: 40px 1fr 40px; }
  .service__desc { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
}
/* Die Leiste trägt neun Einträge (≈870 px) plus Logo — darunter wird
   sie gedrängt, deshalb übernimmt der Burger schon deutlich vor den
   übrigen Mobile-Umbrüchen. */
@media (max-width: 1220px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 860px) {
  .work, .work--alt { display: block; }
  .work__info { margin-top: 1.6rem; text-align: left !important; }
  .works__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .works__count { text-align: left; }
  .hero { --hero-video-o: .45; }
  .hero__video { object-position: 62% 50%; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { grid-column: 1 / -1; }
  .stat { border-bottom: 1px solid var(--line); }
  .step { width: 78vw; min-width: 0; }
  .services__float { display: none; }
  .brands__grid { grid-template-columns: 1fr; }
  .faq__a { padding-left: 0; }
  .tour__head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .tour__hint { text-align: left; }
  .tour__hint br { display: none; }
  .tour__embed { aspect-ratio: 4 / 3; }
  .tour__note { max-width: 80%; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__grid a { overflow-wrap: anywhere; }
}

/* ── Kurze Viewports (Landscape-Phones) ────────────────────── */
@media (max-height: 520px) {
  .menu { padding-top: 6vh; padding-bottom: 6vh; }
  .menu__links a { font-size: clamp(1.15rem, 4.6vh, 1.7rem); }
  .menu__foot { display: none; }
  .hero { padding-top: 24vh; }
  .hero__title { font-size: clamp(2.2rem, 7.4vw, 4.6rem); }
  .hero__meta { margin-top: 4vh; }
  .hero__scroll { display: none; }
  .step__num { font-size: clamp(3rem, 12vh, 6rem); }
  .step__title { margin: 1.2rem 0 .6rem; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  [data-reveal], [data-hero-fade], .h-line > span { opacity: 1 !important; transform: none !important; }
  .grain, .cursor, .hero__scroll, .marquee, .services__float { display: none !important; }
  .process { height: auto; }
  .process__track { flex-direction: column; width: auto; padding: 2rem 4vw; align-items: flex-start; gap: 2rem; }
  .filmstrip__row { animation: none; width: auto; flex-wrap: wrap; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .grain { animation: none; }
  [data-reveal], [data-hero-fade], .h-line > span { opacity: 1 !important; transform: none !important; }
  .hero__video { display: none; }
  .filmstrip { overflow-x: auto; }
  .filmstrip__row { animation: none; width: auto; }
  /* Sonst würde die auf .01ms gekürzte Animation sofort auf -50 %
     springen und dort stehen bleiben. */
  .marquee__track { animation: none !important; }
}
