/* SchalkeTOTAL – Quiz der Fanzone (/fanzone/quiz/). Königsblaue Seite, Quizze auf Tiefblau, Fragen in einer weißen
 * Insel. Eckig, ohne Kürzungen. */

.st-quiz { --qz-ink: #0b1f3a; --qz-soft: #5b6b82; --qz-line: #d9e2ee; --qz-hover: #eef3fb; --qz-ok: #1db954; --qz-no: #e5283a; }
.st-quiz button { font-family: var(--st-font); }

/* ---------- Kopf ---------- */
.st-quiz-head { padding: var(--st-page-top) var(--st-gutter) 16px; }
.st-quiz.is-playing .st-quiz-head { display: none; }
.st-quiz-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-text-soft); }
.st-quiz-back::before { content: "‹"; font-size: 16px; letter-spacing: 0; }
.st-quiz-back:hover { color: #fff; }
.st-quiz-head h1 { margin: 0; font-size: clamp(32px, 9vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.st-quiz-lead { max-width: 620px; margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--st-text-soft); }

.st-quiz-view { padding: 0 var(--st-gutter); }
.st-quiz-loading, .st-quiz-msg { margin: 0; padding: 40px 0; text-align: center; color: var(--st-text-soft); }
.st-quiz-spin { position: relative; height: 200px; }
.st-quiz-spin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: st-quiz-spin .8s linear infinite; }
@keyframes st-quiz-spin { to { transform: rotate(360deg); } }

/* ---------- Leer ---------- */
.st-quiz-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 22px; background: var(--st-blue-deep); }
.st-quiz-empty b { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.st-quiz-empty p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--st-text-soft); }

.st-quiz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px 18px; border: 2px solid #fff; background: #fff; color: var(--st-blue) !important; font-size: 14px; font-weight: 700; cursor: pointer; }
.st-quiz-btn:hover { background: #e8f0fb; border-color: #e8f0fb; }
.st-quiz-btn.is-ghost { background: none; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.st-quiz-btn.is-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Übersicht ---------- */
.st-quiz-hub { display: grid; gap: 22px; }
.st-quiz-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.st-quiz-cats button { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); background: none; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-quiz-cats button:hover { border-color: #fff; }
.st-quiz-cats button.is-on { border-color: #fff; background: #fff; color: var(--st-blue); }

.st-quiz-hero { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 300px; padding: 0; overflow: hidden; border: 0; background: linear-gradient(135deg, #1663d6 0%, #004d9d 50%, #002d60 100%); color: #fff; text-align: left; cursor: pointer; }
.st-quiz-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.st-quiz-hero:hover img { transform: scale(1.03); }
.st-quiz-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 12, 35, .05) 20%, rgba(0, 12, 35, .88)); }
.st-quiz-hero-in { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 18px; }
.st-quiz-hero-in small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.st-quiz-hero-in b { font-size: clamp(26px, 7vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.st-quiz-hero-in em { max-width: 560px; font-size: 15px; font-style: normal; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.st-quiz-hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.st-quiz-go { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: #fff; color: var(--st-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.st-quiz-h { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.st-quiz-h small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--st-text-soft); }
.st-quiz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.st-quiz-tile { display: flex; flex-direction: column; padding: 0 0 14px; border: 0; background: var(--st-blue-deep); color: #fff; text-align: left; cursor: pointer; transition: background .15s; }
.st-quiz-tile:hover { background: #00428c; }
.st-quiz-tile-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1663d6 0%, #004d9d 50%, #002d60 100%); color: rgba(255, 255, 255, .5); }
.st-quiz-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-quiz-tile-img em { position: absolute; left: 8px; top: 8px; padding: 3px 7px; background: #fff; color: var(--st-blue); font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-quiz-tile-img em.is-done { background: var(--qz-ok); color: #062b12; }
.st-quiz-tile b { margin: 12px 14px 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.st-quiz-tile small { margin: 6px 14px 0; font-size: 12.5px; color: var(--st-text-soft); }

.st-quiz-side { display: grid; gap: 12px; align-content: start; }
.st-quiz-me { display: grid; grid-template-columns: 1fr 1fr; background: var(--st-blue-deep); }
.st-quiz-me span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.st-quiz-me span + span { border-left: 1px solid var(--st-line); }
.st-quiz-me b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-quiz-me small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--st-text-soft); }
.st-quiz-rank { padding: 18px; background: #fff; color: var(--qz-ink); }
.st-quiz-rank h2 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--st-blue); }
.st-quiz-rank p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--qz-soft) !important; }
.st-quiz-rank p b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--qz-ink); }

/* ---------- Spiel ---------- */
.st-quiz-ptop { display: flex; align-items: center; gap: 12px; padding: var(--st-page-top) 0 14px; }
.st-quiz-ptop b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.st-quiz-pback { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.st-quiz-pback:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.st-quiz-play { display: grid; gap: 0; padding-top: var(--st-page-top); }
.st-quiz-pbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.st-quiz-prog { display: flex; flex: 1; gap: 4px; }
.st-quiz-prog i { flex: 1; height: 4px; background: rgba(255, 255, 255, .22); }
.st-quiz-prog i.is-on { background: #fff; }
.st-quiz-timer { display: flex; align-items: center; gap: 8px; flex: none; width: 104px; }
.st-quiz-timer b { width: 26px; font-size: 18px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.st-quiz-timer span { flex: 1; height: 6px; background: rgba(255, 255, 255, .22); }
.st-quiz-timer i { display: block; height: 100%; background: #fff; transition: width 1s linear; }
.st-quiz-timer.is-urgent b { color: #ffb3ba; }
.st-quiz-timer.is-urgent i { background: var(--st-live); }

.st-quiz-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1663d6 0%, #004d9d 50%, #002d60 100%); color: rgba(255, 255, 255, .45); }
.st-quiz-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-quiz-stage svg { width: 64px; height: 64px; }

.st-quiz-panel { padding: 18px 16px 20px; background: #fff; color: var(--qz-ink); }
.st-quiz-qhead { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--qz-soft) !important; }
.st-quiz-qhead b { color: var(--st-blue); }
.st-quiz-q { margin: 8px 0 16px; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--qz-ink) !important; }
.st-quiz-answers { display: grid; gap: 8px; }
.st-quiz-ans { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border: 1px solid var(--qz-line); background: #fff; color: var(--qz-ink); text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.st-quiz-ans span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: #e8eef7; color: var(--st-blue); font-size: 13px; font-weight: 800; }
.st-quiz-ans b { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.25; }
.st-quiz-ans kbd { display: none; }
.st-quiz-ans.is-open:hover, .st-quiz-ans.is-open:focus-visible { border-color: var(--st-blue); background: var(--qz-hover); outline: 0; }
.st-quiz-ans:disabled { cursor: default; }
.st-quiz-ans.is-picked { border-color: var(--st-blue); background: var(--qz-hover); }
.st-quiz-ans.is-correct { border-color: var(--qz-ok); background: var(--qz-ok); color: #062b12; }
.st-quiz-ans.is-correct span { background: rgba(255, 255, 255, .55); color: #062b12; }
.st-quiz-ans.is-wrong { border-color: var(--qz-no); background: var(--qz-no); color: #fff; }
.st-quiz-ans.is-wrong span { background: rgba(255, 255, 255, .25); color: #fff; }
.st-quiz-ans.is-off { opacity: .55; }

.st-quiz-verdict { margin: 16px 0 0; font-size: 18px; font-weight: 800; }
.st-quiz-verdict.is-ok { color: #138a3f !important; }
.st-quiz-verdict.is-no { color: #b42332 !important; }
.st-quiz-expl { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--qz-soft) !important; }
.st-quiz-next { display: block; width: 100%; min-height: 52px; margin-top: 16px; border: 0; background: var(--st-blue); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.st-quiz-next:hover { background: var(--st-blue-deeper); }
.st-quiz-next:disabled { opacity: .6; cursor: default; }

/* ---------- Ergebnis ---------- */
.st-quiz-result { padding: 24px 20px; background: var(--st-blue-deep); }
.st-quiz-res-k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-text-soft); }
.st-quiz-result h2 { margin: 6px 0 0; font-size: clamp(28px, 8vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.st-quiz-res-v { margin: 8px 0 0; font-size: 16px; color: var(--st-text-soft); }
.st-quiz-res-tiles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; background: var(--st-blue-deeper); }
.st-quiz-res-tiles span { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.st-quiz-res-tiles span + span { border-left: 1px solid var(--st-line); }
.st-quiz-res-tiles b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-quiz-res-tiles small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--st-text-soft); }
.st-quiz-res-note { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--st-text-soft); }
.st-quiz-res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Hinweis ---------- */
.st-quiz-toast { position: fixed; left: 50%; bottom: calc(var(--st-appnav-h, 64px) + 16px); z-index: 120; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #fff; color: #0b1f3a; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 12, 35, .35); transform: translateX(-50%); }
.st-quiz-toast[hidden] { display: none; }

/* ---------- Handy: randlos ---------- */
@media (max-width: 767px) {
	.st-quiz-view { padding: 0; }
	.st-quiz-cats, .st-quiz-h, .st-quiz-tiles, .st-quiz-side, .st-quiz-ptop, .st-quiz-pbar, .st-quiz-msg { padding-left: var(--st-gutter); padding-right: var(--st-gutter); }
	.st-quiz-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.st-quiz-tile b { margin: 10px 10px 0; font-size: 15px; }
	.st-quiz-tile small { margin: 4px 10px 0; }
}

/* ---------- Computer ---------- */
@media (min-width: 1024px) {
	.st-quiz-head { padding-bottom: 22px; }
	.st-quiz-hub { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; }
	.st-quiz-hero { min-height: 420px; }
	.st-quiz-hero-in { padding: 32px; }
	.st-quiz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

	.st-quiz-play { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "bar bar" "stage panel"; }
	.st-quiz-pbar { grid-area: bar; }
	.st-quiz-stage { grid-area: stage; aspect-ratio: auto; min-height: 480px; }
	.st-quiz-panel { grid-area: panel; display: flex; flex-direction: column; padding: 32px; }
	.st-quiz-q { font-size: 26px; }
	.st-quiz-ans { min-height: 60px; }
	.st-quiz-ans b { font-size: 17px; }
	.st-quiz-ans.is-open kbd { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--qz-line); color: var(--qz-soft); font: 700 12px/1 var(--st-font); }
	.st-quiz-result { max-width: 760px; padding: 36px; }
	.st-quiz-toast { bottom: 32px; }
}
