/* ==========================================================================
   DHB Woning of bedrijf

   Overgenomen uit het ontwerp dhb-woning-bedrijf.html: de sectie waarin de bezoeker kiest tussen thuis en de zaak.

   De lettertypes van het ontwerp (Elms Sans, Satoshi) zijn onze eigen DHB Elms
   en DHB Satoshi geworden; die laadt de plugin zelf, dus er gaat geen verzoek
   meer naar Google Fonts.
   ========================================================================== */

.dhb-wb{
  --wb-bg:#0B0A0A;--wb-ink:#F5F1EE;--wb-muted:#A79F9B;--wb-line:#ffffff24;--wb-line-2:#ffffff3d;
  --wb-orange:#FF4500;--wb-orange-deep:#D63A00;--wb-amber:#FFB27D;
  --wb-radius:30px;--wb-height:600px;
  --wb-head:'DHB Elms','DHB Satoshi',system-ui,sans-serif;--wb-font:'DHB Satoshi',system-ui,-apple-system,'Segoe UI',sans-serif;
  --wb-ease:cubic-bezier(.2,.7,.2,1);
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(72px,9vw,128px) 0;background:var(--wb-bg);color:var(--wb-ink);
  font:500 16px/1.65 var(--wb-font);-webkit-font-smoothing:antialiased
}
.dhb-wb::before{
  content:"";position:absolute;z-index:-1;inset:auto -10% -30% auto;width:60%;height:70%;pointer-events:none;
  background:radial-gradient(closest-side,#ff450026,transparent)
}
.dhb-wb *,.dhb-wb *::before,.dhb-wb *::after{box-sizing:border-box}
.dhb-wb h2,.dhb-wb h3,.dhb-wb p,.dhb-wb ul,.dhb-wb li{margin:0;padding:0}
.dhb-wb li{list-style:none}
.dhb-wb a,.dhb-wb a:hover,.dhb-wb a:focus{color:inherit;text-decoration:none}
.dhb-wb img{display:block;max-width:none;border:0;border-radius:0;box-shadow:none}
.dhb-wb button{font:inherit;color:inherit;background:none;border:0;margin:0;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}
.dhb-wb-container{width:min(100% - clamp(16px,4vw,48px)*2,1232px);margin-inline:auto}

/* ---------- kop ---------- */
.dhb-wb-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:end;gap:48px;margin-bottom:40px}
.dhb-wb-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:var(--wb-amber)}
.dhb-wb-signal{position:relative;width:8px;height:8px;border-radius:50%;background:var(--wb-orange)}
.dhb-wb-signal::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--wb-orange);opacity:0;animation:dhb-wb-ping 2.4s var(--wb-ease) infinite}
@keyframes dhb-wb-ping{0%{transform:scale(.5);opacity:.9}100%{transform:scale(1.6);opacity:0}}
.dhb-wb h2{margin-top:16px;font-family:var(--wb-head);font-size:clamp(38px,4.6vw,64px);font-weight:800;line-height:1.02;letter-spacing:-.035em;color:var(--wb-ink);text-wrap:balance}
.dhb-wb h2 .dhb-wb-soft{color:#ffffff66}
.dhb-wb-dot{color:var(--wb-orange)}
.dhb-wb-aside{display:flex;flex-direction:column;align-items:flex-start;gap:22px}
.dhb-wb-lead{max-width:40ch;font-size:16px;line-height:1.7;color:var(--wb-muted)}

/* keuzeschakelaar */
.dhb-wb-switch{position:relative;display:inline-grid;grid-template-columns:1fr 1fr;padding:5px;border-radius:999px;background:#ffffff0d;border:1px solid var(--wb-line)}
.dhb-wb-switch-thumb{position:absolute;top:5px;bottom:5px;left:5px;width:calc(50% - 5px);border-radius:999px;background:var(--wb-orange);box-shadow:0 8px 24px -8px #ff4500aa;transition:transform .55s var(--wb-ease)}
.dhb-wb-switch[data-active="1"] .dhb-wb-switch-thumb{transform:translateX(100%)}
.dhb-wb-switch button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:999px;font-size:14px;font-weight:700;color:#ffffffa6;transition:color .3s}
.dhb-wb-switch button[aria-pressed="true"]{color:#fff}
.dhb-wb-switch button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dhb-wb-switch button:focus-visible{outline:2px solid var(--wb-amber);outline-offset:2px}

/* ---------- panelen ---------- */
.dhb-wb-split{display:flex;gap:14px;height:var(--wb-height)}
.dhb-wb-panel{
  position:relative;isolation:isolate;flex:1;min-width:0;
  display:flex;flex-direction:column;justify-content:space-between;
  overflow:hidden;padding:26px;border-radius:var(--wb-radius);background:#1a1716;
  transition:flex .8s var(--wb-ease)
}
.dhb-wb-panel.is-open{flex:1.75}
.dhb-wb-panel img{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02);filter:saturate(.85) brightness(.8);transition:transform 1.4s var(--wb-ease),filter .8s var(--wb-ease)}
.dhb-wb-panel.is-open img{transform:scale(1.07);filter:saturate(1) brightness(1)}
.dhb-wb-panel::before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(180deg,#0b0a0a73 0%,#0b0a0a10 30%,#0b0a0a55 60%,#0b0a0af2 100%)}
.dhb-wb-panel::after{content:"";position:absolute;z-index:-1;inset:0;background:#0b0a0a;opacity:.35;transition:opacity .8s var(--wb-ease)}
.dhb-wb-panel.is-open::after{opacity:0}
.dhb-wb-panel:focus-visible{outline:2px solid var(--wb-amber);outline-offset:3px}

/* zoekerhoeken: vergrendelen op het actieve paneel */
.dhb-wb-vf{position:absolute;inset:14px;pointer-events:none;z-index:1}
.dhb-wb-vf i{position:absolute;width:26px;height:26px;border:0 solid var(--wb-orange);opacity:0;transition:opacity .4s,transform .6s var(--wb-ease)}
.dhb-wb-vf i:nth-child(1){top:0;left:0;border-top-width:2px;border-left-width:2px;border-top-left-radius:16px;transform:translate(-10px,-10px)}
.dhb-wb-vf i:nth-child(2){top:0;right:0;border-top-width:2px;border-right-width:2px;border-top-right-radius:16px;transform:translate(10px,-10px)}
.dhb-wb-vf i:nth-child(3){bottom:0;left:0;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:16px;transform:translate(-10px,10px)}
.dhb-wb-vf i:nth-child(4){bottom:0;right:0;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:16px;transform:translate(10px,10px)}
.dhb-wb-panel.is-open .dhb-wb-vf i{opacity:1;transform:none}

/* bovenrij in het paneel */
.dhb-wb-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px}
.dhb-wb-chip{display:inline-flex;align-items:center;gap:9px;padding:7px 14px 7px 7px;border-radius:999px;background:#0b0a0a80;border:1px solid var(--wb-line);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:13.5px;font-weight:700;color:#fff}
.dhb-wb-chip svg{width:30px;height:30px;padding:7px;border-radius:50%;background:var(--wb-orange);fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.dhb-wb-go{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ffffff14;border:1px solid var(--wb-line-2);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:background .35s,border-color .35s,transform .5s var(--wb-ease)}
.dhb-wb-go svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .3s}
.dhb-wb-panel.is-open .dhb-wb-go{background:#fff;border-color:#fff;transform:rotate(-45deg)}
.dhb-wb-panel.is-open .dhb-wb-go svg{stroke:var(--wb-orange)}

/* onderkant */
.dhb-wb-body{position:relative;z-index:2}
.dhb-wb h3{font-family:var(--wb-head);font-size:clamp(28px,3.2vw,44px);font-weight:800;line-height:1.05;letter-spacing:-.025em;color:var(--wb-ink);text-wrap:balance}
.dhb-wb-intro{display:block;margin-top:8px;max-width:44ch;font-size:15px;line-height:1.55;color:#ffffffb3}

.dhb-wb-more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .7s var(--wb-ease)}
.dhb-wb-more>span{display:block;overflow:hidden;min-height:0}
.dhb-wb-panel.is-open .dhb-wb-more{grid-template-rows:1fr}
.dhb-wb-card{
  display:block;margin-top:20px;padding:18px;border-radius:20px;
  background:#0b0a0a8c;border:1px solid var(--wb-line);
  backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);
  opacity:0;transform:translateY(14px);transition:opacity .5s,transform .7s var(--wb-ease)
}
.dhb-wb-panel.is-open .dhb-wb-card{opacity:1;transform:none;transition-delay:.18s}
.dhb-wb-list{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}
.dhb-wb-list li{display:flex;align-items:flex-start;gap:9px;font-size:14px;font-weight:500;line-height:1.4;color:#f0e9e4}
.dhb-wb-list li svg{width:18px;height:18px;margin-top:1px;flex:none;padding:3px;border-radius:50%;background:#ff45002e;fill:none;stroke:var(--wb-orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dhb-wb-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid var(--wb-line)}
.dhb-wb-note{font-size:13px;color:var(--wb-muted)}
.dhb-wb-btn{
  position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;align-items:center;gap:12px;padding:7px 7px 7px 20px;border-radius:999px;
  background:var(--wb-orange);font-size:14px;font-weight:700;line-height:1.3;color:#fff;white-space:nowrap;
  box-shadow:0 12px 30px -10px #ff4500b3;transition:transform .3s var(--wb-ease)
}
.dhb-wb-btn::before{content:"";position:absolute;z-index:-1;right:7px;top:50%;width:34px;height:34px;border-radius:50%;background:var(--wb-orange-deep);transform:translateY(-50%) scale(0);transition:transform .55s var(--wb-ease)}
.dhb-wb-panel:hover .dhb-wb-btn::before{transform:translateY(-50%) scale(10)}
.dhb-wb-panel:hover .dhb-wb-btn{transform:translateY(-1px)}
.dhb-wb-btn svg{width:34px;height:34px;padding:9px;border-radius:50%;background:#fff;color:#1a0d05;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .35s var(--wb-ease)}
.dhb-wb-panel:hover .dhb-wb-btn svg{transform:translateX(2px)}

/* ---------- binnenkomen bij scrollen ---------- */
.dhb-wb.is-reveal .dhb-wb-rv{opacity:0;transform:translateY(22px);transition:opacity .8s var(--wb-ease),transform .8s var(--wb-ease)}
.dhb-wb.is-reveal .dhb-wb-rv.is-in{opacity:1;transform:none}
.dhb-wb.is-reveal .dhb-wb-d1{transition-delay:.1s}

/* ---------- tablet en mobiel ---------- */
@media (max-width:1100px){.dhb-wb-list{grid-template-columns:1fr}}
@media (max-width:900px){
  .dhb-wb-head{grid-template-columns:1fr;gap:18px;margin-bottom:28px}
  .dhb-wb-switch{display:none}
  .dhb-wb-split{flex-direction:column;height:auto}
  .dhb-wb-panel,.dhb-wb-panel.is-open{flex:none;min-height:540px;padding:20px}
  .dhb-wb-panel img{transform:none;filter:none}
  .dhb-wb-panel::after{opacity:0}
  .dhb-wb-panel::before{background:linear-gradient(180deg,#0b0a0a66 0%,#0b0a0a10 22%,#0b0a0acc 55%,#0b0a0af7 80%)}
  .dhb-wb-more{grid-template-rows:1fr}
  .dhb-wb-card{opacity:1;transform:none}
  .dhb-wb-vf{display:none}
  .dhb-wb-go{background:#fff;border-color:#fff;transform:rotate(-45deg)}
  .dhb-wb-go svg{stroke:var(--wb-orange)}
  .dhb-wb-cta{flex-direction:column;align-items:stretch}
  .dhb-wb-panel,.dhb-wb-panel.is-open{gap:110px}
  .dhb-wb-btn{justify-content:space-between;white-space:normal;font-size:13.5px;padding-left:18px}
}
@media (prefers-reduced-motion:reduce){
  .dhb-wb *,.dhb-wb *::before,.dhb-wb *::after{animation:none!important;transition:none!important}
  .dhb-wb.is-reveal .dhb-wb-rv{opacity:1;transform:none}
}

/* ---------- Kleuren vastzetten ----------
   Zie hierboven: een kit die kale koppen en alinea's kleurt weegt zwaarder dan
   een enkele klasse. Gemeten gevolg zonder deze regels: de intro werd blauw. */
.dhb-wb.dhb-wb h2,
.dhb-wb.dhb-wb h3{color:var(--wb-ink)}
.dhb-wb.dhb-wb .dhb-wb-lead,
.dhb-wb.dhb-wb .dhb-wb-intro,
.dhb-wb.dhb-wb .dhb-wb-note{color:var(--wb-muted)}
.dhb-wb.dhb-wb .dhb-wb-eyebrow{color:var(--wb-amber)}
.dhb-wb.dhb-wb .dhb-wb-list li{color:var(--wb-ink)}
.dhb-wb.dhb-wb .dhb-wb-chip{color:var(--wb-ink)}
.dhb-wb.dhb-wb .dhb-wb-dot{color:var(--wb-orange)}
.dhb-wb.dhb-wb .dhb-wb-panel,
.dhb-wb.dhb-wb .dhb-wb-panel:hover{color:var(--wb-ink)}
.dhb-wb.dhb-wb .dhb-wb-switch button{background:transparent;color:var(--wb-ink)}
.dhb-wb.dhb-wb .dhb-wb-switch button:hover{background:transparent;color:var(--wb-ink)}
