/* =====================================================================
   Brainpower Fragen – im Look von brainpower-quiz.de
   Hell (Standard): für cremeweiße Abschnitte
   Dunkel: automatisch in Divi-Sektionen mit Klasse bp-gruen / bp-hero,
           oder per Wrapper-Klasse bpf-dunkel
   Farben: Grün #073533 · Türkis #14a098 · Pink #cb2d6f · Orange #e16539 · Creme #f7f3ea
   ===================================================================== */

.bpf {
	/* Hell */
	--bpf-karte: #ffffff;
	--bpf-feld: #f7f3ea;
	--bpf-option: #f7f3ea;
	--bpf-h: #073533;
	--bpf-text: rgba(7, 53, 51, 0.86);
	--bpf-text-2: rgba(7, 53, 51, 0.66);
	--bpf-linie: rgba(7, 53, 51, 0.12);
	--bpf-schatten: 0 6px 24px rgba(7, 53, 51, 0.08);
	--bpf-link: #0f7f78;
	--bpf-akzent: #14a098;
	--bpf-akzent-hell: #17b8af;
	--bpf-pink: #cb2d6f;
	--bpf-orange: #e16539;
	--bpf-richtig: #0f7f78;
	--bpf-falsch: #d2552a;
	--bpf-radius: 18px;
	--bpf-kopf: Poppins, "Segoe UI", Arial, sans-serif;

	box-sizing: border-box;
	color: var(--bpf-text);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
}

/* Dunkel: in grünen Divi-Sektionen automatisch */
.bp-gruen .bpf, .bp-hero .bpf, .bpf-dunkel .bpf, .bpf.bpf-dunkel {
	--bpf-karte: #0b4643;
	--bpf-feld: #073533;
	--bpf-option: #073533;
	--bpf-h: #ffffff;
	--bpf-text: rgba(255, 255, 255, 0.86);
	--bpf-text-2: rgba(255, 255, 255, 0.66);
	--bpf-linie: rgba(255, 255, 255, 0.14);
	--bpf-schatten: none;
	--bpf-link: #14a098;
	--bpf-richtig: #2fc4b9;
	--bpf-falsch: #f28a62;
}

/* ---------- Grund-Reset gegen Theme-/Divi-Stile ---------- */
.bpf *, .bpf *::before, .bpf *::after { box-sizing: border-box; }
.bpf p { margin: 0 0 12px; color: inherit; font-size: inherit; line-height: inherit; }
.bpf p, .bpf.bpf-frage p, .bpf.bpf-archiv p, .bpf.bpf-einreichen p { padding: 0; }
.bpf a { color: var(--bpf-link); text-decoration: none; }
.bpf a:hover { text-decoration: underline; }
.bpf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bpf-sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Karte (Frage der Woche, Formular) ---------- */
.bpf-frage, .bpf-einreichen {
	background: var(--bpf-karte);
	border: 1px solid var(--bpf-linie);
	border-radius: var(--bpf-radius);
	box-shadow: var(--bpf-schatten);
	padding: clamp(22px, 4vw, 36px);
	max-width: 760px;
	margin: 0 auto;
	transition: border-color .3s;
}

/* Kopf: Label + Kategorie */
.bpf-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.bpf .bpf-label {
	font: 600 13px/1.2 var(--bpf-kopf); letter-spacing: .12em; text-transform: uppercase; color: var(--bpf-link);
}
.bpf .bpf-kat {
	display: inline-block; font: 600 12px/1.2 var(--bpf-kopf); letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 11px; border-radius: 50px; background: var(--bpf-pink); color: #fff;
}

/* Frage */
.bpf-frage .bpf-text {
	font: 700 clamp(21px, 2.6vw, 26px)/1.3 var(--bpf-kopf); color: var(--bpf-h); margin: 0 0 22px;
}

/* ---------- Eingaben ---------- */
.bpf.bpf-frage input.bpf-input,
.bpf.bpf-einreichen input[type="text"],
.bpf.bpf-einreichen input[type="email"],
.bpf.bpf-einreichen textarea,
.bpf.bpf-einreichen select {
	display: block; width: 100%; margin: 0;
	padding: 13px 15px;
	font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4;
	color: var(--bpf-h);
	background: var(--bpf-feld);
	border: 1px solid var(--bpf-linie);
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	appearance: none; -webkit-appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.bpf.bpf-einreichen select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314a098' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.bpf-einreichen select option { color: #073533; background: #fff; }
.bpf.bpf-einreichen textarea { min-height: 110px; resize: vertical; }
.bpf input.bpf-input::placeholder, .bpf-einreichen ::placeholder { color: var(--bpf-text-2); opacity: 1; }
.bpf input.bpf-input:focus,
.bpf.bpf-einreichen input:focus, .bpf.bpf-einreichen textarea:focus, .bpf.bpf-einreichen select:focus {
	border-color: var(--bpf-akzent); box-shadow: 0 0 0 3px rgba(20, 160, 152, .25);
}

/* Multiple Choice */
.bpf-optionen { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bpf .bpf-option {
	display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0;
	padding: 13px 15px; border-radius: 12px;
	background: var(--bpf-option); border: 1px solid var(--bpf-linie);
	color: var(--bpf-h); font: 500 16px/1.3 var(--bpf-kopf);
	transition: border-color .2s, background .2s;
}
.bpf .bpf-option:hover { border-color: var(--bpf-akzent); }
.bpf .bpf-option input {
	appearance: none; -webkit-appearance: none; flex: none;
	width: 20px; height: 20px; margin: 0; padding: 0; border-radius: 50%;
	border: 2px solid var(--bpf-text-2); background: transparent; transition: .15s;
}
.bpf .bpf-option input:checked { border: 6px solid var(--bpf-akzent); background: #fff; }
.bpf .bpf-option:has(input:checked) { border-color: var(--bpf-akzent); background: rgba(20, 160, 152, .14); }

/* ---------- Buttons ---------- */
.bpf-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.bpf button.bpf-btn {
	display: inline-block; cursor: pointer; margin: 0;
	padding: 14px 30px; border: 0; border-radius: 50px;
	background: var(--bpf-akzent); color: #fff;
	font: 600 16px/1.2 var(--bpf-kopf); letter-spacing: 0; text-transform: none;
	box-shadow: none; transition: background .2s, transform .15s;
}
.bpf button.bpf-btn:hover { background: var(--bpf-akzent-hell); }
.bpf button.bpf-btn:active { transform: scale(.97); }
.bpf button.bpf-btn:disabled { opacity: .6; cursor: wait; }
.bpf button.bpf-link {
	background: none; border: 0; padding: 0; margin: 0; cursor: pointer; box-shadow: none;
	color: var(--bpf-text-2); font: 500 15px/1.2 var(--bpf-kopf); letter-spacing: 0; text-transform: none;
	text-decoration: underline; text-underline-offset: 4px;
}
.bpf button.bpf-link:hover { color: var(--bpf-h); }
.bpf button:focus-visible, .bpf .bpf-option:focus-within { outline: 2px solid var(--bpf-akzent); outline-offset: 3px; }
.bpf .bpf-fehler { color: var(--bpf-falsch); margin: 12px 0 0; font-size: 15px; }

/* ---------- Ergebnis ---------- */
.bpf-frage.bpf-ist-richtig { border-color: var(--bpf-akzent); }
.bpf-frage.bpf-ist-falsch { border-color: var(--bpf-orange); }
.bpf-ergebnis { animation: bpf-rein .35s ease-out; }
.bpf .bpf-verdict { font: 800 24px/1.2 var(--bpf-kopf); margin-bottom: 10px; color: var(--bpf-h); }
.bpf-ist-richtig .bpf-verdict { color: var(--bpf-richtig); }
.bpf-ist-falsch .bpf-verdict { color: var(--bpf-falsch); }
.bpf .bpf-deine { color: var(--bpf-text-2); margin-bottom: 6px; font-size: 15px; }
.bpf .bpf-antwort { font-size: 18px; color: var(--bpf-h); }
.bpf .bpf-antwort strong { font-family: var(--bpf-kopf); color: var(--bpf-link); }
.bpf .bpf-erklaerung { color: var(--bpf-text); }
.bpf .bpf-meta { font-size: 14px; color: var(--bpf-text-2); margin-bottom: 0; }

.bpf-fuss {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
	margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--bpf-linie);
	font: 600 14px/1.4 var(--bpf-kopf);
}

@keyframes bpf-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bpf-ergebnis { animation: none; } .bpf * { transition: none !important; } }

/* ---------- Archiv ---------- */
.bpf-archiv { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.bpf-eintrag {
	background: var(--bpf-karte); border: 1px solid var(--bpf-linie); border-radius: 14px;
	box-shadow: var(--bpf-schatten); overflow: hidden; margin: 0;
}
.bpf-eintrag summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
	display: flex; flex-direction: column; gap: 2px;
}
.bpf-eintrag summary::-webkit-details-marker { display: none; }
.bpf-eintrag summary::after {
	content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
	font: 400 26px/1 var(--bpf-kopf); color: var(--bpf-akzent); transition: transform .2s;
}
.bpf-eintrag[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bpf-eintrag summary .bpf-meta { font-size: 13px; }
.bpf-eintrag summary .bpf-text { font: 600 17px/1.35 var(--bpf-kopf); color: var(--bpf-h); margin: 0; }
.bpf-loesung { padding: 14px 22px 18px; border-top: 1px solid var(--bpf-linie); }
.bpf-loesung .bpf-antwort { font-size: 16px; }
.bpf-loesung .bpf-antwort strong { color: var(--bpf-h); }

/* ---------- Frage einreichen ---------- */
.bpf-einreichen p { margin: 0 0 16px; }
.bpf-einreichen label {
	display: block; margin-bottom: 6px;
	font: 600 14px/1.3 var(--bpf-kopf); color: var(--bpf-h);
}
.bpf-reihe { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bpf-einreichen .bpf-check label {
	display: flex; gap: 12px; align-items: flex-start;
	font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--bpf-text-2);
}
.bpf-einreichen .bpf-check input {
	appearance: none; -webkit-appearance: none; flex: none;
	width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border-radius: 5px;
	border: 2px solid var(--bpf-text-2); background: transparent; cursor: pointer;
}
.bpf-einreichen .bpf-check input:checked {
	border-color: var(--bpf-akzent);
	background: var(--bpf-akzent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.bpf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bpf-danke .bpf-text { font: 700 24px/1.3 var(--bpf-kopf); color: var(--bpf-h); }

@media (max-width: 600px) {
	.bpf-optionen, .bpf-reihe { grid-template-columns: 1fr; }
	.bpf-fuss { flex-direction: column; }
}

/* Alte Klasse aus Version 1.0: hell ist jetzt Standard */
.bpf-hell .bpf { color-scheme: light; }
