/*
 * felix-kuntz.de
 * Zwei Flächen tragen die Seite: das mattgraue Studio des 3D-Renders und die
 * dunkle Monitorfläche. Alles, was am Rechner entsteht, steht auf dem Monitor;
 * alles andere steht im Studio.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Studio: aus dem Render gemessen (Wand links, beleuchteter Boden). */
  --wall: #a3a3a3;
  --plinth: #b3b3b3;
  --ink: #0b0c0e;
  --ink-soft: #2a2c30;
  --rule-on-wall: rgb(11 12 14 / 0.3);

  /* Dunkle Flächen: Monitorfarbe des Renders. Die Kapitel-Flächen setzt film.js aus
     film.config.js (into.color); dieser Wert gilt für Kontakt, Fuß und ohne JavaScript. */
  --screen: #0a0c0e;
  --paper: #ecedef;
  --paper-soft: #a6aab1;
  --rule-on-screen: rgb(236 237 239 / 0.16);

  /* Einziger Farbakzent: Filzgelb eines Tennisballs. */
  --accent: #d8f24b;

  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1320px;
  --header: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--wall);
  color: var(--ink);
  scrollbar-color: #4a4b4e var(--wall);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

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

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 3px;
}

[id] { scroll-margin-top: calc(var(--header) + 8px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.anchor-alias { position: absolute; top: 0; left: 0; scroll-margin-top: 0; }

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  font-weight: 500;
  transition: text-decoration-color 160ms var(--ease);
}
@media (hover: hover) {
  .link:hover { text-decoration-color: var(--accent); }
  .studio .link:hover { text-decoration-thickness: 3px; text-decoration-color: currentColor; }
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 220ms var(--ease);
}
.js .site-header { position: fixed; }
.site-header[data-tone="dark"] { color: var(--paper); }
/* Die Navigation rechts kann über anderem Bildgrund liegen als der Name links. */
.site-header nav { transition: color 220ms var(--ease); }
.site-header[data-tone-nav="dark"] nav { color: var(--paper); }
.site-header[data-tone-nav="light"] nav { color: var(--ink); }

.site-header a {
  text-decoration: none;
  padding-block: 10px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 0 1.5px no-repeat;
  transition: background-size 220ms var(--ease);
}
.site-header a[aria-current] { background-size: 100% 1.5px; }
@media (hover: hover) {
  .site-header a:hover { background-size: 100% 1.5px; }
}

.site-name { font-weight: 650; font-stretch: 108%; white-space: nowrap; }
.site-header ul { display: flex; gap: clamp(14px, 2.4vw, 32px); }

@media (max-width: 620px) {
  .nav-wide { display: none; }
  .site-header { font-size: 0.875rem; gap: 12px; }
}
@media (max-width: 430px) {
  .site-header { font-size: 0.8125rem; gap: 8px; }
  .site-header ul { gap: 11px; }
}

/* ---------- Szenen: ohne Film (kein JS, reduzierte Bewegung) eine ruhige, statische Abfolge ---------- */

.scene { position: relative; background: var(--wall); }
.scene-stage { position: relative; }
.scene-cover, .scene-actions, .scene-progress { display: none; }

.scene-intro .scene-stage {
  display: flex;
  flex-direction: column;
  padding-top: var(--header);
}
.scene-copy {
  padding: clamp(32px, 6vh, 72px) var(--gutter) 20px;
  max-width: 46rem;
}
.scene-intro h1 {
  font-size: clamp(2.6rem, 12vw, 5rem);
  line-height: 0.96;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.028em;
}
.scene-intro h1 span { display: block; }
.intro-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.35;
  font-weight: 560;
  max-width: 24em;
}
/* Porträt mittig über dem Namen: der Block ist so breit wie die längste Namenszeile ("Felix Maurice"). */
.intro-head {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-head h1 { align-self: stretch; }
.intro-portrait {
  display: block;
  width: clamp(72px, 9vw, 112px);
  margin-bottom: clamp(16px, 2.6vh, 28px);
}
.intro-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--paper), 0 10px 28px rgb(11 12 14 / 0.22);
}
.intro-links {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}
.intro-sub {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 30em;
}
.scene-poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  object-fit: cover;
  object-position: 66% 100%;
  /* Das Bild läuft oben in die Wandfläche der Seite aus. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
}

/* Szenen 2 und 3 ohne Film: ein Standbild als Band zwischen den Kapiteln. */
.scene-band .scene-stage {
  aspect-ratio: 21 / 9;
  max-height: 70vh;
  overflow: hidden;
}
.scene-band .scene-media { position: absolute; inset: 0; }
.scene-band .scene-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  object-position: 50% 50%;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Querformat ohne Film: Bild füllt die Bühne, Text steht links neben der Figur.
   Query muss zu wideQuery in assets/js/film.config.js passen. */
@media (min-width: 860px) and (min-aspect-ratio: 5/4) {
  .scene-intro .scene-stage {
    display: block;
    height: 100vh;
    min-height: 480px;
    padding-top: 0;
    overflow: hidden;
  }
  .scene-intro .scene-media, .scene-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .scene-poster {
    aspect-ratio: auto;
    max-height: none;
    object-position: 50% 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .scene-copy {
    position: absolute;
    inset: 0 auto 0 var(--gutter);
    width: min(42vw, 39rem);
    padding: var(--header) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .scene-intro h1 { font-size: clamp(2.6rem, 4.7vw, 5.25rem); }
}

/* ---------- Szenen mit Film: Bühne bleibt stehen, Scrollen bewegt das Bild ---------- */

/* Erst nach dem ersten dekodierten Bild Scrollstrecke verbrauchen. Navigation und
   „Animation überspringen“ bleiben während des Ladens bedienbar. */
html.film-waiting, .film-waiting body { overflow: hidden; }
.scene-loading[hidden] { display: none; }
.scene-loading {
  position: absolute;
  left: var(--gutter);
  bottom: 100px;
  display: grid;
  gap: 10px;
  width: min(280px, calc(100% - 2 * var(--gutter)));
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--screen);
  color: var(--paper);
  font-size: 0.875rem;
}
.scene-loading progress { width: 100%; height: 5px; accent-color: var(--accent); }
.scene-loading button {
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.is-loading .skip-scene { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.is-loading[data-tone="dark"] .skip-scene { color: var(--paper); }
.is-loading .scroll-hint { visibility: hidden !important; }

.film-on .scene {
  /* --travel und --lead setzt film.js aus der Konfiguration (in vh). */
  height: calc(100vh + var(--travel) * 1vh);
  margin-top: calc(var(--lead, 0) * -1vh);
  padding: 0;
  z-index: 1;
}
/* Die nächste Szene beginnt bereits hinter dem überlappenden HTML-Kapitel.
   Bis zum Ende der aktuellen Kamerafahrt darf sie deren Bild nicht verdecken. */
.film-on .scene.is-current { z-index: 2; }
.film-on .scene-stage,
.film-on .scene-intro .scene-stage {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
}
.film-on .scene-media {
  position: absolute;
  inset: var(--media-top, 0px) 0 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--media-fade, 0%));
  mask-image: linear-gradient(to bottom, transparent, #000 var(--media-fade, 0%));
}
.film-on .scene-poster,
.film-on .scene-source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  object-fit: cover;
  object-position: var(--focus, 50%) 40%;
  -webkit-mask-image: none;
  mask-image: none;
}
.film-on .scene-cover {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.film-on .scene-copy {
  position: absolute;
  inset: 0 0 auto 0;
  padding-top: calc(var(--header) + clamp(20px, 4vh, 56px));
  will-change: opacity, transform;
}
.film-on .scene-actions {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.skip-scene {
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
.film-on .scene-progress {
  display: block;
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
}
.scene-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@media (min-width: 860px) and (min-aspect-ratio: 5/4) {
  .film-on .scene-copy {
    inset: 0 auto 0 var(--gutter);
    padding: var(--header) 0 0;
  }
}

/* Das Kapitel nach einer Szene liegt deckungsgleich über deren Endbild und erscheint,
   sobald die Szene durchlaufen ist. Vorher ist es unsichtbar und nicht klickbar. */
.film-on .takeover {
  margin-top: -100vh;
  /* Ein kurzes Kapitel deckt trotzdem das ganze Endbild der Szene ab. */
  min-height: 100vh;
}
/* Abgerundetes Ende: etwas länger als die Bühne, damit hinter den Ecken die Wand liegt. */
.film-on .takeover.surface-last { min-height: calc(100vh + 28px); }
/* Kurzes Kapitel: Inhalt mittig auf der Fläche. */
.film-on .surface-center { display: flex; flex-direction: column; justify-content: center; }
/* Sprungziele am Kapitelanfang müssen exakt auf dem Szenenende landen,
   sonst hätte das Kapitel beim Ankommen noch nicht übernommen. */
.film-on .takeover,
.film-on .takeover > :first-child {
  scroll-margin-top: 0;
}
.film-on .takeover:not(.is-on) {
  opacity: 0;
  pointer-events: none;
}
@keyframes pop-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); filter: blur(6px); }
}
.film-on .takeover.is-on > .block:first-child > * {
  animation: pop-in 520ms var(--ease) backwards;
}
.film-on .takeover.is-on > .block:first-child > :nth-child(3) { animation-delay: 90ms; }
.film-on .takeover.is-on > .block:first-child > :nth-child(n + 4) { animation-delay: 160ms; }

.film-hud {
  position: fixed;
  right: 12px; bottom: 12px;
  z-index: 200;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgb(11 12 14 / 0.88);
  color: var(--paper);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre;
  pointer-events: none;
}

/* ---------- Gemeinsame Abschnittsstruktur ---------- */

.block {
  position: relative;
  padding-block: clamp(72px, 13vh, 150px);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}

h2 {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  line-height: 1;
  font-weight: 620;
  font-stretch: 110%;
  letter-spacing: -0.026em;
}

.block-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.block-head p {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.4;
  max-width: 28em;
}
@media (min-width: 900px) {
  .block-head {
    grid-template-columns: 7fr 5fr;
    column-gap: 48px;
    align-items: end;
  }
}

/* Entwurfsmarkierung: gestrichelt = fehlt noch. */
.draft {
  padding: 10px 14px;
  border: 1px dashed currentColor;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 44em;
}
.draft b, figcaption b {
  display: inline-block;
  margin-right: 0.6em;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.6;
}

/* ---------- Dunkle Kapitel: Informatik, Making, Video ---------- */

/* Dunkle Kapitel-Fläche. --surface setzt film.js aus into.color der vorangehenden Szene. */
.surface {
  position: relative;
  z-index: 2;
  background: var(--surface, var(--screen));
  color: var(--paper);
}
.surface-last { border-radius: 0 0 28px 28px; }
.surface:focus { outline: none; }
.surface .block-head p,
.surface .draft { color: var(--paper-soft); }

.project {
  position: relative;
  display: grid;
  gap: 20px;
  padding-block: clamp(36px, 6vh, 64px);
  border-top: 1px solid var(--rule-on-screen);
}
.project-title h3 {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.018em;
}
.project-title p {
  margin-top: 6px;
  color: var(--paper-soft);
  font-size: 0.9375rem;
}
.project-body { display: grid; gap: 28px; min-width: 0; }
/* Fließtext eines Projekts als ein Block: Absätze untereinander, Link am Ende. */
.project-copy { display: grid; gap: 16px; max-width: 36em; color: var(--paper-soft); }
.project-copy .link, .project-copy .project-text { color: var(--paper); }
.project-copy .project-text { margin-bottom: 8px; }
.project-text {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  max-width: 34em;
}

.project-lead .project-title h3 {
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.9;
  font-weight: 640;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  color: var(--accent);
}
.project-lead .project-title p {
  margin-top: 14px;
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 4fr 8fr;
    column-gap: 48px;
  }
  .project-lead { grid-template-columns: 1fr; row-gap: 40px; }
  .project-lead .project-body {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    align-items: start;
  }
  .project-lead .draft, .project-lead .clip { grid-column: 1 / -1; }
}

.facts, .ledger, .specs, .profiles { display: grid; }
.facts > div, .ledger > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--rule-on-screen);
}
.facts > div:last-child, .ledger > div:last-child { border-bottom: 1px solid var(--rule-on-screen); }
.facts dt, .ledger dt, .shot figcaption { color: var(--paper-soft); }
.facts dt, .ledger dt { font-size: 0.9375rem; }

.shot img {
  width: 100%;
  border-radius: 10px;
  background: #f6f6f8;
}
.shot figcaption, .clip figcaption { margin-top: 12px; font-size: 0.875rem; }
.clip figcaption { color: var(--paper-soft); }
.clip video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #f4f4f6;
}

.research { border-top: 1px solid var(--rule-on-screen); }
.research-cols { display: grid; gap: 56px; }
.research-cols h3 {
  font-size: 1.375rem;
  font-weight: 620;
  font-stretch: 106%;
  margin-bottom: 20px;
}
.research-cols .draft { margin-top: 20px; }
.ledger dd strong { display: block; font-weight: 620; font-size: 1.125rem; }
.ledger dd span { display: block; margin-top: 6px; color: var(--paper-soft); }
.plain li + li { margin-top: 2px; }
.pubs > li + li { margin-top: 16px; }
.pubs cite { display: block; font-style: normal; font-weight: 620; font-size: 1.125rem; }
.pub-year, .pub-meta { color: var(--paper-soft); font-size: 0.9375rem; }
.pub-year, .pub-meta, .pub-text { display: block; }
.pub-meta strong { color: var(--paper); font-weight: 620; }
.pub-text { margin-top: 10px; color: var(--paper-soft); max-width: 34em; }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }

/* Kleine Einträge: Titel und ein Satz, bewusst ohne Bild. */
.minis { display: grid; max-width: 40rem; }
.minis > div {
  padding-block: 14px;
  border-top: 1px solid var(--rule-on-screen);
}
.minis > div:last-child { border-bottom: 1px solid var(--rule-on-screen); }
.minis dt { font-weight: 620; margin-bottom: 2px; }
.minis dd { color: var(--paper-soft); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .research-cols { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* ---------- Studio und helle Kapitel-Fläche (Tennisball): Tennis & Interessen ---------- */

.studio { background: var(--wall); color: var(--ink); }
/* Helle Kapitel-Fläche: --surface kommt wie bei den dunklen aus into.color (Balloberfläche). */
.surface-light { background: var(--surface, var(--plinth)); color: var(--ink); }
.surface-light .block-head p,
.surface-light .draft { color: var(--ink-soft); border-color: var(--ink-soft); }
@media (hover: hover) {
  .surface-light .link:hover { text-decoration-thickness: 3px; text-decoration-color: currentColor; }
}
.surface-light .station + .station { border-top: 1px solid var(--rule-on-wall); }
/* Foto im Tennis-Kapitel: ganzes Bild im eigenen Seitenverhältnis, größer als die Medienplätze. */
.slot-photo { max-width: 34rem; }
.slot-photo .slot-media { aspect-ratio: 690 / 1230; }
.surface-light .station-text h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 640;
  letter-spacing: -0.016em;
}
/* Zwischenüberschrift im Fließtext (Tennis): etwas Luft nach oben. */
.surface-light .station-text p + h3,
.surface-light .station-text p + .station-lead { margin-top: 16px; }

/* Vorher/Nachher: Spaltenbreiten im Verhältnis der Seitenverhältnisse (16:9 und 3:4), damit beide Bilder gleich hoch sind. */
.before-after { display: grid; gap: 16px; }
.before-after img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.before-after figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 600px) {
  .before-after { grid-template-columns: 1.7778fr 0.75fr; align-items: start; }
}
@media (min-width: 900px) {
  .station-schwalbe .before-after { grid-column: 5 / -1; }
  .station-schwalbe .station-text { grid-column: 1 / span 4; }
}

.station { display: grid; gap: 40px; align-items: center; }
.station + .station { border-top: 1px solid var(--rule-on-wall); }
.station-text { display: grid; gap: 24px; justify-items: start; }
.station-lead {
  font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  font-weight: 520;
  max-width: 22em;
}
.studio .draft { color: var(--ink-soft); border-color: var(--ink-soft); }

.specs { width: 100%; max-width: 26rem; }
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--rule-on-wall);
}
.specs > div:last-child { border-bottom: 1px solid var(--rule-on-wall); }
.specs dt { color: var(--ink-soft); }
.specs dd { font-weight: 620; text-align: right; }

/* Medienplatz: später <video>/<img> in .slot-media setzen und data-placeholder entfernen. */
.slot { width: 100%; }
.slot-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--plinth);
  overflow: hidden;
}
.slot[data-placeholder] .slot-media { border: 1px dashed var(--ink-soft); }
.slot-media > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot figcaption, .video-figure figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 44em;
}
.slot-small { max-width: 15rem; }
.slot-small .slot-media { aspect-ratio: 4 / 3; }
.slot-tall .slot-media { aspect-ratio: 4 / 5; }
.slot-tall { max-width: 26rem; }

.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.video button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3.2vw, 44px);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.video button:focus-visible { outline-offset: -8px; border-radius: var(--radius); }
.video-title {
  font-size: clamp(1.375rem, 3.6vw, 3.25rem);
  line-height: 1.02;
  font-weight: 640;
  font-stretch: 110%;
  letter-spacing: -0.024em;
  max-width: 13em;
  text-wrap: balance;
}
.video-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 620;
  transition: transform 180ms var(--ease);
}
@media (hover: hover) {
  .video button:hover .video-play { transform: scale(1.04); }
}
.video button:active .video-play { transform: scale(0.97); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Auf der dunklen Fläche (Kamera-Display) hebt sich die Videofläche als Rahmen ab. */
.surface .video { background: #14171a; box-shadow: inset 0 0 0 1px var(--rule-on-screen); }
.surface .video-figure figcaption { color: var(--paper-soft); }

@media (min-width: 900px) {
  .station {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 32px;
  }
  .station-text { grid-column: 1 / span 5; }
  .station > .slot { grid-column: 7 / -1; }
  .station > .slot-tall { grid-column: 9 / -1; justify-self: end; }
  .station > .slot-photo { grid-column: 7 / -1; justify-self: end; }
  /* Ganz im Viewport: Höhe = Viewport minus Kopfzeile und Luft, Breite folgt aus 690:1230. */
  .slot-photo { max-width: min(34rem, calc((100vh - 180px) * 690 / 1230)); }
  .station-video .video-figure { grid-column: 1 / span 8; grid-row: 1; }
  .station-video .station-text { grid-column: 9 / -1; }
}

/* ---------- Kontakt, Fuß ---------- */

.contact {
  position: relative;
  scroll-margin-top: 0;
  background: var(--screen);
  color: var(--paper);
  border-radius: 28px 28px 0 0;
  padding-block: clamp(72px, 13vh, 150px) clamp(48px, 8vh, 96px);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.contact-mail {
  margin-top: clamp(28px, 5vh, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.contact-mail a {
  font-size: clamp(1.5rem, 6.2vw, 5rem);
  line-height: 1.1;
  font-weight: 620;
  font-stretch: 108%;
  letter-spacing: -0.026em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.contact-mail button {
  padding: 9px 16px;
  border: 1px solid var(--rule-on-screen);
  border-radius: 8px;
  background: none;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.contact-mail button:active { transform: scale(0.97); }
@media (hover: hover) {
  .contact-mail button:hover { border-color: var(--paper); }
}
.contact-note { margin-top: 16px; color: var(--paper-soft); }

.profiles {
  margin-top: clamp(40px, 7vh, 72px);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 32px;
}
.profiles > div {
  padding-block: 14px;
  border-top: 1px solid var(--rule-on-screen);
}
.profiles dt { color: var(--paper-soft); font-size: 0.9375rem; }
.contact .draft { margin-top: 28px; color: var(--paper-soft); }

.site-footer {
  background: var(--screen);
  color: var(--paper-soft);
  padding: 24px max(var(--gutter), calc((100% - var(--max)) / 2)) 32px;
  border-top: 1px solid var(--rule-on-screen);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.875rem;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .footer-ai {
  flex-basis: 100%;
  max-width: 62em;
  padding-top: 14px;
  border-top: 1px solid var(--rule-on-screen);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.site-footer .footer-ai strong { color: var(--paper); font-weight: 600; }
.site-footer a { padding-block: 6px; text-underline-offset: 0.22em; }
@media (hover: hover) {
  .site-footer a:hover { color: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
