/* LAIN · ein System für alle Seiten: Schwarz, Weiss, Gold.
   Schrift: Archivo (breit, schwer) für Wörter, Instrument Serif kursiv für LAINs Zeilen, JetBrains Mono für Etiketten.
   Gold ist Akzent, nie Fläche. Keine Rundungen, keine Schatten, kein Glas. */
:root {
  --ink: #09090d;
  --ink2: #121218;
  --bone: #ece8df;
  --bone2: #dcd7cb;
  --ash: #8b877e;
  --gold: #caaf3e;
  --gold2: #e2c96a;
  --linie: rgba(236, 232, 223, .16);
  --linie-d: rgba(9, 9, 13, .16);
  --breit: "Archivo", "Arial Black", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --rand: clamp(16px, 4vw, 56px);
  --kopf: 64px;
  --weich: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 16px/1.55 var(--breit); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Typografie ---------- */
.wort {
  font-family: var(--breit); font-weight: 900; font-variation-settings: "wdth" 125;
  text-transform: uppercase; line-height: .95; letter-spacing: -.025em; margin: 0; /* .95 statt .84: Ä/Ö/Ü-Punkte stossen sonst an die Zeile darüber (25.10.) */
}
.wort--schmal { font-variation-settings: "wdth" 75; letter-spacing: -.01em; }
.passend { display: inline-block; white-space: nowrap; font-size: 20vw; }
.gross { font-size: clamp(44px, 9vw, 150px); }
.mittel { font-size: clamp(32px, 5.4vw, 84px); }
.zeile {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 6vw, 96px); line-height: 1.02; letter-spacing: -.01em; margin: 0;
}
.zeile--klein { font-size: clamp(26px, 3.4vw, 48px); }
.tag {
  font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
.tag--gold { color: var(--gold); }
.text { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 36em; color: rgba(236, 232, 223, .78); margin: 0; }
.hell .text { color: rgba(9, 9, 13, .74); }
.gold { color: var(--gold); }
.kontur { color: transparent; -webkit-text-stroke: 1px currentColor; }
.kontur.gold { -webkit-text-stroke-color: var(--gold); }

/* ---------- Flächen ---------- */
.flaeche { position: relative; padding: clamp(80px, 12vw, 180px) var(--rand); }
.hell { background: var(--bone); color: var(--ink); }
.hell .tag { color: #6b675f; }
.hell ::selection { background: var(--ink); color: var(--bone); }
.dunkel { background: var(--ink); color: var(--bone); }
.linie-o { border-top: 1px solid var(--linie); }
.hell.linie-o, .hell .linie-o { border-color: var(--linie-d); }
.raster { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 32px); }

/* ---------- Kopf ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--rand);
  color: var(--bone); transition: color .4s var(--weich), background-color .4s var(--weich);
}
.kopf::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(9, 9, 13, .72), rgba(9, 9, 13, 0)); transition: opacity .4s;
}
.kopf--hell { color: var(--ink); }
.kopf--hell::before { opacity: 0; }
/* sobald gescrollt: ruhige, volle Leiste mit Haarlinie, damit nichts unter dem Kopf durchscheint */
.kopf--fest { background: var(--ink); border-bottom: 1px solid var(--linie); }
.kopf--fest::before { opacity: 0; }
.kopf--fest.kopf--hell { background: var(--bone); border-bottom-color: var(--linie-d); }
.kopf .marke { display: flex; align-items: center; gap: 12px; }
.kopf .marke img { width: 38px; height: 38px; object-fit: contain; }
.kopf .marke b { font: 900 15px/1 var(--breit); font-variation-settings: "wdth" 125; letter-spacing: .02em; }
.kopf nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.kopf nav a, .kopf .neben {
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .78; transition: opacity .2s;
}
.kopf nav a:hover, .kopf nav a[aria-current="page"], .kopf .neben:hover { opacity: 1; }
.kopf nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.kopf .neben { display: flex; gap: 18px; align-items: center; }
.kopf .zaehler { display: inline-block; min-width: 1.6em; padding: 3px 5px; border: 1px solid currentColor; text-align: center; }
.menueknopf { display: none; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 860px) {
  .kopf nav { display: none; }
  .menueknopf { display: block; }
  .kopf .marke b { display: none; }
}
.menue {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--rand) 28px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--weich); visibility: hidden;
}
.menue.offen { clip-path: inset(0 0 0 0); visibility: visible; }
.menue .zu { align-self: flex-end; height: 24px; }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li { border-top: 1px solid var(--linie); }
.menue li a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; }
.menue li a .wort { font-size: clamp(36px, 11vw, 88px); }

/* ---------- Knöpfe & Links ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 14px; padding: 17px 24px; border: 1px solid currentColor;
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}
.knopf:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.hell .knopf:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.knopf--gold { color: var(--gold); }
.knopf--gold:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.knopf--voll { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.knopf--voll:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.knopf:active { transform: scale(.98); }
.pfeil { display: inline-block; transition: transform .3s var(--weich); }
a:hover .pfeil, button:hover .pfeil { transform: translateX(5px); }
.strich { border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Bilder ---------- */
.bild { position: relative; overflow: hidden; background: var(--ink2); }
.hell .bild { background: var(--bone2); }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.sw img { filter: grayscale(1) contrast(1.08); }
.bild figcaption { position: absolute; left: 14px; bottom: 12px; }

/* ---------- Auftritt beim Scrollen ---------- */
.js .auf { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--weich), transform 1.1s var(--weich); }
.js .auf.da { opacity: 1; transform: none; }
.js .vorhang { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--weich); }
.js .vorhang img { transform: scale(1.14); transition: transform 1.8s var(--weich); }
.js .vorhang.da { clip-path: inset(0 0 0 0); }
.js .vorhang.da img { transform: none; }
.js .maske { overflow: hidden; display: block; }
.js .maske > span { display: block; transform: translateY(104%); transition: transform 1.1s var(--weich); }
.js .maske.da > span { transform: none; }
.verz1 { transition-delay: .08s !important; } .verz2 { transition-delay: .16s !important; } .verz3 { transition-delay: .24s !important; }

/* ---------- Countdown ---------- */
.uhr { display: flex; gap: clamp(14px, 3vw, 40px); font-family: var(--mono); }
.uhr div { display: flex; flex-direction: column; gap: 6px; }
.uhr b { font: 400 clamp(40px, 6vw, 88px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* ---------- Fuss ---------- */
.fuss { padding: clamp(60px, 9vw, 120px) var(--rand) 28px; border-top: 1px solid var(--linie); }
.fuss .reihe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 36px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Bildfolge-Bühne (Filme) ---------- */
.buehne { position: relative; }
.buehne .fest { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.buehne .schleier { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 13, .55) 0%, rgba(9, 9, 13, 0) 22%, rgba(9, 9, 13, 0) 52%, rgba(9, 9, 13, .86) 100%); }
.buehne .tafel { position: absolute; left: var(--rand); right: var(--rand); bottom: clamp(28px, 7vh, 72px);
  opacity: 0; transform: translateY(24px); transition: opacity .7s var(--weich), transform .9s var(--weich); pointer-events: none; }
.buehne .tafel.da { opacity: 1; transform: none; pointer-events: auto; }
.buehne .lauf { position: absolute; left: var(--rand); right: var(--rand); bottom: 14px; height: 1px; background: var(--linie); }
.buehne .lauf i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.lade { position: absolute; top: calc(var(--kopf) + 8px); right: var(--rand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .auf, .js .vorhang, .js .vorhang img, .js .maske > span, .buehne .tafel { transition: opacity .3s !important; transform: none !important; clip-path: none !important; }
}

/* Tippflächen (Joel T7, 24.10.2026): mindestens rund 44 px hoch, das Bild bleibt gleich */
.kopf .neben a, .menueknopf { padding: 17px 8px; margin: -17px -8px; }
.fuss nav a, .fuss .reihe > .tag a { display: inline-block; padding: 14px 0; margin: -14px 0; }
