/* Flexible Wochenfragen: Bild, Mehrfachauswahl und Zahl mit Einheit. */
.frage-bild {
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111;
}

.frage-bild img {
  display: block;
  width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
}

.flexible-optionen .option {
  gap: 10px;
}

.flexible-optionen input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

/* Zwei Spalten - Zahl und Einheit - und sonst nichts. Als Raster, damit
   beide Teile auch auf dem schmalsten Handy in EINER Zeile bleiben. */
.zahl-eingabe-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.zahl-eingabe-zeile select {
  min-width: 92px;
}

/* Gibt es nur eine Einheit, ist sie keine Wahl, sondern eine Angabe. */
.zahl-einheit-fest {
  min-height: 46px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.zahl-eingabe-zeile input,
.zahl-eingabe-zeile select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}

.zahl-aufloesung {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface, #fff) 90%, transparent);
}

.zahl-aufloesung p {
  margin: 0;
}

.badge.typ-bild,
.badge.typ-auswahl {
  background: color-mix(in srgb, #7c3aed 13%, transparent);
  color: #6d28d9;
}

@media (max-width: 520px) {
  .frage-bild img { max-height: 48vh; }
  .zahl-eingabe-zeile { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-color-scheme: dark) {
  .zahl-eingabe-zeile input,
  .zahl-eingabe-zeile select { background: rgba(255, 255, 255, 0.06); }
  .badge.typ-bild,
  .badge.typ-auswahl { color: #c4b5fd; }
}

/* Hinweis ueber den Optionen, wenn mehrere Antworten erlaubt sind.
   Aus dem Nutzertest vom 08.09.2026: die Kaestchenform allein wurde nicht
   als "mehrere moeglich" gelesen. Bewusst ruhig gehalten - er soll
   informieren, nicht warnen. */
.auswahl-hinweis {
  margin: 0 0 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue-dark, #1d4ed8);
}
