/* av-quiz.css — Astro-Quiz (Karte 2038, 20.11.2026). Spieler: web/av-quiz.js, HTML: build/astro_quiz.py.
 * Farben der Site: Navy #1A2A6C, Orange #E8731A, Creme #FDF8F1, Sand #F1E4D4/#EBD9C3, Text #2B2F3A/#4A5272. */

.av-qz { max-width: 820px; margin: 0 auto; }

/* Kopf mit Fortschritt (nur mit JavaScript sichtbar) */
.av-qz-fortschritt { height: 8px; background: #F1E4D4; border-radius: 4px; overflow: hidden; }
.av-qz-fortschritt span { display: block; height: 100%; width: 0; background: #E8731A; border-radius: 4px; transition: width .35s ease; }
.av-qz-stand { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 16px; font-size: .9rem; color: #4A5272; }
.av-qz-stand-punkte { font-weight: 700; color: #1A2A6C; }

/* Frage-Karte */
.av-qz-frage { background: #fff; border: 1px solid #EBD9C3; border-radius: 14px; padding: 28px 32px;
  box-shadow: 0 6px 24px rgba(26, 42, 108, .06); margin-bottom: 24px; }
.av-qz-js .av-qz-frage { display: none; margin-bottom: 0; }
.av-qz-js .av-qz-frage.is-aktiv { display: block; animation: av-qz-ein .25s ease; }
@keyframes av-qz-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.av-qz-zaehler { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #C2560C; }
.av-qz-js .av-qz-zaehler { display: none; }
.av-qz-titel { font-size: 1.2rem; font-weight: 700; line-height: 1.4; color: #1A2A6C; }
.av-qz-titel p, .av-qz-zusatz p { margin: 0 0 .75em; }
.av-qz-titel > :last-child, .av-qz-zusatz > :last-child { margin-bottom: 0; }
.av-qz-zusatz { margin-top: 12px; color: #2B2F3A; }
.av-qz-zusatz ol, .av-qz-erkl ol { margin: .5em 0 0; padding-left: 1.4em; }
.av-qz-zusatz strong { color: #1A2A6C; }
/* K2039: lange Fragetexte (Fallgeschichte im Titel) in Grundschrift, fett nur Einleitung und eigentliche Frage */
.av-qz-titel.av-qz-lang { font-size: 1rem; font-weight: 400; line-height: 1.65; color: #2B2F3A; }
.av-qz-titel.av-qz-lang .av-qz-kern { font-size: 1.12rem; font-weight: 700; line-height: 1.45; color: #1A2A6C; }
.av-qz-titel.av-qz-lang ol.av-qz-kern { padding-left: 1.4em; }
.av-qz-titel.av-qz-lang strong { color: #1A2A6C; }

/* Geburtsbild */
.av-qz-bild { margin: 20px auto 4px; max-width: 540px; text-align: center; }
.av-qz-bild a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #EBD9C3; cursor: zoom-in; }
.av-qz-bild img { display: block; width: 100%; height: auto; }
.av-qz-bild figcaption { margin-top: 6px; font-size: .8rem; color: #5B6070; }

/* Antworten */
.av-qz-antworten { list-style: none; margin: 20px 0 0; padding: 0; }
.av-qz-antworten li { margin: 0 0 10px; }
.av-qz-antwort { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; margin: 0; padding: 12px 16px;
  text-align: left; font: inherit; line-height: 1.45; color: #2B2F3A; background: #FDF8F1; border: 2px solid #EBD9C3;
  border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.av-qz-js .av-qz-antwort:not(:disabled):hover { border-color: #E8731A; background: #fff; box-shadow: 0 2px 10px rgba(232, 115, 26, .15); }
.av-qz-antwort:focus-visible { outline: 3px solid rgba(232, 115, 26, .45); outline-offset: 2px; }
.av-qz-antwort:disabled { cursor: default; }
.av-qz-buchst { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #1A2A6C; color: #fff; font-weight: 700; font-size: .95rem; }
.av-qz-antwort.is-richtig { border-color: #2E7D4F; background: #EAF5EE; }
.av-qz-antwort.is-richtig .av-qz-buchst { background: #2E7D4F; }
.av-qz-antwort.is-falsch { border-color: #B3261E; background: #FBEDEC; }
.av-qz-antwort.is-falsch .av-qz-buchst { background: #B3261E; }
.av-qz-frage.is-beantwortet .av-qz-antwort:not(.is-richtig):not(.is-falsch) { opacity: .55; }

/* Rückmeldung + Erklärung */
.av-qz-feedback { margin-top: 18px; padding: 18px 22px; border-radius: 10px; background: #FDF8F1; border-left: 5px solid #2E7D4F; }
.av-qz-feedback.is-nein { border-left-color: #B3261E; }
.av-qz-feedback:focus { outline: none; }
.av-qz-urteil { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: #2E7D4F; }
.av-qz-feedback.is-nein .av-qz-urteil { color: #B3261E; }
.av-qz-zeichen { display: inline-block; margin-right: 4px; }
.av-qz-erkl p { margin: 0 0 .75em; }
.av-qz-erkl > :last-child { margin-bottom: 0; }
.av-qz-erkl strong { color: #1A2A6C; }
.av-qz-weiter-zeile { margin: 18px 0 0; text-align: right; }

/* Ohne JavaScript: Lösung zum Aufklappen */
.av-qz-loesung { margin-top: 14px; }
.av-qz-loesung summary { cursor: pointer; font-weight: 700; color: #C2560C; }
.av-qz-loesung .av-qz-ergebnis { margin: 10px 0 6px; }
.av-qz-js .av-qz-loesung { display: none; }

/* Auswertung */
.av-qz-ende { text-align: center; background: #fff; border: 1px solid #EBD9C3; border-radius: 14px; padding: 36px 32px;
  box-shadow: 0 6px 24px rgba(26, 42, 108, .06); }
.av-qz-ende:focus { outline: none; }
.av-qz-ende-kicker { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #C2560C; }
.av-qz-punkte { margin: 6px 0 0; font-size: 1.3rem; color: #1A2A6C; }
.av-qz-punkte strong { font-size: 3rem; line-height: 1.1; margin-right: 4px; }
.av-qz-urteil-text { max-width: 520px; margin: 12px auto 0; font-size: 1.05rem; }
.av-qz-falsch-liste { margin: 10px 0 0; font-size: .9rem; color: #5B6070; }
.av-qz-ende-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Übersicht: Quiz-Karten */
.av-qz-karte { display: block; height: 100%; padding: 24px; background: #fff; border: 1px solid #EBD9C3; border-radius: 14px;
  color: inherit; box-shadow: 0 6px 24px rgba(26, 42, 108, .06); transition: box-shadow .2s, transform .2s; }
.av-qz-karte:hover { color: inherit; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26, 42, 108, .12); }
.av-qz-karte-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #C2560C; }
.av-qz-karte h3 { margin: 0 0 8px; }
.av-qz-karte-fakten { margin: 0 0 12px; font-size: .9rem; color: #5B6070; }
.av-qz-karte p:last-of-type { margin-bottom: 12px; }

/* Übersicht nach Lehrgebiet (K2039, 30 Quizze): Sprungleiste + Gruppen. scroll-margin: Kopfleiste ist beim Springen sichtbar. */
.av-qz-sprung { margin: 0 0 8px; row-gap: 8px; }
.av-qz-sprung > * > a { border: 1px solid #EBD9C3; border-radius: 999px; background: #fff; color: #1A2A6C; }
.av-qz-sprung > * > a:hover { border-color: #E8731A; color: #C2560C; }
.av-qz-gruppe { margin-top: 40px; scroll-margin-top: 110px; }
.av-qz-gruppe-titel { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #EBD9C3; font-size: 1.4rem; }
.av-qz-gruppe-titel span { margin-left: 8px; font-size: .9rem; font-weight: 400; color: #5B6070; white-space: nowrap; }

@media (max-width: 639px) {
  .av-qz-gruppe { margin-top: 32px; }
  .av-qz-gruppe-titel span { display: block; margin: 2px 0 0; }
  .av-qz-frage { padding: 20px 16px; border-radius: 12px; }
  .av-qz-titel { font-size: 1.08rem; }
  .av-qz-titel.av-qz-lang { font-size: 1rem; }
  .av-qz-titel.av-qz-lang .av-qz-kern { font-size: 1.05rem; }
  .av-qz-antwort { gap: 10px; padding: 10px 12px; }
  .av-qz-buchst { width: 28px; height: 28px; font-size: .85rem; }
  .av-qz-feedback { padding: 14px 16px; }
  .av-qz-weiter-zeile { text-align: center; }
  .av-qz-weiter-zeile .uk-button { width: 100%; }
  .av-qz-ende { padding: 28px 18px; }
  .av-qz-ende-knoepfe .uk-button { width: 100%; }
}

/* ── Kopf-Band mit Martins Quiz-Kopfbild (Karte 2040, 20.11.2026) ─────────────────────────────────────────────────
   build_pages.py quiz_hero() → hero_band (Text links, Foto rechts, custom.less .av-hero-band). Creme #FDF1E2 = linker Rand
   des Bildes; ab 1200 px liegt das ganze Bild in voller Höhe rechts als Sektions-Hintergrund (height-1-1), die Spalten-
   Kachel ist dann aus. */
.av-hero-band.av-hero-qz { background: #FDF1E2; }
.av-hero-qz .av-hero-text { padding-top: 2.6rem; padding-bottom: 2.6rem; }
@media (min-width: 960px) {
  .av-hero-band.av-hero-qz .av-hero-photo { padding-top: 0; padding-bottom: 0; min-height: 440px; }
}
/* 960–1199 px: Spalten-Foto bis an den rechten Rand (mit Sektionsbild sitzt der Container eine Ebene tiefer, custom.less
   .av-hero-band > .uk-container greift dann nicht); ab 1200 nicht, sonst rückt der Text 40 px aus der Logo-Flucht */
@media (min-width: 960px) and (max-width: 1199px) {
  .av-hero-band.av-hero-qz .uk-container-expand-right { padding-right: 0; }
}
@media (min-width: 1200px) {
  .av-hero-band.av-hero-qz .av-hero-photo .uk-tile { display: none; }
}
/* Handy/Tablet: Foto zuerst, nur der rechte Bildteil ab x 550 (ohne die leere Creme-Fläche) */
@media (max-width: 959px) {
  .av-hero-band.av-hero-qz .av-hero-photo { min-height: 0; aspect-ratio: 1050 / 900; }
  .av-hero-qz .av-hero-text { padding-top: 1.4rem; padding-bottom: 1.4rem; }
}
