/* Brettwerk Ilmenhain — Beispiel-Website, Stil aus MXL-013 */

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

:root {
  --void: #010101;
  --paper: #ffffff;
  --card: #131313;
  --acid: #d3de5e;
  --line: #d9d9d9;
  --mute: #9f9f9f;
  --ink-soft: #3d3d3d;      /* Sekundärtext auf Weiß, 10.6:1 */
  --rand: clamp(16px, 2.1vw, 30px);
  --leiste: 57px;
  --display: clamp(42px, 7.1vw, 102px);
  --display-s: clamp(34px, 4.6vw, 66px);
  --lead: clamp(19px, 1.81vw, 26px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: calc(var(--leiste) + 16px);
  scrollbar-color: #4a4a4a var(--void);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  font-stretch: 100%;
  padding-bottom: var(--leiste);
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--paper); color: var(--void); }
.weiss ::selection { background: var(--void); color: var(--paper); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--rand);
  top: -100px;
  z-index: 100;
  background: var(--paper);
  color: var(--void);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .02em;
}
.skip:focus { top: 16px; }

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

/* ---------- Typo ---------- */

.display {
  font-size: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: .9;
  margin: 0;
  text-wrap: balance;
}
.display--s { font-size: var(--display-s); line-height: .92; }

.lead {
  font-size: var(--lead);
  line-height: 1.32;
  font-weight: 400;
  max-width: 34ch;
  margin: 0;
  text-wrap: pretty;
}
.lead strong { font-weight: 800; }

.caps {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.text { max-width: 66ch; }
.text p { margin: 0 0 1em; }

/* ---------- Abschnitte ---------- */

.schwarz { background: var(--void); color: var(--paper); }
.weiss { background: var(--paper); color: var(--void); color-scheme: light; }

.kapitel {
  padding: clamp(80px, 12vw, 180px) var(--rand) clamp(80px, 10vw, 150px);
}

/* ---------- Bühne (Startseite) ---------- */

.buehne { position: relative; background: var(--void); }
.buehne__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.buehne__sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.buehne__standbild {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--rand);
}
.buehne__standbild { place-items: center end; padding-right: 8vw; }
.buehne__standbild svg { width: min(38vw, 520px); height: auto; opacity: .95; }
@media (max-width: 899px) { .buehne__standbild { display: none; } }
.js .buehne__standbild { display: none; }

.buehne__inhalt { position: relative; margin-top: -100vh; margin-top: -100svh; }

.szene {
  min-height: 100vh;
  min-height: 100svh;
  padding: 26px var(--rand) calc(var(--leiste) + 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  pointer-events: none;
}
.szene > * { pointer-events: auto; }
.szene h1, .szene .lead { text-shadow: 0 0 18px rgba(1,1,1,.9), 0 0 2px rgba(1,1,1,.9); }

.verlag__zeichen { margin-top: 60px; width: min(100%, 330px); color: var(--void); }
.treffer { scroll-margin-bottom: calc(var(--leiste) + 20px); }
.szene__lead { margin-top: 25px; max-width: 30ch; }
.szene__brett { display: none; }
@media (max-width: 899px) {
  .szene__brett { display: block; height: clamp(170px, 30svh, 300px); flex: none; }
  .szene { justify-content: flex-start; gap: 20px; }
}

.szene--zwei {
  justify-content: flex-end;
  padding-bottom: calc(var(--leiste) + clamp(40px, 8vh, 90px));
}

/* Legeleiste: Spielefinder auf der Bühne */
.legeleiste {
  display: grid;
  gap: 14px;
  max-width: 640px;
  border: 0;
  margin: 0;
  padding: 0;
}
.legeleiste__titel {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 2px;
  font-weight: 400;
}
.frage {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.frage legend {
  float: left;
  width: 92px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0;
}

.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  background: var(--void);
  color: var(--paper);
  transition: background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.chip input:hover + span { background: #262626; }
.chip input:checked + span { background: var(--paper); color: var(--void); font-weight: 800; }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 3px; }
.weiss .chip span { border-color: var(--void); background: var(--paper); color: var(--void); }
.weiss .chip input:hover + span { background: #ececec; }
.weiss .chip input:checked + span { background: var(--void); color: var(--paper); }
.weiss .chip input:focus-visible + span { outline-color: var(--void); }

.treffer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-height: 52px;
  padding-top: 14px;
  border-top: 1px solid var(--paper);
}
.treffer__name {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.treffer__daten { font-size: 15px; }

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--void);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 1px solid var(--paper);
  cursor: pointer;
  font-family: inherit;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.knopf:hover { text-decoration: none; background: var(--void); color: var(--paper); }
.knopf--leer { background: transparent; color: var(--paper); }
.knopf--leer:hover { background: var(--paper); color: var(--void); }
.weiss .knopf { background: var(--void); color: var(--paper); border-color: var(--void); }
.weiss .knopf:hover { background: var(--paper); color: var(--void); }
.weiss .knopf--leer { background: transparent; color: var(--void); }
.weiss .knopf--leer:hover { background: var(--void); color: var(--paper); }
.pfeil { width: 14px; height: 14px; flex: none; }

/* ---------- Galerie der Reihen ---------- */

.galerie { position: relative; background: var(--void); }
.galerie__kopf { padding: clamp(80px, 10vw, 140px) var(--rand) 40px; }
.galerie__pin { position: relative; }
.galerie__spur {
  display: flex;
  gap: 20px;
  padding: 0 var(--rand) 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--rand);
}
.galerie__spur:focus-visible { outline-offset: -4px; }
.galerie--gepinnt .galerie__pin { height: var(--pin-hoehe, 300vh); }
.galerie--gepinnt .galerie__buehne {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-bottom: var(--leiste);
}
.galerie--gepinnt .galerie__spur { overflow: visible; scroll-snap-type: none; will-change: transform; }

.karte {
  flex: none;
  width: min(660px, 82vw, 66svh);
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--card);
  color: var(--paper);
  padding: clamp(18px, 2vw, 30px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  scroll-snap-align: start;
  position: relative;
}
.karte--neu { background: var(--acid); color: var(--void); }
.karte__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.karte__kopf a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px -12px 0 0;
  padding: 0 12px;
  border-radius: 999px;
}
.karte__kopf a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.karte__kopf a:focus-visible { outline: none; }
.karte__kopf a:focus-visible::after { outline: 2px solid currentColor; outline-offset: 4px; }
.karte__bild { display: grid; place-items: center; padding: 6% 0; min-height: 0; }
.karte__bild svg { height: 100%; width: auto; max-height: 260px; }
.karte h3 { margin: 0 0 8px; font-size: clamp(30px, 3.9vw, 58px); overflow-wrap: anywhere; }
.karte__fuss p { margin: 0; max-width: 40ch; font-size: clamp(15px, 1.2vw, 17px); }
.karte__spiele { margin-top: 10px !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: .04em; }

.laufband {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(64px, 9vw, 130px);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0,0,0,.25) 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, rgba(0,0,0,.25) 100%);
  color: var(--paper);
}
.laufband__band { display: inline-flex; will-change: transform; }
.laufband__band span { padding-right: .35em; }

/* ---------- Listen mit Linien ---------- */

.linienliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schwarz .linienliste { border-color: var(--paper); }
.linienliste > li { border-bottom: 1px solid var(--line); }
.schwarz .linienliste > li { border-color: rgba(255,255,255,.4); }

.termin {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 2fr 3fr;
  gap: 8px 30px;
  padding: 25px 0;
  align-items: baseline;
}
.termin__tag { white-space: nowrap; grid-row: span 2; font-weight: 800; text-transform: uppercase; font-stretch: 112%; letter-spacing: -0.01em; font-size: 20px; }
.termin__titel { font-size: var(--lead); font-weight: 800; line-height: 1.15; margin: 0; }
.termin p { margin: 0; }
.termin__ort { font-size: 15px; }

.zwei-spalten .termin { grid-template-columns: minmax(190px, 1fr) 3fr; }
.zwei-spalten .termin p { grid-column: 2; }

.zwei-spalten {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(30px, 6vw, 120px);
  align-items: start;
}

.abschluss {
  padding: clamp(100px, 14vw, 200px) var(--rand) clamp(40px, 6vw, 80px);
  display: grid;
  gap: 40px;
}
.abschluss__adresse { display: flex; flex-wrap: wrap; gap: 10px 60px; font-size: var(--lead); line-height: 1.3; }
.abschluss__adresse p { margin: 0; }

/* ---------- Seitenfuß und feste Leiste ---------- */

.seitenfuss {
  border-top: 1px solid var(--line);
  padding: 25px var(--rand) 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  font-size: 14px;
}
.schwarz.seitenfuss { border-color: var(--paper); }
.seitenfuss a { text-decoration: underline; text-underline-offset: .2em; display: inline-flex; align-items: center; min-height: 44px; }
.seitenfuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 25px; flex-wrap: wrap; }
.seitenfuss p { margin: 0; display: flex; align-items: center; min-height: 44px; }

.leiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--leiste);
  background: var(--void);
  color: var(--paper);
  border-top: 1px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--rand);
  font-size: 14px;
}
.leiste__marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-stretch: 112%;
}
.leiste__marke svg { width: 26px; height: auto; }
.leiste__marke:hover { text-decoration: none; }
.leiste__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 4px; }
.leiste__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.leiste__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.leiste__menue { display: none; position: relative; }
.leiste__menue summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.leiste__menue summary::-webkit-details-marker { display: none; }
.leiste__menue[open] summary { background: var(--paper); color: var(--void); }
.leiste__menue ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--void);
  border: 1px solid var(--paper);
  border-radius: 24px;
  min-width: 220px;
}
.leiste__menue a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  font-stretch: 112%;
}
.leiste__menue a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Unterseiten ---------- */

.seitenkopf { padding: clamp(40px, 7vw, 100px) var(--rand) clamp(50px, 7vw, 100px); display: grid; gap: 30px; }
.seitenkopf .lead { max-width: 40ch; }

/* Spielefinder */
.finder {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  color: var(--void);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
}
.finder .frage legend { width: auto; margin-right: 8px; }
.finder__stand { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 15px; }
.finder__stand[hidden] { display: none; }

.katalog { list-style: none; margin: 0; padding: 0 var(--rand) 40px; }
.spiel {
  display: grid;
  grid-template-columns: 120px minmax(0, 4fr) minmax(0, 5fr);
  gap: 20px 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .4s var(--ease);
}
.spiel__emblem svg { width: 120px; height: auto; }
.spiel h2 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 52px); overflow-wrap: anywhere; }
.spiel__eckdaten { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spiel__eckdaten li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--void);
  border-radius: 999px;
  font-size: 14px;
}
.spiel__text p { margin: 0 0 12px; max-width: 58ch; }
.spiel__material { font-size: 15px; color: var(--ink-soft); }
.spiel__grund { display: none; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-top: 12px !important; }
.spiel__eckdaten .spiel__neu { background: var(--acid); border-color: var(--acid); color: var(--void); font-weight: 800; }
.spiel--aus { opacity: .32; }
.spiel--aus .spiel__grund { display: block; }
.spiel--aus:hover, .spiel--aus:focus-within { opacity: .8; }

/* Werkstatt: Ablauf */
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; border-top: 1px solid var(--paper); }
.ablauf li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(30px, 6vw, 120px);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.ablauf h3 { margin: 0; }
.ablauf p { margin: 0; font-size: var(--lead); line-height: 1.35; max-width: 36ch; }
.ablauf__dauer { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; font-weight: 400; }

.leute { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 30px; list-style: none; margin: 0; padding: 0; }
.leute li { border-top: 1px solid var(--line); padding: 20px 0 30px; }
.leute b { display: block; font-size: 20px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.01em; }

/* Formular */
.formular { display: grid; gap: 25px; max-width: 720px; }
.feld { display: grid; gap: 8px; }
.feld label, .feld legend { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; font-weight: 400; padding: 0; }
.feld input, .feld textarea, .feld select {
  font: inherit;
  font-size: 18px;
  color: var(--void);
  background: var(--paper);
  border: 1px solid var(--void);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 52px;
  width: 100%;
  caret-color: var(--void);
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { outline: 2px solid var(--void); outline-offset: 2px; }
.feld small { font-size: 14px; color: var(--ink-soft); }
.feld fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hinweis { border: 1px solid var(--void); border-radius: 24px; padding: 20px 25px; font-size: 16px; max-width: 720px; }
.hinweis[hidden] { display: none; }

.rechtstext { padding: 0 var(--rand) clamp(80px, 10vw, 140px); }
.rechtstext h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; font-stretch: 112%; letter-spacing: -0.01em; margin: 40px 0 10px; }
.rechtstext p { margin: 0 0 1em; }
.demo-hinweis { display: inline-block; border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Responsiv ---------- */

@media (max-width: 899px) {
  .leiste__links { display: none; }
  .leiste__menue { display: block; }
  .zwei-spalten, .ablauf li { grid-template-columns: 1fr; }
  .termin, .zwei-spalten .termin { grid-template-columns: 1fr; gap: 6px; }
  .zwei-spalten .termin p { grid-column: auto; }
  .spiel { grid-template-columns: 72px minmax(0, 1fr); }
  .spiel__emblem svg { width: 72px; }
  .spiel__text { grid-column: 1 / -1; }
  .finder { position: static; }
  .finder__stand { margin-left: 0; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  .frage legend { float: none; width: 100%; margin-bottom: 2px; }
  .chip span { padding: 0 14px; }
  .szene { gap: 28px; padding-top: 20px; }
  .karte { width: 84vw; aspect-ratio: auto; min-height: 84vw; }
  .karte__bild svg { max-height: 120px; }
  .legeleiste { gap: 10px; }
  .frage { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Ohne JavaScript: Legeleiste aus, Katalog-Link an */
.nojs .nurjs { display: none !important; }
.js .nurohnejs { display: none; }
.nurohnejs { margin: 0; }
.termin--eins, .zwei-spalten .termin--eins { grid-template-columns: 1fr; }
.zwei-spalten .termin--eins p { grid-column: auto; }

@media (max-width: 899px) { .verlag__zeichen { margin-top: 30px; width: 200px; } .termin__tag { grid-row: auto; } }
