/* =========================================================
   Quatschkiste – Stylesheet
   Keine externen Schriften, keine externen Skripte.
   Wer eine eigene Schrift will: Datei selbst mit hochladen
   und hier per @font-face einbinden (NICHT über Google Fonts,
   das wäre datenschutzrechtlich wieder eine Baustelle).
   ========================================================= */

:root {
  --flieder: #E6DEF5;
  --papier:  #FFFCF2;
  --tinte:   #1A1633;
  --tomate:  #E8452C;
  --senf:    #F2B01E;
  --minze:   #35B79A;

  --rand: 3px;
  --schatten: 8px 8px 0 var(--tinte);

  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--flieder);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--tinte); }

:focus-visible {
  outline: 3px solid var(--tomate);
  outline-offset: 3px;
}

.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.mini { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }

.sprung {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tinte);
  color: var(--papier);
  padding: 12px 18px;
  font-family: var(--mono);
  z-index: 20;
}
.sprung:focus { left: 12px; top: 12px; }

/* ---------- Kopf ---------- */

.kopf {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.marke {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.kopfnav {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.kopfnav a { text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.kopfnav a:hover { border-bottom-color: var(--tomate); }

/* ---------- Held ---------- */

.held {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.augenbraue {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
}

.titel {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  margin: 0 0 26px;
  isolation: isolate;
}
.titel span { position: relative; display: inline-block; }
.titel span::before {
  content: attr(data-text);
  position: absolute;
  left: 0.055em;
  top: 0.05em;
  color: var(--tomate);
  z-index: -1;
}

.lead {
  max-width: 34em;
  font-size: 1.15rem;
  margin: 0 0 40px;
}

.maschine {
  background: var(--papier);
  border: var(--rand) solid var(--tinte);
  box-shadow: var(--schatten);
  padding: 20px 24px 22px;
  max-width: 420px;
}
.maschine .mini { margin: 0 0 6px; }

.wort {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 14px;
  min-height: 1.05em;
  word-break: break-word;
}
.wort-neu { animation: aufblitzen 260ms ease-out; }

@keyframes aufblitzen {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.balken {
  height: 10px;
  border: 2px solid var(--tinte);
  background: var(--flieder);
  margin-bottom: 16px;
}
.balken span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--minze);
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  background: var(--tinte);
  color: var(--papier);
  border: var(--rand) solid var(--tinte);
  padding: 11px 20px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.knopf:hover { background: var(--tomate); border-color: var(--tomate); color: var(--papier); }
.knopf.mini { font-size: 0.72rem; padding: 8px 14px; }

/* ---------- Spiele ---------- */

.spiele, .hinweis {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.abschnitt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: var(--rand) solid var(--tinte);
}

.regal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.spiel {
  background: var(--papier);
  border: var(--rand) solid var(--tinte);
  box-shadow: var(--schatten);
  padding: 0 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 130ms ease, box-shadow 130ms ease;
}
.spiel:hover, .spiel:focus-within {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--tinte);
}

.deckel {
  height: 26px;
  margin: 0 -22px 18px;
  border-bottom: var(--rand) solid var(--tinte);
}
.deckel-tomate { background: var(--tomate); }
.deckel-senf   { background: var(--senf); }
.deckel-minze  { background: var(--minze); }
.deckel-tinte  { background: var(--tinte); }

.status {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  display: inline-block;
  align-self: flex-start;
  border: 2px solid var(--tinte);
  padding: 3px 8px;
}
.status-fertig { background: var(--minze); }
.status-arbeit { background: var(--senf); }

.spiel h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.beschreibung { margin: 0 0 18px; }

.fakten {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 2px solid var(--tinte);
}
.fakten li {
  padding: 7px 0;
  border-bottom: 2px dotted var(--tinte);
}

.spiel .knopf { margin-top: auto; align-self: flex-start; }

.spiel-leer {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  padding-top: 24px;
}
.spiel-leer:hover, .spiel-leer:focus-within { transform: none; box-shadow: none; }

/* ---------- Hinweis ---------- */

.hinweis-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
.hinweis-raster p:last-child { margin: 0; }
.hinweis-raster .mini { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--tinte); }

/* ---------- Rechtstexte ---------- */

.blatt {
  max-width: 780px;
  margin: 0 auto 70px;
  background: var(--papier);
  border: var(--rand) solid var(--tinte);
  box-shadow: var(--schatten);
  padding: 34px 34px 40px;
}
.blatt-rand { padding: 0 24px; }

.blatt h1 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 0 0 26px;
}
.blatt h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tinte);
}
.blatt h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}
.blatt p, .blatt li { margin: 0 0 12px; }
.blatt ul { padding-left: 22px; }
.blatt address { font-style: normal; }

.luecke {
  background: var(--senf);
  border-bottom: 2px solid var(--tinte);
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.9em;
}

.merke {
  background: var(--flieder);
  border-left: var(--rand) solid var(--tomate);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.94rem;
}
.merke p:last-child { margin: 0; }

/* ---------- Fuß ---------- */

.fuss {
  border-top: var(--rand) solid var(--tinte);
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 520px) {
  :root { --schatten: 6px 6px 0 var(--tinte); }
  body { font-size: 16px; }
  .blatt { padding: 24px 20px 30px; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
