/* Gemeinsame Optik aller Lino-Spiele. Jeder Band hat seine Welt-Farben
   (html[data-band]), die Figuren ihre Leitfarben (buecher/illustrationen.yaml). */

@font-face {
  font-family: "Lino Schrift";
  src: url("/gemeinsam/schrift/lino-schrift.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lino Schrift";
  src: url("/gemeinsam/schrift/lino-schrift-fett.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Leitfarben der Figuren */
  --lino: #3f9d4a;
  --emma: #e9b800;
  --toni: #b0323f;
  --mia: #8a56d0;

  /* Band 1: Unter der Erde – tiefes Blau, warmes Laternenlicht */
  --hintergrund: #1d2b4a;
  --flaeche: #2b3f66;
  --text: #fdf6e3;
  --text-leise: #c3cee3;
  --akzent: #f5c451;
  --akzent-text: #2b1d00;
  --schatten: rgba(0, 0, 0, 0.35);

  --rand: 16px;
  --radius: 18px;
}

/* Band 2: Nebelmeer – Grau, Blaugrün, Signallicht */
:root[data-band="2"] {
  --hintergrund: #22373b;
  --flaeche: #33504f;
  --text: #f1f5f2;
  --text-leise: #b7cbc8;
  --akzent: #ef8a3c;
  --akzent-text: #2a1300;
}

/* Band 3: Stadt der genauen Worte – Papier, Backstein, Druckfarbe */
:root[data-band="3"] {
  --hintergrund: #efe4cf;
  --flaeche: #fffaf0;
  --text: #2c2320;
  --text-leise: #6b5d55;
  --akzent: #b8402f;
  --akzent-text: #fff;
  --schatten: rgba(60, 30, 10, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--hintergrund);
  color: var(--text);
  font-family: "Lino Schrift", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

h1,
h2 {
  line-height: 1.2;
}

a {
  color: inherit;
}

/* Normale Seiten (Spielhaus, Start): scrollen, schmale Spalte */
.seite {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) var(--rand) calc(32px + env(safe-area-inset-bottom));
}

.leise {
  color: var(--text-leise);
}

/* Spielseiten: füllen den Bildschirm, nichts scrollt oder zoomt */
.spielseite {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px var(--rand);
}

.kopf h1 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  text-align: center;
}

/* Knöpfe: mindestens 48 px hoch, damit Kinderfinger treffen */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.knopf.leise {
  background: var(--flaeche);
  color: var(--text);
}

.knopf.rund {
  width: 48px;
  padding: 0;
  font-size: 1.4rem;
}

.knopf:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* Start- und Rundenende-Karte (lino.js: startbildschirm, rundenende) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: var(--rand);
  background: rgba(0, 0, 0, 0.55);
  touch-action: manipulation;
}

.overlay .karte {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--text);
  text-align: center;
  box-shadow: 0 12px 40px var(--schatten);
}

.overlay h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.overlay p {
  margin: 0;
}

.overlay .knopf.leise {
  box-shadow: inset 0 0 0 2px var(--text-leise);
}

.overlay .knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Spielhaus */
.spiele {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.spielkarte > a,
.spielkarte > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--flaeche);
  color: inherit;
  text-decoration: none;
}

.spielkarte.neu > a {
  outline: 3px solid var(--akzent);
}

.spielkarte .bild {
  flex: none;
  width: 56px;
  font-size: 2.6rem;
  text-align: center;
}

.spielkarte strong {
  display: block;
  font-size: 1.2rem;
}

.spielkarte .marke {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--akzent);
  color: var(--akzent-text);
  font-size: 0.85rem;
  vertical-align: 2px;
}

.spielkarte.geheim {
  opacity: 0.5;
}

/* Fußzeile mit Impressum und Datenschutz (Startseite, Spielhaus, 404) */
.fuss {
  margin-top: 40px;
  color: var(--text-leise);
  font-size: 0.9rem;
  text-align: center;
}

/* Impressum und Datenschutzerklärung */
.rechtliches h2 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.rechtliches p {
  margin: 0 0 12px;
}
