/* =============================================================
   De vragen van de woningscan (patterns/onderdelen/widget-scan.php,
   assets/js/widget-scan.js), opnieuw opgezet op 12 oktober 2026.
   De schil is de widget uit hub.css (kaart, wijzer, voortgang); dit
   bestand is de binnenkant: één vraag per beeld, grote rustige
   antwoordvlakken, "Terug" en "Volgende" onderaan, en een vak met een
   vaste hoogte zodat de widget nooit langer wordt.
   ============================================================= */

.sv { --sv-hoog: 480px; }
.sv .cs__kop { align-items: baseline; }
.sv__hoofdstuk { font-size: 0.9375rem; color: var(--cs-inkt-3); }

/* ---------- het vak van de vraag: vaste hoogte ---------- */
.sv__podium { position: relative; display: flex; flex-direction: column; height: var(--sv-hoog); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
/* Het vak houdt zijn maat; past een beeld toch niet, dan scrolt het binnen het vak. */
.sv__dia { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; animation: sv-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sv__dia::-webkit-scrollbar { display: none; }
.sv__dia > * { flex: none; }
.sv.is-terug .sv__dia { animation-name: sv-terug; }
@keyframes sv-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes sv-terug { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.sv__vraag { margin: 0; font-size: clamp(1.625rem, 6.2cqw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; color: var(--cs-inkt); text-wrap: balance; }
.sv__vraag:focus { outline: 0; }
.sv__zin { margin: 0.5rem 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--cs-inkt-2); }

/* ---------- de antwoordvlakken ---------- */
.sv__keuzes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin-top: clamp(1rem, 2.2vw, 1.5rem); }
.sv-keuze { display: flex; align-items: center; gap: 0.9rem; width: 100%; min-height: 60px; padding: 0.6rem 1.15rem; border: 1.5px solid var(--cs-lijn); border-radius: 18px; background: #fff; font: inherit; color: var(--cs-inkt); text-align: left; cursor: pointer; transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease; }
.sv-keuze:hover { border-color: #b9d3c7; }
.sv-keuze:focus-visible { outline: 2px solid var(--cs-groen); outline-offset: 3px; }
.sv-keuze i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #b9cbc3; transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.sv-keuze i.is-vink { border-radius: 7px; }
.sv-keuze span { display: grid; gap: 0.1rem; min-width: 0; }
.sv-keuze b { font-size: 1.125rem; font-weight: 400; line-height: 1.25; }
.sv-keuze small { font-size: 0.875rem; line-height: 1.3; color: var(--cs-inkt-2); }
.sv-keuze--sub { padding-block: 0.55rem; }
/* Gekozen: groen omlijnd, zacht gevuld, en het rondje vol. Dit blijft staan tot je verder gaat. */
.sv-keuze[aria-checked="true"], .sv-keuze[aria-pressed="true"] { border-color: var(--cs-groen); background: #f1faf6; box-shadow: 0 0 0 3px hsla(157, 59%, 46%, 0.12); }
.sv-keuze[aria-checked="true"] b, .sv-keuze[aria-pressed="true"] b { font-weight: 500; }
.sv-keuze[aria-checked="true"] i { background: var(--cs-groen); box-shadow: inset 0 0 0 5px #fff, 0 0 0 1.5px var(--cs-groen); }
.sv-keuze[aria-pressed="true"] i { background: var(--cs-groen) center / 14px no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4.5 10.5l3.4 3.4 7.6-8" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>'); box-shadow: none; }

/* Een korte rij getallen (met hoeveel mensen). */
.sv__keuzes--rij { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.sv__keuzes--rij .sv-keuze { justify-content: center; min-height: 72px; padding: 0.5rem; }
.sv__keuzes--rij .sv-keuze i { display: none; }
.sv__keuzes--rij .sv-keuze b { font-size: 1.5rem; font-weight: 500; }

/* ---------- een getal of een adres ---------- */
.sv-veld { position: relative; display: block; margin-top: clamp(1rem, 2.2vw, 1.5rem); padding: 0.75rem 1.15rem 0.7rem; border: 1.5px solid var(--cs-lijn); border-radius: 18px; background: #fff; cursor: text; transition: border-color 0.25s ease, box-shadow 0.3s ease; }
.sv-veld:focus-within { border-color: var(--cs-groen); box-shadow: 0 0 0 4px hsla(157, 59%, 46%, 0.14); }
.sv-veld span { display: block; font-size: 0.9375rem; line-height: 1.4; color: var(--cs-inkt-2); }
.sv-veld input { width: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1.4; color: var(--cs-inkt); -moz-appearance: textfield; appearance: textfield; }
.sv-veld input::-webkit-outer-spin-button, .sv-veld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sv-veld--groot { padding-right: 5.5rem; }
.sv-veld--groot span { display: none; }
.sv-veld--groot input { font-size: clamp(1.875rem, 7cqw, 2.5rem); letter-spacing: -0.02em; line-height: 1.3; }
.sv-veld em { position: absolute; right: 1.15rem; bottom: 1.05rem; font-size: 1.125rem; font-style: normal; color: var(--cs-inkt-2); pointer-events: none; }
.sv__uitweg { display: grid; gap: 0.6rem; margin-top: 0.7rem; }
.sv__adres { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.6rem; margin-top: clamp(1rem, 2.2vw, 1.5rem); }
.sv__adres .sv-veld { margin-top: 0; }
.sv__melding { min-height: 1.5rem; margin: 0.6rem 0 0; font-size: 1rem; font-weight: 500; color: var(--cg-amber-text); }
/* Onder het adres: zelf instellen, met in één zin wat dat betekent. */
.sv__zelf { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--cs-lijn); }
.sv__zelf .sv__hulplink { margin-top: 0.75rem; font-size: 1.0625rem; font-weight: 500; color: var(--cs-groen-diep); text-decoration-color: hsla(158, 64%, 34%, 0.4); }

/* ---------- het tarief onder het verbruik (14 okt): compact, op dezelfde slide ---------- */
.sv__prijs { margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--cs-lijn); }
/* Geavanceerd bij het gas (23 okt 2026): vaste gaskosten en het aandeel warm water, dicht tot je het opent. */
.sv__geav { margin-top: 1rem; }
.sv__geav summary { display: inline-block; font-size: 1rem; color: var(--cs-inkt-2); text-decoration: underline; text-decoration-color: hsla(158, 9%, 37%, 0.35); text-underline-offset: 4px; list-style: none; cursor: pointer; }
.sv__geav summary::-webkit-details-marker { display: none; }
.sv__geav summary:hover { color: var(--cs-inkt); }
.sv__geav[open] summary { margin-bottom: 0.2rem; }
.sv__geav .sv-prijsveld__naam { white-space: nowrap; }
@media (max-width: 559px) {
	/* Smal: de twee velden onder elkaar, zodat de naam op één regel past. */
	.sv__geav .sv__prijsrij .sv-prijsveld, .sv__geav .sv__prijsrij:has(.sv-prijsveld + .sv-prijsveld) .sv-prijsveld { flex: 1 1 100%; }
	.sv__geav .sv__prijsrij:has(.sv-prijsveld + .sv-prijsveld) .sv-prijsveld em { display: inline; }
}
.sv__prijsvraag { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--cs-inkt); }
.sv__prijsrij { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: 0.55rem; }
.sv-prijsveld { display: flex; align-items: center; gap: 0.35rem; flex: 0 1 15rem; min-width: 0; min-height: 50px; padding: 0 0.95rem; border: 1.5px solid var(--cs-lijn); border-radius: 14px; background: #fff; cursor: text; transition: border-color 0.25s ease, box-shadow 0.3s ease; }
.sv-prijsveld:focus-within { border-color: var(--cs-groen); box-shadow: 0 0 0 4px hsla(157, 59%, 46%, 0.14); }
.sv-prijsveld__naam { font-size: 0.875rem; color: var(--cs-inkt-3); }
.sv-prijsveld__euro { font-size: 1.125rem; font-weight: 500; color: var(--cs-inkt-2); }
.sv-prijsveld input { flex: 1 1 auto; width: 100%; min-width: 2.75em; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.25rem; font-weight: 500; color: var(--cs-inkt); }
.sv-prijsveld em { flex: none; font-size: 0.9375rem; font-style: normal; color: var(--cs-inkt-2); white-space: nowrap; }
/* Stroom (14 okt): bovenaan de rekenmethode als compacte schakelaar, daaronder alleen de velden die erbij horen. */
.sv-schakel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: clamp(0.9rem, 2vw, 1.25rem); padding: 4px; border-radius: 999px; background: var(--cs-zacht, #f4f8f6); box-shadow: inset 0 0 0 1px var(--cs-lijn); }
.sv-schakel__knop { min-height: 44px; padding: 0 0.75rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 0.9375rem; line-height: 1.2; color: var(--cs-inkt-2); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.sv-schakel__knop:hover { color: var(--cs-inkt); }
.sv-schakel__kort { display: none; }
@media (max-width: 479px) {
	.sv-schakel__lang { display: none; }
	.sv-schakel__kort { display: inline; }
}
@media (max-width: 359px) {
	/* Heel smalle telefoons: alles net iets kleiner, zodat de eenheid in het veld blijft. */
	.sv-schakel__knop { padding: 0 0.4rem; font-size: 0.875rem; }
	.sv-stroom__raster .sv-prijsveld { gap: 0.2rem; padding: 0 0.6rem; }
	.sv-stroom__raster .sv-prijsveld input { font-size: 1rem; min-width: 1.5em; }
	.sv-stroom__raster .sv-prijsveld em { font-size: 0.8125rem; }
}
.sv-schakel__knop:focus-visible { outline: 2px solid var(--cs-groen); outline-offset: 2px; }
.sv-schakel__knop[aria-checked="true"] { background: #fff; color: var(--cs-inkt); font-weight: 500; box-shadow: 0 0 0 1.5px var(--cs-groen), 0 4px 12px -6px hsla(160, 30%, 14%, 0.3); }
.sv-stroom, .sv-zon { display: flex; flex-direction: column; }
.sv-zon[hidden] { display: none; }
.sv-zon { margin-top: 0.4rem; }
.sv-stroom__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.sv-stroom__kol { display: grid; gap: 0.35rem; min-width: 0; }
.sv-stroom__kop, .sv-stroom__rij { font-size: 0.9375rem; font-weight: 500; color: var(--cs-inkt); }
.sv-stroom__raster--dubbel { grid-template-columns: auto 1fr 1fr; align-items: center; gap: 0.6rem 0.75rem; }
.sv-stroom__raster .sv-prijsveld { flex: none; width: 100%; }
.sv-prijsveld--kwh input { min-width: 2em; }
.sv-stroom__totaal { margin: 0.85rem 0 0; font-size: 1rem; color: var(--cs-inkt-2); }
@media (max-width: 599px) {
	/* Op de telefoon staat "Normaal" en "Dal" boven de twee velden. */
	.sv-stroom__raster--dubbel { grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem; }
	.sv-stroom__rij { grid-column: 1 / -1; margin-top: 0.3rem; }
	.sv-stroom__raster--dubbel .sv-stroom__rij:first-child { margin-top: 0; }
	.sv-prijsveld { padding: 0 0.8rem; }
	.sv-prijsveld input { font-size: 1.125rem; }
}
/* Eén algemene "Weet ik niet" onder de velden van een getalvraag: opent de pop-up met gemiddelden. */
.sv-weetniet { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 46px; margin-top: 0.85rem; padding: 0 1.15rem 0 0.8rem; border: 1.5px solid var(--cs-lijn); border-radius: 999px; background: #fff; font: inherit; font-size: 1rem; color: var(--cs-inkt-2); cursor: pointer; transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.sv-weetniet::before { content: "?"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cs-zacht, #f4f8f6); font-size: 0.8125rem; font-weight: 600; color: var(--cs-groen-diep); }
.sv-weetniet:hover { border-color: #b9d3c7; color: var(--cs-inkt); }
.sv-weetniet:focus-visible { outline: 2px solid var(--cs-groen); outline-offset: 3px; }
.sv-weetniet[aria-pressed="true"] { border-color: var(--cs-groen); background: #f1faf6; color: var(--cs-inkt); font-weight: 500; }
.sv-weetniet[aria-pressed="true"]::before { content: ""; background: var(--cs-groen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sv__piekdal { margin-top: 0.55rem; font-size: 0.9375rem; }
/* Piek en dal naast elkaar: twee smallere velden. */
.sv__prijsrij .sv-prijsveld:nth-child(2):not(:last-child) { flex-basis: 12rem; }
@container widget (max-width: 520px) {
	.sv-prijsveld { flex: 1 1 10rem; padding-inline: 0.8rem; }
	.sv__prijsrij:has(.sv-prijsveld + .sv-prijsveld) .sv-prijsveld { flex: 1 1 calc(50% - 0.3rem); }
	.sv__prijsrij:has(.sv-prijsveld + .sv-prijsveld) .sv-prijsveld em { display: none; }
}

/* ---------- "Klopt dit?": drie rustige regels ---------- */
.sv__klopt { display: grid; gap: 0; margin: clamp(1rem, 2.2vw, 1.5rem) 0 0; }
.sv__klopt div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--cs-lijn); }
.sv__klopt div:first-child { border-top: 0; padding-top: 0; }
.sv__klopt dt { font-size: 1.0625rem; color: var(--cs-inkt-2); }
.sv__klopt dd { margin: 0; font-size: clamp(1.25rem, 4.6cqw, 1.625rem); font-weight: 500; letter-spacing: -0.02em; text-align: right; }

/* ---------- de hulplink ---------- */
.sv__hulplink { align-self: flex-start; margin-top: 0.85rem; padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--cs-inkt-2); text-align: left; text-decoration: underline; text-decoration-color: hsla(158, 9%, 37%, 0.35); text-underline-offset: 5px; cursor: pointer; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.sv__hulplink:hover { color: var(--cs-inkt); text-decoration-color: currentColor; }
.sv__hulplink:focus-visible { outline: 2px solid var(--cs-groen); outline-offset: 3px; border-radius: 4px; }

/* ---------- het eindmoment: drie stappen vinken af, dan het profiel ---------- */
.sv__stappen { display: grid; gap: 0.55rem; margin: clamp(1.25rem, 3cqw, 1.75rem) 0 0; padding: 0; list-style: none; }
.sv__stappen li { display: flex; align-items: center; gap: 0.75rem; font-size: 1.0625rem; color: var(--cs-inkt-3); transition: color 0.3s ease; }
.sv__stappen li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c9d6cf; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.sv__stappen li.is-af { color: var(--cs-inkt); }
.sv__stappen li.is-af::before { background: var(--cs-groen) center / 13px no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4.5 10.5l3.4 3.4 7.6-8" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>'); box-shadow: none; }
/* De laatste beelden zijn compact: lagere vlakken, zodat de scan naar het eind versnelt. */
.sv__keuzes--compact .sv-keuze { min-height: 54px; padding-block: 0.5rem; }
.sv__keuzes--compact .sv-keuze--sub { min-height: 60px; }
.sv__profiel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: clamp(1.5rem, 4cqw, 2.25rem); }
.sv__profiel .cg-btn { min-height: 58px; padding-inline: 2rem; }
.sv__profiel .sv__hulplink { margin-top: 0; }

/* =============================================================
   Het hulpvenster (klassen sh-): een <dialog> met links de uitleg en
   rechts het beeld; op een telefoon een paneel van onder, met de titel
   boven het beeld. De beelden staan in widget-scan-media.php.
   ============================================================= */
.sh { width: min(860px, calc(100vw - 2rem)); max-width: none; max-height: min(88vh, 720px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--cs-inkt, #22302b); box-shadow: 0 40px 90px -30px hsla(160, 30%, 10%, 0.5); overflow: hidden; }
.sh:focus { outline: 0; }
.sh[open] { animation: sh-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sh::backdrop { background: hsla(165, 20%, 10%, 0.42); }
@keyframes sh-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.sh__in { display: grid; grid-template-columns: 55fr 45fr; max-height: min(88vh, 720px); }
.sh__tekst { display: flex; flex-direction: column; min-width: 0; max-height: min(88vh, 720px); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 0; overflow: auto; scrollbar-width: thin; }
/* Compact (14 okt): het eerste blok staat er, de rest achter "Lees meer". */
.sh__meer { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; font-weight: 500; color: var(--cs-groen-diep, #1f8f66); cursor: pointer; }
.sh__meer::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform 0.25s ease; }
.sh__meer[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.sh__meer:focus-visible { outline: 2px solid var(--cs-groen, #31bc87); outline-offset: 3px; border-radius: 4px; }
.sh__rest { display: grid; gap: 1.1rem; }
.sh__rest[hidden] { display: none; }
.sh__dicht { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 6px 16px -8px hsla(160, 30%, 14%, 0.5); transition: background-color 0.2s ease; }
.sh__dicht::before, .sh__dicht::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.6px; background: var(--cs-inkt, #22302b); transform: translate(-50%, -50%) rotate(45deg); }
.sh__dicht::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sh__dicht:hover { background: var(--cs-zacht, #f4f8f6); }
.sh__dicht:focus-visible { outline: 2px solid var(--cs-groen, #31bc87); outline-offset: 2px; }
.sh__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cs-groen-diep, #1f8f66); }
.sh__titel { margin: 0.5rem 2.5rem 0 0; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.sh__titel:focus { outline: 0; }
.sh__intro { margin: 0.75rem 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--cs-inkt-2, #56665f); }
.sh__intro[hidden] { display: none; }
.sh__blokken { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.sh__blok h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; color: var(--cs-inkt, #22302b); }
.sh__blok p, .sh__blok li { margin: 0.3rem 0 0; font-size: 0.9875rem; line-height: 1.48; color: var(--cs-inkt-2, #56665f); }
.sh__blok ul { display: grid; gap: 0.2rem; margin: 0.35rem 0 0; padding-left: 1.1rem; }
.sh__blok li { margin: 0; }
/* De knoppen blijven onderin in beeld, ook als de uitleg scrolt. */
.sh__acties { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: auto; padding: 1.25rem 0 clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(180deg, hsla(0, 0%, 100%, 0) 0, #fff 1.25rem); }
.sh__acties .cg-btn { min-height: 52px; padding-inline: 1.75rem; }
.sh__weetniet { padding: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--cs-inkt-2, #56665f); text-decoration: underline; text-decoration-color: hsla(158, 9%, 37%, 0.35); text-underline-offset: 5px; cursor: pointer; }
.sh__weetniet:hover { color: var(--cs-inkt, #22302b); text-decoration-color: currentColor; }
.sh__weetniet:focus-visible { outline: 2px solid var(--cs-groen, #31bc87); outline-offset: 3px; border-radius: 4px; }
/* Het beeld: een eigen container, los te vervangen. Labels liggen er als HTML overheen. */
.sh__media { display: flex; align-items: center; justify-content: center; margin: 0; padding: 4rem clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem); background: var(--cs-zacht, #f4f8f6); }
.sh__beeld { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #f6f9f8; box-shadow: 0 0 0 1px hsla(160, 25%, 30%, 0.06), 0 20px 40px -24px hsla(160, 30%, 14%, 0.35); }
.sh__beeld svg { display: block; width: 100%; height: 100%; }
.sh__tag { position: absolute; transform: translateY(-50%); padding: 0.25rem 0.6rem; border-radius: 999px; background: hsla(0, 0%, 100%, 0.94); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--cs-inkt, #22302b); white-space: nowrap; box-shadow: 0 2px 10px -4px hsla(160, 30%, 14%, 0.4); }
.sh__tag--groen { padding-left: 0.5rem; }
.sh__tag--groen::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0.4rem 1px 0; border-radius: 50%; background: var(--cs-groen, #31bc87); }
/* Een helper zonder beeld: smaller, alleen tekst. */
.sh--zonder-media { width: min(560px, calc(100vw - 2rem)); }
.sh--zonder-media .sh__in { grid-template-columns: minmax(0, 1fr); }
.sh--zonder-media .sh__media { display: none; }
/* De pop-up bij "Weet ik niet": akkoord op gemiddelden, rustig en kort. */
.sv-gem { width: min(520px, calc(100vw - 2rem)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--cs-inkt, #22302b); box-shadow: 0 40px 90px -30px hsla(160, 30%, 10%, 0.5); }
.sv-gem[open] { animation: sh-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sv-gem::backdrop { background: hsla(165, 20%, 10%, 0.42); }
.sv-gem__in { position: relative; padding: clamp(1.5rem, 4vw, 2.25rem); }
.sv-gem__in [hidden] { display: none; }
.sv-gem .sh__dicht { position: absolute; top: 1rem; right: 1rem; margin: 0; }
.sv-gem__titel { margin: 0 2.75rem 0 0; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; text-wrap: balance; }
.sv-gem__titel:focus { outline: 0; }
.sv-gem__zin { margin: 0.85rem 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--cs-inkt-2, #56665f); }
.sv-gem__lijst { display: grid; gap: 0.6rem; margin: 1.25rem 0 0; }
.sv-gem__regel { display: grid; gap: 0.15rem; padding: 0.85rem 1rem; border-radius: 16px; background: var(--cs-zacht, #f4f8f6); }
.sv-gem__regel dt { font-size: 0.9375rem; color: var(--cs-inkt-2, #56665f); }
.sv-gem__regel dd { display: grid; gap: 0.1rem; margin: 0; }
.sv-gem__regel b { font-size: 1.125rem; font-weight: 600; color: var(--cs-inkt, #22302b); }
.sv-gem__regel span { font-size: 0.9375rem; line-height: 1.4; color: var(--cs-inkt-2, #56665f); }
.sv-gem__acties { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.sv-gem__acties .cg-btn { width: 100%; min-height: 52px; }
.sv-gem__nee { min-height: 48px; padding: 0 1rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 1rem; color: var(--cs-inkt-2, #56665f); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.sv-gem__nee:hover { background: var(--cs-zacht, #f4f8f6); color: var(--cs-inkt, #22302b); }
.sv-gem__nee:focus-visible { outline: 2px solid var(--cs-groen, #31bc87); outline-offset: 2px; }
@media (max-width: 699px) {
	/* Op de telefoon een paneel van onder, de knoppen onder je duim. */
	.sv-gem { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; overflow: auto; }
	.sv-gem[open] { animation: sh-op 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
	.sv-gem__in { padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
}

/* De verzonnen jaarafrekening voor de stroomhelper. */
.sh__beeld--stroom { display: flex; align-items: center; padding: clamp(1rem, 3cqw, 1.75rem); }
.sh__rekening { width: 100%; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; font-size: 0.875rem; color: var(--cs-inkt-2, #56665f); box-shadow: 0 0 0 1px hsla(160, 25%, 30%, 0.06), 0 14px 30px -20px hsla(160, 30%, 14%, 0.4); }
.sh__rekening-kop { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--cs-lijn, #dfe8e3); color: var(--cs-inkt, #22302b); }
.sh__rekening-kop b { font-weight: 600; }
.sh__rekening-rij { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--cs-lijn, #dfe8e3); }
.sh__rekening-rij:last-child { border-bottom: 0; color: var(--cs-inkt, #22302b); }
.sh__rekening-rij.is-nu { margin: 0.15rem -0.5rem; padding: 0.5rem; border-bottom: 0; border-radius: 8px; background: #e6f5ee; font-weight: 500; color: var(--cs-groen-diep, #1f8f66); }

@media (max-width: 699px) {
	/* Een paneel van onder: titel, beeld, uitleg; de knoppen blijven onderin in beeld. */
	.sh { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; overflow: auto; }
	.sh[open] { animation-name: sh-op; }
	@keyframes sh-op { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	.sh__in { display: flex; flex-direction: column; max-height: none; }
	.sh__tekst { display: contents; }
	.sh__label { order: 1; padding: 1.25rem 1.25rem 0; }
	.sh__titel { order: 2; padding: 0 1.25rem; }
	.sh__media { order: 3; padding: 1rem 1.25rem 0; background: none; }
	/* Compact (14 okt): een lager beeld, zodat titel, beeld, de kern en "Lees meer" samen in beeld staan. */
	.sh__beeld { aspect-ratio: 2 / 1; max-height: 22vh; margin-inline: auto; width: auto; max-width: 100%; }
	/* De jaarafrekening is tekst, geen tekening: die krijgt de hoogte die hij nodig heeft. */
	.sh__beeld--stroom { aspect-ratio: auto; max-height: none; width: 100%; padding: 0.6rem; }
	.sh__beeld--stroom .sh__rekening { padding: 0.6rem 0.8rem; font-size: 0.8125rem; }
	.sh__beeld--stroom .sh__rekening-rij { padding: 0.3rem 0; }
}
@media (max-width: 699px) and (max-height: 640px) {
	/* Lage telefoons: in de afrekening alleen de regel die je zoekt, een lager beeld. */
	.sh__beeld { max-height: 18vh; }
	.sh__beeld--stroom { max-height: none; }
	.sh__beeld--stroom .sh__rekening-rij:not(.is-nu) { display: none; }
	.sh__intro { order: 4; padding: 0 1.25rem; font-size: 1rem; }
	.sh__blokken { order: 5; gap: 0.85rem; margin-top: 0.9rem; padding: 0 1.25rem 1rem; }
	.sh__acties { order: 6; margin-top: 0; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom)); gap: 0.5rem 1.25rem; border-top: 1px solid var(--cs-lijn, #dfe8e3); background: #fff; }
	.sh__acties .cg-btn { min-height: 48px; padding-inline: 1.4rem; }
	.sh__dicht { position: sticky; top: 0.75rem; order: 0; align-self: flex-end; margin: 0.75rem 0.75rem -3.25rem 0; }
	.sh__tag { font-size: 0.75rem; }
}

/* ---------- Terug en Volgende ---------- */
.sv__start { align-self: flex-start; min-height: 60px; margin-top: clamp(1.5rem, 4cqw, 2.25rem); padding-inline: 2.25rem; }
.sv__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.sv__terug { padding: 0.5rem 0; border: 0; background: none; font: inherit; font-size: 1.0625rem; color: var(--cs-inkt-2); cursor: pointer; transition: color 0.2s ease; }
.sv__terug::before { content: "\2190\00a0\00a0"; }
.sv__terug:hover { color: var(--cs-inkt); }
.sv__terug:focus-visible { outline: 2px solid var(--cs-groen); outline-offset: 3px; border-radius: 4px; }
.sv__terug[hidden] { display: block; visibility: hidden; }
.sv__volgende { min-height: 58px; margin-left: auto; padding-inline: 2.25rem; transition: opacity 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease; }
.sv__volgende[disabled] { opacity: 0.35; box-shadow: none; cursor: not-allowed; }
.sv__volgende[disabled]:hover { transform: none; }
.sv__volgende[hidden] { display: none; }

/* ---------- breed: twee kolommen waar er vier of meer keuzes zijn ---------- */
@container widget (min-width: 521px) {
	.sv__keuzes--veel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
	.sv__keuzes--veel .sv-keuze:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.sv__keuzes--breed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sv__keuzes--breed .sv-keuze { align-items: flex-start; min-height: 132px; padding: 1.15rem 1.25rem; }
	.sv__keuzes--breed .sv-keuze b { font-size: 1.3125rem; font-weight: 500; }
	.sv__keuzes--breed .sv-keuze span { gap: 0.4rem; }
	.sv__uitweg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sv__uitweg .sv-keuze:only-child { grid-column: 1; }
}

/* ---------- smal (telefoon): iets hoger vak, vlakken iets lager ---------- */
@container widget (max-width: 520px) {
	.sv__zin { font-size: 1rem; }
	.sv__keuzes { gap: 0.4rem; margin-top: 0.75rem; }
	.sv-keuze { min-height: 52px; padding: 0.45rem 1rem; }
	.sv-keuze b { font-size: 1.0625rem; }
	.sv-keuze--sub { min-height: 52px; padding-block: 0.4rem; }
	.sv-keuze small { font-size: 0.8125rem; }
	.sv__keuzes--breed .sv-keuze { align-items: flex-start; min-height: 96px; padding: 0.9rem 1rem; }
	.sv__keuzes--breed .sv-keuze b { font-size: 1.1875rem; font-weight: 500; }
	.sv__keuzes--rij .sv-keuze { min-height: 64px; }
	.sv__adres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sv__adres .sv-veld:first-child { grid-column: 1 / -1; }
	.sv__profiel .cg-btn { width: 100%; padding-inline: 1rem; white-space: normal; }
	.sv__volgende { padding-inline: 1.75rem; }
}
@media (max-width: 599px) {
	.sv { --sv-hoog: 580px; }
}
/* Heel smalle telefoon (20 okt 2026): de adresvelden iets compacter, zodat "Huisnummer" in zijn veld past. */
@container widget (max-width: 380px) {
	.sv__adres .sv-veld { padding-inline: 0.8rem; }
	.sv__adres .sv-veld span { font-size: 0.875rem; }
}

/* ---------- altijd in één scherm (14 okt) ----------
   De hoogte van het vak zet widget-scan.js (pasIn) als --sv-hoog op de
   widget; de waarden hierboven gelden alleen zonder JavaScript. Op een
   telefoon of tablet verdwijnt de menubalk zolang de scan het scherm vult. */
.sv-vol .cg-header:not(.cg-navopen) { transform: translateY(-100%); }
/* Ingelogd (WordPress-balk): de menubalk staat lager, dus hij moet ook verder omhoog om echt weg te zijn. */
.sv-vol .admin-bar .cg-header:not(.cg-navopen) { transform: translateY(calc(-100% - 32px)); }
@media (max-width: 782px) {
	.sv-vol .admin-bar .cg-header:not(.cg-navopen) { transform: translateY(calc(-100% - 46px)); }
}
/* Een laag scherm (ook een laptop van 768 of 800 hoog): alles iets compacter, zodat de vragen in het vak passen. */
@media (max-height: 820px) {
	.sv .cs__hoofd { padding-top: 1.1rem; padding-bottom: 1rem; }
	.sv .cs__voortgang { margin-top: 0.8rem; }
	.sv__podium { margin-top: 1rem; }
	.sv__vraag { font-size: clamp(1.4375rem, 5.6cqw, 1.875rem); }
	.sv__zin { margin-top: 0.35rem; font-size: 0.9375rem; line-height: 1.45; }
	.sv__keuzes { gap: 0.4rem; margin-top: 0.8rem; }
	.sv-keuze { min-height: 48px; padding-block: 0.35rem; }
	.sv-keuze--sub { min-height: 52px; }
	.sv__keuzes--rij .sv-keuze { min-height: 56px; }
	.sv__keuzes--breed .sv-keuze { min-height: 84px; }
	.sv-veld { margin-top: 0.8rem; padding-block: 0.55rem 0.5rem; }
	.sv__uitweg { margin-top: 0.5rem; gap: 0.4rem; }
	.sv__hulplink { margin-top: 0.6rem; }
	.sv__nav { margin-top: 0.6rem; }
	.sv__volgende { min-height: 52px; }
	.sv__klopt div { padding: 0.6rem 0; }
}
/* Een heel laag scherm (zoals een kleine iPhone met de balken van de browser). */
@media (max-height: 600px) {
	.sv .cs__hoofd { padding-top: 0.9rem; padding-bottom: 0.8rem; }
	.sv__podium { margin-top: 0.8rem; }
	.sv__vraag { font-size: 1.375rem; }
	.sv__keuzes { gap: 0.3rem; margin-top: 0.6rem; }
	.sv-keuze { min-height: 44px; }
	.sv-keuze b { font-size: 1rem; }
	.sv__hulplink { margin-top: 0.45rem; }
	.sv__volgende { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.sv__dia, .sh[open] { animation: none; }
	.sv-keuze, .sv__volgende { transition: none; }
}
