/* ============================================================
   Vermogensblok (homepage #vermogens), oktober 2026
   Bento-raster met vier tegels en één doorlopend verhaal: een huurder
   meldt een lekkage, belt terug als het doorlekt, en de agent belt na.
   Ontwerp gekozen door Boris op 15 oktober 2026 (richting A, ronde 1;
   copy ronde 2). Alle klassen beginnen met vb- om botsingen met v4.css
   te voorkomen; gebouwd door scripts/vermogensblok_okt.py.
   ============================================================ */
.vb-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.vb-tegel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; min-width: 0;
  background: var(--canvas); border-radius: 18px 60px 18px 18px; padding: 40px 40px 0; min-height: 600px;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, opacity .6s ease;
}
.vb-tegel:nth-child(1), .vb-tegel:nth-child(4) { grid-column: span 7; }
.vb-tegel:nth-child(2), .vb-tegel:nth-child(3) { grid-column: span 5; }
.vb-tegel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.vb-tekst { display: grid; gap: 12px; position: relative; z-index: 1; }
.vb-label { font: 600 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-ink); }
.vb-tegel h3 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.025em; max-width: 16ch; }
.vb-tekst p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
/* Het beeld staat midden in de ruimte die de tekst overlaat: geen gat onder de tekst */
.vb-beeld { margin: auto 0; position: relative; padding-bottom: 40px; }
.vb-beeld::before { content: ""; position: absolute; left: 50%; top: 40%; width: 520px; height: 420px; max-width: 120%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); }
.vb-sc { position: relative; width: 100%; max-width: 470px; margin: 0 auto; display: grid; gap: 10px; font-size: 14px; }
.vb-tegel:nth-child(2) .vb-sc { max-width: 400px; }

/* Donkere tegel: Draagt warm over */
.vb-donker { background: var(--pitch); }
.vb-donker::before { content: ""; position: absolute; right: -160px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(76, 131, 150, .45), transparent); }
.vb-donker .vb-label { color: var(--ping); }
.vb-donker h3 { color: #fff; }
.vb-donker .vb-tekst p { color: rgba(255, 255, 255, .74); }
.vb-donker .vb-beeld::before { display: none; }

/* Bouwstenen van de scènes */
.vb-kaart { background: #fff; border-radius: 14px 22px 14px 14px; box-shadow: 0 1px 2px rgba(1, 30, 38, .05), 0 14px 34px -18px rgba(1, 30, 38, .22); padding: 14px 16px; }
.vb-ic { flex: none; width: 34px; height: 34px; border-radius: 10px 10px 10px 4px; background: var(--pitch); position: relative; }
.vb-ic::after { content: ""; position: absolute; inset: 0; background: var(--ping); -webkit-mask: var(--ic) center / 17px no-repeat; mask: var(--ic) center / 17px no-repeat; }
.vb-ic.ok { background: var(--ping-tekst); }
.vb-ic.ok::after { background: #fff; }
.vb-ic.licht { background: var(--canvas); }
.vb-ic.licht::after { background: var(--sage-ink); }
.vb-ic.agenda { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E"); }
.vb-ic.ticket { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16v12H4zM8 10h8M8 14h5'/%3E%3C/svg%3E"); }
.vb-ic.sms { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.vb-ic.vink { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E"); }
.vb-ic.bel { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.vb-logo-ic { flex: none; width: 34px; height: 34px; border-radius: 10px 10px 10px 4px; background: var(--canvas); display: grid; place-items: center; }
.vb-logo-ic img { width: 19px; height: 19px; }
.vb-wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.vb-wave span { width: 3.5px; border-radius: 999px; background: var(--ping); animation: vb-wave 1.4s ease-in-out infinite; }
.vb-wave span:nth-child(1) { height: 9px; } .vb-wave span:nth-child(2) { height: 18px; animation-delay: .18s; }
.vb-wave span:nth-child(3) { height: 13px; animation-delay: .36s; } .vb-wave span:nth-child(4) { height: 20px; animation-delay: .54s; }
.vb-wave span:nth-child(5) { height: 8px; animation-delay: .72s; }
@keyframes vb-wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.vb-merk { flex: none; width: 44px; height: 44px; border-radius: 14px 14px 14px 5px; background: var(--pitch); display: grid; place-items: center; }
.vb-dag { margin: 0; font: 600 12px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.vb-donker .vb-dag { color: rgba(204, 218, 223, .6); }

/* 1. Handelt af */
.vb-gkop { display: flex; align-items: center; gap: 12px; }
.vb-gkop b { display: block; font: 600 15px/1.25 var(--font-head); color: var(--ink); }
.vb-gkop small { display: block; font-size: 12.5px; color: var(--muted-2); }
.vb-tijd { margin-left: auto; font: 600 15px/1 var(--font-head); font-variant-numeric: tabular-nums; color: var(--sage-ink); }
.vb-quote { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.vb-rij { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.vb-rij > span, .vb-klaar > span, .vb-melding > span:not(.vb-logo-ic) { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; color: var(--muted); font-size: 13.5px; }
.vb-rij > span b, .vb-melding > span b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.vb-rij em { margin-left: auto; font: 500 12px/1 var(--font-head); font-style: normal; color: var(--sage-ink); background: var(--canvas); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.vb-klaar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px 22px 14px 14px; background: var(--ping-soft); }
.vb-klaar > span { color: var(--ping-tekst); font-weight: 600; }
.vb-klaar > span b { font: 600 16px/1.2 var(--font-head); color: var(--ink); }

/* 2. Koppelt: logo's die oplichten, met een bijschrift per handeling */
.vb-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vb-app { aspect-ratio: 1; background: #fff; border-radius: 14px 20px 14px 14px; box-shadow: 0 1px 2px rgba(1, 30, 38, .05), 0 14px 34px -18px rgba(1, 30, 38, .22); display: grid; place-items: center; position: relative; transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s, opacity .5s; }
.vb-app img { width: 42%; height: 42%; object-fit: contain; }
.vb-app.kern { background: var(--pitch); }
.vb-app.dim { opacity: .45; }
.vb-app.licht { transform: scale(1.08); box-shadow: 0 0 0 2.5px var(--sage), 0 18px 36px -16px rgba(76, 131, 150, .6); opacity: 1; z-index: 2; }
.vb-app i { position: absolute; top: -9px; right: -9px; font: 600 10.5px/1 var(--font-head); font-style: normal; background: var(--pitch); color: var(--ping); border-radius: 999px; padding: 5px 7px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.vb-app.licht i { opacity: 1; transform: none; }
.vb-bijschrift { position: relative; height: 50px; margin-top: 6px; }
.vb-bijschrift > div { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-radius: 12px 18px 12px 12px; box-shadow: 0 1px 2px rgba(1, 30, 38, .05), 0 14px 34px -18px rgba(1, 30, 38, .22); font-size: 14px; color: var(--muted); }
.vb-bijschrift > div b { color: var(--ink); font-weight: 600; }
.vb-bijschrift > div:not(:last-child) { display: none; }
.js .vb-bijschrift > div:not(:last-child) { display: flex; }
.vb-rw { flex: none; font: 600 11px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); background: var(--canvas); border-radius: 6px; padding: 5px 7px; }
.vb-meer { margin: 0; text-align: center; font-size: 13px; color: var(--muted-2); }

/* 3. Draagt warm over */
.vb-bel { max-width: 88%; padding: 11px 14px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; line-height: 1.45; }
.vb-bel .rol { display: block; font: 600 10.5px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; opacity: .7; }
.vb-bel.beller { background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .9); }
.vb-bel.agent, .vb-bel.mens { justify-self: end; background: #fff; color: var(--pitch); border-radius: 14px 14px 4px 14px; }
.vb-overdracht { border: 1px solid rgba(182, 248, 153, .45); background: rgba(182, 248, 153, .08); border-radius: 14px 22px 14px 14px; padding: 12px 14px; }
.vb-okop { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--font-head); color: var(--ping); margin-bottom: 10px; }
.vb-okop::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ping); box-shadow: 0 0 0 4px rgba(182, 248, 153, .2); }
.vb-overdracht dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 13px; }
.vb-overdracht dt { color: rgba(204, 218, 223, .66); }
.vb-overdracht dd { margin: 0; color: rgba(255, 255, 255, .92); }

/* 4. Belt uit: meldingen zoals op een telefoonscherm */
.vb-melding { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .94); border-radius: 16px 22px 16px 16px; box-shadow: 0 1px 2px rgba(1, 30, 38, .05), 0 14px 34px -18px rgba(1, 30, 38, .22); }
.vb-melding time { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.vb-melding.ok { background: var(--ping-soft); }

/* Beweging: alleen met JavaScript verborgen, zodat zonder script alles zichtbaar is */
.js .vb-sc [data-t] { opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .vb-sc [data-t].op { opacity: 1; transform: none; }
.js .vb-sc.klaar [data-t]:not([data-tot]) { opacity: 1; transform: none; }

/* Staart: één rustige rij taken */
.blok3 .actie-blok { margin-top: 56px; }
.blok3 .ticker { gap: 0; min-height: 0; border-top: 0; padding-top: 0; }
.blok3 .ticker-baan { animation-duration: 90s; }
.blok3 .tk { background: var(--canvas); border-color: transparent; }

@media (max-width: 980px) {
  .vb-bento { grid-template-columns: 1fr; gap: 14px; }
  .vb-tegel:nth-child(n) { grid-column: auto; }
  .vb-tegel { min-height: 0; padding: 28px 22px 0; border-radius: 16px 44px 16px 16px; gap: 22px; }
  .vb-tegel h3 { font-size: 24px; }
  .vb-beeld { padding-bottom: 26px; }
}
@media (max-width: 720px) {
  .vb-rij em { display: none; }
  .blok3 .actie-blok { margin-top: 40px; }
  .blok3 .ticker-baan { animation-duration: 60s; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-wave span { animation: none; }
  .js .vb-sc [data-t] { opacity: 1; transform: none; transition: none; }
  .js .vb-bijschrift > div:not(:last-child) { display: none; }
  .vb-tegel, .vb-app { transition: none; }
}
