/* Tuchfühlung. Mobile zuerst, Desktop ab 900px. Konzept: DESIGN.md */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --leinwand: #e6e7e2;   /* Saallicht an: mattweisse Bildwand */
  --licht: #f4f3ee;      /* Projektorweiss, Text im Dunkeln */
  --beamer: #1b29ff;     /* das Blau, das ein Projektor ohne Signal zeigt */
  --h: 1;                /* Saallicht 1 = hell, 0 = dunkel (setzt main.js) */
  --t: 1;
  --bg: color-mix(in oklab, var(--leinwand) calc(var(--h) * 100%), #000);
  --fg: color-mix(in oklab, #000 calc(var(--t) * 100%), var(--licht));
  --fg2: color-mix(in oklab, #55574f calc(var(--t) * 100%), #a4a59f);
  --hair: color-mix(in oklab, var(--fg) 24%, transparent);
  --pad: 20px;
  --top: 58px;
  --cols: repeat(12, minmax(0, 1fr));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  background: var(--bg); color: var(--fg);
  font: 420 17px/1.5 Archivo, "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.menu-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--beamer); color: #fff; }
h2, h3 { font-weight: 760; }

#stage { position: fixed; top: 0; left: 0; width: 100vw; height: 100lvh; z-index: 1; pointer-events: none; display: block; }
main > section:not(.hero):not(.manifest), .foot { position: relative; z-index: 2; }
.slot { pointer-events: none; }
.no-gl .slot { background: #111 center / cover no-repeat; }
.no-gl .slot--hero { background-image: url(../assets/poster/tanz-p.jpg); }
.no-gl .slot--probe { background-image: url(../assets/poster/qualle-p.jpg); }
.no-gl .slot--signal { background: var(--beamer); }

/* Elastische Zeilen: Breite kommt aus js/elastic.js */
[data-elastic] { font-weight: 780; line-height: 0.94; letter-spacing: -0.018em; contain: inline-size; min-width: 0; }
[data-elastic]:not(.is-fit) { visibility: hidden; }
.el { display: block; width: max-content; white-space: nowrap; }

/* ---------- Kopf ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--top); padding: 0 var(--pad);
  display: flex; align-items: center; gap: 22px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand { font-weight: 780; font-stretch: 112%; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.top .top__nav, .top .top__cta { display: none; }
.top__nav { gap: 26px; font-size: 15.5px; font-weight: 540; }
.top__nav a { text-decoration: none; padding: 8px 0; }
.top__nav a:hover { text-decoration: underline; }
.top__menu {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--fg); background: none; border: 0;
  height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fg); cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--beamer); color: #fff; font: inherit; font-weight: 640; font-stretch: 104%; text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease;
}
.btn:active { transform: scale(0.96); }
.btn--s { height: 38px; padding: 0 17px; font-size: 15px; }

.menu {
  position: fixed; inset: 0; z-index: 9; background: var(--bg); padding: calc(var(--top) + 20px) var(--pad) 28px;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px;
}
.menu[hidden] { display: none; }
.menu a { display: block; text-decoration: none; font-size: clamp(44px, 14vw, 96px); }

/* ---------- Vorhang ---------- */
.hero {
  min-height: 100svh; padding: calc(var(--top) + 12px) var(--pad) 22px;
  display: flex; flex-direction: column; touch-action: pan-y;
}
.slot--hero { height: 53svh; margin: 0 6px; }
.wordmark { position: relative; z-index: 0; margin-top: 0.5svh; font-size: clamp(64px, 17.5vw, 250px); font-weight: 800; line-height: 0.86; letter-spacing: -0.022em; }
.hero__meta { position: relative; z-index: 2; margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: end; }
.hero__lead { grid-column: 1 / -1; font-size: 20px; font-weight: 580; line-height: 1.22; }
.hero__hint, .hero__now { color: var(--fg2); font-size: 15px; }
.hero__hint { display: flex; align-items: center; gap: 9px; }
.hero__now { text-align: right; }

/* ---------- Manifest ---------- */
.manifest { min-height: 112svh; padding: 18svh var(--pad) 16svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 34px; }
.manifest h2, .work h2, .studio h2, .contact h2 { font-size: clamp(42px, 11.6vw, 132px); }
.manifest { position: relative; touch-action: pan-y; }
.manifest__stage { position: relative; min-width: 0; }
.manifest h2 { position: relative; z-index: 0; }
.slot--veil { position: absolute; right: -4px; top: -21svh; width: 52%; height: calc(100% + 25svh); }
.manifest__text { position: relative; z-index: 2; display: grid; gap: 1em; max-width: 34em; font-size: 19px; }

/* ---------- Probebühne ---------- */
.probe { min-height: 100svh; padding: calc(var(--top) + 6px) var(--pad) 22px; display: flex; flex-direction: column; gap: 16px; touch-action: pan-y; }
.slot--probe { height: 39svh; margin: 0 6px; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; min-width: 0; }
.panel h2 { font-size: clamp(34px, 9.4vw, 92px); }
.panel__lead { color: var(--fg2); font-size: 15.5px; line-height: 1.4; max-width: 32em; }
.opt { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; }
.opt__label { font-size: 14px; color: var(--fg2); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--pad) 4px 2px; margin-right: calc(var(--pad) * -1); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--hair); font-size: 15px; font-weight: 540; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip input:checked + span { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.chip--film span { flex-direction: column; gap: 5px; height: auto; padding: 0; border-radius: 0; box-shadow: none; font-size: 12.5px; color: var(--fg2); }
.chip--film i { font-style: normal; }
.chip--film img, .chip__grid { display: block; width: 46px; height: 60px; object-fit: cover; opacity: 0.55; transition: opacity 0.2s; }
.chip__grid { background: #060606 repeating-linear-gradient(0deg, #fff 0 1px, #0000 1px 10px), repeating-linear-gradient(90deg, #fff 0 1px, #0000 1px 10px); background-blend-mode: normal; background-color: #060606; background-image: repeating-linear-gradient(0deg, #ffffffcc 0 1px, #0000 1px 10px), repeating-linear-gradient(90deg, #ffffffcc 0 1px, #0000 1px 10px); }
.chip--film input:checked + span { background: none; color: var(--fg); }
.chip--film input:checked + span img, .chip--film input:checked + span .chip__grid { opacity: 1; outline: 2px solid var(--fg); outline-offset: 2px; }
.faders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fader { display: grid; font-size: 14px; color: var(--fg2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; --v: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--fg) calc(var(--v) * 100%), var(--hair) 0); }
input[type="range"]::-moz-range-track { height: 2px; background: linear-gradient(to right, var(--fg) calc(var(--v) * 100%), var(--hair) 0); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--fg); border: 0; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); border: 0; }
.note { min-height: 3em; font-size: 15.5px; line-height: 1.4; max-width: 32em; }

/* ---------- Arbeiten ---------- */
.work { padding: 16svh var(--pad) 10svh; }
.work__lead { margin-top: 20px; max-width: 30em; color: var(--fg2); }
.rail { margin-top: 9svh; display: grid; grid-template-columns: 1fr 1fr; gap: 46px 18px; }
.banner:nth-child(even) { margin-top: 70px; }
.banner__hit {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.2; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  perspective: 720px; perspective-origin: 50% 0; -webkit-tap-highlight-color: transparent;
}
.banner__hit::before { content: ""; position: absolute; top: 0; left: -9px; right: -9px; height: 2px; background: var(--fg); }
.banner__swing { position: absolute; inset: 2px 0 0; display: block; transform-origin: 50% 0; will-change: transform; }
.banner__clip { position: absolute; top: 0; left: 14%; width: 2px; height: 14px; background: var(--fg); }
.banner__clip--r { left: auto; right: 14%; }
.banner__cloth { position: absolute; inset: 14px 0 5px; display: block; overflow: hidden; background: #111; }
.banner__cloth video { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, #0000 10%, #000); opacity: 0; pointer-events: none; }
.banner__rod { position: absolute; left: -3px; right: -3px; bottom: 0; height: 6px; border-radius: 3px; background: var(--fg); }
.banner__shadow { position: absolute; inset: 16px 5% 0; background: #000; filter: blur(16px); opacity: 0.34; transform: translate3d(0, 18px, 0); pointer-events: none; }
.banner__cap { margin-top: 28px; }
.banner__cap h3 { font-size: 23px; font-stretch: 114%; line-height: 1.1; letter-spacing: -0.01em; }
.banner__cap p { margin-top: 5px; font-size: 14.5px; line-height: 1.3; color: var(--fg2); }

/* ---------- Studio ---------- */
.studio { padding: 10svh var(--pad) 16svh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.studio__text { max-width: 34em; font-size: 19px; }
.lager { margin: 0 calc(var(--pad) * -1); }
.lager video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lager figcaption { padding: 9px var(--pad) 0; font-size: 14px; color: var(--fg2); }
.studio__how h3 { font-size: 23px; font-stretch: 114%; margin-bottom: 10px; }
.steps { list-style: none; padding: 0; counter-reset: schritt; }
.steps li { counter-increment: schritt; display: grid; grid-template-columns: 46px 1fr; padding: 16px 0; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(schritt); font-weight: 780; font-stretch: 125%; font-size: 23px; line-height: 1.15; }
.steps b { display: block; font-weight: 700; }
.facts > div { display: grid; grid-template-columns: 9.6em 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hair); }
.facts dt { color: var(--fg2); }
.sheet .facts dt { color: #55574f; }
.sheet .facts > div { border-color: #0003; }

/* ---------- Kontakt ---------- */
.contact { min-height: 100svh; padding: calc(var(--top) + 10px) var(--pad) 48px; display: flex; flex-direction: column; gap: 26px; touch-action: pan-y; }
.slot--signal { height: 40svh; margin: 0 6px; }
.contact__text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; margin-top: 4svh; }
.contact__text h2 { justify-self: stretch; }
.contact__text p { max-width: 26em; font-size: 19px; }

.foot { padding: 34px var(--pad) 40px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--fg2); }
.foot__name { color: var(--fg); font-weight: 620; font-size: 16px; }
.foot__cols { margin-top: 16px; display: grid; gap: 16px; max-width: 60em; }
.foot ul { list-style: none; padding: 0; margin-top: 4px; columns: 2; column-gap: 20px; }

/* ---------- Blatt zur Arbeit ---------- */
.sheet {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: var(--leinwand); color: #000; overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(0 0 0 / 0.62); }
.sheet video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--leinwand); color: #000; cursor: pointer;
}
.sheet__body { padding: 24px var(--pad) 44px; display: grid; gap: 14px; justify-items: start; }
.sheet__body h2 { font-size: 54px; font-weight: 800; font-stretch: 120%; line-height: 0.95; letter-spacing: -0.02em; }
.sheet__kind { color: #55574f; }
.sheet__text { font-size: 19px; max-width: 30em; }
.sheet .facts { justify-self: stretch; margin: 6px 0 10px; }
.sheet :focus-visible { outline-color: #000; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; --top: 68px; }
  body { font-size: 18px; }
  .top .top__nav { display: flex; }
  .top .top__cta { display: inline-flex; }
  .top__menu { display: none; }

  .hero { display: grid; grid-template-columns: var(--cols); grid-template-rows: 1fr auto; column-gap: 24px; padding-bottom: 30px; }
  .slot--hero { grid-column: 5 / 13; grid-row: 1; height: 63svh; margin: 0; }
  .hero__meta { grid-column: 1 / 5; grid-row: 1; align-self: start; margin-top: 9svh; padding: 0; grid-template-columns: 1fr; gap: 14px; }
  .hero__lead { font-size: 30px; line-height: 1.12; max-width: 9.5em; }
  .hero__now { text-align: left; }
  .wordmark { grid-column: 1 / -1; grid-row: 2; margin-top: -6svh; }

  .manifest { grid-template-columns: var(--cols); column-gap: 24px; }
  .manifest__stage { grid-column: 1 / 10; }
  .slot--veil { right: 5%; width: 32%; top: -19svh; height: calc(100% + 27svh); }
  .manifest__text { grid-column: 7 / 12; font-size: 22px; margin-top: 2svh; }

  .probe { display: grid; grid-template-columns: var(--cols); column-gap: 24px; align-items: center; }
  .slot--probe { grid-column: 6 / 13; grid-row: 1; height: 74svh; margin: 0; }
  .panel { grid-column: 1 / 6; grid-row: 1; gap: 16px; }
  .panel__lead, .note { font-size: 17px; }
  .chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }

  .work h2 { max-width: 62%; }
  .rail { grid-template-columns: repeat(3, 1fr); gap: 90px 44px; padding: 0 4%; }
  .banner:nth-child(even) { margin-top: 0; }
  .banner:nth-child(3n + 2) { margin-top: 120px; }
  .banner:nth-child(3n) { margin-top: 46px; }
  .banner__hit { perspective: 1000px; }

  .studio { grid-template-columns: var(--cols); column-gap: 24px; row-gap: 56px; }
  .studio h2 { grid-column: 1 / 8; }
  .studio__text { grid-column: 8 / 13; align-self: end; font-size: 22px; }
  .lager { grid-column: 1 / -1; }
  .lager video { aspect-ratio: 21 / 8; }
  .studio__how { grid-column: 1 / 8; }
  .studio .facts { grid-column: 9 / 13; align-self: start; }

  .contact { display: grid; grid-template-columns: var(--cols); column-gap: 24px; align-items: center; }
  .slot--signal { grid-column: 7 / 13; grid-row: 1; height: 66svh; margin: 0; }
  .contact__text { grid-column: 1 / 6; grid-row: 1; margin: 0; }
  .contact__text p { font-size: 22px; }

  .foot__cols { grid-template-columns: 1fr 1fr; }

  .sheet { width: min(1120px, 92vw); max-width: none; height: auto; max-height: 90dvh; margin: auto; display: none; grid-template-columns: 1.15fr 1fr; }
  .sheet[open] { display: grid; }
  .sheet video { aspect-ratio: auto; height: 100%; min-height: 520px; }
  .sheet__body { padding: 56px 40px 44px; align-content: center; }
  .sheet__body h2 { font-size: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
