/* Homepage: de "hoe werkt het"-demo's per tool (index.html, js/home-demos.js).
   Zelfde opzet als de demo's in de presentatie (css/presentatie-tools.css): een nagebouwd venster met een eigen
   tijdlijn (taferelen, cursor, getypte tekst, tellers), alleen compacter zodat de tekst op de homepage leesbaar blijft.
   Het venster is vast 560 x 400 en wordt als geheel geschaald naar de breedte van de kolom (--hd-s, zie de JS). */

.hd { --hd-s: 1; position: relative; width: 100%; }
.hd__fit { position: relative; width: 100%; height: calc(400px * var(--hd-s)); }

.hd-stage {
    --hd-bg: #0b1728;
    --hd-soft: rgba(255, 255, 255, 0.055);
    --hd-line: rgba(255, 255, 255, 0.13);
    --hd-wall: 46, 64, 96;
    --hd-wall-top: 78, 102, 142;
    --hd-wall-side: 32, 45, 70;
    --hd-ground: 20, 34, 56;
    --hd-hot: 52, 104, 178;
    --hd-hot-side: 38, 78, 140;
    --hd-hot-top: 96, 150, 232;
    position: absolute;
    left: 0;
    top: 0;
    width: 560px;
    height: 400px;
    transform: scale(var(--hd-s));
    transform-origin: 0 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--hd-bg);
    border: 1px solid var(--panel-border);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(var(--accent-rgb), 0.08), 0 0 70px rgba(var(--accent-rgb), 0.1);
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

[data-theme="light"] .hd-stage {
    --hd-bg: #fbfcff;
    --hd-soft: #ffffff;
    --hd-line: rgba(16, 25, 43, 0.13);
    --hd-wall: 206, 218, 238;
    --hd-wall-top: 240, 245, 255;
    --hd-wall-side: 176, 192, 220;
    --hd-ground: 226, 233, 246;
    --hd-hot: 84, 138, 226;
    --hd-hot-side: 62, 108, 192;
    --hd-hot-top: 140, 186, 248;
    box-shadow: 0 24px 60px rgba(16, 25, 43, 0.2), 0 0 0 1px rgba(47, 111, 214, 0.1);
}

/* Venstertitel + voortgang van de taferelen */
.hd-top {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: rgba(var(--text-rgb), 0.04);
    border-bottom: 1px solid var(--hd-line);
}

/* Geen rode/oranje/groene venster-stipjes meer in de titelbalk (de <i>'s staan nog in de
   markup, dus verbergen i.p.v. 17 demo's aanpassen). Tafereelnaam links, voortgang rechts. */
.hd-top > i { display: none; }

.hd-step {
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.hd-dots { display: flex; gap: 5px; }
.hd-dots b { width: 16px; height: 4px; border-radius: 4px; background: rgba(var(--text-rgb), 0.16); transition: background 0.4s ease, width 0.4s ease; }
.hd-dots b.is-on { width: 26px; background: var(--accent); }
.hd-dots b.is-done { background: rgba(var(--accent-rgb), 0.5); }

.hd-body { position: relative; width: 560px; height: 366px; overflow: hidden; transition: opacity 0.5s ease; }
.hd-stage.is-restarting .hd-body { opacity: 0; }

.hd-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.985);
    transition: opacity 0.45s ease, transform 0.55s ease, visibility 0s linear 0.45s;
}
.hd-scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Zonder overgangen als er gesprongen wordt (herstart/zoeken), zodat alles direct in de juiste stand staat. */
.hd-nofx, .hd-nofx * { transition: none !important; animation: none !important; }

.hd-abs { position: absolute; }
.hd-move, .hd-var { display: none; }

/* Een onderdeel dat verschijnt (en eventueel weer verdwijnt) -- tijdstip via data-at / data-out (zie de JS). */
.hd-a { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hd-a--l { transform: translateX(-26px); }
.hd-a--r { transform: translateX(30px); }
.hd-a--z { transform: scale(0.86); }
.hd-a--f { transform: none; }
.hd-a.is-in { opacity: 1; transform: none; }

/* Muisaanwijzer */
.hd-cursor { position: absolute; left: 0; top: 0; z-index: 60; width: 22px; height: 22px; margin: -2px 0 0 -2px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45)); }
.hd-cursor.is-in { opacity: 1; }
.hd-cursor svg { display: block; width: 22px; height: 22px; }
.hd-cursor::after { content: ''; position: absolute; left: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--accent); opacity: 0; transform: scale(0.3); }
.hd-cursor.is-click::after { animation: hd-ripple 0.5s ease-out; }
@keyframes hd-ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(2.2); } }

.is-typing::after { content: '|'; margin-left: 1px; color: var(--accent); animation: hd-blink 0.7s steps(2) infinite; }
@keyframes hd-blink { 50% { opacity: 0; } }

/* ---------- Bouwstenen ---------- */
.hd-h { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.hd-h--s { font-size: 14px; }
.hd-sub { margin: 3px 0 0; font-size: 11.5px; color: rgba(var(--text-rgb), 0.62); }
.hd-muted { color: rgba(var(--text-rgb), 0.62); }
.hd-small { font-size: 11px; }

.hd-card { background: var(--hd-soft); border: 1px solid var(--hd-line); border-radius: 12px; }
[data-theme="light"] .hd-card { box-shadow: 0 4px 14px rgba(16, 25, 43, 0.06); }

.hd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--accent);
}
.hd-badge--ok { background: rgba(var(--rgb-green), 0.17); color: var(--text-on-green); }
.hd-badge--warn { background: rgba(var(--rgb-amber), 0.2); color: var(--text-on-amber); }
.hd-badge--err { background: rgba(var(--rgb-red), 0.18); color: var(--text-on-red); }
.hd-badge--mute { background: rgba(var(--text-rgb), 0.1); color: rgba(var(--text-rgb), 0.7); }

.hd-ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.hd-ico svg { width: 15px; height: 15px; }
.hd-ico--ok { background: rgba(var(--rgb-green), 0.17); color: var(--text-on-green); }
.hd-ico--warn { background: rgba(var(--rgb-amber), 0.2); color: var(--text-on-amber); }
.hd-ico--err { background: rgba(var(--rgb-red), 0.18); color: var(--text-on-red); }

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.32);
    white-space: nowrap;
}
.hd-btn--ghost { background: var(--hd-soft); color: var(--text-light); border: 1px solid var(--hd-line); box-shadow: none; }
.hd-btn svg { width: 14px; height: 14px; }

.hd-prog { height: 4px; border-radius: 4px; background: rgba(var(--text-rgb), 0.12); overflow: hidden; }
.hd-prog > i { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(0.3, 0.7, 0.2, 1); }
.hd-prog.is-in > i, .is-in > .hd-prog > i { transform: scaleX(1); }

.hd-spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(var(--text-rgb), 0.22); border-top-color: var(--accent); animation: hd-rot 0.8s linear infinite; }
.hd-btn .hd-spin { border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }
@keyframes hd-rot { to { transform: rotate(360deg); } }

/* ---------- Contractenchecker ---------- */
.hd-drop { border: 2px dashed rgba(var(--accent-rgb), 0.45); border-radius: 14px; background: rgba(var(--accent-rgb), 0.05); }
.hd-drop__lbl { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; font-size: 12px; font-weight: 600; color: rgba(var(--text-rgb), 0.7); }
.hd-drop__lbl svg { width: 18px; height: 18px; color: var(--accent); }

.hd-file { display: flex; align-items: center; gap: 11px; padding: 0 12px 11px; }
.hd-file__t { flex: 1; min-width: 0; }
.hd-file__t b { display: block; font-size: 12.5px; }
.hd-file__t small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.58); }
.hd-file .hd-prog { position: absolute; left: 12px; right: 12px; bottom: 6px; }

.hd-paper { background: #fff; color: #1b2438; border-radius: 8px; padding: 14px 14px 0; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); overflow: hidden; }
.hd-paper__t { display: block; font-size: 8.5px; line-height: 1.5; color: #44506a; }
.hd-paper__t b { color: #1b2438; }
.hd-paper__l { display: block; height: 5px; border-radius: 3px; margin-top: 7px; background: #d9dfeb; transition: background 0.4s ease; }
.hd-paper__l.is-in { background: rgba(56, 189, 248, 0.55); }
.hd-paper__l--bad.is-in { background: rgba(var(--rgb-amber), 0.85); }
.hd-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.38), transparent); opacity: 0; }
.hd-scan.is-in { opacity: 1; animation: hd-scan 2.4s ease-in-out infinite; }
@keyframes hd-scan { 0% { transform: translateY(-20px); } 100% { transform: translateY(280px); } }

.hd-chk { display: flex; align-items: center; gap: 10px; height: 30px; }
.hd-chk__ic { position: relative; width: 22px; height: 22px; flex: 0 0 22px; }
.hd-chk__ic > * { position: absolute; left: 0; top: 0; }
.hd-chk__ic .hd-ico { width: 22px; height: 22px; border-radius: 7px; }
.hd-chk__ic .hd-ico svg { width: 13px; height: 13px; }
.hd-chk__ic .hd-spin { left: 4px; top: 4px; }
.hd-chk__t { font-size: 12px; }

.hd-ringwrap { position: relative; width: 150px; height: 150px; }
.hd-ringwrap svg { display: block; width: 150px; height: 150px; }
.hd-ringfill { stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 1.8s cubic-bezier(0.3, 0.7, 0.2, 1); }
.hd-ringfill.is-in { stroke-dashoffset: var(--off, 20); }
.hd-ringlbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hd-ringlbl b { font-size: 34px; font-weight: 800; line-height: 1; }
.hd-ringlbl small { margin-top: 4px; font-size: 10px; color: rgba(var(--text-rgb), 0.62); max-width: 90px; }

.hd-find { display: flex; align-items: center; gap: 11px; padding: 0 12px; }
.hd-find b { display: block; font-size: 12.5px; }
.hd-find small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.6); }

.hd-big { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent); }

/* ---------- Projectportaal ---------- */
.hd-table { position: absolute; left: 22px; top: 70px; width: 516px; height: 236px; }
.hd-th { position: absolute; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(var(--text-rgb), 0.5); }
.hd-tr { position: absolute; left: 12px; right: 12px; height: 38px; display: flex; align-items: center; border-radius: 9px; }
.hd-tr b { width: 150px; font-size: 12.5px; }
.hd-tr .hd-who { width: 150px; font-size: 12px; color: rgba(var(--text-rgb), 0.7); }
.hd-tr .hd-st { position: absolute; left: 330px; }
.hd-tr.is-hl { background: rgba(var(--accent-rgb), 0.1); }
.hd-menu { position: absolute; width: 150px; padding: 5px; border-radius: 10px; background: var(--hd-bg); border: 1px solid var(--hd-line); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); z-index: 20; }
.hd-menu span { display: flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; }
.hd-menu span.is-hot { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); font-weight: 700; }

.hd-hero { position: relative; height: 82px; border-radius: 14px; background: linear-gradient(120deg, var(--accent), rgb(var(--dot-hue-1))); overflow: hidden; box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.28); }
.hd-hero__pill { position: absolute; left: 16px; bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #10192b; font-size: 13px; font-weight: 800; }
.hd-tool { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 34px; border-radius: 10px; font-size: 11.5px; font-weight: 700; }
.hd-tool svg { width: 14px; height: 14px; color: var(--accent); }
.hd-upd { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.hd-upd__ph { flex: 0 0 62px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0.15)); position: relative; overflow: hidden; }
.hd-upd__ph::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.hd-upd b { display: block; font-size: 12.5px; }
.hd-upd small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.58); }

.hd-bub { position: absolute; max-width: 330px; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; }
.hd-bub--me { background: var(--accent); color: var(--accent-contrast); border-bottom-right-radius: 4px; }
.hd-bub--you { background: var(--hd-soft); border: 1px solid var(--hd-line); border-bottom-left-radius: 4px; }
.hd-bub small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; opacity: 0.7; }
.hd-dotsy { display: inline-flex; gap: 4px; padding: 4px 2px; }
.hd-dotsy i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--text-rgb), 0.45); animation: hd-bounce 1s ease-in-out infinite; }
.hd-dotsy i:nth-child(2) { animation-delay: 0.15s; }
.hd-dotsy i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hd-bounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }
.hd-toast { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 11px; background: var(--hd-bg); border: 1px solid rgba(var(--accent-rgb), 0.4); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); font-size: 12px; font-weight: 700; }

/* ---------- Enquêtes ---------- */
.hd-q { font-size: 13.5px; font-weight: 800; }
.hd-nps { display: flex; gap: 5px; }
.hd-nps i { flex: 1; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--hd-soft); border: 1px solid var(--hd-line); transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; }
.hd-nps i.is-in { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.4); }
.hd-stars { display: flex; gap: 6px; }
.hd-stars svg { width: 30px; height: 30px; fill: rgba(var(--text-rgb), 0.12); stroke: rgba(var(--text-rgb), 0.25); stroke-width: 1.4; transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.hd-stars svg.is-in { fill: #fbbf24; stroke: #f59e0b; transform: scale(1.12); }

.hd-score { padding: 12px 14px; }
.hd-score small { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: rgba(var(--text-rgb), 0.55); }
.hd-score b { display: block; margin-top: 2px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hd-score .hd-prog { margin-top: 8px; height: 6px; }
.hd-score .hd-prog > i { background: linear-gradient(90deg, rgb(var(--dot-hue-3)), var(--accent)); transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
.hd-score.is-in .hd-prog > i { transform: scaleX(var(--p, 0.8)); }
.hd-resp { display: flex; align-items: center; gap: 10px; height: 31px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.hd-resp .hd-badge { margin-left: auto; }

/* ---------- Custom for kopers ---------- */
.hd-plan { position: absolute; left: 22px; top: 56px; width: 516px; height: 250px; }
.hd-plan svg { display: block; width: 516px; height: 250px; overflow: visible; }
.hd-wall { fill: none; stroke: var(--text-light); stroke-width: 4.5; stroke-linecap: square; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0.85; transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.hd-wall--in { stroke-width: 3; opacity: 0.6; }
.hd-wall.is-in { stroke-dashoffset: 0; }
.hd-door-leaf, .hd-door-arc { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity 0.5s ease; }
.hd-door-arc { stroke-dasharray: 4 3; stroke-width: 1.5; }
.hd-door.is-in .hd-door-leaf, .hd-door.is-in .hd-door-arc { opacity: 1; }
.hd-room { fill: rgba(var(--accent-rgb), 0.05); opacity: 0; transition: opacity 0.8s ease; }
.hd-room.is-in { opacity: 1; }
.hd-item { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }
.hd-item.is-in { opacity: 1; transform: scale(1); }
.hd-item .hd-i-bg { fill: rgba(var(--accent-rgb), 0.2); stroke: var(--accent); stroke-width: 1.6; }
.hd-item .hd-i-fg { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-item--warm .hd-i-bg { fill: rgba(var(--rgb-amber), 0.22); stroke: #f59e0b; }
.hd-item--warm .hd-i-fg { stroke: #f59e0b; }
/* De officiële symbolen van de aansluitingen (dezelfde vormen als in de tekentool en de technische PDF, includes/custom_symbols.php). */
.hd-sym { color: var(--accent); }
.hd-item--warm .hd-sym { color: #f59e0b; }
.hd-tip { position: absolute; padding: 5px 10px; line-height: 1.35; z-index: 5; border-radius: 7px; background: var(--hd-bg); border: 1px solid rgba(var(--accent-rgb), 0.45); font-size: 10.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
.hd-chips { position: absolute; left: 22px; top: 40px; display: flex; gap: 7px; }
.hd-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 8px; white-space: nowrap; border-radius: 9px; font-size: 11.5px; font-weight: 700; background: var(--hd-soft); border: 1px solid var(--hd-line); transition: background 0.25s ease, border-color 0.25s ease; }
.hd-chip svg { width: 13px; height: 13px; color: var(--accent); }
.hd-chip.is-in { background: rgba(var(--accent-rgb), 0.18); border-color: var(--accent); }
.hd-price { position: absolute; right: 22px; bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.hd-price small { font-size: 11px; color: rgba(var(--text-rgb), 0.6); }
.hd-price b { font-size: 21px; font-weight: 800; color: var(--accent); }
.hd-sent { display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.hd-sent b { display: block; font-size: 13px; }
.hd-sent small { font-size: 11px; color: rgba(var(--text-rgb), 0.6); }
.hd-fly { position: absolute; width: 38px; height: 46px; border-radius: 6px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.4s ease; }
/* Het papier vliegt van de knop naar de bouwbegeleiding; na afloop (en in de vaste eindstand) is het weg. */
.hd-fly.hd-a.is-in { opacity: 0; animation: hd-fly 1.4s ease-in-out forwards; }
@keyframes hd-fly {
    0% { opacity: 0; transform: translate(0, 0) scale(0.8) rotate(-6deg); }
    18% { opacity: 1; }
    78% { opacity: 1; transform: translate(80px, -62px) scale(1) rotate(4deg); }
    100% { opacity: 0; transform: translate(96px, -74px) scale(0.6) rotate(6deg); }
}
.hd-fly::before { content: ''; position: absolute; left: 7px; right: 7px; top: 9px; height: 3px; border-radius: 2px; background: #cdd5e6; box-shadow: 0 7px 0 #cdd5e6, 0 14px 0 #cdd5e6, 0 21px 0 #cdd5e6; }

/* ---------- Woningfinder: het gebouw is echt 3D (CSS-transformaties, geen plaatje) ---------- */
.hd-3d { position: absolute; left: 0; top: 0; width: 330px; height: 366px; perspective: 900px; perspective-origin: 50% 38%; }
.hd-scene3d { position: absolute; left: 165px; top: 308px; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, -24deg)) rotateY(var(--ry, -40deg)) translate3d(var(--tx, 0px), 0px, var(--tz, 0px)); }
.hd-ground { position: absolute; left: -150px; top: -130px; width: 300px; height: 260px; border-radius: 16px; transform: rotateX(90deg) translateZ(-1px); background:
    radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.16), transparent 70%),
    linear-gradient(rgba(var(--text-rgb), 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(var(--text-rgb), 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
    rgb(var(--hd-ground));
    border: 1px solid var(--hd-line);
    opacity: 0;
    transition: opacity 0.9s ease;
}
.hd-ground.is-in { opacity: 1; }
.hd-shadow { position: absolute; left: -80px; top: -56px; width: 160px; height: 112px; border-radius: 50%; transform: rotateX(90deg) translateZ(0); background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 70%); filter: blur(6px); opacity: 0; transition: opacity 0.9s ease; }
.hd-shadow.is-in { opacity: 1; }

.hd-box { position: absolute; left: calc(var(--w) / -2); top: calc(var(--y, 0px) - var(--h)); width: var(--w); height: var(--h); transform-style: preserve-3d; }
.hd-box > i { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hd-box > .f { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); background-color: rgb(var(--hd-wall)); }
.hd-box > .b { width: var(--w); height: var(--h); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background-color: rgb(var(--hd-wall)); }
.hd-box > .r { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background-color: rgb(var(--hd-wall-side)); }
.hd-box > .l { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background-color: rgb(var(--hd-wall-side)); }
.hd-box > .t { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background-color: rgb(var(--hd-wall-top)); }

/* Verdiepingen: lintramen (de kleur geeft de beschikbaarheid aan). */
/* Let op: geen opacity/filter op de 3D-onderdelen zelf (dat klapt ze plat) -- ze verschijnen via schaal + vallen, en
   dimmen doen we per vlak (.is-dim > i). */
.hd-fl { --win: 250, 224, 160; --drop: -150px; --lift: 0px; --pull: 0px; --sc: 0; transform: translate3d(var(--x, 0px), calc(var(--drop) + var(--lift)), calc(var(--z, 0px) + var(--pull))) scale3d(var(--sc), var(--sc), var(--sc)); transition: transform 0.9s cubic-bezier(0.25, 0.9, 0.3, 1.15); }
.hd-fl.is-in { --drop: 0px; --sc: 1; }
.hd-fl.is-hot { --lift: -12px; }
.hd-fl > .f, .hd-fl > .b, .hd-fl > .r, .hd-fl > .l {
    background-image: repeating-linear-gradient(90deg, rgba(var(--win), 0.92) 0 10px, transparent 10px 15px);
    background-size: calc(100% - 12px) 11px;
    background-position: 6px 7px;
    background-repeat: no-repeat;
}
.hd-fl[data-s="free"] { --win: 74, 222, 128; }
.hd-fl[data-s="opt"] { --win: 251, 191, 36; }
.hd-fl[data-s="sold"] { --win: 120, 134, 160; }
.hd-fl > i { transition: opacity 0.5s ease, background-color 0.5s ease; }
.hd-fl.is-dim > i { opacity: 0.3; }
.hd-core > .f, .hd-core > .b, .hd-core > .r, .hd-core > .l { background-image: none; background-color: rgb(var(--hd-wall-side)); }
.hd-core > .t { background-color: rgb(var(--hd-wall)); }
.hd-core { --drop: -170px; --sc: 0; --x: 0px; --z: 0px; transform: translate3d(var(--x), var(--drop), var(--z)) scale3d(var(--sc), var(--sc), var(--sc)); transition: transform 1s cubic-bezier(0.25, 0.9, 0.3, 1.15); }
.hd-core.is-in { --drop: 0px; --sc: 1; }
.hd-slab > i { background-color: rgb(var(--hd-wall-top)); }

/* De gekozen verdieping komt naar voren en kleurt blauw met witte ramen (de klasse staat op het hele gebouw: zie data-at);
   de rest wordt gedimd. Eerder kreeg de gekozen verdieping de bijna witte bovenkleur van de muren, waardoor hij in het
   lichte thema leek te verdwijnen. */
.hd-scene3d.is-in .hd-fl[data-hot] { --pull: 22px; --win: 255, 255, 255; }
.hd-scene3d.is-in .hd-fl[data-hot] > .f, .hd-scene3d.is-in .hd-fl[data-hot] > .b { background-color: rgb(var(--hd-hot)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.hd-scene3d.is-in .hd-fl[data-hot] > .r, .hd-scene3d.is-in .hd-fl[data-hot] > .l { background-color: rgb(var(--hd-hot-side)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.hd-scene3d.is-in .hd-fl[data-hot] > .t { background-color: rgb(var(--hd-hot-top)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.hd-scene3d.is-in .hd-fl:not([data-hot]) > i, .hd-scene3d.is-in .hd-core > i { opacity: 0.5; }

.hd-legend { position: absolute; left: 22px; top: 12px; display: flex; gap: 9px; font-size: 10.5px; font-weight: 700; color: rgba(var(--text-rgb), 0.7); }
.hd-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hd-legend i { width: 8px; height: 8px; border-radius: 50%; }
.hd-wfpanel { position: absolute; left: 318px; top: 16px; width: 224px; }
.hd-unit { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 11px; margin-bottom: 8px; }
.hd-unit b { display: block; font-size: 12px; }
.hd-unit small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.6); }
.hd-unit .hd-badge { margin-left: auto; }
.hd-unit.is-sel { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.hd-lead { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--hd-bg); border: 1px solid rgba(var(--rgb-green), 0.45); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.hd-lead b { display: block; font-size: 12.5px; }
.hd-lead small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.62); }

/* ---------- Woningfinder: drie weergaven (2D, 360°, 3D) met een keuze eronder ---------- */
.hd-multi { width: 100%; }
.hd-multi__stack { position: relative; width: 100%; height: calc(400px * var(--hd-s, 1)); }
.hd-multi__stack > .hd { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.hd-multi__stack > .hd.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }

.hd-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 0;
    padding: 4px;
    border-radius: 999px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hd-tab {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(var(--text-rgb), 0.72);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.hd-tab svg { width: 15px; height: 15px; flex-shrink: 0; }
.hd-tab:hover { color: var(--text-light); background: rgba(var(--surface-rgb), 0.08); }
.hd-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hd-tab.is-on { color: var(--accent-contrast); background: var(--accent); }
/* Voortgang van de lopende weergave: een dun streepje onder het actieve tabje. */
.hd-tab.is-on::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: rgba(255, 255, 255, 0.6); }

/* 2D: een render met klikbare vlakken (kleur = status) */
.hd-render svg, .hd-plan2 svg { display: block; width: 290px; height: 316px; overflow: visible; }
.hd-render { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28)); }
.hd-zone { --zc: 120, 134, 160; fill: rgba(var(--zc), 0); stroke: rgba(var(--zc), 0); stroke-width: 1.5; transition: fill 0.5s ease, stroke 0.5s ease; }
.hd-zone[data-s="free"] { --zc: 34, 197, 94; }
.hd-zone[data-s="opt"] { --zc: 245, 158, 11; }
.hd-zone[data-s="sold"] { --zc: 100, 116, 139; }
.hd-zone.is-in { fill: rgba(var(--zc), 0.42); stroke: rgba(var(--zc), 0.95); }
.hd-zone--plan.is-in { fill: rgba(var(--zc), 0.3); }
.hd-hov { fill: rgba(var(--accent-rgb), 0.3); stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity 0.25s ease; }
.hd-hov.is-in { opacity: 1; }
.hd-hov.hd-sel { fill: rgba(255, 255, 255, 0.3); stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.95)); }
.hd-planframe { fill: var(--hd-soft); stroke: var(--hd-line); }
.hd-planwall { fill: none; stroke: var(--text-light); stroke-width: 3.5; stroke-linecap: square; opacity: 0.8; }
.hd-plantxt { fill: var(--text-light); }
.hd-plantxt--m { fill: rgba(var(--text-rgb), 0.6); }

/* 360°: een "foto" met een draaibaar gebouw, een sleepbalk en een beeldteller */
.hd-photo { position: absolute; left: 14px; top: 10px; width: 304px; height: 308px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #84bdf6 0%, #dcedff 60%, #a9cf94 60.4%, #86b673 100%); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.hd-photo::before { content: ''; position: absolute; right: 38px; top: 26px; width: 34px; height: 34px; border-radius: 50%; background: #ffe9a0; box-shadow: 0 0 0 14px rgba(255, 244, 200, 0.45); }
.hd-tree { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: #4f9a5c; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.12); }
.hd-tree::after { content: ''; position: absolute; left: 15px; top: 32px; width: 4px; height: 12px; background: #6b4f3a; }
.hd-tree--s { width: 22px; height: 22px; background: #5fae6b; }
.hd-tree--s::after { left: 9px; top: 20px; height: 9px; }

/* Het gebouw staat IN de foto: de 3D-laag wordt precies zo groot als de foto en geknipt langs de afgeronde hoeken;
   de grond is die van de foto zelf (het grondvlak van het 3D-model blijft verborgen). */
.hd-3d--photo { --hd-wall: 222, 214, 200; --hd-wall-top: 244, 240, 230; --hd-wall-side: 190, 181, 166; left: 14px; top: 10px; width: 304px; height: 308px; border-radius: 14px; overflow: hidden; perspective-origin: 151px 129px; }
.hd-3d--photo .hd-scene3d { left: 151px; top: 262px; }
.hd-3d--photo .hd-scene3d.is-in .hd-fl:not([data-hot]) > i, .hd-3d--photo .hd-scene3d.is-in .hd-core > i { opacity: 0.68; }
.hd-3d--photo .hd-ground { display: none; }
.hd-3d--photo .hd-shadow { background: radial-gradient(ellipse, rgba(20, 40, 20, 0.5), transparent 70%); }
.hd-3d--photo .hd-core > .f, .hd-3d--photo .hd-core > .b, .hd-3d--photo .hd-core > .r, .hd-3d--photo .hd-core > .l { background-color: rgb(176, 168, 154); }
.hd-3d--photo .hd-slab > i { background-color: rgb(130, 136, 148); }

.hd-badge360 { position: absolute; left: 26px; top: 20px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #10192b; font-size: 11px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.hd-badge360 svg { color: #2f6fd6; }
.hd-frame { position: absolute; left: 206px; top: 20px; padding: 4px 11px; border-radius: 999px; background: rgba(16, 25, 43, 0.72); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hd-frame b { display: inline-block; min-width: 1.4em; text-align: right; }
.hd-dragbar { --k: 0px; position: absolute; left: 34px; top: 330px; width: 262px; height: 6px; border-radius: 6px; background: rgba(var(--text-rgb), 0.16); }
.hd-dragbar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--k); border-radius: 6px; background: var(--accent); }
.hd-knob { position: absolute; left: var(--k); top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.hd-dragtxt { position: absolute; left: 34px; top: 344px; font-size: 10.5px; font-weight: 700; color: rgba(var(--text-rgb), 0.6); }

/* 3D: de knoppen van de viewer (inzoomen, uitzoomen, herstellen) */
.hd-hud { position: absolute; left: 22px; bottom: 14px; display: flex; gap: 6px; z-index: 4; }
.hd-hud span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--hd-soft); border: 1px solid var(--hd-line); font-size: 15px; font-weight: 800; color: var(--text-light); }
.hd-hud svg { width: 13px; height: 13px; }

/* ---------- Projectwebsite: een nagebouwde projectwebsite in een browservenster + een domein-/hostingschema ---------- */
.hd-site { position: absolute; left: 22px; top: 16px; width: 300px; height: 334px; border-radius: 12px; overflow: hidden; background: #fff; color: #1b2438; border: 1px solid var(--hd-line); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
.hd-site__bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; background: #eef1f7; border-bottom: 1px solid #dde3ef; color: #5a6680; }
.hd-site__bar svg { flex: 0 0 10px; width: 10px; height: 10px; }
.hd-site__url { flex: 1; min-width: 0; height: 17px; line-height: 15px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid #dde3ef; font-size: 10px; color: #44506a; white-space: nowrap; overflow: hidden; }
.hd-site__nav { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; font-size: 9.5px; color: #5a6680; border-bottom: 1px solid #eef1f7; }
.hd-site__nav b { margin-right: auto; font-size: 11.5px; color: #1b2438; }
.hd-site__hero { margin: 12px 14px 0; height: 104px; padding: 16px 16px 0; border-radius: 10px; background: linear-gradient(120deg, var(--accent), rgb(var(--dot-hue-1))); color: #fff; box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.28); }
.hd-site__hero strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.hd-site__hero small { display: block; margin-top: 3px; font-size: 10px; opacity: 0.92; }
.hd-site__cta { display: inline-block; margin-top: 11px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.95); color: #10192b; font-size: 9.5px; font-style: normal; font-weight: 800; }
.hd-site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 0; }
.hd-site__card { border: 1px solid #e3e8f3; border-radius: 8px; padding: 6px; }
.hd-site__thumb { display: block; height: 46px; margin-bottom: 6px; border-radius: 5px; background: linear-gradient(135deg, #cfe2fb, #eaf3ff); }
.hd-site__card:nth-child(2) .hd-site__thumb { background: linear-gradient(135deg, #cfeadf, #eaf7f1); }
.hd-site__card:nth-child(3) .hd-site__thumb { background: linear-gradient(135deg, #f5e3c8, #fbf1e1); }
.hd-site__card b { display: block; font-size: 10px; }
.hd-site__card small { font-size: 9px; color: #5a6680; }
.hd-site__foot { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #f3f6fb; border-top: 1px solid #e3e8f3; font-size: 10px; font-weight: 700; color: #2b3752; }
.hd-site__btn { padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-size: 9.5px; font-style: normal; font-weight: 800; }

.hd-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; }
.hd-node b { font-size: 12.5px; }
.hd-node small { font-size: 10.5px; color: rgba(var(--text-rgb), 0.6); }
.hd-node .hd-ico { width: 30px; height: 30px; margin-bottom: 2px; }
.hd-node .hd-ico svg { width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce) {
    .hd-scan.is-in, .hd-spin, .hd-dotsy i { animation: none; }
}

/* ---------- Woningfinder: kiezen tussen Appartementen en Grondgebonden (2026-10-19) ---------- */
.hd-switch { display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 16px auto 0; padding: 3px; border-radius: 999px; background: var(--panel-bg); border: 1px solid var(--panel-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hd-sw { display: inline-flex; align-items: center; gap: 6px; padding: 6px 15px; border: 0; border-radius: 999px; background: transparent; color: rgba(var(--text-rgb), 0.72); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.hd-sw svg { width: 14px; height: 14px; flex-shrink: 0; }
.hd-sw:hover { color: var(--text-light); background: rgba(var(--surface-rgb), 0.08); }
.hd-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hd-sw.is-on { color: var(--text-light); background: rgba(var(--accent-rgb), 0.2); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55); }
.hd-switch + .hd-tabs { margin-top: 10px; }

/* Grondgebonden: een wijk in 2D (bovenaanzicht), 360° (rondje, de omgeving draait mee) en 3D (vliegen). */
.hd-fase { position: absolute; left: 318px; top: 16px; display: flex; gap: 6px; }
.hd-dim { fill: rgba(11, 23, 40, 0.58); opacity: 0; transition: opacity 0.5s ease; }
[data-theme="light"] .hd-dim { fill: rgba(246, 249, 255, 0.72); }
.hd-dim.is-in { opacity: 1; }
.hd-road-dash { stroke: #fff; stroke-width: 2; stroke-dasharray: 10 8; opacity: 0.7; }

/* Wijk in 3D (CSS): huizen zijn .hd-fl-blokken met een dak, bomen en de spelden staan als platte kaartjes die naar de kijker blijven kijken (.hd-bb:
   het tegengestelde van de draaiing van de scène), zodat de omgeving vanzelf mee draait. */
.hd-3d--wijk { --hd-wall: 236, 226, 208; --hd-wall-top: 244, 240, 230; --hd-wall-side: 204, 192, 172; }
.hd-3d--wijk .hd-fl > .f, .hd-3d--wijk .hd-fl > .b { background-color: rgb(var(--hd-wall)); }
.hd-3d--wijk .hd-fl > .r, .hd-3d--wijk .hd-fl > .l { background-color: rgb(var(--hd-wall-side)); }
.hd-3d--wijk .hd-fl > .t { background-color: rgb(var(--hd-wall-top)); }
.hd-3d--wijk .hd-fl { --win: 120, 134, 160; }
.hd-3d--wijk .hd-fl[data-s="free"] { --win: 74, 222, 128; }
.hd-3d--wijk .hd-fl[data-s="opt"] { --win: 251, 191, 36; }
.hd-3d--wijk .hd-fl[data-s="sold"] { --win: 248, 113, 113; }
.hd-roof { --drop: -150px; --sc: 0; --x: 0px; --z: 0px; transform: translate3d(var(--x), var(--drop), var(--z)) scale3d(var(--sc), var(--sc), var(--sc)); transition: transform 0.9s cubic-bezier(0.25, 0.9, 0.3, 1.15); }
.hd-roof.is-in { --drop: 0px; --sc: 1; }
.hd-roof > i { background-color: rgb(176, 98, 78); }
.hd-roof > .t { background-color: rgb(204, 122, 98); }
.hd-roof > .r, .hd-roof > .l { background-color: rgb(150, 82, 66); }
.hd-ground--wijk { left: -260px; top: -230px; width: 520px; height: 460px; border-radius: 0; border: 0; background:
    radial-gradient(ellipse 62px 38px at 400px 70px, #6ea8dc 0 97%, transparent 100%),
    linear-gradient(180deg, transparent 214px, #d9d9d3 214px, #d9d9d3 252px, transparent 252px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 40px 40px,
    #8fbf7c; }
.hd-bb { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.7s ease; transform: translate3d(var(--x, 0px), 0px, var(--z, 0px)) rotateY(calc(var(--ry, -40deg) * -1)) rotateX(calc(var(--rx, -24deg) * -1)); }
.hd-bb.is-in { opacity: 1; }
.hd-bb > .hd-tree { left: -17px; top: -42px; }
.hd-bb > .hd-tree--s { left: -11px; top: -26px; }
.hd-pin3d { position: absolute; left: -9px; top: var(--py, -36px); width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: #4ade80; color: #fff; font-size: 8.5px; font-weight: 800; line-height: 14px; text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
.hd-pin3d[data-s="opt"] { background: #f59e0b; }
.hd-pin3d[data-s="sold"] { background: #ef4444; }
.hd-3d--photo.hd-3d--wijk .hd-ground { display: block; opacity: 1; }
.hd-3d--photo.hd-3d--wijk .hd-ground.is-in { opacity: 1; }
.hd-3d--photo.hd-3d--wijk .hd-shadow { display: none; }
.hd-3d--photo.hd-3d--wijk .hd-fl:not([data-hot]) > i { opacity: 1; }
.hd-3d--wijk .hd-scene3d { left: 165px; top: 250px; }
.hd-3d--photo.hd-3d--wijk .hd-scene3d { left: 151px; top: 224px; }

/* 3D-weergave van de wijk: knoppen om te vliegen en camerastanden onderin */
.hd-keys { position: absolute; left: 22px; bottom: 50px; display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: repeat(2, 26px); gap: 4px; z-index: 4; }
.hd-key { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--hd-soft); border: 1px solid var(--hd-line); font-size: 11px; font-weight: 800; color: rgba(var(--text-rgb), 0.78); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.hd-key.is-in { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: translateY(1px); }
.hd-key--w { grid-column: 2; grid-row: 1; } .hd-key--a { grid-column: 1; grid-row: 2; } .hd-key--s { grid-column: 2; grid-row: 2; } .hd-key--d { grid-column: 3; grid-row: 2; }
.hd-views { position: absolute; left: 22px; bottom: 14px; display: flex; gap: 6px; z-index: 4; }
.hd-view { padding: 5px 11px; border-radius: 999px; background: var(--hd-soft); border: 1px solid var(--hd-line); font-size: 10.5px; font-weight: 700; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.hd-view.is-in { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.hd-envtog { position: absolute; right: 16px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--hd-soft); border: 1px solid var(--hd-line); font-size: 10.5px; font-weight: 700; z-index: 4; }
.hd-envtog svg { width: 13px; height: 13px; color: var(--accent); }
/* ---------- Inklapbare tekst bij "Op maat" en "Liever binnen jullie eigen omgeving" ---------- */
.home-fold { margin-top: 0.5rem; }
.home-fold__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.05rem 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: rgba(var(--surface-rgb), 0.08);
    color: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.home-fold__summary::-webkit-details-marker { display: none; }
.home-fold__summary:hover,
.home-fold__summary:focus-visible { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.home-fold__summary:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.6); outline-offset: 2px; }
.home-fold__less { display: none; }
.home-fold[open] .home-fold__more { display: none; }
.home-fold[open] .home-fold__less { display: inline; }
.home-fold__chev { flex: none; transition: transform 0.25s ease; }
.home-fold[open] .home-fold__chev { transform: rotate(180deg); }
.home-fold__body { margin-top: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .home-fold__chev, .home-fold__summary { transition: none; } }