/* IT.nativ – Baustellenseite. Farben aus dem Logo (logo-6): Tinte, Orange, Papier. */
@font-face { font-family: "Archivo"; src: url("schrift/archivo-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("schrift/inter-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("schrift/inter-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --tinte: #111214;
  --orange: #FF5C00;
  --papier: #F4F3EF;
  --flaeche: #FBFAF7;
  --linie: #DAD8D0;
  --gedaempft: #55585C;
  --grau: #B7B3A8;
  --stahl: #6E6B64;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--papier);
  color: var(--tinte);
  font: 400 17px/1.55 "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tinte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
/* Fokus in Tinte (Orange allein erreicht auf Papier nur 2,8:1), außen ein oranger Saum für die Marke */
a:focus-visible, button:focus-visible, canvas:focus-visible {
  outline: 3px solid var(--tinte); outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--orange);
}

.seite { max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; }

/* Wortmarke digital mindestens 120 px breit (Styleguide) */
.marke {
  font: 800 36px/1 "Archivo", Arial, sans-serif;
  letter-spacing: -1.4px;
  text-decoration: none;
}
.marke .punkt, h1 .punkt { color: var(--orange); }

h1 {
  font: 800 clamp(34px, 7vw, 52px)/1.05 "Archivo", Arial, sans-serif;
  letter-spacing: -1.5px;
  margin: 40px 0 12px;
}
h2 { font: 800 24px/1.2 "Archivo", Arial, sans-serif; letter-spacing: -0.5px; margin: 0 0 8px; }
.einleitung { margin: 0 0 24px; color: var(--gedaempft); max-width: 34em; }

/* Das Spiel */
.spiel {
  background: var(--flaeche);
  border: 2px solid var(--tinte);
  border-radius: 14px;
  padding: 12px;
}
.spiel-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; margin: 0 4px 10px;
}
.werte { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; font-variant-numeric: tabular-nums; }
.werte div { display: flex; gap: 5px; }
.werte dt { color: var(--gedaempft); }
.werte dt::after { content: ":"; }
.werte dd { margin: 0; font-weight: 500; }

.knopf {
  font: 500 15px/1 "Inter", Arial, sans-serif;
  color: var(--tinte); background: transparent;
  border: 1.5px solid var(--tinte); border-radius: 999px;
  padding: 10px 14px; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.knopf:hover { background: var(--tinte); color: var(--papier); }

.feld { display: flex; justify-content: center; }
/* Feste Breite: Mit width:auto übernähme ein Canvas seine eigene Bildpunktbreite, und die
   Größenanpassung im Skript schaukelte sich auf 300 px fest oder gegen null. */
canvas {
  display: block;
  width: min(100%, calc(72vh * 608 / 600));
  aspect-ratio: 608 / 600;
  touch-action: pan-y; cursor: pointer;
  border-radius: 8px;
}
.meldung { margin: 8px 4px 0; min-height: 1.4em; font-size: 15px; font-weight: 500; }
.bedienung { margin: 6px 4px 0; font-size: 14px; color: var(--gedaempft); }

.legende {
  list-style: none; margin: 10px 4px 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13px; color: var(--gedaempft);
}
.legende li { display: flex; align-items: center; gap: 6px; }
/* Muster wie im Spielfeld: Bandsteine 32 x 12, Wortsteine 16 x 8 */
.probe { position: relative; flex: none; display: inline-block; width: 24px; height: 11px; border-radius: 2px; }
.probe-hart { width: 16px; height: 8px; background: var(--tinte); }
.probe-hart::after { content: ""; position: absolute; inset: 2px 4px; background: var(--flaeche); }
.probe-bombe { background: var(--orange); }
.probe-bombe::after { content: ""; position: absolute; left: 9px; top: 2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--tinte); }
.probe-blitz { background: var(--tinte); }
.probe-blitz::after { content: ""; position: absolute; left: 4px; right: 4px; top: 4.5px; height: 2px; background: var(--orange); transform: skewY(-20deg); }
.probe-ueberraschung { background: var(--flaeche); box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); font: 800 9px/11px "Archivo", Arial, sans-serif; text-align: center; }
.probe-stahl { background: var(--stahl); }
.probe-stahl::after { content: ""; position: absolute; left: 4px; top: 4px; width: 3px; height: 3px; background: var(--flaeche); box-shadow: 6px 0 var(--flaeche), 12px 0 var(--flaeche); }
.probe-punkt { width: 16px; height: 8px; background: var(--orange); }

/* Inhalt darunter */
.block { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--linie); }
.block p { margin: 0 0 10px; max-width: 34em; }

footer {
  margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--gedaempft);
}
footer a { color: var(--gedaempft); padding: 6px 0; }

/* Rechtstexte */
.recht h1 { font-size: clamp(30px, 6vw, 40px); margin-top: 36px; }
.recht h2 { font-size: 20px; margin-top: 28px; }
.recht p, .recht li { max-width: 38em; }
.stand { color: var(--gedaempft); font-size: 14px; }
.hervorgehoben { border-left: 3px solid var(--tinte); padding-left: 12px; }
