/* ============================================================
   dela-media · Kreative KI-Lösungen
   Editorial Redesign — cream/bone editorial
   ============================================================ */

/* ============================================================
   FONTS — selbst gehostet (DSGVO-konform)
   Quelle: Google Webfonts Helper (https://gwfh.mranftl.com/)
   Subset: latin-ext (deckt Umlaute + ß komplett ab)
   Anleitung: siehe assets/fonts/README.txt
   ============================================================ */

/* Geist (Sans) — 5 Gewichte */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/geist-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/geist-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/geist-700.woff2') format('woff2');
}

/* Geist Mono — 2 Gewichte (für Mono-Labels und Captions) */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/geist-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/geist-mono-500.woff2') format('woff2');
}

/* Instrument Serif — regular + italic (für editorial Akzente) */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-400-italic.woff2') format('woff2');
}

/* -------- Reset & Basis -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

:root {
  /* Farben — warm editorial */
  --bg: #ECE7DD;
  --bg-soft: #E2DCCB;
  --bg-deep: #D7D0BC;
  --ink: #14110F;
  --ink-2: #2A2722;
  --mute: #6F6A62;
  --mute-2: #908B82;
  --line: #CFC9BB;
  --line-soft: #DCD6C7;
  --accent: #DC4A19;
  --accent-soft: rgba(220,74,25,0.08);
  --on-ink: #ECE7DD;

  /* Typo */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Edge */
  --rule: 1px solid var(--line);
  --rule-soft: 1px solid var(--line-soft);
}

html, body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  /* clip statt hidden — hidden würde position:sticky (Sektion 04) brechen */
  overflow-x: clip;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.mono--right { text-align: right; }
.serif-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    border-color 0.3s var(--ease);
}
.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 0.72; }
.brand-mark { height: 22px; width: auto; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--accent); }
.primary-nav a.is-active::after { background: var(--accent); }

.nav-cta {
  padding: 8px 14px !important;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============================================================
   SECTION INDICATOR (top-right, floating)
   ============================================================ */
.section-indicator {
  position: fixed;
  top: 26px;
  right: var(--gutter);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.section-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--mute);
  text-transform: uppercase;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track > span {
  display: inline-block;
  padding-right: 2rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   00 — HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  min-height: calc(100svh - 50px);
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: stretch;
}
.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.2rem, 8.0vw, 8.0rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-top: 0;
  align-self: center;
  max-width: 11ch;
}
.hero-title .serif-i {
  font-size: 0.92em;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 0 0.05em;
}

/* Hero-Title — wechselndes Wort: Typewriter (Mono) + ruhiger Fade-Cursor */
.hero-rotate {
  display: inline-block;
  margin-top: 0.18em;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: -0.01em;
}
.hero-word {
  display: inline-block;
  color: var(--accent);
}
.hero-word.is-fading {
  opacity: 0;
  transform: translateY(-0.14em);
  transition:
    opacity 1s var(--ease-io),
    transform 1s var(--ease-io);
}
.hero-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.74em;
  margin-left: 0.09em;
  vertical-align: -0.04em;
  background: var(--accent);
  border-radius: 1px;
  animation: heroCaret 3.4s ease-in-out infinite;
}
.hero-caret.is-typing { animation: none; opacity: 1; }
@keyframes heroCaret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.hero-base {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-end;
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: contrast(1.02) saturate(0.95);
}

.hero-body { max-width: 56ch; }
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
  max-width: 50ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
  will-change: transform;
}
.btn--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--ink:hover { background: var(--accent); }
.btn--ink-lg {
  background: var(--ink);
  color: var(--on-ink);
  padding: 22px 36px;
  font-size: 17px;
  border-radius: 999px;
}
.btn--ink-lg:hover { background: var(--accent); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { opacity: 0.7; gap: 10px; }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-head .mono { display: block; margin-bottom: 1.25rem; }
.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.0rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
}
.section-title .serif-i {
  font-size: 0.95em;
  letter-spacing: -0.015em;
}

.section-foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mute);
  max-width: 60ch;
}

/* ============================================================
   01 — MANIFEST
   ============================================================ */
.manifest {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.manifest-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.manifest-num {
  font-size: 13px;
  color: var(--mute);
  align-self: start;
  padding-top: 6px;
}
.manifest-item h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: 20ch;
}
.manifest-item p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mute);
  max-width: 56ch;
}

/* ============================================================
   02 — BEOBACHTUNGEN / QUOTES
   ============================================================ */
.section--quotes { background: var(--bg-soft); }

.quotes { display: block; }
.quote {
  height: 50vh;
  display: flex;
  align-items: center;
}
.quote-inner {
  width: 100%;
  opacity: 0;
  will-change: opacity, transform;
}
.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 28ch;
  margin-bottom: 0.75rem;
}
.quote--r p { margin-left: auto; }
.quote--r p,
.quote--r .quote-meta { text-align: right; }
.quote-meta { display: block; }
.quote-dash { transition: color 0.35s var(--ease); }
.quote.is-peak .quote-dash { color: var(--accent); }

/* ============================================================
   03 — PROJEKTE
   ============================================================ */
.projects {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.project {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease);
}

/* Row als Button — Reset + Grid */
.project-row {
  display: grid;
  grid-template-columns: 28px 60px minmax(0, 1fr) 80px;
  gap: 1.5rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.project-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

/* Toggle-Hint Icon — links neben 01 */
.project-toggle {
  align-self: start;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px) scale(0.85);
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease),
    color 0.3s var(--ease);
  pointer-events: none;
}
.project-toggle svg {
  width: 16px;
  height: 16px;
  overflow: visible;
}
.project-toggle .toggle-h,
.project-toggle .toggle-v {
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  transform-origin: center;
}

/* Hover am Row → Icon sichtbar, Titel orange + slight shift.
   ABER: kein Auto-Open der Detail-Box (das macht nur Click via JS). */
@media (hover: hover) and (pointer: fine) {
  .project-row:hover .project-toggle {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  .project-row:hover .project-title {
    color: var(--accent);
    transform: translateX(8px);
  }
}

.project-n {
  font-size: 13px;
  color: var(--mute);
  align-self: start;
  padding-top: 12px;
}
.project-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
  margin: 0;
}
.project-year {
  text-align: right;
  font-size: 12px;
  color: var(--mute);
  align-self: start;
  padding-top: 14px;
}

/* Open-State: Titel bleibt orange + Icon sichtbar, vertikale Linie weg → minus */
.project.is-open .project-title {
  color: var(--accent);
}
.project.is-open .project-toggle {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.project.is-open .project-toggle .toggle-v {
  transform: scaleY(0);
  opacity: 0;
}

/* Detail-Container: smooth expand via grid-template-rows trick */
.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.project-detail-inner {
  overflow: hidden;
  min-height: 0;
}
.project.is-open .project-detail {
  grid-template-rows: 1fr;
}

/* Inhalt im Detail: Text links, Video rechts */
.project-detail-inner {
  display: grid;
  grid-template-columns: 28px 60px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  padding-top: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease) 0.05s,
    transform 0.5s var(--ease) 0.05s,
    padding-top 0.5s var(--ease);
}
.project.is-open .project-detail-inner {
  opacity: 1;
  transform: translateY(0);
  padding-top: 1.5rem;
}

.project-text {
  grid-column: 3;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-bottom: 1rem;
  font-size: 13px;
  color: var(--mute);
}
.project-meta span strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 6px;
}
.project-text p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 0.75rem;
}
.project-text p:last-child { margin-bottom: 0; }
.project-text a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.25s var(--ease);
}
.project-text a:hover { opacity: 0.75; }

/* Video rechts */
.project-media {
  grid-column: 4;
  align-self: start;
  margin: 0;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  position: relative;
}
.project-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  /* Poster wird über das object-fit des video-Elements gezeigt */
  object-fit: contain;
  /* Im Ruhezustand dezent zurückgenommen — kein Ablenken beim Lesen */
  opacity: 0.72;
  filter: saturate(0.78) brightness(0.97);
  transition:
    opacity 0.45s var(--ease),
    filter 0.4s var(--ease);
}
/* Aktiv (spielt) → voll präsent */
.project-media.is-playing .project-video {
  opacity: 1;
  filter: none;
}

/* Hinweis-Label unter dem Video */
.project-media-hint {
  display: block;
  margin-top: 8px;
  color: var(--mute);
  transition: opacity 0.3s var(--ease);
}
.project-media.is-playing .project-media-hint { opacity: 0; }

/* ============================================================
   04 — ABLAUF (scroll-getriebene horizontale Zeitleiste)
   ============================================================ */
.section--process {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid var(--ink);
}
.section--process .section-title { color: var(--on-ink); }
.section--process .mono { color: var(--mute-2); }

.ablauf-stage {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.ablauf-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* -- Rail / Zeitleiste -- */
.ablauf-rail { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rail-caps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.7rem;
}
.rail-line {
  position: relative;
  height: 2px;
  background: rgba(236,231,221,0.16);
}
.rail-fill {
  position: absolute;
  left: 4%;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.15s linear;
  z-index: 1;
}
.rail-marker {
  position: absolute;
  left: 4%;
  top: 1px;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(220,74,25,0.18);
  transition: left 0.15s linear;
  z-index: 2;
}
.rail-node {
  position: absolute;
  top: 1px;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(236,231,221,0.3);
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.rail-node:hover { transform: scale(1.18); }
.rail-node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.rail-node.is-done {
  border-color: var(--accent);
  background: var(--accent);
}
.rail-node.is-active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(220,74,25,0.16);
}
.rail-node .mono {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 13px);
  transform: translateX(-50%);
  color: var(--mute-2);
  transition: color 0.3s var(--ease);
}
.rail-node.is-active .mono { color: var(--accent); }

/* -- Phasen-Panels -- */
.ablauf-phases { position: relative; }
.phase-num { display: none; }
.phase-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-ink);
  margin-bottom: 0.55rem;
  max-width: 24ch;
}
.phase-meta {
  display: block;
  color: rgba(236,231,221,0.55) !important;
  margin-bottom: 1.15rem;
}
.phase-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(236,231,221,0.8);
  max-width: 62ch;
}
.phase-text strong { color: var(--on-ink); font-weight: 500; }
.phase-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: rgba(236,231,221,0.65);
  max-width: 62ch;
}
.phase-list li {
  position: relative;
  padding-left: 16px;
}
.phase-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ablauf-hint {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--mute-2);
}

/* -- Desktop: Sticky-Scroll-Mechanik -- */
@media (min-width: 961px) {
  .section--process { height: 300vh; }
  .ablauf-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  .ablauf-stage {
    padding-top: clamp(2rem, 5vh, 4rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }
  .ablauf-head .section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
  }
  .ablauf-phases { min-height: 340px; }
  .ablauf-phase {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
      opacity 0.4s var(--ease),
      transform 0.5s var(--ease),
      visibility 0.4s var(--ease);
    pointer-events: none;
  }
  .ablauf-phase.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* -- Tablet / Mobil: vertikaler Fallback -- */
@media (max-width: 960px) {
  .ablauf-rail,
  .ablauf-hint { display: none; }
  .ablauf-phases { border-top: 1px solid rgba(236,231,221,0.14); }
  .ablauf-phase {
    padding: clamp(2rem, 5vw, 3rem) 0;
    border-bottom: 1px solid rgba(236,231,221,0.14);
  }
  .phase-num {
    display: block;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 0.8rem;
  }
}

/* ============================================================
   05 — FELIX / ABOUT
   ============================================================ */
.section--about { min-height: 100vh; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 80px;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: contrast(1.02);
}
.about-photo figcaption {
  display: block;
  margin-top: 10px;
}

.about-body { display: grid; gap: 1.75rem; }
.about-lead {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 28ch;
}
.about-body p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}
.about-body p strong { font-weight: 500; color: var(--ink); }

.about-quote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 30ch;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.about-facts dt { margin-bottom: 6px; }
.about-facts dd {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}

/* ============================================================
   05 — AUS DEM STUDIO (scroll-gekoppelter Spalten-Drift)
   ============================================================ */
.section--studio {
  position: relative;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 6rem) 0;
  overflow-x: clip;
}
.studio-label {
  display: block;
  max-width: var(--max);
  margin: 0 auto clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 var(--gutter);
}
.studio-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 22px);
}
.studio-row {
  display: flex;
  width: max-content;
  gap: clamp(10px, 1.5vw, 22px);
  will-change: transform, opacity;
}
.studio-item {
  flex: none;
  width: 34vw;
  margin: 0;
}
.studio-item img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  /* Grunddeckkraft 80 % — Scroll-Fade-Kurve (auf der Reihe) gipfelt dadurch bei 80 % */
  opacity: 0.8;
  transition: opacity 0.4s var(--ease);
}
.studio-item:hover img { opacity: 1; }
.studio-caption {
  margin-top: 10px;
}

/* ============================================================
   06 — FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.75rem 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.faq-item.is-open .faq-q { color: var(--accent); }
.faq-num {
  color: var(--mute);
  transition: color 0.3s var(--ease);
}
.faq-q:hover .faq-num,
.faq-item.is-open .faq-num { color: var(--accent); }
.faq-question {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.faq-toggle {
  position: relative;
  width: 16px;
  height: 16px;
  justify-self: end;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}
.faq-toggle::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-toggle::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); transition: transform 0.45s var(--ease); }
.faq-item.is-open .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-body {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.faq-item.is-open .faq-body { opacity: 1; }
.faq-body p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mute);
  max-width: 60ch;
  padding: 0 0 1.75rem calc(52px + 1.25rem);
}

/* ============================================================
   07 — KONTAKT
   ============================================================ */
.section--contact {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  padding-top: clamp(2rem, 4vh, 3.5rem);
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}
/* Obere / untere Zone — Inhalt ästhetisch verteilt, Titel bleibt exakt mittig */
.contact-top,
.contact-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}
.contact-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2rem, 5.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto;
}

.contact-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
  padding: clamp(1.5rem, 3vh, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.contact-line:hover { opacity: 0.7; }
.contact-line span:last-child {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Kreisförmiges Foto */
.contact-photo {
  width: clamp(92px, 12vw, 122px);
  margin: 0 auto clamp(0.9rem, 2vh, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.contact-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.4s var(--ease);
}
.contact-photo:hover img { opacity: 0.9; }
.contact-photo figcaption { color: var(--mute); }

/* Vorteils-Satz unter der Überschrift */
.contact-pitch {
  margin: clamp(0.9rem, 2vh, 1.4rem) auto 0;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}

/* Verfügbarkeits-Status — rechts oben in der Section-Head-Zeile */
.contact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.contact-head .mono { margin-bottom: 0; }
.contact-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f9e52;
  animation: pulse 2.4s ease-in-out infinite;
}


/* ============================================================
   FOOTER
   ============================================================ */
/* Footer-Reveal — Inhalt liegt optisch über dem Footer */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 24px 50px -28px rgba(20, 17, 15, 0.5);
}

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(4rem, 8vw, 6rem) var(--gutter) 2rem;
}
/* Reveal-Modus: Footer fix hinter dem Inhalt — wird am Seitenende freigelegt */
.site-footer.footer-reveal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(236,231,221,0.14);
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 14px;
  color: rgba(236,231,221,0.65);
  max-width: 36ch;
}
.footer-logo { height: 26px; width: auto; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-label {
  color: rgba(236,231,221,0.55) !important;
  margin-bottom: 6px;
}
.footer-col a, .footer-col address {
  font-size: 14px;
  color: rgba(236,231,221,0.85);
  font-style: normal;
  transition: color 0.25s var(--ease);
  line-height: 1.6;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(236,231,221,0.55);
}
.footer-bottom .mono { color: rgba(236,231,221,0.45); }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(236,231,221,0.7);
  transition: color 0.25s var(--ease), gap 0.3s var(--ease);
}
.footer-top:hover { color: var(--accent); gap: 12px; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero intro (Stagger) */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-meta-top,
.hero-title,
.hero-portrait,
.hero-body {
  opacity: 0;
  animation: heroIn 1s var(--ease) forwards;
}
.hero-meta-top { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-portrait { animation-delay: 0.45s; }
.hero-body     { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-meta-top, .hero-title, .hero-portrait, .hero-body {
    opacity: 1; animation: none;
  }
  .marquee-track { animation: none; }
  .section-indicator .dot,
  .avail-dot { animation: none; }
  .quote { height: auto; padding: clamp(2rem, 4vw, 3rem) 0; }
  .quote-inner { opacity: 1; transform: none; }
  .hero-caret { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-base { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait { max-width: 160px; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { position: static; max-width: 480px; }

  /* Projekte: Video unter dem Text */
  .project-detail-inner {
    grid-template-columns: 28px 60px minmax(0, 1fr);
  }
  .project-media {
    grid-column: 3;
    justify-self: start;
    max-width: 480px;
    margin-top: 1.5rem;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .section-indicator { display: none; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    z-index: 99;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .primary-nav a:last-child {
    border-bottom: none;
    align-self: flex-start;
    margin-top: 12px;
  }
  .primary-nav .nav-cta { padding: 14px 22px !important; }

  .brand-sub { display: none; }

  .hero { min-height: auto; padding-top: 4rem; }
  .hero-meta-top { flex-direction: column; gap: 1rem; }
  .hero-meta-top .mono--right { text-align: left; }
  .hero-title { max-width: 14ch; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: space-between; }

  .manifest-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .manifest-num { padding-top: 0; }

  /* Mobile: Icon immer sichtbar (kein Hover) */
  .project-row {
    grid-template-columns: 20px auto 1fr;
    gap: 1rem;
  }
  .project-toggle {
    opacity: 1;
    transform: none;
    padding-top: 8px;
  }
  .project-year { display: none; }

  .project-detail-inner {
    grid-template-columns: 20px auto 1fr;
    gap: 1rem;
  }
  .project-text { grid-column: 3; }
  .project-media { grid-column: 3; margin-top: 1rem; }

  .faq-q { grid-template-columns: 32px 1fr 18px; gap: 0.9rem; }
  .faq-body p { padding-left: calc(32px + 0.9rem); }

  .contact-cta { grid-template-columns: 1fr; }
  .contact-direct { gap: 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
