/* Gemeinsames Aussehen der statischen Seiten (Info, Impressum, Datenschutz). */
:root {
  --ink: #2b2d42;
  --paper: #fff8e7;
  --sun: #ffd23f;
  --ocean: #8fd3f4;
  --red: #ef476f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ocean);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  background: var(--sun);
  border-bottom: 4px solid var(--ink);
  padding: 14px 16px;
  text-align: center;
}

header a {
  color: var(--ink);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 1px;
  text-decoration: none;
}

main {
  max-width: 760px;
  margin: 24px auto;
  padding: 24px 22px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

h1, h2 { line-height: 1.2; }
h1 { margin-top: 0; }
h2 { margin-top: 28px; }

.vorlage {
  background: #ffe1e1;
  border: 2px solid var(--red);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
}

.luecke {
  background: #fff1a8;
  padding: 0 4px;
  border-radius: 4px;
}

.knopf {
  display: inline-block;
  margin: 12px 0;
  padding: 12px 22px;
  background: #06d6a0;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 0 16px 28px;
}

footer a { color: var(--ink); margin: 0 8px; }

/* ---------- Startseite ---------- */

.start .held {
  padding: 40px 16px 34px;
  text-align: center;
  background: var(--sun);
  border-bottom: 4px solid var(--ink);
}

.logo {
  margin: 0;
  font-size: clamp(40px, 9vw, 84px);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--sun);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
  font-style: italic;
}

.slogan {
  margin: 8px 0 22px;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
}

.spielknopf {
  display: inline-block;
  padding: 18px 46px;
  background: #06d6a0;
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s;
}

.spielknopf:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.spielknopf:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.spielknopf.klein { font-size: 26px; padding: 14px 34px; }

.hinweis { margin: 16px 0 0; font-weight: 700; }

.bild { margin: 0 0 8px; text-align: center; }

.bild img {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.bild figcaption { font-size: 14px; margin-top: 6px; }

.start main { max-width: 900px; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.karte {
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.karte h3 { margin: 0 0 6px; font-size: 22px; }
.karte p { margin: 0; font-size: 15px; }
.karte.rot { border-top: 10px solid var(--red); }
.karte.gruen { border-top: 10px solid #5fd068; }
.karte.orange { border-top: 10px solid #ff9f1c; }
.karte.lila { border-top: 10px solid #9b5de5; }

.schritte li { margin-bottom: 6px; }

.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tabelle th, .tabelle td {
  text-align: start;
  padding: 7px 8px;
  border-bottom: 2px solid rgba(43, 45, 66, 0.15);
  vertical-align: top;
}

.tabelle td:nth-child(2) { white-space: nowrap; font-weight: 700; }

.mitte { text-align: center; margin-top: 30px; }

.quelle { font-size: 13px; margin-top: 12px; }

@media (max-width: 520px) {
  .tabelle td:nth-child(2) { white-space: normal; }
}

.hinweis-klein {
  font-size: 14px;
  font-style: italic;
  opacity: 0.8;
}

/* ---------- Sprachauswahl (Startseite) ---------- */

.sprachwahl {
  position: relative;
  font-weight: 700;
}

.sprachwahl summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.sprachwahl summary::-webkit-details-marker { display: none; }

.sprachwahl ul {
  position: absolute;
  inset-inline-end: 0;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  max-height: 70vh;
  overflow-y: auto;
  min-width: 190px;
}

.sprachwahl li a {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.sprachwahl li a:hover { background: var(--paper); }
.sprachwahl li a[aria-current] { background: var(--sun); }

.start { position: relative; }

.andere-sprache {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  background: #fff;
  border-bottom: 3px solid var(--ink);
  font-weight: 700;
}

.andere-sprache a { color: var(--ink); }



/* Textseiten (Anleitung, Strategie, FAQ, Neuigkeiten). */
.seitennav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 0;
}

.seitennav a {
  padding: 6px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.seitennav a[aria-current="page"] { background: var(--sun); }

.stand { font-size: 14px; opacity: 0.75; margin-top: -6px; }

table.werte {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

table.werte th, table.werte td {
  border: 2px solid var(--ink);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

table.werte th { background: var(--sun); }

.neuigkeit + .neuigkeit {
  border-top: 2px dashed var(--ink);
  margin-top: 18px;
}

.neuigkeit h2 { font-size: 20px; }

.neuigkeit time { font-weight: 900; }

@media (max-width: 560px) {
  table.werte { font-size: 14px; }
  table.werte th, table.werte td { padding: 5px 6px; }
}

/* Bilder in der Spielanleitung. */
figure.bild { margin: 18px 0 22px; }

figure.bild img,
.galerie img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

figure.bild figcaption,
.galerie figcaption {
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.85;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 6px;
}

.galerie figure { margin: 0; }
.galerie figcaption { font-weight: 800; text-align: center; }

@media (max-width: 560px) {
  .galerie { grid-template-columns: 1fr; }
}

/* ---------- Leiste oben (alle Seiten) ---------- */
/* Bleibt beim Scrollen stehen: Logo, Aufklappmenü mit den Unterseiten,
   Sprachauswahl (Startseiten) und immer sichtbar der Spielknopf. */
.leiste {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--sun);
  border-bottom: 4px solid var(--ink);
}

.leiste-logo {
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  margin-inline-end: auto;
}

.menue { position: relative; font-weight: 800; }

.menue summary,
.leiste .sprachwahl summary {
  cursor: pointer;
  list-style: none;
  padding: 7px 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}

.menue summary::-webkit-details-marker { display: none; }
.menue[open] summary { background: var(--paper); }

.menue ul {
  position: absolute;
  inset-inline-end: 0;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  min-width: 210px;
}

.menue li a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.menue li a:hover { background: var(--paper); }
.menue li a[aria-current] { background: var(--sun); }

.leiste-spielen {
  padding: 9px 18px;
  background: #06d6a0;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.leiste-spielen:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* Handy: kompakter, Logo kleiner. */
@media (max-width: 560px) {
  .leiste { gap: 6px; padding: 6px 8px; }
  .leiste-logo { font-size: 15px; letter-spacing: 0; }
  .menue summary, .leiste .sprachwahl summary { padding: 6px 8px; }
  .leiste-spielen { padding: 7px 10px; font-size: 14px; }
}

@media (max-width: 400px) {
  .leiste-logo { display: none; }
  .menue { margin-inline-end: auto; }
}
