/* Silberkorn: die Seite ist der Hintergrundkarton im Studio. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-vf.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@property --k { syntax: "<color>"; inherits: true; initial-value: #F4F3EF; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #141414; }

:root {
  --papier: #F4F3EF;
  --schrift: #141414;
  --dunkel: #1C1D20;
  --signal: #FF3D17;

  /* Regler: Diese Werte darf man verschieben (Phase 6). */
  --rand: clamp(16px, 3.05vw, 44px);
  --schriftzug-unten: 3.2svh;
  --hero-bild-hoehe: 66svh;
  --hero-bild-x: 64%;
  --kehle-hoehe: 15svh;
  --strecke-abstand: 18svh;
  --uebergang: 2000ms;

  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Farbwechsel des Kartons: läuft sanft an und aus, damit er nicht springt. */
  --ease-karton: cubic-bezier(.37, 0, .25, 1);
  /* Die Schrift gleitet nicht mit, sie springt in der Mitte um. Sonst wären Schrift und Grund
     während des Wechsels zugleich mittelgrau (kein Kontrast). */
  transition: --k var(--uebergang) var(--ease-karton), --ink 0s linear calc(var(--uebergang) / 2);
  scrollbar-color: color-mix(in oklab, var(--ink) 35%, transparent) transparent;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--k);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 2px; }
::selection { background: var(--signal); color: var(--schrift); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
input, button { caret-color: var(--signal); }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sprung {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--ink); color: var(--k); padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.sprung:focus { left: var(--rand); }

/* ------------------------------------------------------------- Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 8px 24px;
  padding: 20px var(--rand);
  color: var(--ink);
  font-size: 15px; font-weight: 600; font-stretch: 104%;
  transition: translate .6s var(--ease), background-color .4s;
}
.kopf--fest { background: color-mix(in oklab, var(--k) 94%, transparent); }
.kopf--weg { translate: 0 -110%; }
.credit { margin: 0; }
.kopf-logo { display: block; color: var(--ink); }
.logo-klein { display: block; width: clamp(300px, 30vw, 540px); height: auto; }
.hauptmenue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.hauptmenue a { text-decoration: none; display: inline-block; padding: 6px 0; }
.hauptmenue a:hover, .hauptmenue a[aria-current] { text-decoration: underline; }
.mit-sub { position: relative; }
.hauptmenue .sub {
  position: absolute; top: 100%; left: -16px; display: grid; gap: 0; min-width: 13.5rem;
  padding: 10px 16px 12px; background: var(--k);
  box-shadow: 0 18px 30px -18px rgb(0 0 0 / .45);
  opacity: 0; visibility: hidden; translate: 0 -6px;
  transition: opacity .25s, translate .35s var(--ease), visibility 0s .25s;
}
.mit-sub:hover .sub, .mit-sub:focus-within .sub {
  opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s, translate .35s var(--ease);
}

/* ------------------------------------------------------------- Das Set */
.set {
  position: relative; isolation: isolate;
  min-height: 100svh;
  container-type: inline-size;
  overflow: clip;
  --logo-h: calc((100cqw - 2 * var(--rand)) * .1153);
  --boden: calc(var(--schriftzug-unten) + var(--logo-h) + 1.4svh);
}
.set:not(.set--start) { --logo-h: calc((100cqw - 2 * var(--rand)) * var(--fit) * .73); }

/* Die Hohlkehle: helle Wand, dunklere Rundung, heller Boden. Licht von oben rechts. */
.kehle {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to right, rgb(0 0 0 / .10), transparent 55%),
    radial-gradient(ellipse 58% 52% at 68% 26%, color-mix(in oklab, var(--k), #fff 13%), transparent 74%),
    linear-gradient(to top,
      color-mix(in oklab, var(--k), #fff 11%) 0,
      color-mix(in oklab, var(--k), #fff 5%) calc(var(--boden) * .55),
      var(--k) calc(var(--boden) - 2svh),
      color-mix(in oklab, var(--k), #000 9%) calc(var(--boden) + 2svh),
      color-mix(in oklab, var(--k), #000 17%) calc(var(--boden) + 4.5svh),
      color-mix(in oklab, var(--k), #000 7%) calc(var(--boden) + 10svh),
      transparent calc(var(--boden) + var(--kehle-hoehe) + 4svh));
}

.set-bild {
  position: absolute; z-index: 1; margin: 0;
  left: var(--hero-bild-x); bottom: var(--boden); translate: -50% 0;
  aspect-ratio: var(--ar);
  height: min(var(--hero-bild-hoehe), 100svh - var(--boden) - 96px, (100cqw - 2 * var(--rand)) / (var(--ar)));
  box-shadow: 0 2.6svh 4svh -2svh rgb(0 0 0 / .42);
}
/* Schlagschatten auf dem Boden: das Bild steht im Set. */
.set-bild::after {
  content: ""; position: absolute; z-index: -1; left: -9%; right: -14%; bottom: -3.4svh; height: 6.4svh;
  background: radial-gradient(closest-side, rgb(0 0 0 / .36), rgb(0 0 0 / .12) 60%, transparent);
  translate: 3% 0;
}
.set-bild img, .set-link, .set-bild .oeffnen { width: 100%; height: 100%; }
.set-bild img { object-fit: cover; }
.set-link { display: block; }

.schriftzug {
  position: absolute; z-index: 2; margin: 0; line-height: 0;
  left: var(--rand); right: var(--rand); bottom: var(--schriftzug-unten);
  color: var(--ink);
}
.logo-gross { display: block; width: 100%; height: auto; filter: drop-shadow(0 1.1svh .9svh rgb(0 0 0 / .16)); }

.boden-titel {
  position: absolute; z-index: 2; margin: 0;
  left: var(--rand); right: var(--rand); bottom: var(--schriftzug-unten);
  font-size: calc((100cqw - 2 * var(--rand)) * var(--fit));
  font-weight: 800; font-stretch: 112%; line-height: .73;
  text-transform: uppercase; white-space: nowrap; letter-spacing: 0;
  text-shadow: 0 1.1svh 1.4svh rgb(0 0 0 / .14);
}

/* Rollenleiste: die Galerien als hängende Kartonrollen. */
.rollenleiste {
  position: absolute; z-index: 3; left: var(--rand); top: max(120px, 17svh);
}
.rollenleiste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rollenleiste a {
  display: flex; align-items: flex-start; gap: 16px; padding: 8px 0;
  text-decoration: none; font-size: 15px; font-weight: 600; font-stretch: 104%;
}
.rolle {
  position: relative; flex: none; width: 22px; height: 40px; margin-top: 6px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--rk), #000 10%), var(--rk) 30%);
  box-shadow: 0 8px 12px -8px rgb(0 0 0 / .5), 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent);
  transition: height .6s var(--ease);
}
.rolle::before {
  content: ""; position: absolute; left: -4px; right: -4px; top: -6px; height: 8px; border-radius: 4px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--rk), #fff 30%), var(--rk) 45%, color-mix(in oklab, var(--rk), #000 35%));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent);
}
.rollenleiste a:hover .rolle, .rollenleiste a:focus-visible .rolle { height: 58px; }
.rollenleiste a:hover span + *, .rollenleiste a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- Lose Strecke (Startseite) */
.lose {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--rand); row-gap: 14svh;
  padding: 20svh var(--rand) 12svh;
}
.lose-bild {
  grid-column: var(--col) / span var(--span);
  margin: calc(var(--off) * 1svh) 0 0;
}
.lose-bild a { display: block; aspect-ratio: var(--ar); box-shadow: 0 2.4svh 3.6svh -2svh rgb(0 0 0 / .4); }
.lose-bild img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.lose-bild a { overflow: clip; }
.lose-bild a:hover img { scale: 1.025; }
.lose-bild figcaption, .bahn figcaption {
  margin-top: 14px; font-size: 14px; font-weight: 600; font-stretch: 104%;
}

/* ------------------------------------------------------------- Rollenwand */
.rollenwand { container-type: inline-size; padding: 16svh var(--rand) 14svh; }
.wand-titel {
  margin: 0 0 9svh; font-size: clamp(3rem, 12cqw, 11rem);
  font-weight: 800; font-stretch: 112%; line-height: .8; text-transform: uppercase; letter-spacing: -.01em;
  text-wrap: balance;
}
.rollen-gross {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--rand);
}
.rolle-bahn {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: clamp(400px, 66svh, 760px); margin-top: 18px; padding: 0 14px 22px;
  color: var(--rink); text-decoration: none;
  background:
    radial-gradient(ellipse 70% 40% at 55% 28%, color-mix(in oklab, var(--rk), #fff 9%), transparent 75%),
    linear-gradient(to top,
      color-mix(in oklab, var(--rk), #fff 4%) 0,
      var(--rk) 13%,
      color-mix(in oklab, var(--rk), #000 15%) 22%,
      color-mix(in oklab, var(--rk), #000 4%) 31%,
      var(--rk) 42%);
  box-shadow: 0 30px 40px -34px rgb(0 0 0 / .55);
}
.rolle-kern {
  position: absolute; left: -10px; right: -10px; top: -18px; height: 22px; border-radius: 11px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--rk), #fff 32%), var(--rk) 42%, color-mix(in oklab, var(--rk), #000 40%));
  box-shadow: 0 6px 10px -4px rgb(0 0 0 / .35);
}
.rolle-bild {
  position: absolute; left: 50%; bottom: 25%; translate: -50% 0; width: 62%;
  aspect-ratio: var(--ar);
  box-shadow: 0 2svh 2.6svh -1.6svh rgb(0 0 0 / .45);
  transition: translate .8s var(--ease);
}
.rolle-bild img { width: 100%; height: 100%; object-fit: cover; }
.rolle-name {
  position: relative; text-align: center;
  font-size: clamp(1.05rem, 2.2cqw, 2.1rem); font-weight: 800; font-stretch: 112%;
  line-height: .95; text-transform: uppercase; text-wrap: balance;
}
.rolle-bahn:hover .rolle-bild, .rolle-bahn:focus-visible .rolle-bild { translate: -50% -2svh; }
.rolle-bahn:hover .rolle-name { text-decoration: underline; text-decoration-thickness: 3px; }

/* ------------------------------------------------------------- Orte & Maschinen */
/* Orte & Maschinen: zwei Kehlen in der Breite der fünf Menschen-Kehlen, mittig. */
/* Nur ab Tablet einzeilig; auf dem Handy gleich groß wie „Menschen“, dafür zweizeilig. */
@media (min-width: 761px) { .wand-titel--fit { font-size: calc(100cqw * var(--fit)); white-space: nowrap; } }
.rollen-gross--zwei { grid-template-columns: repeat(2, calc((100% - 4 * var(--rand)) / 5)); justify-content: center; }

/* ------------------------------------------------------------- Galerie-Strecke */
.strecke {
  container-type: inline-size;
  display: flex; flex-direction: column; gap: var(--strecke-abstand);
  padding: 16svh var(--rand) 18svh;
}
.bahn {
  margin: 0; aspect-ratio: var(--ar);
  height: min(86svh, 100cqw / (var(--ar)));
}
.bahn--quer { height: min(82svh, 84cqw / (var(--ar))); }
.bahn:nth-child(3n+1) { align-self: flex-start; margin-left: 6cqw; }
.bahn:nth-child(3n+2) { align-self: flex-end; margin-right: 3cqw; }
.bahn:nth-child(3n) { align-self: center; }
.oeffnen {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; box-shadow: 0 2.6svh 4svh -2.2svh rgb(0 0 0 / .45);
}
.oeffnen img { width: 100%; height: 100%; object-fit: cover; }
.set-bild .oeffnen { box-shadow: none; }

/* ------------------------------------------------------------- Hinweis und Textseiten */
.hinweis, .text-inhalt {
  position: absolute; z-index: 3; left: var(--rand); top: max(130px, 22svh);
  max-width: 36rem; padding-right: var(--rand);
}
.hinweis p, .text-inhalt p, .text-inhalt h1 { margin: 0 0 1em; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.4; font-weight: 500; }
.text-inhalt .gross { margin: 0 0 .5em; font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; font-stretch: 112%; line-height: 1.02; text-wrap: balance; }
.hinweis-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }
.knopf {
  display: inline-flex; align-items: center; min-height: 52px; padding: 14px 22px;
  border: 0; background: var(--ink); color: var(--k);
  font: inherit; font-size: 16px; font-weight: 700; font-stretch: 104%; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 20px -14px rgb(0 0 0 / .6);
  transition: translate .4s var(--ease), box-shadow .4s var(--ease);
}
.knopf:hover { translate: 0 -2px; box-shadow: 0 20px 24px -14px rgb(0 0 0 / .6); }
.knopf--leise { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.knopf--leise:hover { box-shadow: inset 0 0 0 2px currentColor; background: color-mix(in oklab, var(--ink) 12%, transparent); }
.ab18-offen .hinweis { display: none; }

/* Lange Textseiten (Impressum, Datenschutz): Text fließt, Titel steht darunter auf dem Boden. */
.set--lang { min-height: 100svh; padding: max(140px, 18svh) var(--rand) calc(var(--logo-h) + var(--schriftzug-unten) + 14svh); }
.set--lang { --logo-h: calc(100cqw * var(--fit) * .73); }
.set--lang .boden-titel { font-size: calc(100cqw * var(--fit)); }
.set--lang .text-inhalt { position: static; max-width: 42rem; padding: 0; }
.set--lang .text-inhalt h2 { margin: 2.2em 0 .5em; font-size: 1.15rem; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; }
.set--lang .text-inhalt h2:first-child { margin-top: 0; }
.set--lang .text-inhalt p { font-size: 1.0625rem; line-height: 1.6; font-weight: 450; max-width: 68ch; }
.luecke { outline: 2px dashed currentColor; outline-offset: 6px; font-weight: 700 !important; }

/* ------------------------------------------------------------- Weiter */
.weiter { container-type: inline-size; padding: 14svh var(--rand) 10svh; }
.weiter a { display: block; text-decoration: none; }
.weiter-titel {
  display: block; margin: 0;
  font-size: calc(100cqw * var(--fit)); font-weight: 800; font-stretch: 112%;
  line-height: .78; text-transform: uppercase; white-space: nowrap;
  transition: translate .8s var(--ease);
}
.weiter a:hover .weiter-titel { translate: 1.2cqw 0; }

/* ------------------------------------------------------------- Fuß */
.fuss {
  background: var(--dunkel); color: var(--papier);
  display: grid; grid-template-columns: 1fr auto; gap: 7svh var(--rand); align-items: end;
  padding: 16svh var(--rand) 40px;
  font-size: 15px; font-weight: 500;
}
.fuss-logo { grid-column: 1 / -1; display: block; color: var(--papier); }
.logo-fuss { display: block; width: 100%; height: auto; }
.fuss-text p { margin: 0; }
.fuss-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 600; }
.fuss-links a { text-decoration: none; }
.fuss-links a:hover { text-decoration: underline; }
.fuss ::selection { color: var(--schrift); }

/* ------------------------------------------------------------- Vollbild */
.vollbild {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--lk, var(--dunkel)); color: var(--link, var(--papier));
  transition: background-color .7s var(--ease), color .7s var(--ease);
  touch-action: pan-y;
}
.vollbild[hidden] { display: none; }
.vollbild-bild { margin: 0; display: flex; flex-direction: column; align-items: center; }
.vollbild-bild img {
  width: auto; height: auto;
  max-width: calc(100vw - 2 * var(--rand) - 140px); max-height: calc(100svh - 150px);
  box-shadow: 0 3svh 5svh -2.4svh rgb(0 0 0 / .5);
}
.vollbild-bild figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 1.5em; }
.vollbild-zahl {
  position: absolute; left: var(--rand); bottom: 18px; margin: 0;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.vollbild-knopf {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600;
}
.vollbild-knopf svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.vollbild-zu { top: 14px; right: calc(var(--rand) - 10px); }
.vollbild-zurueck, .vollbild-vor { top: 50%; translate: 0 -50%; }
.vollbild-zurueck { left: calc(var(--rand) - 12px); }
.vollbild-vor { right: calc(var(--rand) - 12px); }
.vollbild-zurueck svg, .vollbild-vor svg { width: 40px; height: 40px; stroke-width: 1.6; }
.vollbild-knopf:hover svg { scale: 1.1; }
html.gesperrt { overflow: hidden; }

/* ------------------------------------------------------------- Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .set-bild { animation: einfahren 1.6s var(--ease) both; }
  .schriftzug, .boden-titel { animation: aufstellen 1.4s var(--ease) .1s both; }
  html.js .anim { opacity: 0; translate: 0 5svh; }
  html.js .anim.da { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1.4s var(--ease); }
}
@keyframes einfahren { from { translate: -50% 4svh; } }
@keyframes aufstellen { from { translate: 0 1.5svh; } }
@media (prefers-reduced-motion: reduce) {
  :root { --uebergang: 0ms; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- Feinjustierung der Person (Regler-Panel, 2026-10-13) */
@media (min-width: 761px) {
  :root { --hero-bild-x: 71%; --schriftzug-unten: 2.2svh; --kehle-hoehe: 25svh; }
}

/* ------------------------------------------------------------- Handy */
@media (max-width: 760px) {
  .kopf { flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; font-size: 14px; }
  .credit { order: 2; width: 100%; font-size: 13px; }
  .hauptmenue ul { gap: 18px; }
  .hauptmenue .sub { display: none; }
  .logo-klein { width: 260px; }
  .kopf:has(.kopf-logo) { flex-wrap: wrap; }
  .kopf:has(.kopf-logo) .hauptmenue { width: 100%; }

  :root { --hero-bild-x: 50%; --schriftzug-unten: 4svh; --strecke-abstand: 10svh; }

  /* Handy: Bild direkt unter Kopf und Rollen, Schriftzug darunter auf dem Boden. */
  .set--start, .set--galerie {
    --oben: 112px; /* Platz für das größere Logo im Kopf */
    --bild-h: min(calc(100svh - var(--oben) - var(--logo-h) - 11svh), calc((100cqw - 2 * var(--rand)) / (var(--ar-m))));
    --boden: calc(100svh - var(--oben) - var(--bild-h));
  }
  .set--start { --oben: 236px; } /* Platz für die zweizeilige Rollenleiste */
  .set--start .set-bild, .set--galerie .set-bild { top: var(--oben); bottom: auto; height: var(--bild-h); aspect-ratio: var(--ar-m); }
  .set--start .schriftzug, .set--galerie .boden-titel { bottom: calc(var(--boden) - var(--logo-h) - 2.2svh); }

  .rollenleiste { top: 84px; right: 0; }
  .rollenleiste ul {
    display: flex; flex-wrap: wrap; gap: 4px 18px; padding-right: var(--rand);
  }
  .rollenleiste ul::-webkit-scrollbar { display: none; }
  .rollenleiste li { scroll-snap-align: start; }
  .rollenleiste a { flex-direction: column; gap: 7px; padding: 6px 0 4px; font-size: 12px; white-space: nowrap; }
  .rolle { width: 16px; height: 28px; margin: 0 0 0 4px; }
  .rollenleiste a:hover .rolle, .rollenleiste a:focus-visible .rolle { height: 34px; }

  .lose { grid-template-columns: 1fr; row-gap: 9svh; padding-top: 12svh; }
  .lose-bild { grid-column: 1; width: 80%; margin-top: 0; }
  .lose-bild:nth-child(even) { justify-self: end; }

  .rollen-gross { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  /* Einzelne letzte Kehle (Fetish) mittig statt allein links */
  .rollen-gross > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--rand) / 2); }
  .rolle-bahn { height: 52svh; min-height: 300px; padding-bottom: 16px; }
  .rolle-name { font-size: 1rem; }


  .bahn, .bahn--quer { height: auto; width: 100%; margin: 0 !important; align-self: stretch !important; }
  .bahn:not(.bahn--quer) { width: 88%; }
  .bahn:nth-child(even):not(.bahn--quer) { align-self: flex-end !important; }

  .fuss { grid-template-columns: 1fr; gap: 5svh; padding-top: 12svh; }
  .vollbild-bild img { max-width: calc(100vw - 32px); max-height: calc(100svh - 170px); }
  .vollbild-zurueck, .vollbild-vor { top: auto; bottom: 6px; translate: none; }
  .vollbild-zurueck { left: auto; right: 64px; }
  .vollbild-zahl { bottom: 22px; }
}
