/* Configurator-showcase. Bouwt voort op ../../assets/css/site.css (variabelen --ink, --accent, --line, --r, ...). Geen externe bronnen. */
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; }
@media (min-width: 960px) {
  .cfg-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .cfg .wrap { max-width: min(1400px, 94vw); }
  .cfg-links { position: sticky; top: 84px; }
}

/* beeld */
.cfg-beeld { margin: 0; }
.cfg-doek { position: relative; aspect-ratio: 1920 / 1072; background: var(--grijs); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cfg-laag { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cfg-js .cfg-laag { opacity: 0; transition: opacity .5s ease; }
.cfg-js .cfg-laag.is-aan { opacity: 1; }
.cfg-label { position: absolute; left: 10px; bottom: 10px; z-index: 4; background: rgba(17,17,17,.82); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 2px; }
.cfg-beeld figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.cfg-voor { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 50% 0 0); display: none; }
.cfg-voor img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfg-voor-lijn { position: absolute; top: 0; bottom: 0; left: var(--voorna, 50%); width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); z-index: 3; display: none; }
.cfg-voor-tag { position: absolute; top: 10px; z-index: 4; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; display: none; }
.cfg-voor-tag--nu { left: 10px; } .cfg-voor-tag--straks { right: 10px; background: var(--accent); }
.cfg-doek.is-voorna .cfg-voor, .cfg-doek.is-voorna .cfg-voor-lijn, .cfg-doek.is-voorna .cfg-voor-tag { display: block; }

.cfg-weergave { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cfg-wknop { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; min-height: 40px; border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 3px; cursor: pointer; }
.cfg-wknop[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cfg-voorna { margin-top: 12px; }
.cfg-voorna label { display: block; font-size: 14px; margin-bottom: 4px; }
.cfg-voorna input, #cfg-maat { width: 100%; accent-color: var(--accent-ink); min-height: 32px; }

/* planning-tijdlijn */
.cfg-tijdlijn { margin-top: 16px; }
.cfg-tijdlijn-kop { margin: 0 0 6px; font-size: 14px; display: flex; justify-content: space-between; }
.cfg-balk { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; }
.cfg-fase { flex: 1 1 0; min-width: 64px; padding: 7px 8px; font-size: 12.5px; line-height: 1.25; border-radius: 3px; color: var(--ink); transition: flex-grow .45s ease; overflow: hidden; }
.cfg-fase b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-fase span { white-space: nowrap; }
.cfg-fase--vergunning { background: #e4e4e1; } .cfg-fase--fundering { background: #cfcfcb; }
.cfg-fase--ruwbouw { background: #9fdcb9; } .cfg-fase--afbouw { background: var(--accent); }
.cfg-prijs-mini { margin: 12px 0 0; font-weight: 800; font-size: 18px; }

/* stappen */
.cfg-stappen { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-stapknop { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 10px 6px 6px; min-height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cfg-stapknop[aria-current="step"] { border-color: var(--ink); color: var(--ink); background: var(--grijs); }
.cfg-stapknop.is-gedaan .cfg-nr { background: var(--accent); }
.cfg-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.cfg-stapknop .cfg-nr { background: #bdbdb9; color: var(--ink); }
.cfg-stapknop[aria-current="step"] .cfg-nr { background: var(--ink); color: #fff; }

.cfg-stap { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 16px; min-width: 0; background: #fff; }
.cfg-stap legend, .cfg-stap > h3 { font-size: 19px; font-weight: 800; padding: 0 6px; display: flex; align-items: center; gap: 8px; margin: 0; }
.cfg-stap > h3 { padding: 0; margin-bottom: 8px; }
.cfg-js .cfg-stap { display: none; }
.cfg-js .cfg-stap.is-actief { display: block; }
.cfg-js-alleen { display: none !important; }
.cfg-js .cfg-js-alleen { display: revert !important; }
.cfg-js .cfg-weergave.cfg-js-alleen, .cfg-js .cfg-stappen.cfg-js-alleen, .cfg-js .cfg-nav.cfg-js-alleen { display: flex !important; }
.cfg-js .cfg-voorna[hidden] { display: none !important; }
.cfg-js .cfg-zonder-js { display: none; }

.cfg-opties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 560px) and (max-width: 959px) { .cfg-opties--beeld { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* smalle kolom naast het hoofdbeeld: type-kaarten onder elkaar, met een groot beeld links (review: miniaturen moeten per type duidelijk verschillen) */
@media (min-width: 960px) {
  .cfg-opties.cfg-opties--beeld .cfg-optie-in { grid-template-columns: 190px minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .cfg-opties.cfg-opties--beeld .cfg-optie-in img { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; width: 190px; }
  .cfg-opties.cfg-opties--beeld .cfg-optie-in b, .cfg-opties.cfg-opties--beeld .cfg-optie-in small, .cfg-opties.cfg-opties--beeld .cfg-optie-in em { grid-column: 2; }
}
.cfg-optie { position: relative; display: block; cursor: pointer; }
.cfg-optie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cfg-optie-in { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: #fff; transition: border-color .15s ease; }
.cfg-optie-in img { grid-column: 1 / -1; width: 100%; height: auto; border-radius: 3px; margin-bottom: 6px; aspect-ratio: 640 / 358; object-fit: cover; background: var(--grijs); }
.cfg-optie-in b { font-size: 16px; }
.cfg-optie-in small { grid-column: 1; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.cfg-optie-in em { grid-column: 2; grid-row: auto; font-style: normal; font-size: 13px; color: var(--muted); align-self: start; white-space: nowrap; }
.cfg-opties--beeld .cfg-optie-in { grid-template-columns: 1fr; }
.cfg-opties--beeld .cfg-optie-in em, .cfg-opties--beeld .cfg-optie-in small { grid-column: 1; }
.cfg-optie:hover .cfg-optie-in { border-color: #9a9a9a; }
.cfg-optie input:checked + .cfg-optie-in { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #f6fbf8; }
.cfg-optie input:focus-visible + .cfg-optie-in { outline: 3px solid var(--accent); outline-offset: 2px; }
.cfg-staal { grid-column: 2; width: 44px; height: 22px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); justify-self: end; }
.cfg-staal--baksteen { background: repeating-linear-gradient(0deg, #8a4b3a 0 7px, #d9d2c8 7px 8px); }
.cfg-staal--antraciet { background: repeating-linear-gradient(0deg, #2f3133 0 7px, #55585b 7px 8px); }
.cfg-staal--hout { background: repeating-linear-gradient(90deg, #a8683a 0 5px, #8c5530 5px 6px); }

.cfg-schuiflabel { display: block; font-weight: 600; margin: 10px 0 4px; }
.cfg-schaal { list-style: none; margin: 2px 0 0; padding: 0; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.2; }
.cfg-schaal li:first-child { text-align: left; } .cfg-schaal li:last-child { text-align: right; }
.cfg-uitkomst { font-weight: 800; font-size: 18px; margin: 10px 0 4px; }
.cfg-noot { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.cfg-noot[hidden] { display: none; }
.cfg-vink { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); cursor: pointer; }
.cfg-vink input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
.cfg-vink em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.cfg-vink:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* overzicht */
.cfg-overzicht h4 { font-size: 16px; margin: 18px 0 6px; display: flex; gap: 8px; align-items: center; }
.cfg-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--grijs); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; }
.cfg-keuze { margin: 0; display: grid; gap: 4px; }
.cfg-keuze div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); padding: 4px 0; font-size: 14.5px; }
.cfg-keuze dt { color: var(--muted); }
.cfg-keuze dd { margin: 0; text-align: right; font-weight: 600; }
.cfg-wijzig { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 2px; margin-left: 6px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }
.cfg-prijs { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.cfg-regels { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.cfg-regels th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 4px 0; }
.cfg-regels td { padding: 5px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cfg-regels td:last-child, .cfg-regels th:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.cfg-som td { font-weight: 800; border-bottom: 0; }
.cfg-planning { margin: 0; padding-left: 20px; font-size: 14.5px; }
.cfg-planning li { margin: 3px 0; }
.cfg-planning span { color: var(--ink-2); }
.cfg-aanvraag { margin-top: 18px; }
.cfg-bevestiging { margin: 12px 0 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: #f6fbf8; font-size: 14.5px; }
.cfg-bevestiging[hidden] { display: none; }
.cfg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cfg-nav .knop[disabled] { opacity: .4; cursor: default; }
.cfg-nav .knop[hidden] { display: none; }

.cfg-uitleg { margin: 0 0 16px; padding-left: 20px; max-width: 75ch; }
.cfg-uitleg li { margin-bottom: 8px; }

.cfg-stap legend:focus, .cfg-stap > h3:focus { outline: none; }
.cfg-stap legend:focus-visible, .cfg-stap > h3:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cfg-js .cfg-laag, .cfg-fase, .cfg-optie-in { transition: none; }
}
.cfg-g1 { flex-grow: 1; }
.cfg-g2 { flex-grow: 2; }
.cfg-g3 { flex-grow: 3; }
.cfg-g4 { flex-grow: 4; }
.cfg-g5 { flex-grow: 5; }
.cfg-g6 { flex-grow: 6; }
.cfg-g7 { flex-grow: 7; }
.cfg-g8 { flex-grow: 8; }
.cfg-g9 { flex-grow: 9; }
.cfg-g10 { flex-grow: 10; }
.cfg-g11 { flex-grow: 11; }
.cfg-g12 { flex-grow: 12; }
