/* Quiz — geteiltes Werkzeug zum Üben zu Hause (Phone, Tablet, Computer).
   Gestaltung „Blatt": Farben, Schrift, Knopf und Blatt kommen aus ../assets/css/material.css (vorher geladen);
   hier nur das Layout, nur --m-*-Tokens, keine eigenen Farbwerte. Wenige große Elemente, ein Gedanke je Bildschirm.
   Richtig/falsch nie nur über Farbe: Wort („richtig“, „falsch“) und Rahmenart. */

body.quiz {
  margin: 0;
  background: var(--m-grund);
  color: var(--m-tinte);
  font: 18px/1.5 var(--m-schrift);
  -webkit-text-size-adjust: 100%;
}

body.quiz button { -webkit-tap-highlight-color: transparent; }   /* kein blauer Antipp-Schimmer über „richtig“/„falsch“ */

.q-huelle { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.q-buehne { padding: 22px 22px 26px; }

/* Startbild */
.q-kopf { margin: 0 0 20px; }
.q-kopf h1 { margin: 0 0 6px; font-size: 1.9rem; line-height: 1.2; }
.q-kopf h1:focus { outline: none; }
.q-satz { margin: 0; font-size: 1.1rem; }
.q-gross { width: 100%; min-height: 64px; font-size: 1.2rem; }
.q-stunden { display: grid; gap: 10px; margin-top: 22px; }
.q-stunde { width: 100%; min-height: 56px; justify-content: flex-start; padding: 8px 16px; text-align: left; font-size: 1.02rem; line-height: 1.3; }
.q-zusatz { border-style: dashed; }

/* Frage */
.q-fortschritt { margin: 0 0 18px; }
.q-zaehler { margin: 0 0 6px; font-weight: 700; color: var(--m-leise); }
.q-balken { height: 10px; border: 1px solid var(--m-linie); border-radius: 5px; background: var(--m-blatt); overflow: hidden; }
.q-balken-fuell { height: 100%; background: var(--m-tinte); }
.q-frage { margin: 0 0 20px; font-size: 1.45rem; line-height: 1.3; }
.q-frage:focus { outline: none; }
.q-antworten { display: grid; gap: 12px; }
.q-antworten.q-rf { grid-template-columns: 1fr 1fr; }
.q-antwort {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 64px; padding: 10px 16px;
  border: 2px solid var(--m-tinte); border-radius: var(--m-ecke); background: var(--m-blatt); color: var(--m-tinte);
  font: inherit; font-size: 1.08rem; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer;
}
.q-rf .q-antwort { justify-content: center; text-align: center; flex-direction: column; gap: 2px; font-size: 1.2rem; }
.q-antwort:active { background: var(--m-notiz); }
.q-antwort[aria-disabled="true"] { cursor: default; }
.q-antwort[aria-disabled="true"]:not(.q-ist-richtig):not(.q-ist-falsch) { opacity: .6; }
.q-marke { flex: none; padding: 1px 8px; border: 2px solid currentColor; border-radius: var(--m-ecke); font-size: .92rem; font-weight: 700; }
.q-ist-richtig { border: 4px solid var(--m-gut); color: var(--m-gut); }
.q-ist-falsch { border: 4px dashed var(--m-rot); color: var(--m-rot); }
.q-gewaehlt { background: var(--m-notiz); }

/* Rückmeldung */
.q-rueck { margin-top: 18px; }
.q-urteil { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; }
.q-urteil-richtig { color: var(--m-gut); }
.q-urteil-falsch { color: var(--m-rot); }
.q-erklaerung { margin: 0 0 16px; padding: 10px 14px; border-left: 5px solid var(--m-tinte); background: var(--m-notiz); }
.q-weiter { margin-top: 4px; }

/* Ende der Runde */
.q-ergebnis { margin: 0 0 18px; font-size: 2rem; line-height: 1.2; }
.q-ergebnis:focus { outline: none; }
.q-falsche h3 { margin: 0 0 8px; font-size: 1.1rem; }
.q-falsche ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.q-falsche li { padding: 10px 14px; border: 1px solid var(--m-linie-hell); border-radius: var(--m-ecke); background: var(--m-blatt); }
.q-falsch-frage { margin: 0 0 4px; font-weight: 600; }
.q-falsch-loesung { margin: 0; }
.q-ende-knoepfe { display: grid; gap: 10px; }

.q-hinweis { margin: 18px 4px 0; font-size: .85rem; color: var(--m-leise); }

/* Schmales Gerät (Phone hochkant) */
@media (max-width: 520px) {
  .q-huelle { padding: 12px 10px 32px; }
  .q-buehne { padding: 16px 14px 20px; }
  .q-kopf h1 { font-size: 1.6rem; }
  .q-frage { font-size: 1.25rem; }
  .q-antwort { font-size: 1.02rem; }
}
