/* ==========================================================================
   MODUL QUIZ – Design (Frontend)
   --------------------------------------------------------------------------
   KOMPLETT NEU (Plugin 1.2): Das Quiz besteht jetzt aus denselben Bausteinen
   wie Ticketwünsche und Shop (assets/borosen-ui.css): Karte,
   Info-Zeile + Titel, Auswahl-Knöpfe (.bo-wahl), graue Box (.bo-box).
   Hier stehen nur noch die Dinge, die es nur im Quiz gibt.
   Der Editor im Backend hat sein Aussehen jetzt in assets/admin.css.
   ========================================================================== */

/* Breite der Quiz-Karte */
.brsn-quiz-frontend {
	max-width: 680px;
	margin: 1.5rem 0; /* GEÄNDERT (Design-Update Okt. 2026): linksbündig wie der Text darüber */
}

/* Jeder Schritt (Start, Frage, Ergebnis) blendet kurz ein */
.brsn-schritt {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	animation: bo-auftauchen 320ms var(--bo-kurve) both;
}
.brsn-schritt :focus {
	outline: none; /* Fokus wird nur für Screenreader gesetzt */
}

/* Fragetext etwas kleiner als ein Titel */
.bo-modul .brsn-frage {
	font-size: var(--bo-fs-gross);
	line-height: 1.25;
}

/* Bild zur Frage */
.brsn-bild {
	display: block;
	width: 100%;
	max-height: 380px;
	object-fit: cover;
	border-radius: var(--bo-rundung-m);
}

/* Antworten untereinander */
.brsn-antworten {
	--bo-wahl-min: 100%;
}
.brsn-antworten .bo-wahl[aria-disabled="true"] {
	cursor: default;
}
.brsn-antworten.ist-beantwortet .bo-wahl:not(.ist-richtig):not(.ist-falsch):not(.ist-loesung) {
	opacity: 0.55;
}
/* Richtig = grün, falsch = rot, richtige Lösung nach einem Fehler = grüner Rand */
.bo-wahl.ist-richtig {
	border-color: var(--bo-gruen);
	background: var(--bo-gruen);
	color: #fff;
}
.bo-wahl.ist-falsch {
	border-color: var(--bo-rot);
	background: var(--bo-rot);
	color: #fff;
}
.bo-wahl.ist-loesung {
	border-color: var(--bo-gruen);
	box-shadow: inset 0 0 0 1px var(--bo-gruen);
}
.bo-wahl.ist-richtig::after,
.bo-wahl.ist-loesung::after {
	content: "✓";
	margin-left: auto;
	font-weight: 800;
}
.bo-wahl.ist-falsch::after {
	content: "✕";
	margin-left: auto;
	font-weight: 800;
}

/* Knopf-Zeilen */
.brsn-knopfzeile {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.brsn-knopfzeile--rechts {
	justify-content: flex-end;
}
.brsn-knopfzeile[hidden] {
	display: none;
}

/* Ergebnis */
.brsn-punkte {
	display: inline-block;
	min-width: 1.4ch;
	padding: 0 0.3em;
	border-radius: 0.3em;
	background: var(--bo-gelb);
	font-variant-numeric: tabular-nums;
	text-align: center;
}
.bo-modul .brsn-lob {
	color: var(--bo-schwarz);
	font-size: var(--bo-fs-text);
}
.brsn-teilen__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Info-Box blendet ein */
.brsn-info:not([hidden]) {
	animation: bo-auftauchen 320ms var(--bo-kurve) both;
}
.brsn-info p:last-child {
	margin: 0;
}

/* Dunkles Design: Zahl auf Gelb bleibt dunkel */
:root[data-farbschema="dunkel"] .brsn-punkte {
	color: #1A1A1A;
}

@media (prefers-reduced-motion: reduce) {
	.brsn-schritt,
	.brsn-info {
		animation: none !important;
	}
}

/* NEU (1.17.0): Pokal-Symbol vor dem Lob bei voller Punktzahl (statt Emoji) */
.bo-modul .brsn-lob .brsn-pokal {
	display: inline-block;
	vertical-align: -0.2em;
	margin-right: 0.4em;
}
