/* ==========================================================
   Grips-Test – Ergänzungen
   Grundgestaltung, Farben und Schrift kommen aus
   ../einstufungstest/css/stil.css. Hier steht nur, was dieser
   Test zusätzlich braucht.
   ========================================================== */

.knopf.klein{padding:.4rem .8rem;font-size:.85rem}
a.knopf{text-decoration:none;display:inline-block}
.spass-hinweis{font-size:.95rem;color:var(--sand);max-width:52ch}

/* ---------- Entwicklerleiste ---------- */
.dev-leiste{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;
  background:var(--sand-hell);border:1px dashed var(--sand);border-radius:10px;
  padding:.5rem .9rem;margin-bottom:1.2rem;font-size:.85rem;color:var(--sand);
}
.dev-leiste code{font-variant-numeric:tabular-nums}
.dev-knoepfe{display:flex;gap:.4rem;flex-wrap:wrap}
.dev-daten{margin-top:2rem;font-size:.85rem}
.dev-daten pre{
  background:var(--karte-2);border-radius:10px;padding:.8rem;overflow-x:auto;
  font-size:.78rem;line-height:1.4;max-height:24rem;
}

/* ---------- Startseite ---------- */
.start-karte{
  background:var(--karte);border:1px solid var(--linie);border-radius:14px;
  padding:1.5rem;box-shadow:var(--schatten);margin-top:1.5rem;
}
.start-karte .checkliste{margin:1rem 0 1.4rem}
.codewort-zeile{display:flex;flex-direction:column;gap:.35rem}
.codewort-zeile label{font-size:.9rem;color:var(--tinte-2)}
input.codewort{
  width:100%;max-width:18rem;text-align:left;font-size:1.1rem;font-weight:600;
  letter-spacing:.02em;font-variant-numeric:tabular-nums;
}
.zeit-fehler{width:100%;margin:0;font-size:.9rem;color:var(--sand)}
.zeit-echo{font-size:.9rem;color:var(--gedaempft)}

/* ---------- Anleitung und Beispiel ---------- */
.beispiel{
  margin-top:1.3rem;padding:1rem 1.1rem;border-radius:12px;
  background:var(--karte-2);
}
.beispiel-marke{
  font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gedaempft);
  margin-bottom:.6rem;
}
.beispiel-erklaerung{margin:.8rem 0 0;font-size:.95rem;color:var(--akzent);font-weight:600}
.beispiel .option.richtig{border-color:var(--akzent);background:var(--akzent-hell)}
.beispiel .option.falsch{border-color:var(--sand);background:var(--sand-hell)}

/* ---------- Aufgabe ---------- */
.gt-karte .uhr{max-width:none;margin:0 0 1.3rem}
.gt-karte .uhr-zeit{text-align:right}
.gt-karte .uhr-zeit.knapp{color:var(--sand);font-weight:700}
.gt-frage{
  font-size:clamp(1.5rem,6vw,2.1rem);font-weight:700;letter-spacing:.02em;
  font-variant-numeric:tabular-nums;line-height:1.4;max-width:none;
  text-align:center;margin:0 0 1.3rem;
}
.gt-optionen{grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr));gap:.6rem}
.gt-optionen .option{
  grid-template-columns:1fr;justify-items:center;padding:.9rem .5rem;
  font-size:1.35rem;font-weight:700;font-variant-numeric:tabular-nums;
}
.gt-optionen .option .kasten{display:none}
.gt-optionen .option .inhalt{font-size:inherit}
.gt-optionen.woerter{grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}
.gt-optionen.woerter .option{font-size:1.2rem;padding:.7rem .5rem}
.gt-optionen .option .inhalt{overflow-wrap:anywhere}
/* Bilder (Matrizen): Raster 3×3 höchstens ~100 px je Feld, Optionen als Bildknöpfe */
.gt-bild{display:flex;justify-content:center}
.gt-bild svg{width:100%;max-width:306px}
.gt-bild svg.wuerfel{max-width:150px}
.gt-optionen.bilder{grid-template-columns:repeat(auto-fit,minmax(5.2rem,1fr))}
.gt-optionen.bilder .option{padding:.35rem}
.gt-optionen.bilder .option svg{width:100%;max-width:92px;height:auto;display:block}
.gt-frage{overflow-wrap:break-word}
.gt-optionen .option.gewaehlt{border-color:var(--akzent);background:var(--akzent-hell)}
.gt-optionen .option.dev-richtig{box-shadow:inset 0 0 0 2px var(--akzent)}
.gt-optionen .option.dev-falsch{box-shadow:inset 0 0 0 2px var(--sand)}
.gt-karte.gesperrt .option{pointer-events:none;opacity:.7}
.zeit-um{
  margin:1rem 0 0;text-align:center;font-weight:700;color:var(--sand);font-size:1.1rem;
}

/* ---------- Spiele: Wortliste, Zahlen merken, Sprint ---------- */
.spiel-buehne{text-align:center}
.spiel-hinweis{margin:0 auto 1rem;font-size:.95rem;color:var(--tinte-2);max-width:40ch}
.wort-gruppen{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.9rem .6rem;text-align:left}
.wort-gruppe h3{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gedaempft);margin:0 0 .25rem}
.wort-gruppe ul{list-style:none;margin:0;padding:0}
.wort-gruppe li{font-size:1.15rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.wort-auswahl{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.4rem;margin-bottom:1rem}
.wort-auswahl .option.wort{grid-template-columns:1fr;justify-items:center;padding:.45rem .3rem;font-weight:600;
  overflow-wrap:anywhere;border-width:1.5px}
.wort-auswahl .option.wort[aria-pressed="true"]{border-color:var(--akzent);background:var(--akzent-hell);color:var(--akzent-tief)}

.zm-teil{font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gedaempft);margin:0 0 .3rem}
.zm-anzeige{min-height:5.5rem;display:flex;align-items:center;justify-content:center;
  font-size:4.5rem;font-weight:800;line-height:1;color:var(--akzent);font-variant-numeric:tabular-nums}
.zm-anzeige .knopf{font-size:1rem}
.zm-eingabe{display:flex;justify-content:center;gap:.35rem;min-height:2.8rem;margin-bottom:1rem}
.zm-eingabe span{width:2.1rem;height:2.6rem;border-bottom:3px solid var(--linie-stark);
  font-size:1.6rem;font-weight:700;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.zm-eingabe span.voll{border-color:var(--akzent)}
.ziffernfeld{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;max-width:18rem;margin:0 auto}
.ziffernfeld button{
  font:inherit;font-size:1.5rem;font-weight:700;padding:.75rem 0;border-radius:10px;cursor:pointer;
  background:var(--karte);color:var(--tinte);border:1px solid var(--linie-stark);font-variant-numeric:tabular-nums;
  touch-action:manipulation;
}
.ziffernfeld button.ok{background:var(--akzent);color:var(--auf-akzent);border-color:var(--akzent)}
.ziffernfeld button:disabled{opacity:.4;cursor:default}
.ziffernfeld.gesperrt{opacity:.35;pointer-events:none}

.sprint-schluessel{display:grid;grid-template-columns:repeat(9,1fr);gap:2px;margin:0 0 1rem;
  border:1px solid var(--linie);border-radius:10px;overflow:hidden;background:var(--linie)}
.sprint-schluessel span{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.35rem 0;background:var(--karte)}
.sprint-schluessel b{font-size:1rem;font-variant-numeric:tabular-nums}
.sprint-schluessel svg{width:100%;max-width:26px;height:auto}
.sprint-ziffer{font-size:4.5rem;font-weight:800;line-height:1.1;color:var(--akzent);margin:.2rem 0 .8rem;font-variant-numeric:tabular-nums}
.sprint-leiste{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;max-width:20rem;margin:0 auto}
.sprint-leiste .option{grid-template-columns:1fr;justify-items:center;padding:.7rem 0;touch-action:manipulation}
.sprint-leiste .option .kasten{display:none}
.sprint-leiste .option svg{width:34px;height:34px}
.sprint-leiste .option.gedrueckt{background:var(--karte-2)}
.sprint-stand{margin:.8rem 0 0}

/* ---------- Ergebnis ---------- */
.gt-ergebnis{text-align:center;border-left-width:1px}
.gt-ergebnis .marke-zone{margin-bottom:.2rem}
.gt-wert{
  font-size:clamp(3rem,14vw,4.6rem);font-weight:800;line-height:1;margin:0 0 .3rem;
  color:var(--akzent);font-variant-numeric:tabular-nums;max-width:none;
}
.gt-ergebnis h2{font-size:1.6rem;margin-bottom:.6rem}
.gt-ergebnis .spass-hinweis{margin:0 auto;font-size:.9rem}
.profil-satz{margin:.8rem 0 0;font-size:.95rem;color:var(--tinte-2)}
.platz-gesamt{font-size:1.2rem;font-weight:700;margin:.4rem 0 .3rem}
.platz-bereiche{list-style:none;margin:0;padding:0;font-size:.95rem;color:var(--tinte-2)}
.platz-bereiche li{padding:.1rem 0}
.zeile-balken .spur i.offen{background:transparent}
.zeile-balken .wert.offen{font-weight:500}
.untertest-tabelle-block{margin-top:2rem}
.fehler-tabelle td.grau{color:var(--gedaempft)}

@media (max-width:420px){
  .gt-optionen{grid-template-columns:repeat(2,1fr)}
  .gt-optionen.woerter{grid-template-columns:1fr}
  .gt-optionen.bilder{grid-template-columns:repeat(3,1fr)}
  .dev-leiste{font-size:.8rem}
}

/* ---------- Tabelle und Fußzeile (wie im Einmaleins-Test) ---------- */
.fehler-tabelle{width:100%;border-collapse:collapse;margin-top:.6rem;font-size:.95rem}
.fehler-tabelle th{
  text-align:left;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--gedaempft);font-weight:600;padding:.4rem .6rem .4rem 0;
  border-bottom:1px solid var(--linie);
}
.fehler-tabelle td{padding:.45rem .6rem .45rem 0;border-bottom:1px solid var(--linie);font-variant-numeric:tabular-nums}
.fuss-klein{
  display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;
  border-top:1px solid var(--linie);margin-top:3rem;padding-top:1.2rem;font-size:.9rem;
}
.fuss-klein a{color:var(--gedaempft);text-decoration:none}
.fuss-klein a:hover{color:var(--akzent);text-decoration:underline}
.fuss-klein .punkt{color:var(--akzent);padding:0 .1em}
