/* ============================================
   Dienstpagina (spouwmuur, dak, vloer, gevel, glas) — alleen tokens
   ============================================ */

/* ---------- Hero ---------- */
.dh { background: linear-gradient(180deg, #fff 0%, var(--steen) 100%); padding: 1.25rem 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--lijn); }
.dh-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: var(--fs-xs); color: var(--gedempt); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.dh-crumbs a:hover { color: var(--spar); text-decoration: underline; }
.dh-crumbs .icon { color: var(--slate-400); }
.dh-crumbs [aria-current] { color: var(--inkt); font-weight: 500; }
.dh-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dh-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--spar); }
.dh-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--blad); }
.dh h1 { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: .8rem 0 1rem; }
.dh-sub { font-size: var(--fs-base); color: var(--tekst); max-width: 58ch; line-height: 1.6; }
.dh-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.6rem 0 1.75rem; background: var(--lijn); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--lijn); max-width: 560px; }
.dh-facts div { background: #fff; padding: .85rem 1rem; display: grid; gap: .15rem; }
.dh-facts dt { font-size: var(--fs-2xs); color: var(--gedempt); text-transform: uppercase; letter-spacing: .06em; }
.dh-facts dd { font-size: var(--fs-sm); color: var(--inkt); font-weight: 500; }
.dh-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.dh-tel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--inkt); }
.dh-tel .icon { color: var(--spar); }
.dh-tel:hover { color: var(--spar); }
.dh-house { max-width: 560px; justify-self: end; width: 100%; }

/* ---------- Kosten en rekenhulp ---------- */
.dk { padding: var(--section-py) 0; background: #fff; }
.dk-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.dk-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--lijn); }
.dk-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dk-table th, .dk-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.dk-table thead th { background: var(--steen); font-size: var(--fs-2xs); font-weight: 600; color: var(--gedempt); text-transform: uppercase; letter-spacing: .06em; }
.dk-table tbody th { font-weight: 600; color: var(--inkt); }
.dk-table tbody tr:last-child th, .dk-table tbody tr:last-child td { border-bottom: 0; }
.dk-table td.num { white-space: nowrap; font-size: var(--fs-xs); }
.dk-unit { color: var(--gedempt); }

.dc { background: var(--steen); border-radius: var(--radius-lg); padding: 1.4rem; display: grid; gap: 1rem; position: sticky; top: 92px; }
.dc h3 { font-size: var(--fs-lg); font-weight: 700; }
.dc-field { display: grid; gap: .4rem; }
.dc-field label { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 600; color: var(--gedempt); text-transform: uppercase; letter-spacing: .06em; }
.dc-m2-out { color: var(--inkt); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.dc select {
  height: 46px; border: 0; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1.5px var(--lijn); background: #fff;
  padding: 0 .8rem; font: 500 var(--fs-md) var(--font-body); color: var(--inkt);
}
.dc select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--spar); }
.dc input[type="range"] { width: 100%; accent-color: var(--spar); height: 28px; }
.dc-check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.dc-check input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--spar); flex-shrink: 0; }
.dc-out { background: #fff; border-radius: var(--radius-md); padding: .4rem 1rem; box-shadow: var(--shadow-sm); }
.dc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--lijn); }
.dc-out div:last-child { border-bottom: 0; }
.dc-out dt { font-size: var(--fs-sm); color: var(--gedempt); }
.dc-out dd { font-size: var(--fs-sm); color: var(--inkt); font-weight: 500; text-align: right; white-space: nowrap; }
.dc-sub dd { color: var(--spar); }
.dc-netto dt { color: var(--inkt); font-weight: 600; }
.dc-netto dd { font-size: var(--fs-lg); font-weight: 600; }
.dc-note { font-size: var(--fs-xs); color: var(--gedempt); }

/* ---------- Stappen ---------- */
.ds { padding: var(--section-py) 0; background: var(--steen); }
.ds-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.ds-steps li { background: #fff; border-radius: var(--radius-lg); padding: 1.3rem 1.2rem 1.4rem; box-shadow: var(--shadow-sm); }
.ds-n { display: inline-block; font-size: var(--fs-xs); color: var(--spar); background: var(--green-50); border-radius: var(--radius-sm); padding: .15rem .5rem; }
.ds-steps h3 { font-size: var(--fs-base); font-weight: 700; margin: .75rem 0 .35rem; }
.ds-steps p { font-size: var(--fs-md); color: var(--gedempt); line-height: 1.55; }

/* ---------- Subsidie ---------- */
.dsub { padding: var(--section-py) 0; background: #fff; }
.dsub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dsub h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; max-width: 22ch; }
.dsub-lead { font-size: var(--fs-base); margin: 1rem 0 .75rem; max-width: 58ch; }
.dsub-lead strong { color: var(--spar); font-weight: 600; }
.dsub-grid > div > p:not(.dsub-lead) { color: var(--gedempt); margin-bottom: 1.5rem; max-width: 58ch; }
.dsub-card { background: var(--spar-donker); color: var(--green-100); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.dsub-card h3 { color: #fff; font-size: var(--fs-lg); font-weight: 700; margin-bottom: .9rem; }
.dsub-card ul { list-style: none; display: grid; gap: .65rem; }
.dsub-card li { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-md); }
.dsub-card .icon { color: var(--green-300); margin-top: .15rem; }

/* ---------- Vragen ---------- */
.dq { padding: var(--section-py) 0; background: var(--steen); }
.dq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dq h2 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.015em; }
.dq-grid > div > p { color: var(--gedempt); margin-top: .75rem; }
.dq-grid > div > p a { color: var(--spar); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dq-list { display: grid; gap: .5rem; }
.dq-list details { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.dq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--inkt); list-style: none; }
.dq-list summary::-webkit-details-marker { display: none; }
.dq-list summary .icon { color: var(--spar); transition: transform .2s; }
.dq-list details[open] summary .icon { transform: rotate(45deg); }
.dq-list summary:hover { color: var(--spar); }
.dq-a { padding: 0 1.2rem 1.1rem; color: var(--tekst); font-size: var(--fs-md); line-height: 1.65; max-width: 70ch; }

/* ---------- Meer lezen ---------- */
.dm { padding: var(--section-py) 0; background: #fff; }
.dm h2 { font-size: var(--fs-xl); font-weight: 700; margin-bottom: 1rem; }
.dm-andere { margin-top: 2.5rem; }
.dm-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.dm-links a { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; background: var(--steen); border-radius: var(--radius-md); font-weight: 500; color: var(--inkt); transition: background-color .2s, color .2s; }
.dm-links a > .icon:first-child { color: var(--spar); }
.dm-links a > .icon:last-child { margin-left: auto; color: var(--slate-400); }
.dm-links a:hover { background: var(--green-50); color: var(--spar); }
.dm .hv-list { grid-template-columns: repeat(4, 1fr); }

/* ---------- Responsief ---------- */
@media (max-width: 1024px) {
  .dh-grid, .dk-grid, .dsub-grid, .dq-grid { grid-template-columns: 1fr; }
  .dh-house { justify-self: start; }
  .dc { position: static; }
  .dm .hv-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dh-facts { grid-template-columns: 1fr; }
  .dh-actions .btn { width: 100%; }
  .dm .hv-list { grid-template-columns: 1fr; }
  /* Tabel als gestapelde kaarten */
  .dk-table-wrap { box-shadow: none; overflow: visible; }
  .dk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dk-table, .dk-table tbody, .dk-table tr, .dk-table th, .dk-table td { display: block; }
  .dk-table tr { border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--lijn); margin-bottom: .6rem; padding: .35rem 0; }
  .dk-table tbody th { border-bottom: 0; padding: .6rem .9rem .3rem; font-size: var(--fs-md); }
  .dk-table td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 0; padding: .3rem .9rem; }
  .dk-table td::before { content: attr(data-label); font-family: var(--font-body); color: var(--gedempt); }
  .dc-out div { flex-wrap: wrap; }
  .dc-netto dd { font-size: var(--fs-base); }
}
