/* Zahlenraten -- Farben und Formensprache wie die uebrigen
   Jg6-Tools (vgl. evaBlackbox.css, shared/css/overview.css). */

:root {
  --zr-primary: #4a6cf7;
  --zr-primary-dark: #3a5be0;
  --zr-ink: #2f3542;
  --zr-bg: #eef2f7;
  --zr-right: #2ecc71;
  --zr-wrong: #ff4a4a;
  --zr-gold: #ffd24a;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--zr-bg);
  color: #333;
}

.zr-screen {
  display: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px 60px 24px;
}

.zr-screen.zr-active {
  display: block;
}

.zr-title {
  margin: 0 0 10px 0;
  font-size: 2rem;
  color: var(--zr-ink);
  text-align: center;
}

.zr-subtitle {
  margin: 0 auto 26px auto;
  max-width: 620px;
  text-align: center;
  line-height: 1.55;
  color: #555;
}

.zr-kopf {
  margin-bottom: 6px;
}

/* ---------- Startbildschirm ---------- */

.zr-block {
  margin-bottom: 28px;
}

.zr-block__title {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  color: var(--zr-ink);
}

.zr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zr-chip {
  padding: 12px 26px;
  border: 2px solid #dfe4ec;
  border-radius: 999px;
  background: #fff;
  color: var(--zr-ink);
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.zr-chip:hover {
  border-color: var(--zr-primary);
  background: #f4f7ff;
}

.zr-chip--aktiv {
  border-color: var(--zr-primary);
  background: var(--zr-primary);
  color: #fff;
}

.zr-modusgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.zr-moduscard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 18px;
  background: var(--zr-ink);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zr-moduscard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.zr-moduscard__icon { font-size: 2.2rem; line-height: 1; }

.zr-moduscard__name {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--zr-gold);
}

.zr-moduscard__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #dfe4ec;
  text-align: center;
}

/* ---------- Fragenzaehler ---------- */

.zr-zaehler {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 auto 20px auto;
  padding: 14px 30px;
  width: max-content;
  background: var(--zr-ink);
  border-radius: 14px;
}

.zr-zaehler__wert {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--zr-gold);
  line-height: 1;
}

.zr-zaehler__label {
  font-size: 0.75rem;
  color: #aeb6c4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Karten ---------- */

.zr-card {
  margin: 0 auto 20px auto;
  max-width: 640px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.zr-card__title {
  margin: 0 0 14px 0;
  font-size: 1.1rem;
  color: var(--zr-ink);
}

/* ---------- Fragezeilen (Modus 1) ---------- */

.zr-fragezeile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.zr-fragetext {
  font-size: 1.05rem;
  color: var(--zr-ink);
}

.zr-zahlfeld {
  width: 92px;
  height: 44px;
  padding: 0 8px;
  border: 2px solid #c7d0e0;
  border-radius: 8px;
  background: #fff;
  color: var(--zr-ink);
  font-size: 1.2rem;
  text-align: center;
}

.zr-zahlfeld:focus {
  outline: none;
  border-color: var(--zr-primary);
}

/* ---------- Trenner + Hinweis vor der "Sicher!"-Zeile ---------- */

.zr-trenner {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #e4e9f0;
}

.zr-hinweis {
  margin: 0 0 12px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #777;
}

/* ---------- Knoepfe ---------- */

.zr-btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 6px 0;
}

.zr-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--zr-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.zr-btn:hover:enabled {
  background: var(--zr-primary-dark);
  transform: translateY(-2px);
}

.zr-btn:disabled { opacity: 0.45; cursor: default; }

.zr-btn--secondary { background: #99a1b3; }
.zr-btn--secondary:hover:enabled { background: #808a9e; }

.zr-btn--ja   { background: var(--zr-right); min-width: 120px; }
.zr-btn--ja:hover:enabled   { background: #27ad60; }
.zr-btn--nein { background: var(--zr-wrong); min-width: 120px; }
.zr-btn--nein:hover:enabled { background: #e03e3e; }

.zr-btn--sicher { background: var(--zr-gold); color: #5c4b12; }
.zr-btn--sicher:hover:enabled { background: #ffc61a; }

/* ---------- Antwortzeile ---------- */

.zr-antwort {
  min-height: 1.6em;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.5;
  color: var(--zr-ink);
}

.zr-antwort--ja    { color: #1f9d55; }
.zr-antwort--nein  { color: #d63a3a; }
.zr-antwort--fertig {
  padding: 12px 16px;
  border-left: 5px solid var(--zr-gold);
  border-radius: 8px;
  background: #fff7dc;
  color: #5c4b12;
}

/* ---------- Protokoll ---------- */

.zr-protokoll {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.zr-protokoll li {
  padding: 7px 0;
  border-bottom: 1px solid #e4e9f0;
  font-size: 0.98rem;
  color: var(--zr-ink);
}

.zr-protokoll__leer { color: #99a1b3; font-style: italic; }

.zr-protokoll__nr {
  display: inline-block;
  width: 26px;
  color: #99a1b3;
  font-weight: bold;
}

/* ---------- Suchbalken (Modus 2) ----------
   Der helle Streifen zeigt, welche Zahlen noch moeglich sind. Nach
   jeder Antwort halbiert er sich -- genau das soll sichtbar werden. */

.zr-balken {
  position: relative;
  height: 46px;
  border-radius: 10px;
  background: #dfe4ec;
  overflow: hidden;
}

.zr-balken__moeglich {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--zr-primary);
  transition: left 0.4s ease, width 0.4s ease;
}

.zr-balken__skala {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #777;
}

.zr-balken__rest {
  font-weight: bold;
  color: var(--zr-ink);
}

@media (prefers-reduced-motion: reduce) {
  .zr-balken__moeglich { transition: none; }
  .zr-moduscard:hover, .zr-btn:hover:enabled { transform: none; }
}

@media (max-width: 560px) {
  .zr-fragezeile { justify-content: center; }
}
