/* Quiz Making: ronde 2026-11-20 (critique van de gratis quiz).
   Geladen na quiz-thema.css. Uitslag tegen de CBR-norm, zwakke punten, zichtbare vinkjes,
   rustiger nakijkkaarten, leesbaar overzicht en toetsenbordfocus. */

#home_quiz_section {
	--qmr-goed: #157a49;      /* groen op wit: 5,3:1 */
	--qmr-fout: #c62a2f;      /* rood op wit: 5,6:1 */
	--qmr-goed-zacht: #e3f4ea;
	--qmr-fout-zacht: #fbe7e7;
	--qmr-gekozen: #0b63ce;
	--qmr-focus: var(--yellow-400, #ffc531);
}
#home_quiz_section ::selection { background: var(--yellow-400, #ffc531); color: var(--navy-900, #141d4f); }

/* ---------- Startkaart: kop, één alinea en een kleine voetnoot, alles gecentreerd ---------- */
#home_quiz_section .qm-startkaart .card_content p {
	max-width: 34em;
	margin: 0 auto .75em;
	text-align: center;
	font-size: 17px;
	line-height: 1.5;
	text-wrap: pretty;
}
#home_quiz_section .qm-startkaart .card_content p small {
	font-size: 14px;
	color: var(--ink-soft, #545b78);
}
#home_quiz_section .qm-startkaart .qm-sk-uitleg { text-wrap: pretty; color: var(--ink-soft, #545b78); font-size: 15px; }

/* ---------- Toetsenbordfocus: zichtbaar op navy én op wit ---------- */
#home_quiz_section a[role="button"]:focus-visible,
#home_quiz_section button:focus-visible,
#home_quiz_section .qm-mr-optie:focus-within,
#home_quiz_section a.ote-btn:focus-visible,
#home_quiz_section .qm-tekstlink:focus-visible {
	outline: 3px solid var(--qmr-focus) !important;
	outline-offset: 2px;
}
#home_quiz_section a[role="button"] { cursor: pointer; }

/* ---------- Vraagtitel: een vlak, geen accentstreep aan één kant ---------- */
#home_quiz_section #mydivs .question_content h3,
body.quiz-bezig #home_quiz_section #mydivs .question_content h3 {
	border-left: 0 !important;
	border: 1px solid rgba(255, 255, 255, .14) !important;
	text-wrap: pretty;
}

/* Instructie die de vraagtekst alleen aanvult (de vraag zegt het al). */
#home_quiz_section .qm-instructie--klein {
	font-weight: 500;
	font-size: 16px;
	color: #d6dcf7;
}

/* Vraag zonder afbeelding: antwoorden over de volle breedte. */
#home_quiz_section .inner_question_box:not(:has(> .left_q_box)) > .right_q_box {
	width: 100% !important;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	float: none !important;
}

/* ---------- Meerdere antwoorden: letter, zichtbaar vinkje, dezelfde gekozen-kleur als enkele keuze ---------- */
#home_quiz_section .qm-mr-optie {
	min-height: 52px;
	padding: 10px 14px;
	border: 2px solid transparent;
	border-radius: 8px;
	color: var(--qmt-tekst, #1d2340);
	font-size: 17px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) {
	#home_quiz_section .qm-mr-optie:hover { border-color: #95c11f; }
}
#home_quiz_section .qm-mr-optie .qm-mr-letter {
	flex: 0 0 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #243588;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}
#home_quiz_section .qm-mr-optie input[type="checkbox"] {
	order: 3;
	margin-left: auto;
	width: 26px;
	height: 26px;
	flex: none;
	border: 2px solid #9aa5c4;
	border-radius: 6px;
	background: #fff center / 18px 18px no-repeat;
	cursor: pointer;
}
#home_quiz_section .qm-mr-optie input[type="checkbox"]:checked {
	border-color: #fff;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b63ce' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
#home_quiz_section .qm-mr-optie.is-gekozen {
	background: var(--qmr-gekozen);
	border-color: var(--qmr-gekozen);
	color: #fff;
}
#home_quiz_section .qm-mr-optie.is-gekozen .qm-mr-letter { background: #fff; color: #243588; }
#home_quiz_section .qm-mr-optie.is-juist,
#home_quiz_section .qm-mr-optie.is-fout { color: var(--qmt-tekst, #1d2340); }

/* Hotspot: de markering staat waar je tikte, ook naast de juiste plek. */
#home_quiz_section .qm-marker { transition: top .12s ease-out, left .12s ease-out; }

/* ---------- Overzicht na de laatste vraag (alleen als er nog open vragen zijn) ---------- */
#home_quiz_section .inner_one_page_bt ul li span,
#home_quiz_section .timmer_content .inner_one_page_bt ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	border-radius: 8px;
	font-weight: 700;
}
#home_quiz_section .inner_one_page_bt ul li.answered span {
	background: #fff !important;
	color: var(--navy-900, #141d4f) !important;
	border: 2px solid #fff !important;
}
#home_quiz_section .inner_one_page_bt ul li.unanswered span {
	background: transparent !important;
	color: #fff !important;
	border: 2px dashed rgba(255, 255, 255, .8) !important;
}

/* Oranje knoppen op navy: neutrale schaduw in plaats van een oranje gloed. */
#home_quiz_section .Button_ecat,
#home_quiz_section .btn_box a,
#home_quiz_section a.ote-btn--cta,
#home_quiz_section a.next_quiz {
	box-shadow: 0 4px 12px rgba(10, 14, 40, .28) !important;
}

/* ---------- Uitslag van de gratis quiz ---------- */
#endQuiz.qm-uitslag-gratis .quiz-uitslag {
	border-top: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	padding: 28px 20px 24px;
}
#endQuiz.qm-uitslag-gratis .quiz-uitslag-score { margin-bottom: 16px; }
#endQuiz .qm-meter {
	position: relative;
	height: 12px;
	max-width: 420px;
	margin: 0 auto;
	padding: 0 !important; /* the old theme gives every div in the end card 12px padding-top */
	overflow: visible;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
}
#endQuiz .qm-meter-vul {
	display: block;
	width: 0;
	height: 12px !important;
	border-radius: inherit;
	background: #ffb36b;
	transition: width .9s cubic-bezier(.16, 1, .3, 1);
}
#endQuiz.is-geslaagd .qm-meter-vul { background: #8fdcaf; }
#endQuiz .qm-meter-norm {
	position: absolute;
	top: -6px;
	bottom: -6px;
	width: 3px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: #fff;
}
#endQuiz .qm-meter-legenda {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	max-width: 420px;
	margin: 10px auto 20px !important;
	font-size: 15px !important;
	color: #d6dcf7;
	font-variant-numeric: tabular-nums;
}
#endQuiz .qm-meter-legenda span { color: #d6dcf7 !important; }
#endQuiz .qm-meter-legenda strong { color: #fff !important; }
#endQuiz.qm-uitslag-gratis .quiz-uitslag-status {
	margin: 0 0 8px;
	color: #ffd08f !important;
	font-size: clamp(22px, 5.5vw, 28px) !important;
	line-height: 1.2;
	text-wrap: balance;
	border: 0;
}
#endQuiz.qm-uitslag-gratis #show_pass { color: #b9efcf !important; }
#endQuiz.qm-uitslag-gratis .quiz-uitslag-uitleg { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
	#endQuiz .qm-meter-vul { transition: none; }
}

/* Zwakke punten: direct onder de score. */
#endQuiz .qm-zwakke-punten .qm-uitslag-onderwerpen {
	max-width: none;
	margin: 0 0 24px;
	padding: 20px;
	border-radius: var(--qmt-radius, 14px);
	background: #fff;
	box-shadow: var(--qmt-schaduw, 0 6px 24px rgba(20, 29, 79, .1));
}
#endQuiz .qm-zwakke-punten h2 {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--navy-800, #1b2766) !important;
	font-size: 20px !important;
	line-height: 1.25;
}
/* Naam en score op één regel, de balk eronder over de volle breedte (lange onderwerpnamen passen). */
#endQuiz .qm-zwakke-punten li {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "naam score" "balk balk";
	gap: 6px 12px;
	padding: 10px 0;
	border-top: 1px solid var(--line, #dfe4f0);
	font-size: 16px !important;
	line-height: 1.35;
}
#endQuiz .qm-zwakke-punten li:first-child { border-top: 0; }
#endQuiz .qm-zwakke-punten li.is-fout > span:first-child { font-weight: 700; }
#endQuiz .qm-zwakke-punten li > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#home_quiz_section #endQuiz .qm-zwakke-punten li.is-fout > span:last-child { color: var(--qmr-fout); }
#home_quiz_section #endQuiz .qm-zwakke-punten li.is-goed > span:last-child { color: var(--qmr-goed); }
#endQuiz .qm-zwakke-punten li > span:first-child { grid-area: naam; }
#endQuiz .qm-zwakke-punten li > span:last-child { grid-area: score; }
#endQuiz .qm-zwakke-punten .qm-balk { grid-area: balk; height: 6px; background: var(--qmr-fout-zacht); }
#endQuiz .qm-zwakke-punten .qm-balk i { height: 6px !important; background: var(--qmr-goed); }

/* Vervolgstap: één knop, nakijken als tekstlink. */
#endQuiz .qm-uitslag-vervolg { margin: 0 0 8px; }
#endQuiz .qm-uitslag-vervolg h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: 22px !important;
	text-wrap: balance;
}
#endQuiz .qm-uitslag-vervolg p { max-width: 62ch; color: #e8ecff; text-wrap: pretty; }
#endQuiz .qm-uitslag-knoppen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 16px !important;
}
#endQuiz .qm-uitslag-knoppen .ote-btn { min-height: 48px; padding: .8em 1.6em; font-size: 17px; }
#home_quiz_section .qm-tekstlink {
	color: #fff !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
#home_quiz_section .qm-tekstlink:hover { text-decoration-thickness: 2.5px; }
#home_quiz_section #nakijken,
#pakketkiezer { scroll-margin-top: 84px; } /* under the sticky site header */
html:has(#home_quiz_section) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html:has(#home_quiz_section) { scroll-behavior: auto; }
}

/* ---------- Nakijken: hele rand en een statuslabel in plaats van een gekleurde zijstreep ---------- */
#resultPage .qm-kaart {
	border-left: 0 !important;
	border: 2px solid #bfe3cd !important;
}
#resultPage .qm-kaart.is-fout { border-color: #f1c4c6 !important; }
#resultPage .qm-kaart .number,
#resultPage .qm-kaart.is-goed .number { background: var(--qmr-goed); }
#resultPage .qm-kaart.is-fout .number { background: var(--qmr-fout); }
#resultPage .qm-kaart.is-goed .answer strong,
#resultPage .qm-kaart .right-answer strong { color: var(--qmr-goed); }
#resultPage .qm-kaart.is-fout .answer strong { color: var(--qmr-fout); }
/* Kaarttitel is nu een h3 (was h5: kopsprong na "Vragen nakijken"); zelfde uiterlijk. */
#resultPage .qm-kaart .mobile-title .qm-kaart-titel {
	margin: 2px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--navy-800, #1b2766);
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}
@media (min-width: 768px) {
	#resultPage .qm-kaart .mobile-title .qm-kaart-titel { font-size: 20px !important; }
}
/* Duidelijkere stappen tussen de koppen op de uitslag. */
#home_quiz_section #resultPage .right_in_theorie_hj h2,
#endQuiz .qm-uitslag-vervolg h2 { font-size: 26px !important; line-height: 1.2; }
/* Pakketten onder de quiz staan op het blauwe vlak: kop en garanties in wit. */
#home_quiz_section .ote-pk-blok__kop { color: #fff !important; font-size: 28px; }
#home_quiz_section .ote-pk__zeker,
#home_quiz_section .ote-pk__zeker li { color: #fff; }
#home_quiz_section .ote-pk__zeker .ote-ico { color: #8fdcaf; }
/* Meerdere antwoorden: elke optie met wat je deed. */
#resultPage .qm-mr-uitslag { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
#resultPage .qm-mr-uitslag li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 8px 12px;
	border: 1.5px solid var(--line, #dfe4f0);
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.35;
	color: var(--qmt-tekst, #1d2340);
}
#resultPage .qm-mr-uitslag em {
	flex: none;
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
}
#resultPage .qm-mr-uitslag li.is-goed { border-color: #bfe3cd; background: var(--qmr-goed-zacht); }
#resultPage .qm-mr-uitslag li.is-goed em { color: var(--qmr-goed); }
#resultPage .qm-mr-uitslag li.is-fout { border-color: #f1c4c6; background: var(--qmr-fout-zacht); }
#resultPage .qm-mr-uitslag li.is-fout em { color: var(--qmr-fout); }
#resultPage .qm-mr-uitslag li.is-gemist { border-style: dashed; border-color: var(--qmr-goed); }
#resultPage .qm-mr-uitslag li.is-gemist em { color: var(--qmr-goed); }
#resultPage .qm-mr-uitslag li.is-leeg { color: var(--ink-soft, #545b78); }

/* Sleep- en aanwijsvragen: de afbeelding met jouw plek en de juiste plek vervangt de kale afbeelding. */
#resultPage .qm-kaart .question-inner-wrap:has(.qm-spot-beeld.is-uitslag) > .image { display: none !important; }
#resultPage .qm-kaart .qm-spot-beeld.is-uitslag { max-width: 420px; margin-top: 10px; border-radius: 10px; overflow: hidden; }
#resultPage .qm-kaart .description p { text-wrap: pretty; }
#resultPage .qm-nakijk-tabs .qm-tab-fout .qm-tab-aantal { background: var(--qmr-fout); }
#resultPage .qm-nakijk-tabs .qm-tab-goed .qm-tab-aantal { background: var(--qmr-goed); }
/* Eén onderdeel (gratis quiz, CBR-opzet): geen kop "EXAMEN" en geen regel over de onderdeelnorm. */
#resultPage .qm-blok-enig > h3.result-part,
#resultPage .qm-blok-enig > .right_in_theorie_hj { display: none !important; }

/* ---------- Ruimte aan de zijkant: tekst niet tegen de schermrand (mobiel) ---------- */
@media (max-width: 767px) {
	#home_quiz_section .container { padding-left: 18px !important; padding-right: 18px !important; }
}

/* Drag question (single_sleep): show where the check mark can go (user 2026-11-21: the drop places were invisible).
   Each place gets a dashed ring; while dragging the rings light up and the place under the finger is filled. */
#home_quiz_section .qm-spot-beeld[data-qm-type="single_sleep"] .qm-spot.qm-spot:not(.is-juist):not(.is-fout) {
    border: 3px dashed #fff;
    background: rgba(2, 107, 168, 0.18);
    box-shadow: 0 0 0 2px rgba(2, 107, 168, 0.9), 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
#home_quiz_section .qm-spot-beeld[data-qm-type="single_sleep"].is-sleept .qm-spot.qm-spot:not(.is-juist):not(.is-fout) {
    background: rgba(255, 255, 255, 0.35);
    animation: qm-doel-puls 1s ease-in-out infinite;
}
#home_quiz_section .qm-spot-beeld[data-qm-type="single_sleep"] .qm-spot.qm-spot.is-doel {
    background: rgba(2, 107, 168, 0.6) !important;
    border-style: solid;
    transform: scale(1.15);
    animation: none !important;
}
#home_quiz_section .qm-spot-beeld[data-qm-type="single_sleep"] .qm-spot.qm-spot.is-gekozen { border-style: solid; }
@keyframes qm-doel-puls { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
    #home_quiz_section .qm-spot-beeld[data-qm-type="single_sleep"].is-sleept .qm-spot.qm-spot { animation: none; }
}
