/* Gekopieerd uit NorthByte Lab: /home/user/nb-lab/lab/effecten/E521-drie-pakketten/effect.css (04-10-2026), ongewijzigd. */
/* ==========================================================================
   E521 · Drie pakketten vergelijken
   Een vergelijkingstabel voor drie pakketten. Op een groot scherm schuift een
   lichte band achter de kolom waar je naar kijkt; op de telefoon zie je één
   pakket tegelijk naast de onderdelen en wissel je met knoppen of door te
   vegen. Alleen transform en opacity bewegen.
   Instellen op .e521 met CSS-variabelen:
     --e521-accent   kleur van accenten en de uitgelichte knop  (standaard #2f5d46)
     --e521-band     kleur van de band achter een kolom          (standaard rgba(47,93,70,.09))
     --e521-lijn     lijnen in de tabel                         (standaard rgba(0,0,0,.1))
   ========================================================================== */

.e521 { position: relative; color: inherit; }
.e521-kiezer[hidden] { display: none; }
.e521-schuif { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.e521-tabel { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; table-layout: fixed; position: relative; z-index: 1; }
.e521-tabel caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.e521-tabel th, .e521-tabel td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--e521-lijn, rgba(0, 0, 0, .1)); vertical-align: middle; font-size: 15px; }
.e521-tabel tbody th { text-align: left; font-weight: 500; width: 34%; }
.e521-tabel thead th { vertical-align: bottom; padding-top: 22px; border-bottom-width: 2px; }
.e521-naam { display: block; font-size: 19px; font-weight: 700; }
.e521-prijs { display: block; margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.e521-prijs small { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; opacity: .7; }
.e521-label { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--e521-accent, #2f5d46); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.e521-ja, .e521-nee { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; position: relative; }
.e521-ja { background: var(--e521-accent, #2f5d46); }
.e521-ja::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.e521-nee { background: rgba(127, 127, 127, .16); }
.e521-nee::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: rgba(127, 127, 127, .7); border-radius: 1px; }
.e521-tabel tfoot td { border-bottom: 0; padding-top: 18px; }
.e521-kies {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid currentColor; color: inherit; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap;
}
.e521-uit .e521-kies, .e521-kies.e521-uit { background: var(--e521-accent, #2f5d46); border-color: var(--e521-accent, #2f5d46); color: #fff; }
.e521-kies:focus-visible { outline: 2px solid var(--e521-accent, #2f5d46); outline-offset: 3px; }

/* Band achter de gekozen of aangewezen kolom (groot scherm) */
.e521-band { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 18px; background: var(--e521-band, rgba(47, 93, 70, .09)); pointer-events: none; }

/* Telefoon met JavaScript: één pakket tegelijk */
.e521-kiezer { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; padding: 4px; border-radius: 999px; border: 1px solid var(--e521-lijn, rgba(0, 0, 0, .14)); }
.e521-kiezer button { position: relative; z-index: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 14px; }
.e521-kiezer button[aria-pressed="true"] { color: #fff; }
.e521-kiezer button:focus-visible { outline: 2px solid var(--e521-accent, #2f5d46); outline-offset: 2px; }
.e521-kiezer::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px;
  background: var(--e521-accent, #2f5d46); transform: translate3d(calc(var(--e521-plek, 1) * 100%), 0, 0);
}
@media (min-width: 700px) { .e521-kiezer { display: none; } }
@media (max-width: 699px) {
  .e521-klaar .e521-schuif { overflow: visible; touch-action: pan-y; }
  .e521-klaar .e521-tabel { min-width: 0; }
  .e521-klaar .e521-band { display: none; }
  .e521-klaar .e521-tabel tbody th { width: 52%; }
  .e521-klaar[data-e521-toon="1"] .e521-tabel tr > :nth-child(3), .e521-klaar[data-e521-toon="1"] .e521-tabel tr > :nth-child(4),
  .e521-klaar[data-e521-toon="2"] .e521-tabel tr > :nth-child(2), .e521-klaar[data-e521-toon="2"] .e521-tabel tr > :nth-child(4),
  .e521-klaar[data-e521-toon="3"] .e521-tabel tr > :nth-child(2), .e521-klaar[data-e521-toon="3"] .e521-tabel tr > :nth-child(3) { display: none; }
  .e521-klaar .e521-tabel tbody td, .e521-klaar .e521-tabel thead th:not(:first-child) { background: var(--e521-band, rgba(47, 93, 70, .09)); }
  .e521-klaar .e521-kies { padding: 0 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-rm]) .e521-band { transition: transform .45s cubic-bezier(.2, .9, .25, 1); }
  html:not([data-rm]) .e521-kiezer::before { transition: transform .4s cubic-bezier(.3, 1.3, .45, 1); }
  html:not([data-rm]) .e521-wissel td, html:not([data-rm]) .e521-wissel thead th:not(:first-child) { animation: e521-in .4s ease both; }
}
@keyframes e521-in { from { opacity: 0; transform: translate3d(12px, 0, 0); } to { opacity: 1; transform: none; } }
