/* ============================================================
   MELTEM PHOTOGRAPHY — Portfolio V2 „Die Dunkelkammer"
   Konzept: Das Archiv ist ein Filmarchiv. Negativstreifen haengen
   im Dunkeln; der Cursor ist das Entwicklerlicht (der EINE laute
   Motion-Moment). Klick entwickelt den Tag und startet seinen Film.
   Danach: Makro-Reise per Scroll, Archivbox mit der Frage.
   Zwei Welten: dunkle Fotobuehne traegt die Bilder, warmes Papier
   traegt Text und Etiketten — Sand nur noch als Akzent, nie als Flaeche.
   ============================================================ */

/* ---------- Fonts: selbst gehostet, kein Google-Fonts-Abruf ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Papierwelt (warm) — Text, Etiketten, Anfrage */
  --papier: #f2ece3;
  --sand: #e5dacc;
  --tinte: #2a2622;
  --tinte-soft: #5a524a;
  /* Praezisierung der Aktionsfarbe #96693D (AA-Kontrast) */
  --aktion: #7d5433;
  --aktion-tief: #6b4629;
  /* Fotowelt (kuehl, dunkel) — Buehnen, Streifen, Projektion */
  --nacht: #121316;
  --nacht-2: #1b1d21;
  --nacht-3: #23262b;
  --hell: #efeae1;
  --hell-soft: rgba(239, 234, 225, 0.62);
  --linie-hell: rgba(239, 234, 225, 0.16);
  --haarlinie: rgba(42, 38, 34, 0.16);
  --haarlinie-sand: rgba(42, 38, 34, 0.22);
  --blattweiss: #fbfaf7;

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --grotesk: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(20px, 5vw, 64px);
  --mass: min(1240px, calc(100vw - 2 * var(--rand)));
  --takt: clamp(88px, 13vh, 152px);

  /* Entwicklerlicht (Signature) */
  --lx: 50%;
  --ly: 50%;
  --lr: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--nacht);
  color: var(--tinte);
  font-family: var(--grotesk);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--sand);
  color: var(--tinte);
}

:focus-visible {
  outline: 2px solid var(--aktion);
  outline-offset: 4px;
  border-radius: 1px;
}
.dunkel :focus-visible,
.dunkel:focus-visible {
  outline-color: var(--hell);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  background: var(--papier);
  color: var(--tinte);
  padding: 10px 16px;
  font-size: 0.85rem;
  transform: translateY(-260%);
}
.skip:focus-visible {
  transform: none;
}

/* Filmkorn ueber allem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: overlay;
}

/* ---------- Typo-Bausteine ---------- */
.marke {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tinte-soft);
}
.dunkel .label {
  color: var(--hell-soft);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 7.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.014em;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
}

h3 {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

p {
  margin: 0;
}

.leise {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.32;
}

.fliess {
  max-width: 60ch;
}
.fliess--soft {
  color: var(--tinte-soft);
}
.dunkel .fliess--soft {
  color: var(--hell-soft);
}

.micro {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--tinte-soft);
  max-width: 46ch;
}
.dunkel .micro {
  color: var(--hell-soft);
}

/* ---------- Aktionen ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--aktion);
  color: var(--papier);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 17px 28px;
  min-height: 44px;
  border: 0;
}
.cta:hover {
  background: var(--aktion-tief);
}

.textlink {
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--haarlinie-sand);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.textlink:hover {
  text-decoration-color: currentColor;
}
.dunkel .textlink {
  color: var(--hell);
  text-decoration-color: var(--linie-hell);
}

/* ---------- Kopf ---------- */
.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--rand);
  color: var(--hell);
}
.kopf a {
  text-decoration: none;
}
.kopf .marke:hover {
  opacity: 0.7;
}
.kopf-anfrage {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding: 12px 0 3px;
}
.kopf-anfrage:hover {
  opacity: 0.7;
}
.kopf.kompakt {
  background: color-mix(in srgb, var(--papier) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--haarlinie);
  color: var(--tinte);
}
@media (max-width: 479px) {
  .kopf {
    padding: 14px 20px;
  }
  .kopf .marke {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }
  .kopf-anfrage {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }
}

/* ---------- Sektionen ---------- */
.buehne {
  width: var(--mass);
  margin-inline: auto;
}

section {
  padding-block: var(--takt);
}
section[id] {
  scroll-margin-top: 64px;
}

.dunkel {
  background: var(--nacht);
  color: var(--hell);
}
.hellgrund {
  background: var(--papier);
  color: var(--tinte);
}

/* ============================================================
   FILM-PRIMITIVES: Frame, Negativ, Entwicklerlicht, Perforation
   ============================================================ */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--nacht-3);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame .neg {
  display: none; /* Basis: entwickelt. Negativ nur mit JS + Motion. */
}
.frame .pos {
  position: relative;
}
.frame .nummer {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 3;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(239, 234, 225, 0.55);
  text-transform: uppercase;
  pointer-events: none;
}

/* Mit JS + erlaubter Bewegung: unentwickelt, Licht folgt dem Cursor */
.anim .archiv--aktiv .frame .neg {
  display: block;
  position: absolute;
  inset: 0;
  filter: invert(0.86) hue-rotate(165deg) saturate(0.38) brightness(0.5)
    contrast(0.9);
}
.anim .archiv--aktiv .frame .pos {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-mask-image: radial-gradient(
    circle var(--lr) at var(--lx) var(--ly),
    #000 0 58%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--lr) at var(--lx) var(--ly),
    #000 0 58%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.anim .archiv--aktiv .frame.voll .neg {
  filter: invert(0) hue-rotate(0deg) saturate(1) brightness(1) contrast(1);
  transition: filter 1.1s ease;
}
.anim .archiv--aktiv .frame.voll .pos {
  -webkit-mask-image: none;
  mask-image: none;
}
/* Das Entwicklerlicht fuehlt sich nach Instrument an */
@media (pointer: fine) {
  .anim .archiv--aktiv .tab .frame {
    cursor: crosshair;
  }
}
/* Tastatur-Paritaet: Fokus auf dem Tab entwickelt den Streifen */
.anim .archiv--aktiv .tab:focus-visible .frame .pos {
  -webkit-mask-image: none;
  mask-image: none;
}
/* Entwickelte Bilder beginnen kaum merklich zu leben */
.anim .archiv--aktiv .frame img {
  transition: transform 6s ease;
}
.anim .archiv--aktiv .frame.voll img {
  transform: scale(1.05);
}

/* Perforation: gestanzte Loecher, harte Kanten */
.streifen {
  position: relative;
  display: block;
  background: var(--nacht-2);
  border-block: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 0 rgba(239, 234, 225, 0.06);
}
.streifen::before,
.streifen::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(
    circle 3.5px,
    var(--nacht) 3.2px,
    transparent 3.9px
  );
}

/* Kantenbeschriftung wie Filmrand-Print */
.kantenprint {
  position: absolute;
  z-index: 1;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 234, 225, 0.34);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   HERO — dunkle Buehne, ein grosses Bild entwickelt sich
   ============================================================ */
.held {
  padding-top: calc(var(--takt) + 30px);
  min-height: 100svh;
  display: grid;
  align-items: center;
}
.held .buehne {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.held-text {
  display: grid;
  gap: 26px;
  justify-items: start;
}
.held-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--hell-soft);
}
.held-aktion {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.held-frame {
  position: relative;
  width: min(400px, 84vw);
  margin-inline: auto;
}
.held-frame .streifen {
  padding: 26px 0;
}
.held-frame .streifen::before,
.held-frame .streifen::after {
  left: 0;
  right: 0;
  height: 26px;
  background-size: 20px 100%;
  background-position: center;
  background-repeat: repeat-x;
}
.held-frame .streifen::before {
  top: 0;
}
.held-frame .streifen::after {
  bottom: 0;
}
.held-frame .frame {
  aspect-ratio: 2 / 3;
}
.held-frame .kantenprint {
  left: 10px;
  bottom: 6px;
}
.held-frame figcaption {
  margin-top: 16px;
  text-align: center;
}

/* Einmalige, ruhige Entwicklung beim Eintreffen */
.anim .held-frame .neg {
  display: block;
  position: absolute;
  inset: 0;
  filter: invert(0.86) hue-rotate(165deg) saturate(0.38) brightness(0.5)
    contrast(0.9);
}
.anim .held-frame .pos {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-mask-image: radial-gradient(circle, #000 0 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0 55%, transparent 72%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center 42%;
  mask-position: center 42%;
  -webkit-mask-size: 0% 0%;
  mask-size: 0% 0%;
  animation: entwickeln 2.6s cubic-bezier(0.3, 0.6, 0.2, 1) 0.5s forwards;
}
@keyframes entwickeln {
  to {
    -webkit-mask-size: 340% 340%;
    mask-size: 340% 340%;
  }
}

/* ============================================================
   ZEILE + WERT — Papierstimme
   ============================================================ */
.zeile {
  padding-block: calc(var(--takt) * 0.72);
}
.zeile .buehne {
  display: grid;
  gap: 22px;
  max-width: min(760px, calc(100vw - 2 * var(--rand)));
}

.wert .buehne {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
}
.wert-kopf {
  display: grid;
  gap: 20px;
  max-width: 62ch;
}
.wert-punkte {
  display: grid;
  border-top: 1px solid var(--haarlinie);
}
.wert-punkt {
  display: grid;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--haarlinie);
}
.wert-punkt h3 {
  font-size: 0.78rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.wert-punkt p {
  max-width: 56ch;
  color: var(--tinte-soft);
}

/* ============================================================
   DAS ARCHIV — haengende Negativstreifen (Signature)
   ============================================================ */
.archiv-kopf {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.archiv-kopf .fliess {
  max-width: 58ch;
  color: var(--hell-soft);
}
.archiv-hinweis {
  font-size: 0.9rem;
  color: var(--hell-soft);
}

.archiv-leine {
  height: 1px;
  background: var(--linie-hell);
  margin-bottom: 34px;
}

.tage {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}
.tag-einheit {
  display: contents;
}

.tab-h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  min-width: 0;
}
.tab {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.tab-etikett {
  position: relative;
  display: inline-block;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 10px 6px;
  margin-bottom: 14px;
}
.tab-etikett::before {
  /* Aufhaengung an der Leine */
  content: "";
  position: absolute;
  top: -35px;
  left: 16px;
  width: 1px;
  height: 35px;
  background: var(--linie-hell);
}
.tab:hover .tab-etikett,
.tab:focus-visible .tab-etikett {
  background: var(--sand);
}
.offen .tab-etikett {
  background: var(--sand);
}

/* Basis (unter 1024px): liegender Streifen, drei Frames nebeneinander,
   Perforation oben und unten — wie ein Negativstreifen auf dem Leuchttisch */
.tab .streifen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 26px 14px;
}
.tab .streifen::before,
.tab .streifen::after {
  left: 0;
  right: 0;
  height: 26px;
  background-size: 20px 100%;
  background-position: center;
  background-repeat: repeat-x;
}
.tab .streifen::before {
  top: 0;
}
.tab .streifen::after {
  bottom: 0;
}
.tab .kantenprint {
  left: 16px;
  bottom: 7px;
}
.tab .frame {
  aspect-ratio: 2 / 3;
}

/* Projektion: der Film des Tages uebernimmt */
.projektion {
  display: grid;
  grid-template-rows: 1fr;
}
.projektion-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 36px);
}
.film {
  margin: 0;
  position: relative;
}
.film-flaeche {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--linie-hell);
}
.film-flaeche img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}
.film-flaeche img.aktiv {
  opacity: 1;
}
.film-flaeche img:first-child {
  opacity: 1; /* Poster-Standbild immer da, kein leerer Rahmen */
}
.film-flaeche:has(img.aktiv) img:first-child:not(.aktiv) {
  opacity: 0;
}
.film figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 0;
  font-size: 0.8rem;
  color: var(--hell-soft);
}
.projektion-text {
  display: grid;
  gap: 10px;
  max-width: 60ch;
}
.projektion-text .leise {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}
.projektion-text .konkret {
  color: var(--hell-soft);
  font-size: 0.95rem;
}
.projektion-schliessen {
  justify-self: start;
  background: none;
  border: 1px solid var(--linie-hell);
  color: var(--hell);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}
.projektion-schliessen:hover {
  border-color: var(--hell);
}

/* Mit JS: alles beginnt geschlossen, Tage oeffnen einzeln */
.js .archiv--aktiv .projektion {
  grid-template-rows: 0fr;
  visibility: hidden;
}
.js .archiv--aktiv .tag-einheit.offen .projektion {
  grid-template-rows: 1fr;
  visibility: visible;
}
.js .archiv--aktiv .hat-offen .tag-einheit:not(.offen) .tab {
  opacity: 0.3;
}

@media (min-width: 1024px) {
  .tage {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tab-h {
    grid-row: 1;
  }
  .projektion {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  /* Haengender Streifen: Frames untereinander, Perforation links/rechts */
  .tab .streifen {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px max(14%, 24px);
  }
  .tab .streifen::before,
  .tab .streifen::after {
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    width: 24px;
    height: auto;
    background-size: 100% 20px;
    background-position: center;
    background-repeat: repeat-y;
  }
  .tab .streifen::before {
    left: 0;
  }
  .tab .streifen::after {
    right: 0;
  }
  .tab .kantenprint {
    writing-mode: vertical-rl;
    left: auto;
    right: 7px;
    top: 16px;
    bottom: auto;
  }
  .projektion-inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
  }
  .projektion-text {
    padding-bottom: 34px;
  }
  .projektion-schliessen {
    grid-column: 2;
    justify-self: start;
  }
}

/* ============================================================
   WEITER — drei ehrliche Schritte, nur Haarlinien
   ============================================================ */
.weiter .buehne {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}
.weiter-schritte {
  display: grid;
  gap: 28px;
  counter-reset: schritt;
  border-top: 1px solid var(--haarlinie);
}
.weiter-schritt {
  display: grid;
  gap: 8px;
  padding-top: 22px;
}
.weiter-schritt h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
}
.weiter-schritt h3::before {
  counter-increment: schritt;
  content: counter(schritt, decimal-leading-zero);
  font-family: var(--grotesk);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--tinte-soft);
  vertical-align: 0.4em;
  margin-right: 10px;
}
.weiter-schritt p {
  color: var(--tinte-soft);
  max-width: 46ch;
}

/* ============================================================
   DIE REISE — vom Portrait ins Makro, Scroll als Filmtransport
   ============================================================ */
.reise {
  padding-block: 0;
}
.reise-kopf {
  padding-top: var(--takt);
  display: grid;
  gap: 16px;
}
.reise-kopf .leise {
  max-width: 26ch;
}

/* Fallback (Basis): stiller Kontaktbogen */
.reise-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
  padding-block: clamp(40px, 6vw, 72px) var(--takt);
  align-items: start;
}

/* Live (nur JS + Motion): Sticky-Zoomreise */
.reise-strecke {
  display: none;
}
.anim .reise--live .reise-strecke {
  display: block;
  height: 380vh;
}
.anim .reise--live .reise-raster {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.reise-halter {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}
.reise-ebene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: transform, opacity;
}
.reise-ebene img {
  max-width: min(72vw, 880px);
  max-height: 74vh;
  width: auto;
  height: auto;
  border: 1px solid var(--linie-hell);
}
.reise-wort {
  position: absolute;
  left: var(--rand);
  bottom: 30px;
  display: grid;
  gap: 2px;
}
.reise-wort .label {
  color: var(--hell-soft);
}

/* ============================================================
   ARCHIVBOX — die Klammer. Deckel schliesst, Frage auf dem Etikett.
   ============================================================ */
.album {
  padding-block: 0;
  overflow-x: clip;
}
.album-halter {
  display: grid;
  place-items: center;
  padding-block: var(--takt);
}
.anim .album--live .album-strecke {
  height: 220vh;
}
.anim .album--live .album-halter {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
}
.album-szene {
  display: grid;
  justify-items: center;
  gap: 36px;
  width: 100%;
}
.album-box {
  position: relative;
  width: min(460px, 86vw);
  perspective: 1600px;
}
.box-innen {
  /* Karton-Innenkante, sichtbar solange der Deckel offen steht */
  height: 26px;
  background: var(--nacht-3);
  border: 1px solid rgba(239, 234, 225, 0.12);
  border-bottom: 0;
}
.box-korpus {
  position: relative;
  background: var(--nacht-2);
  border: 1px solid rgba(239, 234, 225, 0.14);
  padding: clamp(26px, 6vw, 44px);
  display: grid;
  place-items: center;
  min-height: clamp(240px, 40vw, 320px);
}
.box-korpus::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(239, 234, 225, 0.08);
  pointer-events: none;
}
.box-deckel {
  position: absolute;
  left: -6px;
  right: -6px;
  top: -14px;
  height: 30px;
  background: var(--nacht-3);
  border: 1px solid rgba(239, 234, 225, 0.16);
  transform-origin: 50% 100%;
  transform: rotateX(var(--deckel, 0deg));
  will-change: transform;
}
.box-etikett {
  position: relative;
  background: var(--blattweiss);
  color: var(--tinte);
  padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 32px);
  max-width: 92%;
  text-align: center;
  display: grid;
  gap: 14px;
  transform: rotate(-0.6deg);
  border: 1px solid var(--haarlinie);
}
.box-etikett .frage {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
.box-etikett .praege {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tinte-soft);
}

/* ============================================================
   ANFRAGE — Papier, Haarlinie statt Sandflaeche
   ============================================================ */
.anfrage .buehne {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}
.anfrage-kopf {
  display: grid;
  gap: 18px;
  max-width: 60ch;
}
.anfrage-block {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--haarlinie-sand);
}
.datum-feld {
  display: grid;
  gap: 8px;
}
.datum-feld label {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinte-soft);
}
.datum-feld input {
  font-family: var(--grotesk);
  font-size: 1rem;
  color: var(--tinte);
  background: var(--blattweiss);
  border: 1px solid var(--haarlinie-sand);
  padding: 12px 14px;
  min-height: 44px;
  min-width: min(280px, 70vw);
}
.kontakt-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.95rem;
}
.kontakt-zeile a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   FUSS + RECHTSSEITEN
   ============================================================ */
.fuss {
  border-top: 1px solid var(--haarlinie);
  padding-block: 40px 34px;
  font-size: 0.88rem;
  color: var(--tinte-soft);
  background: var(--papier);
}
.fuss .buehne {
  display: grid;
  gap: 20px;
}
.fuss-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.fuss a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.prototyp-vermerk {
  border: 1px solid var(--haarlinie);
  padding: 12px 16px;
  max-width: 74ch;
  font-size: 0.82rem;
  line-height: 1.6;
}

.recht {
  padding-top: calc(var(--takt) + 20px);
  background: var(--papier);
}
.recht .buehne {
  max-width: min(760px, calc(100vw - 2 * var(--rand)));
  display: grid;
  gap: 28px;
}
.recht h1 {
  font-family: var(--grotesk);
  font-weight: 320;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 5vw, 3rem);
}
.recht h2 {
  font-family: var(--grotesk);
  font-weight: 460;
  letter-spacing: -0.025em;
  font-size: 1.35rem;
  margin-top: 18px;
}
.recht p,
.recht address,
.recht li {
  color: var(--tinte-soft);
  font-style: normal;
}
.recht ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
body:has(.recht) {
  background: var(--papier);
}

/* ============================================================
   Layout-Stufen
   ============================================================ */
@media (min-width: 768px) {
  .held .buehne {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .wert-punkte {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--haarlinie);
  }
  .wert-punkt {
    border-bottom: 0;
    padding: 32px 28px 32px 0;
  }
  .wert-punkt + .wert-punkt {
    border-left: 1px solid var(--haarlinie);
    padding-left: 28px;
  }
  .weiter-schritte {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .reise-raster {
    grid-template-columns: repeat(4, 1fr);
  }
  .anfrage .buehne {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }
  .fuss-reihe {
    justify-content: space-between;
  }
}

/* ============================================================
   Motion: nur additiv unter html.anim
   ============================================================ */
.anim .projektion {
  transition: grid-template-rows 0.9s cubic-bezier(0.22, 0.8, 0.26, 1),
    visibility 0s linear 0s;
}
.anim .tag-einheit:not(.offen) .projektion {
  /* Schliessen geschieht sofort — sonst ueberlagern sich beim Tageswechsel
     zwei Panels in derselben Grid-Zelle. Nur das Oeffnen gleitet. */
  transition: none;
}
.anim .tab {
  transition: opacity 0.7s ease;
}
.anim .film-flaeche img {
  transition: opacity 1.4s ease;
}
.anim .reise-ebene {
  transition: opacity 0.35s linear;
}
.anim .box-deckel {
  transition: transform 0.1s linear;
}
.anim .kopf {
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.anim .sanft {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.8, 0.26, 1);
}
.anim .sanft.da {
  opacity: 1;
  transform: none;
}

/* QA-Modus (?qa=…): Strecken stauchen fuer Headless-Screenshots */
html.qa-modus .reise--live .reise-strecke {
  height: 100vh;
}
html.qa-modus .album--live .album-strecke {
  height: 100vh;
}

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