/* BEINAHE · Kompanie für zeitgenössischen Tanz (Beispiel). Schwarz auf warmem Weiß, die einzige Farbe ist das Spektrum. */
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --grund: #f7f7f5; --grund-2: #efefec; --tinte: #111111; --grau: #9a9a9a; --neben: #66665f; --blass: #cdcdc8; --linie: #dededa; --punkt: #0d0d0d;
  --spektrum: linear-gradient(90deg, #ffcf5a, #7dffa8, #5ad7ff, #9b7bff, #ff6fd8, #ffb36b);
  --rand: clamp(20px, 5vw, 84px);
  --weich: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #0c0c0b; --grund-2: #151514; --tinte: #f3f3ef; --grau: #74746f; --neben: #a5a59e; --blass: #3a3a37; --linie: #262624; --punkt: #f4f4ef; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { min-height: 100%; background: var(--grund); color: var(--tinte); font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas, svg { display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--tinte); color: var(--grund); }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }
.grau { color: var(--grau); }
h1 .grau, h2 .grau { display: block; }
h1, h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 76px); }
.sprung { position: fixed; left: 12px; top: -80px; z-index: 50; background: var(--tinte); color: var(--grund); padding: 10px 16px; border-radius: 999px; }
.sprung:focus { top: 12px; }

/* Fortschritt: eine Punktreihe am oberen Rand */
.fortschritt { position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 30; pointer-events: none; color: var(--tinte);
  background: radial-gradient(circle at center, currentColor 0 1.5px, transparent 2.1px) 0 50% / 8px 6px repeat-x;
  clip-path: inset(0 calc(100% - var(--fort, 0%)) 0 0); }

/* Pille mit Spektrum-Schein */
.pille { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 0; border-radius: 999px; background: var(--tinte); color: var(--grund); font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .3s var(--weich); }
.pille.klein { min-height: 40px; padding: 8px 19px; font-size: 13.5px; }
.pille:hover { transform: translateY(-1px); }
.pille:active { transform: translateY(0) scale(.98); }
.glimmer { position: relative; display: inline-block; }
.glimmer::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 16px; border-radius: 50%; background: var(--spektrum); filter: blur(9px); opacity: .85; transition: opacity .3s, filter .3s, bottom .3s; }
.glimmer:hover::before, .glimmer:focus-within::before { opacity: 1; filter: blur(12px); bottom: -9px; }

/* Kopfleiste */
.leiste { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.6vw, 40px); padding: 30px var(--rand) 12px; font-size: 14px; transition: transform .45s var(--weich), padding .3s, background-color .3s; }
.leiste.fest { padding-top: 14px; background: color-mix(in srgb, var(--grund) 94%, transparent); border-bottom: 1px solid var(--linie); }
.leiste.weg { transform: translateY(-110%); }
.leiste nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.leiste nav a { color: var(--neben); text-decoration: none; padding: 10px 0; transition: color .2s; }
.leiste nav a:hover { color: var(--tinte); }
.marke { display: inline-flex; align-items: center; gap: 9px; margin-right: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-decoration: none; padding: 8px 0; }
.marke svg { width: 26px; height: 14px; fill: currentColor; }
.marke svg circle:last-child { transform-origin: 23px 8px; animation: puls 3.4s ease-in-out infinite; }
@keyframes puls { 50% { transform: translateX(-2.2px); } }

/* 1 · Kopf */
.kopf { position: relative; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden; }
.kopf canvas, .buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kopf-text { position: absolute; left: 50%; top: 15.5%; transform: translateX(-50%); width: min(92vw, 780px); text-align: center; z-index: 3; }
h1 { font-size: clamp(38px, 4.5vw, 78px); }
.kopf-text p { margin: 20px auto 0; max-width: 400px; color: var(--neben); font-size: clamp(14px, 1.05vw, 16.5px); line-height: 1.42; }
.kopf-text .glimmer { margin-top: clamp(28px, 3.2vw, 46px); }
.abstand { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); z-index: 3; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--neben); white-space: nowrap; font-variant-numeric: tabular-nums; }
.abstand b { font-weight: 500; color: var(--tinte); display: inline-block; min-width: 4ch; text-align: right; }
.kopf-fakten { position: absolute; inset: auto 0 clamp(22px, 4.5vh, 48px) 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(22px, 4.2vw, 62px); padding: 0 16px; color: var(--neben); font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; letter-spacing: -.01em; }
.kopf-fakten li { display: inline-flex; align-items: center; gap: 8px; }
.kopf-fakten svg { width: 16px; height: 16px; fill: currentColor; }
.js .kopf-text > *, .js .kopf-fakten, .js .abstand { opacity: 0; transform: translateY(18px); }
.js .abstand { transform: translate(-50%, 18px); }
.js.bereit .kopf-text > *, .js.bereit .kopf-fakten { opacity: 1; transform: none; transition: opacity .9s var(--weich), transform .9s var(--weich); }
.js.bereit .abstand { opacity: 1; transform: translateX(-50%); transition: opacity .9s var(--weich) 1.2s, transform .9s var(--weich) 1.2s; }
.js.bereit .kopf-text p { transition-delay: .12s; }
.js.bereit .kopf-text .glimmer { transition-delay: .24s; }
.js.bereit .kopf-fakten { transition-delay: .5s; }

/* 2 · Vier Sätze */
.saetze { position: relative; height: 470vh; }
.buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.satz-rahmen { position: absolute; left: var(--rand); top: 50%; transform: translateY(-50%); width: min(38vw, 470px); z-index: 3; }
.etikett { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--neben); display: flex; gap: 18px; }
.etikett b { font-weight: 500; color: var(--tinte); }
.satz-stapel { display: grid; margin-top: 26px; }
.satz { grid-area: 1 / 1; opacity: 0; transform: translateY(34px); transition: opacity .5s var(--weich), transform .6s var(--weich); pointer-events: none; }
.satz.vorbei { transform: translateY(-34px); }
.satz.an { opacity: 1; transform: none; pointer-events: auto; }
.satz h2 { font-size: clamp(52px, 7vw, 124px); letter-spacing: -.045em; line-height: .96; }
.satz p { margin-top: 22px; color: var(--neben); font-size: clamp(15.5px, 1.25vw, 19px); max-width: 30em; }
.satz-punkte { display: flex; gap: 9px; margin-top: 34px; }
.satz-punkte i { width: 9px; height: 9px; border-radius: 50%; background: var(--blass); transition: background-color .4s, transform .4s var(--weich); }
.satz-punkte i.an { background: var(--tinte); transform: scale(1.25); }

/* 3 · Laufband */
.laufband { height: clamp(104px, 14vw, 216px); border-block: 1px solid var(--linie); overflow: hidden; }
.laufband canvas { width: 100%; height: 100%; }

/* Abschnitte allgemein */
.abend, .kompanie, .spielplan, .karten, .haltung { max-width: 1600px; margin-inline: auto; padding: clamp(84px, 11vw, 170px) var(--rand); }
.js .zeig { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--weich), transform .9s var(--weich); }
.js .zeig.da { opacity: 1; transform: none; }
.zeig + .zeig { transition-delay: .1s; }

/* 4 · Aus Punkten wird ein Abend */
.abend-kopf, .plan-kopf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 90px); align-items: end; margin-bottom: clamp(36px, 5vw, 76px); }
.abend-kopf p, .plan-kopf p, .kompanie-text p, .karten-text > p { color: var(--neben); font-size: clamp(15.5px, 1.2vw, 18.5px); max-width: 34em; }
.rasterfoto { position: relative; }
.rasterfoto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.rasterfoto canvas { position: absolute; inset: 0 0 auto 0; width: 100%; aspect-ratio: 16 / 9; display: none; }
.rasterfoto.laeuft canvas { display: block; }
.rasterfoto.laeuft img { opacity: 0; }
.rasterfoto figcaption { margin-top: 14px; font-size: 14px; color: var(--neben); }

/* 5 · Haltung */
.haltung { padding-block: clamp(40px, 6vw, 90px) clamp(70px, 9vw, 140px); }
.worte { font-size: clamp(28px, 4.3vw, 70px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; max-width: 21em; }
.js .worte span { color: var(--blass); transition: color .45s; }
.js .worte span.an { color: var(--tinte); }

/* 6 · Kompanie */
.kompanie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 110px) clamp(30px, 6vw, 110px); align-items: center; }
.kompanie-text p { margin-top: 22px; }
.zahlen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 46px); border-top: 1px solid var(--linie); padding-top: clamp(26px, 3.4vw, 50px); }
.zahl canvas { width: 100%; height: clamp(84px, 9vw, 132px); display: none; }
.js .zahl canvas { display: block; }
.zahl p { margin-top: 12px; color: var(--neben); font-size: 15px; }
.zahl b { font-size: 44px; font-weight: 500; color: var(--tinte); display: block; }
.js .zahl b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 7 · Spielplan */
.termine { border-bottom: 1px solid var(--linie); }
.termin { display: grid; grid-template-columns: clamp(120px, 15vw, 230px) minmax(0, 1.1fr) minmax(120px, 1fr) auto; gap: clamp(14px, 3vw, 46px); align-items: center; padding: clamp(16px, 2vw, 28px) clamp(8px, 1.4vw, 22px); border-top: 1px solid var(--linie); transition: background-color .35s, color .35s, opacity .9s var(--weich), transform .9s var(--weich); }
.termin:hover, .termin:focus-within { background: var(--tinte); color: var(--grund); }
.tag { display: flex; align-items: baseline; gap: 12px; }
.tag b { font-size: clamp(44px, 5.6vw, 92px); font-weight: 500; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.tag span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.was strong { display: block; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.was span { font-size: 14.5px; opacity: .65; }
.sitze { height: 12px; opacity: .9; background: radial-gradient(circle at center, var(--blass) 0 2.7px, transparent 3.3px) 0 50% / 10px 12px repeat-x; }
.termin:hover .sitze, .termin:focus-within .sitze { background-image: radial-gradient(circle at center, color-mix(in srgb, var(--grund) 30%, transparent) 0 2.7px, transparent 3.3px); }
.sitze i { display: block; height: 100%; width: 0; background: radial-gradient(circle at center, currentColor 0 2.7px, transparent 3.3px) 0 50% / 10px 12px repeat-x; transition: width 1.5s var(--weich) .25s; }
.termin.da .sitze i, html:not(.js) .sitze i { width: var(--belegt, 50%); }
.termin button { min-height: 44px; padding: 9px 20px; border-radius: 999px; border: 1px solid currentColor; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s; }
.termin button:hover { background: var(--grund); color: var(--tinte); border-color: var(--grund); }

/* 8 · Karten */
.karten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 7vw, 130px); align-items: start; }
.karten-text > p { margin-top: 22px; }
.preise { margin-top: 34px; border-top: 1px solid var(--linie); }
.preise div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.preise dt { color: var(--neben); }
.preise dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.anfrage { display: grid; gap: 6px; }
.anfrage label { margin-top: 16px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--neben); }
.anfrage input, .anfrage select { width: 100%; min-height: 50px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--grau); border-radius: 0; background: transparent; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; letter-spacing: -.02em; transition: border-color .2s; }
.anfrage select { appearance: none; cursor: pointer; background: linear-gradient(45deg, transparent 50%, var(--tinte) 50%) calc(100% - 11px) 55% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--tinte) 50%) calc(100% - 5px) 55% / 6px 6px no-repeat; padding-right: 28px; }
.anfrage select option { background: var(--grund); color: var(--tinte); }
.anfrage input:focus-visible, .anfrage select:focus-visible { outline: 0; border-bottom: 2px solid var(--tinte); }
.stufe { display: flex; align-items: center; gap: 10px; }
.stufe button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--grau); background: transparent; font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.stufe button:hover { background: var(--tinte); color: var(--grund); }
.stufe input { width: 3ch; min-height: 44px; text-align: center; border-bottom: 0; -moz-appearance: textfield; appearance: textfield; }
.stufe input::-webkit-outer-spin-button, .stufe input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stufe output { margin-left: auto; color: var(--neben); font-variant-numeric: tabular-nums; }
.anfrage .glimmer { margin-top: 30px; justify-self: start; }
.meldung { min-height: 3em; margin-top: 18px; color: var(--neben); font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--weich); }
.meldung.da { opacity: 1; transform: none; }

/* 9 · Zugabe */
.zugabe { position: relative; height: 260vh; }
.zugabe-text { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); width: min(92vw, 820px); text-align: center; z-index: 3; }
.zugabe-text .etikett { justify-content: center; }
.zugabe-text h2 { display: grid; margin-top: 20px; font-size: clamp(38px, 5vw, 86px); }
.zugabe-text h2 > span { grid-area: 1 / 1; transition: opacity .6s var(--weich), transform .7s var(--weich); }
.nachher, .nachher-zeile { opacity: 0; transform: translateY(26px); }
.nachher-zeile { margin-top: 16px; color: var(--neben); transition: opacity .6s var(--weich) .15s, transform .7s var(--weich) .15s; }
.zugabe.beruehrt .vorher { opacity: 0; transform: translateY(-26px); }
.zugabe.beruehrt .nachher, .zugabe.beruehrt .nachher-zeile { opacity: 1; transform: none; }
.zugabe-text .glimmer { margin-top: 28px; }
html:not(.js) .vorher { display: none; }
html:not(.js) .nachher, html:not(.js) .nachher-zeile { opacity: 1; transform: none; }
html:not(.js) .saetze, html:not(.js) .zugabe { height: auto; }
html:not(.js) .buehne { position: static; height: auto; padding: 80px var(--rand); }
html:not(.js) .buehne canvas, html:not(.js) .kopf canvas, html:not(.js) .laufband { display: none; }
html:not(.js) .satz-rahmen, html:not(.js) .zugabe-text { position: static; transform: none; width: auto; }
html:not(.js) .satz-stapel { gap: 40px; }
html:not(.js) .satz { grid-area: auto; opacity: 1; transform: none; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: clamp(40px, 5vw, 76px) var(--rand) 28px; font-size: 15px; color: var(--neben); }
.fuss-innen { max-width: 1600px; margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px clamp(24px, 5vw, 90px); }
.fuss p + p { margin-top: 10px; }
.fuss a { text-decoration: none; display: inline-block; padding: 3px 0; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 4px; }
.fuss-marke { color: var(--tinte); font-weight: 600; font-size: 17px; }
.sozial { display: flex; gap: 4px; margin: 10px 0 0 -12px; }
.sozial a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--tinte); transition: background-color .2s, color .2s; }
.sozial a:hover { background: var(--tinte); color: var(--grund); }
.sozial svg { width: 18px; height: 18px; fill: currentColor; }
.sozial .hohl { fill: none; stroke: currentColor; stroke-width: 2; }
.fuss-zeile { max-width: 1600px; margin: 44px auto 0; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 13.5px; text-align: center; }
.fuss-zeile a { text-decoration: underline; text-underline-offset: 3px; }

/* Rechtliches */
.recht-seite { max-width: 760px; margin: 0 auto; padding: 44px var(--rand) 90px; }
.recht-seite h1 { font-size: clamp(36px, 5vw, 60px); margin: 50px 0 20px; }
.recht-seite h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 10px; }
.recht-seite p { margin-top: 12px; color: var(--neben); }
.recht-seite .zurueck { color: var(--tinte); }

/* Schmal und hochkant */
@media (max-width: 860px), (orientation: portrait) {
  .leiste { justify-content: space-between; padding: 18px 18px 10px; }
  .leiste nav { display: none; }
  .kopf-text { top: 13.5%; }
  .kopf-fakten { gap: 8px 22px; font-size: 13px; }
  .saetze { height: 420vh; }
  .satz-rahmen { left: 20px; right: 20px; top: auto; bottom: clamp(26px, 6vh, 60px); transform: none; width: auto; }
  .satz-stapel { margin-top: 14px; }
  .satz h2 { font-size: clamp(46px, 13vw, 84px); }
  .satz p { margin-top: 12px; }
  .satz-punkte { margin-top: 20px; }
  .abend-kopf, .plan-kopf, .kompanie, .karten { grid-template-columns: minmax(0, 1fr); }
  .rasterfoto.breit img, .rasterfoto.breit canvas, .rasterfoto.hoch img, .rasterfoto.hoch canvas { aspect-ratio: 4 / 3; }
  .zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termin { grid-template-columns: auto minmax(0, 1fr) auto; }
  .termin .sitze { grid-column: 1 / -1; grid-row: 2; }
  .tag { flex-direction: column; gap: 4px; min-width: 76px; }
  .fuss-innen { grid-template-columns: minmax(0, 1fr); }
  .zugabe-text { top: 11%; }
}
@media (max-width: 420px) {
  .termin { gap: 12px; padding-inline: 2px; }
  .termin button { padding: 9px 14px; }
  .was span { font-size: 13.5px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .kopf { min-height: 560px; }
  .satz h2 { font-size: clamp(40px, 6vw, 70px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .zeig, .js .kopf-text > *, .js .kopf-fakten, .js .abstand { opacity: 1; transform: none; }
  .js .abstand { transform: translateX(-50%); }
}
