/* Ontwerp E — gedeelde opmaak van alle pagina's: basis, header, menu, hero, de sectiepatronen
   van de homepage en het contactblok. Waarden komen uit tokens.css; de regels staan in
   ../../../DESIGN.md. Patronen die alleen de subpagina's nodig hebben: pages.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--dark-gray);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--purposium); outline-offset: 3px; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.asym { display: grid; grid-template-columns: var(--grid-asym); gap: var(--column-gap); }
.kop {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  hyphens: manual; -webkit-hyphens: manual; /* alleen afbreken op een &shy; in de bron */
  line-height: var(--leading-heading);
  color: var(--navy);
}
/* een woord met een &shy; schuift eerst als geheel door; het breekt alleen als het breder is dan de kolom */
.kop .woord { display: inline-block; max-width: 100%; }

.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 60;
  transform: translateY(-120%);
  background: var(--navy); color: var(--white);
  padding: 12px 18px; font-weight: 650; text-decoration: none;
}
.skip:focus-visible { transform: none; outline-color: var(--soft-blue); }

.btn {
  display: inline-block; font: inherit; font-weight: 650; font-size: var(--text-body-sm);
  text-decoration: none; padding: 16px 26px; border: 0; cursor: pointer;
  background: var(--purposium); color: var(--white);
}
.btn:hover { background: var(--purposium-hover); }
.btn:disabled { cursor: progress; background: var(--purposium-hover); }

/* doorlink van een homepagesectie naar zijn subpagina */
.door {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  font-weight: 650; color: var(--purposium); text-underline-offset: 5px;
}
.door svg { width: 18px; height: 18px; flex: none; }
.donker .door { color: var(--soft-blue); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.top .wm { height: var(--logo-h); width: auto; color: var(--navy); }
.menuknop {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--navy);
}
.menuknop svg { width: 26px; height: 26px; }
.menuknop:hover { color: var(--purposium); }

/* hero: alleen de kop en het beeld */
.hero { padding: 48px 0 112px; }
.hero .asym { align-items: end; }
/* de vraag boven de zware regels: gewone tekst, niet gefit */
.hero h1 .vraagregel {
  display: block; margin-bottom: 0.9em;
  font-family: var(--font-body); font-weight: 650; font-size: var(--text-lead);
  line-height: 1.2; text-transform: none; color: var(--navy);
}
.hero h1 .r { display: block; white-space: nowrap; font-size: clamp(3.5rem, 6vw, 6rem); }
.hero h1 .vol { color: var(--navy); }
.hero h1 .hol { color: transparent; -webkit-text-stroke: var(--outline-hollow) var(--navy); paint-order: stroke; }
.hero h1 .bouw { color: var(--purposium); }
/* een regel die op een komma eindigt: ruimte eronder zodat de komma de regel eronder niet raakt */
.hero h1 .leesteken { padding-bottom: var(--heading-clear-punct); }

.beeld { border-top: var(--rule-heavy) solid var(--navy); padding-top: 20px; }
.beeld .titel { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.beeld .beeldtitel { font-size: 1.1875rem; font-weight: 650; color: var(--navy); }
.opnieuw {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--purposium); background: var(--white); color: var(--purposium);
  cursor: pointer; display: grid; place-items: center;
  transition: background 300ms var(--ease-move), color 300ms var(--ease-move);
}
.opnieuw svg { width: 20px; height: 20px; }
.opnieuw:hover { background: var(--purposium); color: var(--white); }
.rijlabel { font-size: var(--text-small); color: var(--slate); margin: 22px 0 10px; }
.stappen { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--joint); }
.stap {
  min-height: 88px; padding: 12px 12px 10px;
  background: var(--light-gray); color: var(--dark-gray);
  font-size: var(--text-small); font-weight: 600; line-height: 1.25;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 2px solid transparent;
  transition: background var(--dur-roll) var(--ease-move), color var(--dur-roll) var(--ease-move), border-color var(--dur-roll) var(--ease-move);
}
.stap small { font-weight: 400; font-size: 0.8125rem; }
.stap.hand { background: var(--pale-blue); border: 2px dashed var(--navy); color: var(--navy); }
.stap.hand small::before { content: "Met de hand"; }
.stap.auto { background: var(--purposium); color: var(--white); border-color: var(--purposium); }
.stap.auto small::before { content: "Automatisch"; }
.stap.vast small::before { content: "Blijft"; }

.balk { position: relative; display: flex; height: 64px; gap: 3px; }
.seg {
  flex: var(--g) 1 0; min-width: 0;
  transition: flex-grow var(--dur-step) var(--ease-move), background var(--dur-roll) var(--ease-move);
  display: flex; align-items: center; padding: 0 12px;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; color: var(--dark-gray);
}
.seg.inkoop { --g: 5; background: var(--light-gray); }
.seg.overig { --g: 2; background: var(--light-gray); }
.seg.h {
  --g: 1; padding: 0;
  background: repeating-linear-gradient(135deg, var(--soft-blue) 0 3px, var(--pale-blue) 3px 10px);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.seg.h.weg { --g: 0.14; background: var(--navy); }
.seg.marge { --g: 1.5; background: var(--purposium); color: var(--white); padding-left: 16px; }
.voor { position: absolute; top: -10px; bottom: -30px; left: 88%; border-left: 2px dashed var(--navy); pointer-events: none; }
.voor span { position: absolute; top: 100%; right: 8px; font-size: 0.8125rem; white-space: nowrap; margin-top: -18px; color: var(--navy); }
.legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; font-size: 0.875rem; list-style: none; }
.legenda li { display: flex; align-items: center; gap: 8px; }
.legenda i { width: 16px; height: 16px; display: inline-block; }
.legenda .l-vast { background: var(--light-gray); }
.legenda .l-hand {
  background: repeating-linear-gradient(135deg, var(--soft-blue) 0 2px, var(--pale-blue) 2px 6px);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.legenda .l-auto { background: var(--navy); }
.legenda .l-marge { background: var(--purposium); }
.bijschrift { margin-top: 18px; font-size: var(--text-small); color: var(--slate); max-width: 62ch; }

/* intro: de belofte, onder de hero */
.intro { background: var(--pale-blue); padding: 88px 0; }
.intro p { font-size: var(--text-lead); line-height: 1.4; color: var(--navy); max-width: 40ch; }
.intro .label { font-size: var(--text-body-sm); font-weight: 650; color: var(--navy); padding-top: 8px; }
.intro .acts { margin-top: 32px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.intro .link {
  font-weight: 600; color: var(--navy);
  text-decoration-color: var(--purposium); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.intro .link:hover { text-decoration-color: var(--navy); }

/* secties */
.blok { padding: var(--section-y) 0; }
.blok h2.kop { font-size: var(--text-h2); line-height: var(--leading-heading-open); overflow-wrap: break-word; }
/* lang: een kop met een woord dat in de linkerkolom op --text-h2 niet past ("automatiseringstraject")
   staat over de volle breedte, de blokken eronder in de brede kolom; onder 620px --text-h3 */
@media (min-width: 981px) {
  .asym.kopbreed > :first-child { grid-column: 1 / -1; }
  .asym.kopbreed > :nth-child(2) { grid-column: 2; }
}

.laag { padding: 28px 0 32px; border-top: var(--rule-heavy) solid var(--navy); }
.laag h3 { font-size: var(--text-h3); overflow-wrap: break-word; }
.laag ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.laag li { font-size: 1rem; color: var(--slate); line-height: 1.5; }
.laag li b { display: block; color: var(--navy); font-weight: 650; font-size: var(--text-body-sm); margin-bottom: 4px; }

.reeks { list-style: none; counter-reset: s; }
.reeks li {
  counter-increment: s; display: grid; grid-template-columns: clamp(72px, 8vw, 120px) 1fr; gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--light-gray);
}
.reeks li::before {
  content: counter(s); font-family: var(--font-heading); font-weight: 900;
  font-size: var(--text-numeral); line-height: 0.8; color: var(--purposium);
}
.reeks h3 { font-size: var(--text-h3-sm); }
.reeks p { margin-top: 8px; color: var(--slate); max-width: 52ch; }

.donker { background: var(--navy); color: var(--navy-text-muted); }
.donker .kop { color: var(--white); }
.donker .reeks li { border-top-color: var(--navy-line); }
.donker .reeks li::before { color: var(--soft-blue); }
.donker .reeks p { color: var(--navy-text-muted); }
.donker :focus-visible { outline-color: var(--soft-blue); }

.prijs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--joint); align-items: stretch; }
.prijs > div { background: var(--pale-blue); padding: 28px 24px 32px; }
.prijs > div:last-child { background: var(--navy); color: var(--white); }
.prijs > div:last-child h3 { color: var(--soft-blue); }
.prijs h3 { font-size: 2.75rem; }
.prijs p { margin-top: 14px; font-size: 1rem; }

/* contact */
.contact { background: var(--navy); color: var(--white); padding: var(--section-y) 0 40px; }
.contact h2 { font-size: var(--text-h2-contact); line-height: var(--leading-heading-open); color: var(--white); }
.belknop {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 13px 22px;
  border: 2px solid var(--soft-blue); color: var(--white); text-decoration: none;
  font-weight: 650; font-size: var(--text-body-sm);
  transition: background 300ms var(--ease-move), color 300ms var(--ease-move);
}
.belknop svg { width: 20px; height: 20px; color: var(--soft-blue); }
.belknop:hover { background: var(--soft-blue); color: var(--navy); }
.belknop:hover svg { color: var(--navy); }
.formulier { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-content: start; }
.formulier .vol { grid-column: 1 / -1; }
.formulier label { display: grid; gap: 8px; font-weight: 600; font-size: 1rem; }
.formulier input, .formulier textarea {
  font: inherit; font-size: var(--text-body); padding: 15px 16px; border: 0; border-radius: 0;
  background: var(--white); color: var(--dark-gray); width: 100%;
}
.formulier textarea { min-height: 160px; resize: vertical; }
.formulier .btn { justify-self: start; }
.formulier .status { grid-column: 1 / -1; font-size: 1rem; color: var(--navy-text-muted); min-height: 1.55em; }
.formulier .status.is-fout { color: var(--white); font-weight: 600; }
.honing { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact :focus-visible { outline: 3px solid var(--soft-blue); outline-offset: 3px; }
.slotregel {
  margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--navy-line);
  font-size: 0.875rem; color: var(--navy-text-muted);
}

/* menu: donker paneel van rechts, de footer zit erin */
.dim {
  position: fixed; inset: 0; z-index: 40; background: var(--scrim);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-roll) var(--ease-move), visibility 0s linear var(--dur-roll);
}
.paneel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: var(--panel-w);
  background: var(--navy); color: var(--white);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-panel) var(--ease-move), visibility 0s linear var(--dur-panel);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 22px clamp(24px, 3vw, 48px) clamp(28px, 3vw, 44px);
}
.is-open .dim { opacity: 1; visibility: visible; transition: opacity var(--dur-roll) var(--ease-move); }
.is-open .paneel { transform: none; visibility: visible; transition: transform var(--dur-panel) var(--ease-move); }
.is-open { overflow: hidden; }
.paneel .kopregel { display: flex; justify-content: space-between; align-items: center; }
.paneel .kopregel .wm { height: var(--logo-h-panel); width: auto; color: var(--white); }
.sluit {
  width: 56px; height: 56px; margin-left: -14px; background: none; border: 0;
  color: var(--white); cursor: pointer; display: grid; place-items: center;
}
.sluit svg { width: 30px; height: 30px; transition: transform var(--dur-roll) var(--ease-move); }
.sluit:hover svg, .sluit:focus-visible svg { transform: rotate(45deg); }
.sluit:hover { color: var(--soft-blue); }
.paneel:focus { outline: none; }
.paneel :focus-visible { outline: 3px solid var(--soft-blue); outline-offset: 4px; }
.paneel .inhoud { margin-top: auto; padding-top: 40px; }
.items { list-style: none; }
.mi {
  display: block; text-decoration: none;
  font-family: var(--font-heading); font-weight: 900; text-transform: uppercase;
  font-size: var(--text-menu); transition: color 350ms var(--ease-move);
}
.rol { display: block; overflow: hidden; position: relative; line-height: var(--leading-heading); }
.rol > span { display: block; transition: transform var(--dur-roll) var(--ease-move); }
.rol::after {
  content: attr(data-t); position: absolute; left: 0; top: calc(100% + 0.14em);
  transition: transform var(--dur-roll) var(--ease-move);
}
.mi:hover, .mi:focus-visible { color: var(--soft-blue); }
.mi:hover .rol > span, .mi:focus-visible .rol > span { transform: translateY(calc(-100% - 0.02em)); }
.mi:hover .rol::after, .mi:focus-visible .rol::after { transform: translateY(calc(-100% - 0.14em)); }

.acties { list-style: none; margin-top: 36px; display: grid; gap: 8px; }
.actie {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-decoration: none; padding: 12px 12px 12px 22px; font-weight: 650; font-size: var(--text-body);
  border: 1px solid var(--soft-blue);
  transition: background 300ms var(--ease-move), border-color 300ms var(--ease-move);
}
.actie.primair { background: var(--purposium); border-color: var(--purposium); }
.actie:hover { background: var(--navy-line); }
.actie.primair:hover { background: var(--purposium-hover); }
.pijl {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--navy); display: grid; place-items: center;
  transition: transform 300ms var(--ease-move);
}
.pijl svg { width: 18px; height: 18px; }
.actie:hover .pijl { transform: translateX(4px); }
.gegevens { margin-top: 36px; }
.gegevens .kopje { font-size: var(--text-small); font-weight: 600; color: var(--soft-blue); }
.gegevens ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.gegevens li { display: flex; gap: 12px; align-items: center; font-size: 1rem; min-width: 0; }
.gegevens li svg { flex: none; width: 20px; height: 20px; color: var(--soft-blue); }
.gegevens a { text-decoration: none; overflow-wrap: anywhere; }
.gegevens a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* onder 1160px is de brede kolom te smal voor zes stappen naast elkaar (minimaal 660px nodig) */
@media (max-width: 1160px) {
  .stappen { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  :root { --section-y: 80px; }
  .asym { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .asym { gap: 48px; }
  .hero h1[data-fit] { max-width: var(--hero-fit-cap); }
  .laag ul { grid-template-columns: 1fr; gap: 14px; }
  .prijs { grid-template-columns: 1fr; }
  .intro { padding: 64px 0; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: var(--header-h-sm); }
  body { font-size: var(--text-body-sm); }
  .top .wrap { height: var(--header-h-sm); }
  .top .wm { height: var(--logo-h-sm); }
  .paneel .kopregel .wm { height: var(--logo-h-panel-sm); }
  .hero { padding: 24px 0 64px; }
  .hero h1 .hol { -webkit-text-stroke-width: 1.5px; }
  .stappen { grid-template-columns: repeat(2, 1fr); }
  .stap { min-height: 72px; }
  .balk { height: 52px; }
  .seg { font-size: 0.75rem; padding: 0 8px; }
  .blok h2.kop.lang { font-size: var(--text-h3); }
  .formulier { grid-template-columns: 1fr; }
  .paneel { width: 100vw; }
  .mi { font-size: clamp(3.5rem, 17vw, 5.5rem); }
}
