/* Gedeelde huisstijl — door VoltLogic en Ampflow Energy.
   Licht en vriendelijk: veel wit, één groene actiekleur, grote ronde vlakken zonder schaduw,
   korte teksten en steeds dezelfde hoofdknop. */

:root {
  --b-green: var(--wp--preset--color--green);
  --b-green-dark: var(--wp--preset--color--green-dark);
  --b-ink: var(--wp--preset--color--ink);
  --b-mint: var(--wp--preset--color--mint);
  --b-sun: var(--wp--preset--color--sun);
  --b-stone: var(--wp--preset--color--stone);
  --b-line: var(--wp--preset--color--line);
  --b-radius-lg: 32px;
  --b-radius: 24px;
  --b-section-y: clamp(3.5rem, 8vw, 6rem);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--b-ink); outline-offset: 3px; border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--b-line);
  padding-block: 0.8rem;
}
/* Vast bovenaan bij scrollen. WordPress zet de header in een eigen <header>-wrapper,
   dus die wrapper moet sticky zijn (sticky op het binnenste blok werkt niet). */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child:has(.site-header) {
  position: sticky; top: 0; z-index: 100; margin-block-start: 0;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } } /* daar scrolt de beheerbalk mee */
html { scroll-padding-top: 6rem; }   /* ankerlinks (#plannen) niet onder de balk laten vallen */
.site-brand { gap: 0.6rem; align-items: center; }
.site-brand .wp-block-site-title a { color: var(--b-ink); text-decoration: none; }
.site-actions { gap: 1.5rem; align-items: center; }
.site-actions .wp-block-navigation a { color: var(--b-ink); text-decoration: none; }
.site-actions .wp-block-navigation a:hover { color: var(--b-green-dark); }
.site-header__cta .wp-block-button__link { padding: 0.65em 1.25em; font-size: 1rem; }
/* Mobiel: de knop blijft (belangrijkste actie), maar compact op één regel */
.site-header .site-header__cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 781px) {
  .site-header .site-actions { gap: 0.9rem; }
  .site-header .site-header__cta .wp-block-button__link { padding: 0.55em 1em; font-size: 0.92rem; }
}
@media (max-width: 380px) { .site-header .site-brand .wp-block-site-title { display: none; } }
/* VoltLogic: geen winkelwagen of account in de balk (vangnet naast de filter in functions.php) */
.vl-merk-voltlogic .site-header .wp-block-woocommerce-mini-cart,
.vl-merk-voltlogic .site-header .wp-block-woocommerce-customer-account { display: none !important; }

/* ---------- knoppen ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--b-ink); border: 2px solid var(--b-line);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--b-ink); background: transparent; color: var(--b-ink); }

/* ---------- hero ---------- */
.vl-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.vl-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.vl-hero__lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; max-width: 42ch; color: #2E4A40; }
.vl-hero .wp-block-buttons { margin-top: 1.75rem; gap: 0.75rem; }
.vl-hero__art { margin: 0; }
.vl-hero__art img {
  width: 100%; display: block; background: var(--b-mint); border-radius: var(--b-radius-lg);
  padding: clamp(1rem, 3vw, 2rem); box-sizing: border-box;
}

/* vinkjes-lijst (USP's in de hero en elders) */
.vl-usp { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.vl-usp li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; font-size: 1.0625rem; }
.vl-usp li::before {
  content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; margin-top: 0.05rem;
  background: var(--b-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- tabbalk onder de hero ---------- */
.vl-tabs {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding: 0.4rem; background: var(--b-mint); border-radius: 999px; width: max-content; max-width: 100%;
}
.vl-tabs::-webkit-scrollbar { display: none; }
.vl-tabs a {
  flex: none; padding: 0.6rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 0.975rem;
  color: var(--b-ink); text-decoration: none; white-space: nowrap;
}
.vl-tabs a:hover { background: #fff; }

/* ---------- secties ---------- */
.vl-section { padding-block: var(--b-section-y); }
.vl-section--mint { background: var(--b-mint); }
.vl-section > h2:first-child, .vl-section > .wp-block-heading:first-child { margin-top: 0; }
.vl-intro { font-size: var(--wp--preset--font-size--large); color: #2E4A40; max-width: 52ch; }
.vl-note { font-size: var(--wp--preset--font-size--small); color: var(--b-stone); max-width: 64ch; }
.is-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: #2E4A40; }
.vl-noot { font-size: .85rem; opacity: .85; margin-top: 2rem; }
.vl-tag-test { display: inline-block; margin-left: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--b-sun, #FFC83D); color: #0F2A22; font-size: .8rem; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
.vl-section--mint .vls, .vl-section--mint .vl-wachtlijst input { background: var(--vl-surface, #fff); }

/* ---------- kaarten ---------- */
.vl-cards { gap: 1.25rem; margin-top: 2rem; }
.vl-card { background: var(--b-mint); border-radius: var(--b-radius); padding: 1.75rem; }
.vl-section--mint .vl-card { background: #fff; }
.vl-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.vl-card p { margin: 0; color: #2E4A40; }
.vl-card .wp-block-image { margin: -0.25rem -0.25rem 1.25rem; }
.vl-card .wp-block-image img { width: 100%; border-radius: calc(var(--b-radius) - 6px); display: block; }
.vl-card h3 a { color: var(--b-ink); text-decoration: none; }
.vl-card h3 a:hover { color: var(--b-green-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* beeld + tekst naast elkaar */
.vl-media img { width: 100%; display: block; background: var(--b-mint); border-radius: var(--b-radius-lg); padding: clamp(1rem, 3vw, 2rem); box-sizing: border-box; }
.vl-section--mint .vl-media img { background: #fff; }

/* ---------- stappen (alleen voor echte volgordes) ---------- */
.vl-steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.vl-steps li { counter-increment: step; background: #fff; border-radius: var(--b-radius); padding: 1.6rem; }
.vl-section:not(.vl-section--mint) .vl-steps li { background: var(--b-mint); }
.vl-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--b-sun); color: var(--b-ink); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.vl-steps strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.vl-steps--list { grid-template-columns: 1fr; gap: 0.75rem; }
.vl-steps--list li { display: grid; grid-template-columns: 3.25rem 1fr; align-items: start; padding: 1.25rem 1.5rem; }
.vl-steps--list li::before { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
.vl-steps--list li > strong { grid-column: 2; }   /* de losse tekst na de kop valt dan in kolom 2, rij 2 */

/* ---------- prijzen ---------- */
.vl-prices { gap: 1.25rem; margin-top: 2rem; }
.vl-price { background: #fff; border: 2px solid var(--b-line); border-radius: var(--b-radius); padding: 2rem; }
.vl-price--extra { border-color: var(--b-sun); background: #FFFBEF; }
.vl-price h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.vl-price__amount { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--b-green-dark); margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
.vl-price p:last-child { color: #2E4A40; margin-bottom: 0; }

/* ---------- tabellen ---------- */
.vl-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.vl-table th, .vl-table td { border: 0; border-bottom: 1px solid var(--b-line); padding: 1rem 1rem 1rem 0; text-align: left; vertical-align: top; }
.vl-table thead th { font-size: var(--wp--preset--font-size--small); color: var(--b-stone); font-weight: 600; border-bottom: 2px solid var(--b-ink); }
.vl-table tbody td:first-child { font-weight: 700; }
.vl-table--sum td:last-child { text-align: right; }
.vl-table--sum tr:last-child td { border-bottom: 3px solid var(--b-green); font-size: 1.15rem; }
.vl-table figcaption { color: var(--b-stone); font-size: 0.875rem; }

/* ---------- vragen ---------- */
.vl-faq { background: #fff; border-radius: 18px; padding: 1.1rem 1.4rem; margin-block: 0.6rem; }
.vl-section:not(.vl-section--mint) .vl-faq, .page-main .vl-faq { background: var(--b-mint); }
.vl-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.vl-faq summary::-webkit-details-marker { display: none; }
.vl-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--b-green-dark); }
.vl-faq[open] summary::after { content: "–"; }
.vl-faq p { margin: 0.75rem 0 0; color: #2E4A40; }

/* ---------- afsluitende call-to-action ---------- */
.vl-cta { background: var(--b-green); color: #fff; border-radius: var(--b-radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.vl-cta h2 { color: #fff; margin-top: 0; max-width: 20ch; }
.vl-cta p { color: #E4F6EC; max-width: 48ch; }
.vl-cta .wp-block-button__link { background: #fff; color: var(--b-green-dark); }
.vl-cta .wp-block-button__link:hover { background: var(--b-ink); color: #fff; }
.vl-cta-wrap { padding-block: var(--b-section-y); }

/* ---------- pagina's ---------- */
.page-main { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--b-section-y); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.page-cta { margin-top: 2.5rem; }
.vl-contact { font-size: var(--wp--preset--font-size--large); line-height: 1.7; }

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img { border-radius: 20px; background: var(--b-mint); }
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--b-ink); font-weight: 800; }
.woocommerce span.onsale { background: var(--b-sun); color: var(--b-ink); }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  border-radius: 999px; background: var(--b-green); color: #fff; font-weight: 700;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--b-green-dark); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--b-ink); color: #B9CEC4; padding-block: 3.5rem 2rem; }
.site-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-block: 0.35rem; }
.site-footer__blurb { max-width: 36ch; margin-top: 1rem !important; }
.site-footer__head { font-size: var(--wp--preset--font-size--small); color: #7FA293; font-weight: 600; letter-spacing: 0; }
.site-footer .vl-contact { font-size: 1rem; }
.site-footer .wp-block-site-logo img { background: #fff; border-radius: 10px; padding: 3px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; }
.vl-legal { font-size: 0.875rem; color: #7FA293; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (min-width: 782px) { html { scroll-behavior: smooth; scroll-padding-top: 6rem; } }

/* ---------- uitlijning: alles in secties op de brede rand, tekst begrensd op leesbare regellengte ---------- */
.site-header__bar { justify-content: space-between; }
.vl-hero.is-layout-constrained > :not(.alignfull),
.vl-section.is-layout-constrained > :not(.alignfull) { max-width: var(--wp--style--global--wide-size, 1200px); }
.vl-section > p, .vl-section > .wp-block-paragraph { max-width: 62ch; }
.vl-tabs { width: 100%; margin-top: clamp(2rem, 4vw, 3rem) !important; border-radius: 999px; }
.vl-cta.is-layout-constrained > *,
.site-footer__legal.is-layout-constrained > * { margin-left: 0 !important; }
.site-footer__legal.is-layout-constrained > * { max-width: none; }

/* koppen nooit midden in een woord afbreken; liever iets kleiner op smalle schermen */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.vl-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
@media (max-width: 420px) { .vl-hero h1 { font-size: 2.1rem; } }

/* =====================================================================
   Dark mode — volgt automatisch de systeeminstelling van de bezoeker.
   De kleurvariabelen worden omgezet; plekken met vaste kleuren apart.
   ===================================================================== */
:root { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  /* hogere specificiteit dan WordPress' eigen :root/body-variabelen, ongeacht de laadvolgorde */
  html:root, html body {
    --wp--preset--color--white: #0E1714;      /* achtergrond */
    --wp--preset--color--ink: #E6F0EB;        /* tekst */
    --wp--preset--color--mint: #15231E;       /* zachte vlakken */
    --wp--preset--color--line: #2A3B34;
    --wp--preset--color--stone: #9DB2A8;
    --wp--preset--color--green: #1FA572;
    --wp--preset--color--green-dark: #5ED3A0; /* links: licht genoeg op donker */
    --vl-text-soft: #B6CBC1;
    --vl-surface: #111D19;                    /* kaarten op een zacht vlak */
  }

  body { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }

  /* header */
  .site-header { background: rgba(14, 23, 20, .92); border-bottom-color: var(--b-line); }
  .site-header .wp-block-site-logo img { background: #E6F0EB; border-radius: 10px; padding: 3px; }

  /* zachtere tekstkleur die eerst donkergroen was */
  .vl-hero__lead, .vl-intro, .is-lead, .vl-card p, .vl-faq p, .vl-price p:last-child { color: var(--vl-text-soft); }

  /* vlakken die eerst wit waren */
  .vl-section--mint .vl-card, .vl-steps li, .vl-faq,
  .vl-section--mint .vl-media img, .vl-tabs a:hover { background: var(--vl-surface); }
  .vl-section:not(.vl-section--mint) .vl-steps li,
  .vl-section:not(.vl-section--mint) .vl-faq, .page-main .vl-faq { background: var(--b-mint); }
  .vl-price { background: var(--vl-surface); border-color: var(--b-line); }
  .vl-price--extra { background: #262010; border-color: var(--b-sun); }
  .vl-price__amount { color: var(--b-green-dark); }

  /* donkere tekst op geel blijft donker */
  .vl-steps li::before, .af-price__vat { color: #0F2A22; }
  .af-price__vat { border-color: #0F2A22; }
  .af-price__key { border-color: var(--b-ink); }

  /* knoppen */
  .wp-block-button.is-style-outline .wp-block-button__link { color: var(--b-ink); border-color: var(--b-line); }
  .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--b-ink); color: var(--b-ink); }
  .vl-cta { background: #137A55; }
  .vl-cta .wp-block-button__link { background: #FFFFFF; color: #0E7550; }
  .vl-cta .wp-block-button__link:hover { background: #0E1714; color: #FFFFFF; }

  /* footer blijft donker, iets dieper dan de pagina */
  .site-footer { background: #08110E; border-top: 1px solid var(--b-line); }

  /* tabel en rekenvoorbeeld */
  .vl-table thead th { border-bottom-color: var(--b-ink); }

  /* WooCommerce en Amelia: invoervelden volgen color-scheme; productbeelden een licht vlak */
  .woocommerce ul.products li.product a img, .wc-block-components-product-image img { background: #E8F5EE; }

  /* Akte van Cessie: handtekeningvak blijft wit, zodat de handtekening goed zichtbaar is */
  .af-cessie { background: var(--b-mint); }
  .af-cessie__tekst { background: var(--vl-surface); color: var(--b-ink); }
}
