:root {
  --grund: #e7edf2;
  --flaeche: #ffffff;
  --tinte: #16202b;
  --leise: #4f5d6b;
  --linie: #c9d3dc;
  --band: #f5c518;
  --band-dunkel: #16202b;
  --knopf: #16202b;
  --knopf-text: #ffffff;
  --fokus: #1f63d6;
  --schrift-titel: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #111a23;
    --flaeche: #1a2632;
    --tinte: #e8eef3;
    --leise: #a7b4c1;
    --linie: #2e3d4c;
    --knopf: #f5c518;
    --knopf-text: #16202b;
    --fokus: #7fb0ff;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; }

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

.rahmen {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Kopf */
.kopf { padding-top: 2.75rem; padding-bottom: 2rem; }

.kopf h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.kopf p {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--leise);
}

.kopf p strong { color: var(--tinte); font-weight: 600; }

/* Spieleliste */
.spiele {
  list-style: none;
  margin: 0;
  padding: 0 0 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .spiele { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.spiel {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bild { position: relative; margin: 0; aspect-ratio: 16 / 10; background: #101823; }

.bild img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Das Absperrband: zeigt den Stand des Spiels */
.band {
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  bottom: 1.1rem;
  transform: rotate(-3deg);
  padding: 0.4rem 1.25rem;
  background:
    repeating-linear-gradient(-45deg, var(--band-dunkel) 0 12px, var(--band) 12px 24px) top / 100% 6px no-repeat,
    repeating-linear-gradient(-45deg, var(--band-dunkel) 0 12px, var(--band) 12px 24px) bottom / 100% 6px no-repeat,
    var(--band);
  color: #16202b;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
  padding-top: calc(0.4rem + 6px);
  padding-bottom: calc(0.4rem + 6px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.spiel.bald .bild img { filter: saturate(0.55) brightness(0.8); }

.inhalt {
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.25rem;
  flex: 1;
  grid-template-rows: auto 1fr;
}

.inhalt h2 {
  margin: 0 0 0.4rem;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}

.inhalt p { margin: 0; max-width: 34rem; }

.inhalt .hinweis { margin-top: 0.6rem; color: var(--leise); font-size: 0.95rem; }

.aktionen { display: flex; gap: 1.25rem; align-items: flex-end; justify-content: space-between; }

.knoepfe { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; max-width: 20rem; }

.knopf {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  border: 2px solid var(--knopf);
  min-height: 3rem;
}

.knopf.spielen { background: var(--knopf); color: var(--knopf-text); font-size: 1.1rem; }

.knopf.spielen:hover { filter: brightness(1.15); }

.knopf.rueckmeldung { background: transparent; color: var(--tinte); border-color: var(--linie); }

.knopf.rueckmeldung:hover { border-color: var(--tinte); }

.stand { margin: 0; font-size: 0.875rem; color: var(--leise); }

.wartet { margin: 0; color: var(--leise); font-weight: 600; }

/* QR-Code nur dort, wo man ihn mit dem Handy abfotografieren kann */
.handy { display: none; margin: 0; text-align: center; font-size: 0.8rem; color: var(--leise); }

.handy .qr { display: block; width: 7.5rem; height: 7.5rem; margin-bottom: 0.35rem; border-radius: 3px; }

@media (min-width: 52rem) {
  .handy { display: block; }
}

/* Fuss */
.fuss {
  border-top: 1px solid var(--linie);
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--leise);
  font-size: 0.95rem;
}

.fuss p { margin: 0 0 0.75rem; max-width: 40rem; }

.fuss nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.fuss nav a { padding: 0.25rem 0; }
