/* Janssens Technics, proefversie 24/10/2026. Richting en tokens: zie DESIGN.md. */

@font-face { font-family: 'Bricolage'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/fonts/v1/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(/fonts/v1/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Hanken'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/fonts/v1/hanken-grotesk-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Hanken'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/fonts/v1/hanken-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* reserveletters met ongeveer dezelfde breedte, zodat er niets verspringt als de echte letters binnenkomen */
@font-face { font-family: 'Bricolage-reserve'; src: local('Arial'); size-adjust: 104%; }
@font-face { font-family: 'Hanken-reserve'; src: local('Arial'); size-adjust: 98%; }

/* ── TOKENS ── */
:root {
    --inkt: #0F1B26; --inkt-2: #3D4B57;
    --blauw: #1196DF;          /* het blauw van het logo: vlakken en balken, nooit als kleine tekst op wit */
    --blauw-d: #0A6FAD;        /* knoppen en links (wit erop: 5,4:1) */
    --blauw-d2: #085A8C;
    --blauw-licht: #7CC4EE;
    --ijs: #EDF5FB; --ijs-2: #E1EDF6;
    --nacht: #0D2738;          /* het ene donkere vlak */
    --wit: #FFFFFF;
    --r: 4px;
    --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;
    --kop-h: 64px;
    --letter-kop: 'Bricolage', 'Bricolage-reserve', system-ui, sans-serif;
    --letter: 'Hanken', 'Hanken-reserve', system-ui, sans-serif;
}

/* ── BASIS ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kop-h) + 16px); scroll-padding-bottom: 90px; }
body { margin: 0; background: var(--wit); color: var(--inkt); font: 400 1.125rem/1.5 var(--letter); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--letter-kop); font-weight: 700; line-height: 1.12; margin: 0 0 var(--s3); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.25rem; margin-bottom: var(--s2); }
p { margin: 0 0 var(--s3); }
a { color: var(--blauw-d); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blauw-d); outline-offset: 3px; }
.vlak a:focus-visible, .vlak button:focus-visible, .lb button:focus-visible { outline-color: var(--wit); }
.wrap { width: min(100% - 2 * var(--s3), 72rem); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icn { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: var(--s3); top: -100px; z-index: 50; background: var(--inkt); color: var(--wit); padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: var(--s2); }
.intro { font-size: 1.2rem; color: var(--inkt-2); max-inline-size: 40ch; }
.klein-uitleg { color: var(--inkt-2); font-size: 1rem; }

/* ── KNOPPEN (altijd gevuld) ── */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px;
    background: var(--blauw-d); color: var(--wit); border-radius: var(--r); font: 700 1.0625rem/1.2 var(--letter); text-decoration: none; white-space: nowrap; }
.knop-licht { background: var(--ijs-2); color: var(--inkt); }
.knop-klein { min-height: 44px; padding: 8px 16px; }
.knop-groot { min-height: 56px; font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) {
    .knop:hover { background: var(--blauw-d2); }
    .knop-licht:hover { background: #D2E4F1; }
}
.tekstlink { font-weight: 700; }

/* ── KOP ── */
.kop { position: sticky; top: 0; z-index: 30; background: var(--wit); box-shadow: 0 1px 0 rgba(15, 27, 38, .08); }
.kop-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--kop-h); gap: var(--s3); }
.merk { display: flex; align-items: center; gap: 10px; color: var(--inkt); text-decoration: none; min-height: 44px; }
.merk img { width: auto; height: 40px; }
.merk span { font: 700 1.15rem/1 var(--letter-kop); }
.menu-knop { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--r);
    background: var(--ijs-2); color: var(--inkt); font: 700 1rem var(--letter); cursor: pointer; }
.lijnen, .lijnen::before, .lijnen::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.lijnen::before, .lijnen::after { content: ""; position: absolute; left: 0; }
.lijnen::before { top: -6px; } .lijnen::after { top: 6px; }
.menu-knop[aria-expanded="true"] .lijnen { background: transparent; }
.menu-knop[aria-expanded="true"] .lijnen::before { top: 0; transform: rotate(45deg); }
.menu-knop[aria-expanded="true"] .lijnen::after { top: 0; transform: rotate(-45deg); }
.menu a:not(.knop) { color: var(--inkt); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"]:not(.knop) { color: var(--blauw-d); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }

@media (max-width: 63.99em) {
    .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wit); padding: var(--s2) var(--s3) var(--s4);
        box-shadow: 0 12px 24px rgba(15, 27, 38, .12); flex-direction: column; }
    .menu.open { display: flex; }
    .menu a:not(.knop) { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; }
    .menu .knop { margin-top: var(--s2); }
}
@media (min-width: 64em) {
    .menu-knop, .m-gsm { display: none; }
    .menu { display: flex; align-items: center; gap: var(--s5); }
    .menu a:not(.knop) { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── HERO ── */
.hero { padding: var(--s4) 0 var(--s6); }
.hero-in { display: grid; gap: var(--s5); align-items: center; }
.hero h1 { max-inline-size: 16ch; }
.acties { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.hero-foto img { width: 100%; border-radius: var(--r); }
@media (max-width: 29.99em) { .acties .knop { flex: 1 1 100%; } }
@media (min-width: 48em) {
    .hero { padding: var(--s6) 0 var(--s7); }
    .hero-in { grid-template-columns: 1.05fr .95fr; gap: var(--s6); }
}

/* ── FEITEN ── */
.feiten { background: var(--ijs); padding: var(--s5) 0; }
.feiten-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.feiten-lijst li { display: flex; gap: 12px; align-items: flex-start; }
.feiten-lijst .icn { color: var(--blauw-d); stroke-width: 3; margin-top: 3px; }
.feiten-lijst strong { display: block; font-family: var(--letter-kop); font-size: 1.2rem; line-height: 1.2; }
.feiten-lijst span { color: var(--inkt-2); }
@media (min-width: 36em) { .feiten-lijst { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .feiten-lijst { grid-template-columns: repeat(4, 1fr); } }

/* ── BLOKKEN ── */
.blok { padding: var(--s6) 0; }
.blok-ijs { background: var(--ijs); }
.blok-kop { max-inline-size: 44rem; margin-bottom: var(--s4); }
.blok-kop p { color: var(--inkt-2); }
.meer { margin: var(--s4) 0 0; }
@media (min-width: 48em) { .blok { padding: var(--s7) 0; } }

.greep { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.greep img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (min-width: 48em) { .greep { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

/* ── HET DONKERE VLAK ── */
.vlak { background: var(--nacht); color: var(--wit); padding: var(--s6) 0; }
.vlak-in { display: grid; gap: var(--s5); }
.vlak-intro { font-size: 1.25rem; color: rgba(255, 255, 255, .9); max-inline-size: 36ch; }
.balken { margin: 0; display: grid; gap: var(--s4); }
.balken figcaption { font-weight: 700; color: rgba(255, 255, 255, .86); }
.balk { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.balk-naam { color: rgba(255, 255, 255, .9); }
.balk-baan { grid-column: 1 / -1; grid-row: 2; display: block; height: 22px; background: rgba(255, 255, 255, .12); border-radius: var(--r); overflow: hidden; }
.balk-vul { display: block; height: 100%; transform-origin: left center; border-radius: var(--r); }
/* schaal: de hele baan = 5 kWh. Airco: 3 kWh vol + tot 5 kWh lichter (het bereik "3 à 5"). Gas: 1 kWh. */
.balk-airco { width: 100%; background: linear-gradient(90deg, var(--blauw) 0 60%, var(--blauw-licht) 60% 100%); }
.balk-gas { width: 20%; background: var(--blauw-licht); }
.balk-getal { font: 700 1.25rem/1 var(--letter-kop); text-align: right; }
.vlak-meer { display: grid; gap: var(--s5); }
.vlak-meer h3 { color: var(--wit); }
.vlak-meer p { color: rgba(255, 255, 255, .86); margin: 0; }
@media (min-width: 48em) {
    .vlak { padding: var(--s7) 0; }
    .vlak-in { grid-template-columns: 1fr 1fr; column-gap: var(--s6); align-items: center; }
    .vlak-meer { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: var(--s5); padding-top: var(--s3); }
}
.js.mok .balk-vul { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.js.mok .balk + .balk .balk-vul { transition-delay: .25s; }
.js.mok .balken.in .balk-vul { transform: none; }

/* ── REVIEWS ── */
.reviews { display: grid; gap: var(--s3); }
.reviews blockquote { margin: 0; background: var(--ijs); border-radius: var(--r); padding: var(--s4); display: flex; flex-direction: column; justify-content: space-between; }
.reviews blockquote p { font-size: 1.15rem; }
.reviews footer { color: var(--inkt-2); font-weight: 600; }
@media (min-width: 48em) { .reviews { grid-template-columns: repeat(3, 1fr); } .reviews-een { grid-template-columns: minmax(0, 46rem); } }

/* ── TEKST + FOTO NAAST ELKAAR ── */
.duo { display: grid; gap: var(--s5); align-items: center; }
.duo-foto { width: 100%; max-width: 280px; border-radius: var(--r); }
@media (min-width: 48em) { .duo-foto { max-width: 360px; } }
@media (min-width: 48em) { .duo { grid-template-columns: 1fr 360px; gap: var(--s6); } }

/* ── AFSLUITER ── */
.slot { padding: var(--s6) 0 var(--s7); text-align: center; }
.slot p { color: var(--inkt-2); }

/* ── ANDERE PAGINA'S ── */
.pagina-kop { padding: var(--s4) 0 var(--s5); }
@media (min-width: 48em) { .pagina-kop { padding: var(--s6) 0; } }
.sprong { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.sprong a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--ijs-2); color: var(--inkt); border-radius: var(--r); font-weight: 700; text-decoration: none; }

.galerij-blok { padding: 0 0 var(--s6); }
.galerij-blok h2 { margin-bottom: var(--s2); }
.galerij-uitleg { color: var(--inkt-2); max-inline-size: 52ch; }
.galerij { columns: 2; column-gap: var(--s2); margin-top: var(--s3); }
.galerij a { display: block; margin-bottom: var(--s2); break-inside: avoid; border-radius: var(--r); }
.galerij img { width: 100%; border-radius: var(--r); background: var(--ijs); }
@media (min-width: 48em) { .galerij { columns: 3; column-gap: 12px; } .galerij a { margin-bottom: 12px; } }
@media (min-width: 75em) { .galerij { columns: 4; } }

.erkend { display: grid; gap: var(--s2); margin: 0; }
.erkend div { background: var(--wit); border-radius: var(--r); padding: var(--s3) var(--s4); }
.erkend dt { font-weight: 700; }
.erkend dd { margin: 4px 0 0; color: var(--inkt-2); overflow-wrap: anywhere; }
@media (min-width: 48em) { .erkend { grid-template-columns: 1fr 1fr; gap: 12px; } }
.gebied { font-size: 1.2rem; }

.contact-knoppen { display: grid; gap: 12px; margin-top: var(--s4); max-width: 26rem; }
.mailadres { margin-top: var(--s3); }
.mailadres a { display: inline-block; padding: 10px 0; margin: -10px 0; overflow-wrap: anywhere; }
.vinklijst { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: 12px; }
.vinklijst li { display: flex; gap: 12px; align-items: flex-start; }
.vinklijst .icn { color: var(--blauw-d); stroke-width: 3; margin-top: 3px; }
.vinklijst a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; }
.leestekst { max-inline-size: 66ch; }
.leestekst h2 { font-size: 1.5rem; margin-top: var(--s5); }

/* ── GROTE FOTO ── */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(8, 18, 26, .94); color: var(--wit); }
.lb::backdrop { background: rgba(8, 18, 26, .94); }
.lb figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 16px 96px; }
.lb img { max-width: 100%; max-height: calc(100svh - 190px); width: auto; border-radius: var(--r); }
.lb figcaption { text-align: center; max-width: 40rem; }
.lb-knop { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--wit); color: var(--inkt); cursor: pointer; }
.lb-sluit { top: 12px; right: 12px; }
.lb-vorige { bottom: 20px; left: calc(50% - 64px); }
.lb-volgende { bottom: 20px; left: calc(50% + 12px); }
@media (min-width: 48em) {
    .lb-vorige { bottom: auto; top: calc(50% - 26px); left: 16px; }
    .lb-volgende { bottom: auto; top: calc(50% - 26px); left: auto; right: 16px; }
}

/* ── VOET ── */
.voet { background: var(--ijs-2); padding: var(--s6) 0 var(--s4); font-size: 1rem; }
.voet-grid { display: grid; gap: var(--s4); }
.voet p { margin-block: 0; line-height: 1.6; }
.voet a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.voet-naam { font: 700 1.25rem var(--letter-kop); margin-bottom: var(--s2) !important; }
.voet-copy { margin-top: var(--s5) !important; color: var(--inkt-2); }
@media (min-width: 48em) { .voet-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ── GSM-ONDERBALK ── */
.onderbalk { display: none; }
@media (max-width: 63.99em) {
    .onderbalk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1fr;
        background: var(--wit); box-shadow: 0 -1px 0 rgba(15, 27, 38, .1); padding-bottom: env(safe-area-inset-bottom); }
    /* startpagina: pas tonen als de knoppen bovenaan uit beeld zijn (zonder JavaScript staat hij er altijd) */
    .js .start .onderbalk:not(.aan) { visibility: hidden; transform: translateY(100%); }
    .onderbalk a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
        color: var(--inkt); text-decoration: none; font-weight: 700; font-size: 1rem; position: relative; }
    .onderbalk a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--blauw); }
    .onderbalk .ob-bel { background: var(--blauw-d); color: var(--wit); }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (max-width: 63.99em) and (prefers-reduced-motion: no-preference) {
    .onderbalk { transition: transform .25s ease, visibility .25s; }
}
