/* Doing-IT · Spielseite
   Farben wie auf der Website: warme Neutraltöne, Blau als Akzent,
   Terrakotta nur im Spiel-Strang. Schrift kommt vom Gerät (Inter, sonst System). */

:root {
  --bg: #ffffff;
  --bg-warm: #f6f5f4;
  --linie: #e7e5e2;
  --text: #1f1e1c;
  --text-leise: #6b6862;
  --blau: #1c43e4;
  --blau-aktiv: #1636bd;
  --blau-soft: #eef1fe;
  --navy: #041028;
  --play: #c2410c;
  --play-soft: #fff4ed;
  --gold: #f2c14e;
  --kalt: #4b7dff;
  --radius: 12px;
  --schrift: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Wichtig: unser .tafel{display:flex} würde das hidden-Attribut aushebeln. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

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

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

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

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--bg);
}

.kopf-innen {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.marke img { display: block; }

.kopf-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reihe {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--play);
  background: var(--play-soft);
  border: 1px solid #f3d9c7;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Aufbau */

.mitte {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 60px;
}

.buehne-rahmen { margin: 0 0 40px; }

.leinwand {
  position: relative;
  background: var(--navy);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 50px -30px rgba(4, 16, 40, .75);
  touch-action: none;
}

.leinwand canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* ------------------------------------------------------------------ Anzeige */

.anzeige {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 4px 14px;
  font-size: 15px;
}

.anzeige em {
  font-style: normal;
  color: var(--text-leise);
  margin-right: 4px;
}

.anzeige b { font-variant-numeric: tabular-nums; }

.anzeige-links, .anzeige-rechts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.leben { color: var(--play); letter-spacing: 2px; }

.chip {
  font-size: 12px;
  color: var(--text-leise);
  background: var(--bg-warm);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.knopf, .knopf-leise {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.knopf {
  background: var(--blau);
  color: #fff;
}

.knopf:hover { background: var(--blau-aktiv); }

.knopf-leise {
  background: var(--bg);
  color: var(--text);
  border-color: var(--linie);
  font-weight: 500;
  padding: 6px 14px;
  font-size: 14px;
}

.knopf-leise:hover { background: var(--bg-warm); }

/* ------------------------------------------------------------------ Tafel im Bild */

.tafel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(4, 16, 40, .82), rgba(4, 16, 40, .95));
  color: #f7f5f2;
  backdrop-filter: blur(2px);
}

.tafel-marke {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffb08a;
}

.tafel h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.tafel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
}

.tafel-text {
  margin: 0;
  max-width: 46ch;
  color: #cfd3dc;
}

.tafel-liste {
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  color: #cfd3dc;
  font-size: 15px;
}

.tafel-liste li { margin: 2px 0; }

.tafel-liste b {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 13px;
}

.tafel-klein {
  margin: 2px 0 0;
  font-size: 13px;
  color: #8f96a5;
}

.warm { color: #ff9052; }
.gold { color: var(--gold); }
.kalt { color: #86a6ff; }

.tafel .knopf { margin-top: 6px; }

/* ------------------------------------------------------------------ Legende */

.legende {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-leise);
}

.punkt {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.punkt.warm { background: var(--play); box-shadow: 0 0 8px rgba(194, 65, 12, .8); }
.punkt.gold { background: var(--gold); box-shadow: 0 0 8px rgba(242, 193, 78, .8); }
.punkt.kalt { background: var(--kalt); box-shadow: 0 0 8px rgba(75, 125, 255, .8); }
.punkt.leer { background: #b9b5ae; }

/* ------------------------------------------------------------------ Text unten */

.text { max-width: 66ch; }

.text h2 {
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.text p { margin: 0 0 16px; color: #3b3936; }

.text .knopf { margin: 0 10px 10px 0; }

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

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--bg-warm);
}

.fuss-innen {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-leise);
}

.still { color: #9b978f; }

/* ------------------------------------------------------------------ Rückmeldung */

body.wackeln .leinwand { animation: wackeln .19s ease; }

@keyframes wackeln {
  0% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ------------------------------------------------------------------ Handy */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .kopf-innen { padding: 12px 16px; gap: 10px; }
  .kopf-nav { gap: 8px; }
  .reihe { font-size: 11px; padding: 3px 9px; }
  .mitte { padding: 18px 16px 44px; }
  .leinwand { aspect-ratio: 4 / 5; border-radius: 14px; }
  .anzeige { font-size: 14px; gap: 8px; }
  .anzeige-links, .anzeige-rechts { gap: 12px; }
  .tafel { padding: 20px; }
  .tafel-liste { font-size: 14px; }
}
