/* Geogenial · Quiz & Spiele – Reisepass mit Stempeln. Baut auf geogenial.css auf (Einband, Tisch, Pult, Knoepfe).
   Pass-Material: violetter Deckel mit Goldpraegung, Visa-Papier mit Guillochen, Stempelfarben je Spielgruppe.
   Rot bleibt dem gesuchten Punkt auf der Karte vorbehalten. */
:root {
  --pass: #3b2a55;
  --pass-2: #4b3869;
  --gold: #c9a24a;
  --gold-hell: #e6cd8c;
  --gold-tief: #8a6a1f;
  --visum: #fbfaf5;
  --tinte-blau: #1f4e6e;
  --tinte-violett: #5b3f86;
  --tinte-gruen: #3f6f3a;
  --r-kind: 10px;
  --stern: #d39a17;
  --stern-tief: #9a6b06;
  --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22' viewBox='0 0 96 22'%3E%3Cpath d='M0 11C12 0 36 0 48 11S84 22 96 11' fill='none' stroke='%235b3f86' stroke-opacity='.11'/%3E%3Cpath d='M0 11C12 22 36 22 48 11S84 0 96 11' fill='none' stroke='%230f7470' stroke-opacity='.09'/%3E%3Cpath d='M0 5C16 -2 32 12 48 5S80 12 96 5' fill='none' stroke='%23c9a24a' stroke-opacity='.12'/%3E%3C/svg%3E");
}
body.qz { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 54px 1fr; font-size: 16px; }
body.qz[data-ansicht="spiel"] { height: 100vh; height: 100dvh; overflow: hidden; grid-template-rows: 54px minmax(0, 1fr); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- Kopfleiste */
.qz-kopf { gap: 16px; position: sticky; top: 0; z-index: 20; }
.qz-kopf-titel { margin: 0; min-width: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.qz-kopf-pass { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 18px; background: var(--pass); color: var(--gold-hell); text-decoration: none; font-size: 14px; border: 1px solid rgba(230, 205, 140, 0.35); }
.qz-kopf-pass span { color: #fff; font-weight: 500; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-kopf-pass b { white-space: nowrap; }
.qz-kopf-pass b { font-family: var(--schrift-schmal); font-weight: 600; font-size: 15px; }
.qz-kopf-pass:hover { background: var(--pass-2); }
.qz-kopf-punkte { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--einband-2); font-family: var(--schrift-schmal); font-weight: 600; font-size: 18px; }
.qz-kopf-punkte .ic { color: var(--stern); fill: var(--stern); stroke: var(--stern-tief); }

/* ---------------------------------------------------------------- Startseite: Pass links, Visa-Seiten rechts */
.qp {
  display: grid; grid-template-columns: 350px minmax(0, 1fr); grid-template-areas: "pass visa" "rest visa"; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 14px; align-items: start;
  padding: 26px clamp(16px, 3vw, 40px) 48px; max-width: 1480px; width: 100%; margin: 0 auto;
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px);
  background-size: 48px 48px;
}
.qp-pass { grid-area: pass; border-radius: 12px; overflow: hidden; box-shadow: var(--schatten-blatt); background: var(--visum); }
.qp-deckel { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--pass); color: var(--gold-hell); background-image: radial-gradient(120% 140% at 0% 0%, rgba(230, 205, 140, 0.16), transparent 55%); }
.qp-wappen { width: 46px; height: 46px; flex: none; color: var(--gold); }
.qp-deckel b { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.05; }
.qp-deckel span { display: block; font-size: 13.5px; color: rgba(230, 205, 140, 0.85); }
.qp-seite { padding: 18px 20px 20px; background-color: var(--visum); background-image: var(--guilloche); background-size: 96px 22px; }
.qp-feld { display: block; margin-bottom: 14px; }
.qp-feld > span { display: block; font-size: 13px; color: var(--tinte-2); margin-bottom: 3px; }
.qp-feld > b { font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; color: var(--pass); line-height: 1.1; }
.qp-name input { width: 100%; height: 44px; padding: 0 12px; border: 0; border-bottom: 1.5px solid var(--linie-stark); border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, 0.7); font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; color: var(--tinte); }
.qp-name input::placeholder { color: var(--tinte-3); font-weight: 500; }
.qp-name input:focus { outline: none; border-bottom-color: var(--pass); background: #fff; }
.qp-klasse { margin-bottom: 14px; }
.qp-klasse .qp-feld { margin-bottom: 6px; }
.qp-balken { height: 10px; border-radius: 5px; background: var(--pult-3); overflow: hidden; }
.qp-balken i { display: block; height: 100%; border-radius: 5px; background: var(--pass); min-width: 6px; }
.qp-klasse p { margin: 6px 0 0; font-size: 13.5px; color: var(--tinte-2); }
.qp-klasse p b { color: var(--tinte); }
.qp-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 10px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.qp-zahlen div { text-align: center; }
.qp-zahlen dt { font-size: 12.5px; color: var(--tinte-2); }
.qp-zahlen dd { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--tinte); }
.qp-zahlen small { font-size: 15px; color: var(--tinte-3); }
.qp-stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: var(--r-kind); background: var(--pult-2); }
.qp-stufen button { min-height: 50px; border: 0; border-radius: 8px; background: transparent; padding: 4px 2px; line-height: 1.15; color: var(--tinte-2); }
.qp-stufen b { display: block; font-size: 15.5px; }
.qp-stufen small { display: block; font-size: 12.5px; }
.qp-stufen button[aria-checked="true"] { background: var(--pass); color: #fff; box-shadow: 0 1px 2px rgba(20, 30, 25, 0.25); }
.qp-stufen button[aria-checked="true"] small { color: var(--gold-hell); }
.qp-stufen button:not([aria-checked="true"]):hover { background: rgba(255, 255, 255, 0.7); color: var(--tinte); }
.qp-h { margin: 18px 0 8px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 19px; }
.qp-abzeichen { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.qp-abzeichen li { position: relative; }
.qp-abzeichen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qa-abz { display: block; width: 100%; height: auto; aspect-ratio: 1; color: var(--linie-stark); }
.abz-zacken { fill: var(--abz-grund, none); stroke: var(--abz-rand, currentColor); stroke-width: 1; stroke-dasharray: var(--abz-strich, 2 2); }
.abz-ring { fill: var(--abz-innen, none); stroke: var(--abz-rand, currentColor); stroke-width: 1; }
.abz-motiv { stroke: var(--abz-motiv, currentColor); }
.abz-zahl { font-family: var(--schrift-schmal); font-weight: 600; font-size: 11px; text-anchor: middle; fill: var(--abz-motiv, currentColor); stroke: none; }
.z-fuell { fill: currentColor; }
.qa-abz.an { --abz-grund: var(--gold-hell); --abz-rand: var(--gold); --abz-strich: none; --abz-innen: #fff8e4; --abz-motiv: var(--pass); }
.qp-code { padding-top: 14px; border-top: 1px solid var(--linie); }
.qp-code label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.qp-code div { display: flex; gap: 6px; }
.qp-code input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1.5px solid var(--linie-stark); border-radius: var(--r-kind); background: #fff; font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; }
.qp-code input::placeholder { letter-spacing: 0.02em; font-weight: 500; font-size: 17px; color: var(--tinte-3); text-transform: none; }
.qp-code input:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); }
.qp-code small { display: block; margin-top: 5px; font-size: 13px; color: var(--tinte-2); }

/* Visa-Seiten */
.qp-visa { grid-area: visa; min-width: 0; }
.qp-rest { grid-area: rest; border-radius: 12px; overflow: hidden; box-shadow: var(--schatten-blatt); }
.qp-rest .qp-h { margin-top: 0; }
.qr-planung { grid-area: auto; }
.qp:has(.qr-planung) { grid-template-areas: none; display: block; }
.qp-tag, .qp-auftrag {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 8px;
  padding: 16px 20px; border-radius: 12px; background: #fff7e2; box-shadow: var(--schatten-blatt);
  background-image: var(--guilloche); background-size: 96px 22px;
}
.qp-tag-zeichen { width: 52px; height: 52px; color: var(--gold-tief); }
.qp-tag h2, .qp-auftrag h2 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; }
.qp-tag p, .qp-auftrag p { margin: 2px 0 0; color: var(--tinte-2); font-size: 15px; }
.qp-tag p b { color: var(--gold-tief); }
.qp-tag-fertig { background-color: #f4f1e6; }
.qp-auftrag { grid-template-columns: minmax(0, 1fr) auto; background-color: #eef4f8; margin-bottom: 14px; }
.qp-auftrag-spiele { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.qp-auftrag-spiele .qv-zeichen { width: 30px; height: 30px; color: var(--tinte-blau); }
.qp-gruppe { margin: 26px 0 10px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; }
.qp-felder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.qv {
  --ink: var(--tinte-blau);
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; min-height: 128px;
  padding: 16px 92px 16px 16px; border-radius: 10px; background: var(--visum); color: var(--tinte); text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.12), 0 6px 16px -10px rgba(20, 30, 25, 0.35);
  background-image: var(--guilloche); background-size: 96px 22px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qv::before { content: ''; position: absolute; inset: 7px; border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 6px; pointer-events: none; }
.qv:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 30, 25, 0.12), 0 14px 26px -12px rgba(20, 30, 25, 0.45); }
.qv:focus-visible { outline: 3px solid var(--wasser); outline-offset: 2px; }
.qv-blau { --ink: var(--tinte-blau); }
.qv-violett { --ink: var(--tinte-violett); }
.qv-gruen { --ink: var(--tinte-gruen); }
.qv-zeichen { width: 52px; height: 52px; color: var(--ink); }
.qv-zeichen .z-fuell, .qv-zeichen [class~="z-fuell"] { fill: currentColor; }
.qv-text b { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 21px; line-height: 1.1; margin: 2px 0 4px; }
.qv-text small { display: block; font-size: 14.5px; line-height: 1.4; color: var(--tinte-2); }
.qv-frei { position: absolute; right: 16px; top: 16px; width: 64px; height: 64px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); }
.qv-stempel { position: absolute; right: 10px; top: 10px; width: 76px; height: 76px; color: var(--ink); transform: rotate(var(--dreh, -6deg)); mix-blend-mode: multiply; opacity: 0.9; }
.qv-stempel-gross { position: static; width: 120px; height: 120px; }
.sts-rand { fill: none; stroke: currentColor; stroke-width: 2.4; }
.sts-rand2 { fill: none; stroke: currentColor; stroke-width: 0.9; }
.sts-schrift { font-family: var(--schrift-schmal); font-weight: 600; font-size: 7.4px; letter-spacing: 0.06em; fill: currentColor; }
.sts-titel { font-family: var(--schrift-schmal); font-weight: 600; font-size: 12px; fill: currentColor; }
.sts-an { fill: var(--stern); stroke: var(--stern-tief); stroke-width: 0.8; stroke-linejoin: round; }
.sts-aus { fill: none; stroke: currentColor; stroke-width: 0.9; stroke-linejoin: round; opacity: 0.55; }
.qp-felder-mix { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------------------------------------------------------------- Knoepfe der Schuelerseite */
.qz-los {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: var(--r-kind);
  border: 0; background: var(--einband); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
}
.qz-los:hover { background: var(--einband-2); }
.qz-los:active { transform: translateY(1px); }
.qz-los:disabled { opacity: 0.4; cursor: default; transform: none; }
.qz-los-gross { min-height: 56px; font-size: 19px; padding: 0 28px; }
.qz-leise {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--r-kind);
  border: 1.5px solid var(--linie-stark); background: #fff; color: var(--tinte); font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.qz-leise:hover { border-color: var(--tinte-2); }
.qz-leise:disabled { opacity: 0.45; cursor: default; }

/* ---------------------------------------------------------------- Reiseplanung */
.qr-planung { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 0 auto; }
.qr-zurueck { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--tinte); font-weight: 600; text-decoration: none; min-height: 40px; }
.qr-zurueck:hover { color: var(--wasser); }
.qr-blatt { --ink: var(--tinte-blau); border-radius: 12px; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; overflow: hidden; }
.qr-kopf { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 24px 18px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.qr-kopf .qv-zeichen { width: 64px; height: 64px; }
.qr-kopf h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 34px; line-height: 1.05; }
.qr-kopf p { margin: 4px 0 0; color: var(--tinte-2); font-size: 16px; }
.qr-kopf .qv-stempel-gross { width: 96px; height: 96px; transform: rotate(var(--dreh)); color: var(--ink); mix-blend-mode: multiply; }
.qr-felder { padding: 18px 24px 4px; display: grid; gap: 18px; }
.qr-feld > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.qr-gebiete { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-gebiete button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 22px; border: 1.5px solid var(--linie-stark); background: #fff; font-weight: 600; font-size: 15px; color: var(--tinte); }
.qr-gebiete i { width: 14px; height: 14px; border-radius: 50%; background: var(--reg); }
.qr-gebiete button[aria-checked="true"] { border-color: var(--reg); background: var(--reg); color: #fff; }
.qr-gebiete button[aria-checked="true"] i { background: #fff; }
.qr-schalter { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-kind); background: #fff; border: 1.5px solid var(--linie); margin-bottom: 6px; cursor: pointer; position: relative; }
.qr-schalter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qr-kasten { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--linie-stark); background: #fff; margin-top: 1px; }
.qr-schalter:has(input:checked) { border-color: var(--einband); }
.qr-schalter input:checked + .qr-kasten { background: var(--einband) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--einband); }
.qr-schalter input:focus-visible + .qr-kasten { outline: 2px solid var(--wasser); outline-offset: 2px; }
.qr-schalter b { display: block; font-size: 15.5px; }
.qr-schalter small { display: block; font-size: 14px; color: var(--tinte-2); }
.qr-kasten-box, .qr-kasten#qr-kasten { width: auto; height: auto; border: 0; background: none; margin: 0; }
#qr-kasten { padding: 12px 14px; border-radius: var(--r-kind); background: #fff; border: 1.5px solid var(--linie); }
#qr-kasten p { margin: 8px 0 0; font-size: 14px; color: var(--tinte-2); }
.qr-faecher { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 96px; }
.qr-faecher li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; }
.qr-faecher i { width: 70%; border-radius: 4px 4px 0 0; background: var(--pass); opacity: 0.35; }
.qr-faecher li:last-child i { opacity: 1; background: var(--richtig); }
.qr-faecher b { font-family: var(--schrift-schmal); font-weight: 600; font-size: 17px; }
.qr-faecher small { font-size: 12px; color: var(--tinte-2); }
.qr-laedt { color: var(--tinte-2); font-size: 14px; }
.qr-fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 22px; }
.qr-fuss p { margin: 0; color: var(--tinte-2); }

/* ---------------------------------------------------------------- Spielansicht: Kontrollzettel links, Buehne rechts */
.qs { display: grid; grid-template-columns: 410px minmax(0, 1fr); min-height: 0; }
.qs-zettel { background: var(--pult); border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; overflow: auto; scrollbar-width: thin; }
.qs-zettel-kopf { display: flex; align-items: center; gap: 12px; padding: 14px 18px 8px; }
.qs-zettel-kopf .qv-zeichen { width: 42px; height: 42px; color: var(--tinte-violett); }
.qs-zettel-kopf b { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 20px; line-height: 1.1; }
.qs-zettel-kopf span { font-size: 13.5px; color: var(--tinte-2); }
.qs-fortschritt { list-style: none; margin: 0; padding: 4px 18px 12px; display: flex; gap: 5px; flex-wrap: wrap; border-bottom: 1px dashed var(--linie-stark); }
.qs-fortschritt li { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--linie-stark); background: transparent; }
.qs-fortschritt li.jetzt { border: 2px solid var(--einband); background: #fff; }
.qs-fortschritt li.gut { border: 0; background: var(--richtig) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; animation: stempeln 0.35s var(--ease); }
.qs-fortschritt li.halb { border: 0; background: var(--daneben); animation: stempeln 0.35s var(--ease); }
.qs-fortschritt li.leer { border: 1.5px solid var(--daneben); background: var(--daneben-hell); animation: stempeln 0.35s var(--ease); }
.qs-zettel-inhalt { padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.qz-laedt { color: var(--tinte-2); }
.qz-frage h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.qz-hinweis { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--tinte-2); }
.qz-antwort:empty { display: none; }
.qz-anleitung { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--r-kind); background: var(--wasser-hell); color: var(--wasser-tief); font-size: 15px; }
.qz-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-knoepfe:empty { display: none; }
.qz-knoepfe .qz-los { flex: 1 1 auto; }

.qz-wahl { display: grid; gap: 8px; }
.qz-wahl-zwei { grid-template-columns: 1fr 1fr; }
.qz-wahl-kompakt { grid-template-columns: 1fr 1fr; gap: 6px; }
.qz-option {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 14px; text-align: left;
  border: 1.5px solid var(--linie-stark); border-radius: var(--r-kind); background: #fff; font-size: 17px; line-height: 1.25;
  transition: border-color 0.15s, background-color 0.15s;
}
.qz-wahl-kompakt .qz-option { min-height: 48px; font-size: 15.5px; }
.qz-option b { font-weight: 600; }
.qz-option small { font-size: 14px; color: var(--tinte-2); }
.qz-option:hover:not(:disabled) { border-color: var(--einband); }
.qz-option:disabled { cursor: default; }
.qz-option.qz-richtig { border-color: var(--richtig); background: var(--richtig-hell); box-shadow: inset 0 0 0 1px var(--richtig); }
.qz-option.qz-falsch { border-color: var(--daneben); background: var(--daneben-hell); }
.qz-option:disabled:not(.qz-richtig):not(.qz-falsch) { opacity: 0.6; }
.qz-wahl-flaggen { grid-template-columns: 1fr 1fr; }
.qz-wahl-flaggen .qz-option { align-items: center; padding: 10px; min-height: 0; }
.qz-wahl-flaggen .qa-flagge { width: 100%; aspect-ratio: 4 / 3; height: auto; }
.qz-wahl-flaggen .qz-option small { align-self: center; }

.qz-eingabe { display: flex; gap: 8px; }
.qz-eingabe input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 2px solid var(--linie-stark); border-radius: var(--r-kind); background: #fff; font-size: 18px; }
.qz-eingabe input:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); }
.qz-eingabe input.qz-richtig { border-color: var(--richtig); background: var(--richtig-hell); }
.qz-eingabe input.qz-falsch { border-color: var(--daneben); background: var(--daneben-hell); }

.qz-rueck { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.qz-rueck:empty { display: none; }
.qz-rueck[class*="qz-rueck-"] { padding: 11px 13px; border-radius: var(--r-kind); animation: aufschlag 0.25s var(--ease); }
.qz-rueck span { flex: 1; }
.qz-rueck-richtig { background: var(--richtig-hell); color: #2b5520; }
.qz-rueck-richtig .ic { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--richtig); color: #fff; animation: stempeln 0.36s var(--ease); }
.qz-rueck-daneben, .qz-rueck-nochmal { background: var(--daneben-hell); color: #6d3a0e; }
.qz-rueck-daneben .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--daneben); color: #fff; }
.qz-rueck-hinweis { background: var(--pult-2); color: var(--tinte); }
.qz-punkte { flex: none; font-family: var(--schrift-schmal); font-weight: 600; font-size: 20px; color: var(--stern-tief); animation: stempeln 0.36s var(--ease); }

/* Schaetzen */
.qz-schieber { position: relative; padding: 4px 0 6px; }
.qz-schieber output { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 34px; line-height: 1.1; margin-bottom: 10px; }
.qz-schieber input[type="range"] { --anteil: 50%; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
.qz-schieber input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--einband) var(--anteil), var(--pult-3) var(--anteil)); }
.qz-schieber input[type="range"]::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--einband) var(--anteil), var(--pult-3) var(--anteil)); }
.qz-schieber input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--einband); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.qz-schieber input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--einband); }
.qz-schieber input[type="range"]:focus-visible { outline: 2px solid var(--wasser); outline-offset: 4px; }
.qz-skala { display: flex; justify-content: space-between; font-size: 13px; color: var(--tinte-2); }
.qz-feinknoepfe { display: flex; gap: 8px; margin-top: 8px; }
.qz-feinknoepfe button { width: 48px; height: 44px; border-radius: var(--r-kind); border: 1.5px solid var(--linie-stark); background: #fff; display: grid; place-items: center; }
.qz-wahrheit { position: absolute; left: var(--pos); top: 46px; height: 42px; width: 0; }
.qz-wahrheit::before { content: ''; position: absolute; left: -2px; top: 0; width: 4px; height: 38px; border-radius: 2px; background: var(--richtig); animation: stempeln 0.35s var(--ease); }
.qz-wahrheit span { position: absolute; top: 40px; left: 0; transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: var(--richtig); color: #fff; font-family: var(--schrift-schmal); font-weight: 600; font-size: 16px; }
.qz-schieber:has(.qz-wahrheit) { padding-bottom: 44px; }

/* Sortieren */
.qz-sort { display: grid; gap: 6px; }
.qz-sort-ende { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--tinte-2); }
.qz-sort-ende .ic { width: 16px; height: 16px; }
.qz-sort-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; touch-action: none; }
.qz-sort-eintrag { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 4px 6px 4px 8px; border-radius: var(--r-kind); background: #fff; border: 1.5px solid var(--linie-stark); cursor: grab; user-select: none; }
.qz-sort-eintrag b { font-size: 16.5px; }
.qz-sort-eintrag small { grid-column: 3; font-size: 14px; color: var(--tinte-2); padding-right: 6px; }
.qz-sort-nr { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pult-2); font-family: var(--schrift-schmal); font-weight: 600; font-size: 17px; }
.qz-sort-pfeile { display: flex; gap: 2px; }
.qz-sort-pfeile button { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--pult); display: grid; place-items: center; }
.qz-sort-pfeile button:disabled { opacity: 0.3; }
.qz-zieht { cursor: grabbing; box-shadow: var(--schatten-pop); border-color: var(--einband); position: relative; z-index: 2; }
.qz-sort-eintrag.qz-richtig { border-color: var(--richtig); background: var(--richtig-hell); cursor: default; }
.qz-sort-eintrag.qz-falsch { border-color: var(--daneben); background: var(--daneben-hell); cursor: default; }

/* Grenzgaenger */
.qz-route { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; font-size: 15px; }
.qz-route li { display: inline-flex; align-items: center; }
.qz-route li:not(:last-child)::after { content: ''; width: 16px; height: 2px; margin: 0 4px; background: var(--tinte-violett); border-radius: 1px; }
.qz-route li { padding: 3px 9px; border-radius: 14px; background: var(--pult-2); }
.qz-route li.qz-hier { background: var(--tinte-violett); color: #fff; font-weight: 600; }
.qz-route li.qz-route-ziel { background: #fff; border: 1.5px dashed var(--tinte-violett); font-weight: 600; }
.qz-route li.qz-route-ziel::after { display: none; }
.qz-schritte { margin: 0; font-size: 14px; color: var(--tinte-2); }
.qz-nachbarn { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-nb { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--linie-stark); background: #fff; font-weight: 600; font-size: 15px; }
.qz-nb:hover { border-color: var(--tinte-violett); color: var(--tinte-violett); }

/* Heiss oder kalt */
.qz-thermo { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: var(--r-kind); background: #fff; border: 1.5px solid var(--linie); }
.qz-thermo-roehre { position: relative; width: 22px; height: 86px; border-radius: 11px; background: var(--pult-2); border: 2px solid var(--linie-stark); overflow: hidden; flex: none; }
.qz-thermo-roehre i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: bottom; transform: scaleY(var(--h, 0.1)); background: var(--c, #4f7fb5); transition: transform 0.45s var(--ease), background-color 0.45s; }
.qz-thermo b { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--c, var(--tinte)); }
.qz-thermo span { font-size: 15px; color: var(--tinte-2); }
.qz-thermo[data-w="w0"] { --c: #3d6fa6; --h: 0.1; }
.qz-thermo[data-w="w1"] { --c: #4f86b8; --h: 0.26; }
.qz-thermo[data-w="w2"] { --c: #8f8a3a; --h: 0.44; }
.qz-thermo[data-w="w3"] { --c: #c07a1c; --h: 0.62; }
.qz-thermo[data-w="w4"] { --c: #b3561a; --h: 0.8; }
.qz-thermo[data-w="w5"] { --c: #963f12; --h: 1; }

/* Ergebnis */
.qz-bilanz { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 0; }
.qz-bilanz div { padding: 10px 12px; border-radius: var(--r-kind); background: #fff; border: 1px solid var(--linie); }
.qz-bilanz dt { font-size: 13px; color: var(--tinte-2); }
.qz-bilanz dd { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 28px; }
.qz-aufstieg { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: var(--r-kind); background: var(--pass); color: var(--gold-hell); font-size: 16px; }
.qz-aufstieg b { color: #fff; }
.qz-neu h3 { margin: 0 0 6px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 19px; }
.qz-neu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-neu li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; animation: stempeln 0.4s var(--ease) both; }
.qz-neu li:nth-child(2) { animation-delay: 0.15s; } .qz-neu li:nth-child(3) { animation-delay: 0.3s; }
.qz-neu b { display: block; }
.qz-neu small { color: var(--tinte-2); font-size: 14px; }

/* ---------------------------------------------------------------- Buehne */
.qs-buehne {
  position: relative; min-width: 0; min-height: 0; padding: 18px; display: grid; place-items: center; overflow: hidden;
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px); background-size: 48px 48px;
}
.qs-buehne > * { max-width: 100%; }
.qa-karte { position: absolute; inset: 14px; background: #fff; border-radius: 4px; box-shadow: var(--schatten-blatt); overflow: hidden; }
.qa-flaggenblatt { margin: 0; padding: 26px; background: #fff; border-radius: 6px; box-shadow: var(--schatten-blatt); }
.qa-flaggenblatt .qa-flagge { display: block; width: min(560px, 60vw); height: auto; aspect-ratio: 4 / 3; border: 1px solid rgba(0, 0, 0, 0.12); }
.qa-flagge { display: block; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 2px; background: #fff; }
.qa-flagge-klein { width: 36px; height: 27px; }
.qa-flagge-sb { display: inline-block; width: 60px; height: 45px; vertical-align: middle; margin-left: 6px; }
.qa-umriss { margin: 0; width: min(100%, 820px); background: #fff; border-radius: 6px; box-shadow: var(--schatten-blatt); padding: 10px; }
.qa-umriss svg { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); }
.qa-umriss-netz { fill: none; stroke: #b9d0de; stroke-width: 0.7; }
.qa-umriss-land { fill: #e3ebcf; stroke: #3d5a3a; stroke-width: 2; stroke-linejoin: round; }
.qa-nebel svg { animation: nebel 14s linear both; }
.qa-klar svg { filter: none; animation: none; }
@keyframes nebel { from { filter: blur(22px); } to { filter: blur(0); } }
.qa-diagramm { margin: 0; width: min(100%, 760px); background: #fff; border-radius: 6px; box-shadow: var(--schatten-blatt); padding: 12px 16px; }
.qa-diagramm svg { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); }
.qa-vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: min(100%, 860px); }
.qa-vg-teil { margin: 0; background: #fff; border-radius: 6px; box-shadow: var(--schatten-blatt); padding: 12px 12px 16px; }
.qa-vg-teil svg { display: block; width: 100%; height: auto; }
.qa-vg-teil figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; }
.qa-vg-teil figcaption small { width: 100%; text-align: center; font-family: var(--schrift); font-weight: 500; font-size: 15px; color: var(--tinte-2); }
.qa-vg-form { animation: stempeln 0.45s var(--ease); transform-box: fill-box; transform-origin: center; }
.qa-vg-hinweis { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 14px; color: var(--tinte-2); }
.qa-globus-meer { fill: #d3e4ee; stroke: #9fbfd4; }
.qa-globus-netz { fill: none; stroke: #b9d0de; stroke-width: 0.6; }
.qa-globus-land { fill: #e3ebcf; stroke: #9fb58a; stroke-width: 0.4; }
.qa-globus-hervor { fill: var(--gold); stroke: var(--gold-tief); stroke-width: 1; }
.qa-uhren { position: absolute; left: 30px; bottom: 30px; display: flex; gap: 10px; z-index: 3; }
.qa-uhr { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; background: #fff; box-shadow: var(--schatten-pop); }
.qa-uhr svg { width: 58px; height: 58px; }
.qa-uhr b { display: block; font-size: 15px; }
.qa-uhr output { font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; }
.uz-rand { fill: #fff; stroke: var(--einband); stroke-width: 2.5; }
.uz-striche line { stroke: var(--tinte-2); stroke-width: 1.6; stroke-linecap: round; }
.uz-h { stroke: var(--einband); stroke-width: 3.2; stroke-linecap: round; }
.uz-m { stroke: var(--einband); stroke-width: 2; stroke-linecap: round; }
.uz-mitte { fill: var(--einband); }
.uz-frage { font-family: var(--schrift-schmal); font-weight: 600; font-size: 26px; text-anchor: middle; fill: var(--tinte-violett); }
.qa-uhr-frage { outline: 2px dashed var(--tinte-violett); outline-offset: -2px; }

/* Weiter noerdlich? – zwei Ortskarten vor der Antwort */
.qa-orte { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.qa-ort { display: grid; justify-items: center; gap: 8px; min-width: 220px; padding: 26px 28px 22px; border-radius: 10px; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; }
.qa-ort b { font-family: var(--schrift-schmal); font-weight: 600; font-size: 34px; line-height: 1.05; text-align: center; }
.qa-ort span { color: var(--tinte-2); font-size: 16px; }
.qa-flagge-ort { width: 84px; height: 63px; }
.qa-ort-oder { font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; color: var(--tinte-violett); }

/* Steckbrief (Wer bin ich?) */
.qa-steckbrief { width: min(100%, 620px); border-radius: 10px; overflow: hidden; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; }
.qa-sb-kopf { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--pass); color: #fff; }
.qa-sb-zeichen { width: 40px; height: 40px; color: var(--gold); }
.qa-sb-kopf b { display: block; font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; letter-spacing: 0.04em; }
.qa-sb-kopf span { font-size: 15px; color: var(--gold-hell); }
.qa-sb-geloest .qa-sb-kopf span { font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; color: #fff; animation: stempeln 0.4s var(--ease); display: inline-block; }
.qa-sb-liste { margin: 0; padding: 16px 20px 20px 46px; display: grid; gap: 12px; font-size: 18px; line-height: 1.45; }
.qa-sb-liste li::marker { font-family: var(--schrift-schmal); font-weight: 600; color: var(--tinte-violett); }
.qa-sb-neu { animation: aufschlag 0.35s var(--ease); }

/* Ergebnis: Visum mit Stempel */
.qe-visum { width: min(100%, 520px); }
.qe-seite { position: relative; display: grid; justify-items: center; gap: 6px; padding: 34px 30px 40px; border-radius: 12px; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; text-align: center; }
.qe-seite::before { content: ''; position: absolute; inset: 10px; border: 1px dashed color-mix(in srgb, var(--tinte-violett) 35%, transparent); border-radius: 8px; pointer-events: none; }
.qe-titel { font-size: 14px; color: var(--tinte-2); letter-spacing: 0.04em; }
.qe-seite > b { font-family: var(--schrift-schmal); font-weight: 600; font-size: 34px; line-height: 1.1; }
.qe-name { font-size: 16px; color: var(--tinte-2); min-height: 1em; }
.qe-seite .qv-stempel-gross { width: 210px; height: 210px; margin-top: 10px; color: var(--tinte-violett); mix-blend-mode: multiply; transform: rotate(var(--dreh)); animation: stempel-fallen 0.5s var(--ease) 0.15s both; }
@keyframes stempel-fallen { 0% { transform: scale(1.8) rotate(calc(var(--dreh) - 14deg)); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(var(--dreh)); opacity: 1; } }

/* ---------------------------------------------------------------- Spielkarte */
.qk { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.qk:active { cursor: grabbing; }
.qk-papier { fill: #fff; }
.qk-meer { fill: #d3e4ee; }
.qk-netz { fill: none; stroke: #b3cddd; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.qk-land { fill: #e3ebcf; stroke: none; }
.qk-ausland { fill: #eeeee4; }
.qk-fokus { fill: #e3ebcf; }
.qk-hervor { fill: var(--gold-hell); }
.qk-route { fill: #d9cdea; }
.qk-start { fill: #cbbbe2; }
.qk-zielland { fill: #fff; stroke: var(--tinte-violett) !important; stroke-width: 2 !important; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.qk-aktuell { fill: var(--tinte-violett); }
.qk-klickbar .qk-land { cursor: pointer; }
.qk-klickbar .qk-land:hover { fill: #efe3c0; }
.qk-klickbar .qk-aktuell:hover { fill: var(--tinte-violett); }
.qk-bl-flaeche { fill: transparent; }
.qk-bl-flaeche.qk-hervor { fill: var(--gold-hell); }
.qk-bl-grenze { fill: none; stroke: #9c9888; stroke-width: 0.7; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.qk-grenze { fill: none; stroke: #7a7568; stroke-width: 0.8; vector-effect: non-scaling-stroke; pointer-events: none; }
.qk-kueste { fill: none; stroke: #5d8aac; stroke-width: 0.9; vector-effect: non-scaling-stroke; pointer-events: none; }
.qk-see { fill: #d3e4ee; stroke: #5d8aac; stroke-width: 0.6; vector-effect: non-scaling-stroke; pointer-events: none; }
.qk-fluss { fill: none; stroke: #4a86b4; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.qk-fluss.qk-gefragt { stroke: var(--wasser-tief); stroke-width: 4; stroke-linecap: round; animation: puls 1.1s ease-in-out 2; }
.qk-fluss-hof { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.qk-gebirge-flaeche { fill: rgba(160, 116, 63, 0.18); stroke: rgba(160, 116, 63, 0.5); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.qk-gebirge-flaeche.qk-gefragt { fill: rgba(160, 116, 63, 0.55); stroke: #6d4a22; stroke-width: 2; animation: puls 1.1s ease-in-out 2; }
@keyframes puls { 50% { opacity: 0.45; } }
.qk-marke { pointer-events: none; }
.qk-punkt { fill: var(--einband); stroke: #fff; stroke-width: 2; }
.qk-name { font-family: var(--schrift-schmal); font-weight: 600; font-size: 16px; fill: var(--tinte); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.qk-nadel-kopf { fill: var(--einband); stroke: #fff; stroke-width: 1.4; }
.qk-nadel-glanz { fill: rgba(255, 255, 255, 0.55); }
.qk-gesucht .qk-nadel-kopf { fill: var(--tinte-violett); }
.qk-stecken { animation: stecken 0.3s var(--ease); }
@keyframes stecken { from { transform: translateY(-14px); opacity: 0; } }
.qk-ziel .qk-punkt { fill: var(--marke); stroke: #fff; stroke-width: 2.5; r: 7px; }
.qk-ringflaeche { fill: rgba(194, 26, 48, 0.08); stroke: var(--marke); stroke-width: 2; stroke-dasharray: 5 3; }
.qk-stempel { animation: stempeln 0.36s var(--ease); transform-box: fill-box; }
.qk-linie { fill: none; pointer-events: none; }
.qk-linie-abstand { stroke: var(--einband); stroke-width: 2; stroke-dasharray: 6 4; }
.qk-linie-frage { stroke: var(--tinte-violett); stroke-width: 2.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.qk-breite { fill: none; stroke: var(--breite); stroke-width: 2.5; }
.qk-laenge { fill: none; stroke: var(--laenge); stroke-width: 2.5; stroke-dasharray: 8 4; }
.qk-heiss .qk-punkt { stroke: #fff; stroke-width: 2; }
.qk-w0 .qk-punkt { fill: #3d6fa6; } .qk-w1 .qk-punkt { fill: #4f86b8; } .qk-w2 .qk-punkt { fill: #8f8a3a; }
.qk-w3 .qk-punkt { fill: #c07a1c; } .qk-w4 .qk-punkt { fill: #b3561a; } .qk-w5 .qk-punkt { fill: #963f12; }
.qk-nummer .qk-punkt { fill: var(--tinte-violett); }
.qk-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; background: var(--pult); border: 1px solid var(--linie-stark); border-radius: var(--r-kind); box-shadow: 0 1px 2px rgba(20, 30, 25, 0.12), 0 8px 18px -10px rgba(20, 30, 25, 0.4); overflow: hidden; z-index: 2; }
.qk-zoom button { width: 44px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; }
.qk-zoom button + button { border-top: 1px solid var(--linie); }
.qk-zoom button:hover { background: #fff; }
.qk-zoom svg { width: 20px; height: 20px; fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linecap: round; }

@keyframes stempeln { from { transform: scale(1.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes aufschlag { from { transform: translateY(6px); opacity: 0; } }

/* Aufgaben ohne Bild: der Zettel wird zur Hauptsache */
.qs[data-bild="ohne"] { grid-template-columns: minmax(0, 1fr); }
.qs[data-bild="ohne"] .qs-buehne { display: none; }
.qs[data-bild="ohne"] .qs-zettel { border-right: 0; background: transparent; }
.qs[data-bild="ohne"] .qs-zettel > * { width: min(100%, 720px); margin-left: auto; margin-right: auto; }
.qs[data-bild="ohne"] .qs-zettel-inhalt { background: #fff; border-radius: 12px; box-shadow: var(--schatten-blatt); padding: 26px 28px; margin-top: 8px; }
.qs[data-bild="ohne"] .qz-wahl { grid-template-columns: 1fr 1fr; }
.qs[data-bild="ohne"] .qz-option { min-height: 72px; font-size: 20px; }
.qs[data-bild="ohne"] .qz-frage h2 { font-size: 26px; }

/* ---------------------------------------------------------------- Handy und Tablet */
@media (max-width: 960px) {
  .qp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pass" "visa" "rest"; grid-template-rows: auto; gap: 18px; padding-top: 16px; }
  .qp-pass .qp-zahlen { margin-bottom: 12px; }
  .qp-pass { position: static; }
  .qp-abzeichen { grid-template-columns: repeat(7, 1fr); }
  body.qz[data-ansicht="spiel"] { height: auto; min-height: 100dvh; overflow: auto; grid-template-rows: 54px auto; }
  .qs { grid-template-columns: minmax(0, 1fr); }
  .qs-buehne { order: -1; height: clamp(300px, 52dvh, 520px); padding: 10px; }
  .qs[data-bild="steckbrief"] .qs-buehne, .qs[data-bild="vergleich"] .qs-buehne, .qs[data-bild="ergebnis"] .qs-buehne { height: auto; min-height: 0; }
  .qa-karte { inset: 8px; }
  .qs-zettel { border-right: 0; border-top: 1px solid var(--linie); overflow: visible; }
  .qa-flaggenblatt .qa-flagge { width: min(420px, 80vw); }
  .qa-uhren { left: 16px; bottom: 16px; }
  .qa-uhr svg { width: 44px; height: 44px; }
  .qa-uhr output { font-size: 21px; }
  .qz-kopf-titel { display: none; }
}
@media (max-width: 560px) {
  .qz-kopf .modul-name { display: none; }
  .qz-kopf-pass span { display: none; }
  .qz-kopf .eb-text { display: none; }
  .qp { padding-left: 12px; padding-right: 12px; }
  .qp-felder { grid-template-columns: minmax(0, 1fr); }
  .qv { min-height: 0; padding-right: 82px; }
  .qv-stempel { width: 64px; height: 64px; }
  .qp-tag, .qp-auftrag { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
  .qp-tag .qz-los, .qp-auftrag .qz-los { grid-column: 1 / -1; }
  .qp-auftrag > div { grid-column: 1 / -1; }
  .qp-tag-zeichen { width: 42px; height: 42px; }
  .qr-kopf { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; }
  .qr-kopf .qv-zeichen { width: 48px; height: 48px; }
  .qr-kopf h1 { font-size: 28px; }
  .qr-kopf .qv-stempel-gross { display: none; }
  .qr-felder { padding: 14px 16px 2px; }
  .qr-fuss { flex-direction: column; align-items: stretch; padding: 16px; }
  .qa-vergleich { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qa-vg-teil figcaption { font-size: 17px; }
  .qs[data-bild="ohne"] .qz-wahl { grid-template-columns: minmax(0, 1fr); }
  .qs[data-bild="ohne"] .qs-zettel-inhalt { padding: 18px 16px; }
  .qz-wahl-kompakt { grid-template-columns: minmax(0, 1fr); }
  .qa-sb-liste { font-size: 16.5px; }
  .qz-kopf-pass { padding: 0 10px; } .qz-kopf-pass b { font-size: 14px; }
  .qa-orte { flex-direction: column; gap: 8px; }
  .qa-ort { min-width: 0; width: min(100%, 300px); padding: 14px 18px; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 14px; row-gap: 0; }
  .qa-ort .qa-flagge-ort { grid-row: span 2; width: 56px; height: 42px; }
  .qa-ort b { font-size: 26px; text-align: left; }
  .qs[data-bild="lage"] .qs-buehne { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-nebel svg { animation: none; filter: none; }
}


/* ================================================================
   Klassenquiz (klasse.php fuer Schueler, live.php am Beamer)
   ================================================================ */
.ql-schueler, .ql-flaeche { min-height: 0; padding: 28px 16px 48px; display: grid; justify-items: center; align-content: start;
  background-image: linear-gradient(var(--tisch-linie) 1px, transparent 1px), linear-gradient(90deg, var(--tisch-linie) 1px, transparent 1px); background-size: 48px 48px; }
.ql-karte { width: min(100%, 520px); margin-top: 6vh; padding: 30px 28px 28px; border-radius: 12px; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.ql-karte h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 32px; line-height: 1.1; }
.ql-karte p { margin: 0; color: var(--tinte-2); font-size: 16.5px; }
.ql-zeichen { width: 72px; height: 72px; color: var(--tinte-violett); }
.ql-atmen { animation: atmen 2.4s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scale(1.06); } }
.ql-zahl { font-family: var(--schrift-schmal); font-weight: 600; font-size: 22px; color: var(--tinte) !important; }
.ql-beitreten { display: flex; gap: 8px; width: 100%; }
.ql-beitreten input { flex: 1; min-width: 0; height: 54px; padding: 0 14px; border: 2px solid var(--linie-stark); border-radius: var(--r-kind); background: #fff; font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; }
.ql-beitreten input:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); }
.ql-fehler { color: #6d3a0e !important; min-height: 1.2em; }
.ql-laedt { color: var(--tinte-2); }
.ql-ergebnis { font-size: 22px !important; color: var(--tinte) !important; }
.ql-ergebnis b { font-family: var(--schrift-schmal); font-size: 34px; }
.ql-uhr { position: relative; height: 8px; margin: 0 18px; border-radius: 4px; background: var(--pult-3); overflow: hidden; }
.ql-uhr i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--tinte-violett); border-radius: 4px; transform-origin: left; transition: transform 0.2s linear; }
.ql-uhr.knapp i { background: var(--daneben); }
.ql-platz { margin: 0; color: var(--tinte-2); font-size: 15.5px; }
.ql-platz b { color: var(--tinte); font-family: var(--schrift-schmal); font-size: 20px; }

/* Beamer: groessere Schrift */
.ql-host .qs { grid-template-columns: 470px minmax(0, 1fr); }
.ql-host .qz-frage h2 { font-size: 28px; }
.ql-host .qz-option { font-size: 21px; min-height: 64px; }
.ql-host .qz-option:disabled:not(.qz-richtig):not(.qz-falsch) { opacity: 1; }
.ql-uhr-gross { height: 14px; margin: 48px 18px 0; border-radius: 7px; overflow: visible; }
.ql-uhr-gross i { border-radius: 7px; }
.ql-uhr-gross span { position: absolute; right: 0; top: -44px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 36px; color: var(--tinte-violett); }
.ql-uhr-gross.knapp span { color: var(--daneben); }
.ql-leiste { margin-top: auto; padding: 14px 18px 20px; display: grid; gap: 12px; border-top: 1px dashed var(--linie-stark); }
.ql-antworten { margin: 0; font-size: 18px; }
.ql-antworten b { font-family: var(--schrift-schmal); font-size: 30px; }
.ql-balken { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; }
.ql-balken i { display: block; height: 10px; width: var(--anteil); min-width: 3px; border-radius: 5px; background: var(--tinte-violett); }
.qz-richtig .ql-balken i { background: var(--richtig); }
.ql-balken b { font-family: var(--schrift-schmal); font-size: 18px; }
.ql-rang { margin: 0; padding: 0 0 0 24px; display: grid; gap: 4px; font-size: 17px; }
.ql-rang li { display: flex; justify-content: space-between; gap: 10px; }
.ql-rang span { font-family: var(--schrift-schmal); font-weight: 600; }
.ql-kopf-info { display: inline-flex; align-items: center; gap: 6px; font-family: var(--schrift-schmal); font-size: 20px; }
.qk-klasse .qk-punkt { fill: var(--tinte-violett); stroke: #fff; stroke-width: 1.5; opacity: 0.8; }

.ql-blatt { width: min(100%, 880px); padding: 26px 30px 24px; border-radius: 12px; background: var(--visum); box-shadow: var(--schatten-blatt); background-image: var(--guilloche); background-size: 96px 22px; display: grid; gap: 18px; }
.ql-blatt-kopf { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; }
.ql-blatt-kopf .ql-zeichen { width: 64px; height: 64px; }
.ql-blatt-kopf h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 32px; }
.ql-blatt-kopf p { margin: 4px 0 0; color: var(--tinte-2); }
.ql-feld > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 7px; }
.ql-feld input { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--linie-stark); border-radius: var(--r-kind); background: #fff; font-size: 17px; }
.ql-feld input:focus { outline: none; border-color: var(--wasser); box-shadow: 0 0 0 3px var(--wasser-hell); }
.ql-spiele { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ql-spiel { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border-radius: var(--r-kind); background: #fff; border: 1.5px solid var(--linie); cursor: pointer; font-size: 15px; }
.ql-spiel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ql-spiel .qv-zeichen { width: 34px; height: 34px; color: var(--tinte-2); }
.ql-spiel:has(input:checked) { border-color: var(--tinte-violett); box-shadow: inset 0 0 0 1px var(--tinte-violett); }
.ql-spiel:has(input:checked) .qv-zeichen { color: var(--tinte-violett); }
.ql-spiel:has(input:focus-visible) { outline: 2px solid var(--wasser); outline-offset: 2px; }
.ql-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ql-klein button { min-height: 44px; }
.ql-fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ql-fuss p { margin: 0; color: var(--tinte-2); }

.ql-lobby { width: min(100%, 1200px); display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 2vh; }
.ql-code-block { padding: 28px; border-radius: 12px; background: var(--visum); box-shadow: var(--schatten-blatt); text-align: center; }
.ql-code-block p { margin: 0; font-size: 20px; color: var(--tinte-2); }
.ql-code-block p b { color: var(--tinte); }
.ql-code { display: block; margin: 14px 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: clamp(64px, 9vw, 128px); letter-spacing: 0.12em; line-height: 1; color: var(--pass); }
.ql-klein-hinweis { font-size: 14px !important; color: var(--tinte-2); margin: 6px 0 0; }
.ql-qr { width: 230px; height: 230px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: var(--schatten-blatt); }
.ql-qr svg { width: 100%; height: 100%; display: block; }
.ql-spieler-block { display: grid; gap: 12px; }
.ql-spieler-block h2 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 28px; }
.ql-spieler { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ql-spieler li { padding: 8px 14px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 25, 0.15); font-weight: 600; font-size: 18px; cursor: pointer; animation: stempeln 0.3s var(--ease); }
.ql-spieler li.ql-weg { background: var(--daneben-hell); color: #6d3a0e; }
.ql-ende { width: min(100%, 900px); text-align: center; display: grid; gap: 24px; justify-items: center; margin-top: 4vh; }
.ql-ende h1 { margin: 0; font-family: var(--schrift-schmal); font-weight: 600; font-size: 44px; }
.ql-gemeinsam { font-size: 24px; margin: 0; }
.ql-podest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; width: 100%; }
.ql-podest li { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 16px 10px; border-radius: 12px 12px 0 0; background: var(--visum); box-shadow: var(--schatten-blatt); animation: stempeln 0.45s var(--ease) both; }
.ql-podest li span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pass); color: var(--gold-hell); font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; }
.ql-podest li b { font-size: 22px; }
.ql-podest li small { color: var(--tinte-2); font-size: 15px; }
.ql-podest .p1 { order: 2; min-height: 220px; background: #fff7e2; animation-delay: 0.5s; }
.ql-podest .p1 span { background: var(--gold); color: #fff; }
.ql-podest .p2 { order: 1; min-height: 170px; animation-delay: 0.25s; }
.ql-podest .p3 { order: 3; min-height: 140px; }
.ql-karte .ql-podest .p1 { min-height: 110px; } .ql-karte .ql-podest .p2 { min-height: 90px; } .ql-karte .ql-podest .p3 { min-height: 76px; }
@media (max-width: 960px) {
  .ql-lobby { grid-template-columns: minmax(0, 1fr); }
  .ql-host .qs { grid-template-columns: minmax(0, 1fr); }
  .ql-reihe { grid-template-columns: minmax(0, 1fr); }
  .ql-blatt { padding: 20px 16px; }
}

/* ================================================================
   Auftraege der Lehrkraft (quiz/lehrer.php) – Werkbank aus koordinaten.css
   ================================================================ */
.qa-blatt { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 3px; box-shadow: var(--schatten-blatt); padding: 20px 22px 24px; }
.qa-blatt > h2 { margin: 0 0 4px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 24px; }
.qa-blatt > p { margin: 0 0 8px; font-size: 14px; color: var(--tinte-2); }
.qa-spiele { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.qa-spiele h3 { grid-column: 1 / -1; margin: 14px 0 2px; font-family: var(--schrift-schmal); font-weight: 600; font-size: 18px; }
.qa-spiel { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--linie); border-radius: var(--r); cursor: pointer; }
.qa-spiel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qa-spiel .qv-zeichen { width: 36px; height: 36px; color: var(--tinte-3); }
.qa-spiel b { display: block; font-size: 14.5px; }
.qa-spiel small { display: block; font-size: 13px; line-height: 1.35; color: var(--tinte-2); }
.qa-spiel:has(input:checked) { border-color: var(--einband); box-shadow: inset 0 0 0 1px var(--einband); background: #fbfbf8; }
.qa-spiel:has(input:checked) .qv-zeichen { color: var(--tinte-violett); }
.qa-spiel:has(input:focus-visible) { outline: 2px solid var(--wasser); outline-offset: 2px; }
.qa-summe { font-size: 14px; color: var(--tinte-2); }
.qa-lehrer .kl-tisch { padding: 20px; }
