/* Zwemmen met Iben — styles */

:root {
  --navy: #0C2F52;
  --ink: #0F2A47;
  --muted: #475E75;
  --deep: #0B5F8C;
  --primary: #087E95;
  --primary-dark: #066478;
  --cta: #7FE3EC;
  --pale: #E8F7FB;
  --aqua: #BDEEF4;
  --cream: #FDF1DD;
  --lav: #E6DEFB;
  --reg: #46C4DE;
  --line: #CFE3EA;

  --font: "Plus Jakarta Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec: clamp(56px, 6vw, 88px);
  --radius: 10px;
  --radius-l: 16px;
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

h1, h2, h3, h4 { font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
p { text-wrap: pretty; max-width: 62ch; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .c4 :focus-visible { outline-color: #fff; }
.enroll-head :focus-visible { outline-color: var(--navy); }

.menu-open, .menu-open body { overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--primary); color: #fff;
  font: 700 1.0625rem/1 var(--font); text-decoration: none;
  border: 2px solid var(--primary); border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-aqua { background: var(--cta); border-color: var(--cta); color: var(--navy); }
.btn-aqua:hover { background: #A6EDF3; border-color: #A6EDF3; }
.btn .ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.2; }

/* Header: logo links, navigatie exact in het midden, primaire CTA rechts */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.bar { min-height: var(--header); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(16px, 3vw, 40px); }
.brand { grid-column: 1; justify-self: start; display: block; line-height: 0; border-radius: var(--radius); }
.brand img { height: 60px; width: auto; }
.nav { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav a:hover { border-bottom-color: var(--primary); }
.bar-cta { grid-column: 3; justify-self: end; min-height: 48px; padding: 0 28px; }
.menu-btn { display: none; grid-column: 4; justify-self: end; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); }

/* 1 Hero: lichtaqua vlak links, foto rechts die in dat vlak vervaagt, golvende onderrand naar wit */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(340px, 22vw, 380px);
  padding-block: clamp(28px, 2.6vw, 40px) clamp(40px, 3.8vw, 60px);
  background: linear-gradient(90deg, #C6EBF6 0%, #E4F6FB 30%, #D2EFF8 100%);
  color: var(--navy);
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 81%; -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 42%); mask-image: linear-gradient(90deg, transparent 12%, #000 42%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { max-width: 36rem; }
.hero h1 { font-size: min(clamp(2.125rem, 1.2rem + 2.6vw, 3.5rem), 10.5vw); /* plafond: bij grote tekstinstelling blijft de kop binnen beeld */ line-height: 1.05; letter-spacing: -0.04em; color: var(--navy); }
.hero h1 .l { display: block; }
.hero h1 .t { color: #108FB5; }
.hero-sub { margin-top: clamp(14px, 1.6vw, 20px); max-width: min(31rem, 44vw); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.hero-actions { margin-top: clamp(18px, 2vw, 24px); }
.hero .btn-aqua { min-height: 48px; padding: 0 26px; border-radius: 12px; }
.hero-wave { position: absolute; left: 0; bottom: -1px; z-index: 3; width: 100%; height: clamp(40px, 6vw, 96px); pointer-events: none; }
.hero-note { position: absolute; z-index: 2; right: clamp(40px, 7vw, 150px); top: 30%; margin: 0; max-width: none; font: 700 clamp(1.125rem, .6rem + 1.1vw, 1.75rem)/1.15 "Segoe Script", "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; color: #fff; text-shadow: 0 1px 8px rgba(8, 60, 90, .45); transform: rotate(-9deg); transform-origin: left bottom; pointer-events: none; }
.hero-note svg { display: block; width: 72%; height: auto; margin: 6px 0 0 14%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .95; filter: drop-shadow(0 1px 4px rgba(8, 60, 90, .4)); }

/* Gedeelde sectiebouwstenen */
.section { position: relative; padding-block: var(--sec); }
.head { max-width: 44rem; margin-bottom: clamp(28px, 3.5vw, 44px); }
.intro { margin-top: 16px; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }

/* 2 Zwemlessen */
.lessons { overflow: hidden; }
.lessons::before { content: ""; position: absolute; top: -60px; right: -80px; width: min(46vw, 640px); height: 340px; border-radius: 55% 45% 50% 50% / 60% 55% 45% 40%; background: var(--pale); }
.lessons .wrap, .practical .wrap { position: relative; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.card-photo { aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--water); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.card-body { flex: 1; padding: 24px 24px 28px; }
.card-body h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.15; }
.card-body p { margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.c1 { background: var(--aqua); --water: #8FD9E6; }
.c2 { background: var(--cream); --water: #82C8DC; }
.c3 { background: var(--lav); --water: #74BBD6; }
.c4 { background: var(--navy); --water: #2B7FA8; color: #fff; }
.c4 h3 { color: #fff; }
.c4 p { color: #E1ECF5; }

/* 3 Over Iben */
.about { background: var(--pale); padding-block: var(--sec); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.about-text { max-width: 35rem; }
.about-text .lead { margin-top: 24px; font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.375rem); line-height: 1.5; font-weight: 600; color: var(--navy); }
.about-text p:not(.lead) { margin-top: 1.1em; line-height: 1.65; }
/* organische uitsnede */
.portrait { aspect-ratio: 5 / 4; margin-right: calc(-1 * var(--gutter)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 58% 42% 0 46% / 52% 58% 42% 48%; background: #6a9bc4; }

/* 4 Prijzen & praktisch: editorial intro links, drie compacte prijsblokken rechts, één informatiestrook */
.practical { padding-block: clamp(48px, 5.5vw, 72px) clamp(28px, 3vw, 40px); }
.dot { color: var(--reg); }
.price-layout { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 32px clamp(32px, 4vw, 56px); align-items: start; }
.practical .head { max-width: none; margin: 0; }
.practical h2 { font-size: clamp(2.5rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: initial; }
.practical .intro { margin-top: clamp(20px, 2.4vw, 32px); max-width: 25rem; font-size: 1.1875rem; line-height: 1.6; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.price { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 30px); border-radius: 14px; --dash: var(--reg); }
.price + .price::before { content: ""; position: absolute; top: 0; bottom: 0; left: -18px; width: 1px; background: var(--line); }
.p1 { background: #E4F5FB; --dash: #5CC3DE; }
.p2 { background: #FDF3E7; --dash: #F3C79B; }
.p3 { background: #EEE9FB; --dash: #C3B1EE; }
.price h3 { font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -0.025em; }
.price h3::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--dash); }
.price .desc { margin-top: 20px; font-size: 1.0625rem; line-height: 1.55; }
.amount { margin-top: auto; padding-top: clamp(28px, 4vw, 48px); max-width: none; }
.amount strong { display: block; font-size: clamp(3.5rem, 2rem + 3.6vw, 5.25rem); line-height: 1; letter-spacing: -0.05em; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.amount span { display: block; margin-top: 10px; font-size: 1.0625rem; color: var(--ink); }

.facts { display: grid; grid-template-columns: 1fr .95fr .85fr 1.4fr; margin: clamp(24px, 3vw, 36px) 0 0; background: #EAF6FB; border-radius: 14px; }
.facts div { padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.8vw, 40px); }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { margin-bottom: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--deep); }
.facts dd { margin: 0; font-size: 1.125rem; line-height: 1.5; }

/* 4b Goed om te weten: typografie, grid en dunne lijnen; geen kaarten */
.know { background: #EEF8FC; padding-block: clamp(48px, 5.5vw, 72px); }
.know-grid { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 32px clamp(32px, 4vw, 56px); align-items: center; }
.know-head { container-type: inline-size; }
.know h2 { font-size: clamp(2.25rem, 11cqi, 3.25rem); line-height: 1.05; letter-spacing: -0.045em; text-wrap: initial; }
.know-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.know-list li { padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 36px); }
.know-list li:nth-child(odd) { padding-left: 0; }
.know-list li:nth-child(even) { border-left: 1px solid var(--line); }
.know-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.know-list .n { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; letter-spacing: .06em; color: var(--primary-dark); }
.know-list h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.02em; }
.know-list p { margin-top: 8px; font-size: 1.0625rem; line-height: 1.55; color: var(--muted); }

/* 5 Inschrijven */
.enroll { position: relative; overflow: hidden; background: var(--reg); color: var(--navy); padding-block: clamp(48px, 5.5vw, 72px); }
.enroll::before, .enroll::after { content: ""; position: absolute; z-index: 0; background: rgba(255, 255, 255, .16); }
.enroll::before { left: -120px; top: -140px; width: 480px; height: 380px; border-radius: 50% 60% 45% 55% / 55% 50% 50% 45%; }
.enroll::after { right: -160px; bottom: -200px; width: 640px; height: 420px; border-radius: 55% 45% 50% 50% / 50% 60% 40% 50%; }
.enroll-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 4.5vw, 64px); align-items: start; }
.enroll-head { position: sticky; top: calc(var(--header) + 32px); padding-top: 8px; }
.enroll .intro { color: var(--navy); max-width: 26rem; }
.phone { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(12, 47, 82, .25); font-weight: 600; }
.phone a { align-self: flex-start; padding-block: 6px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.form { container: form / inline-size; background: #fff; padding: clamp(22px, 2.5vw, 36px); border-radius: var(--radius-l); }
.form-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.req-note { margin: 0; max-width: none; font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.summary { margin-bottom: 22px; padding: 18px 20px; background: #FFF5F4; border: 2px solid #A3261C; border-radius: var(--radius); }
.summary[hidden] { display: none; }
.summary h3 { font-size: 1.125rem; color: #7F1D14; }
.summary ul { margin: 8px 0 0; padding-left: 1.25rem; }
.summary li + li { margin-top: 4px; }
.summary a { color: #7F1D14; font-weight: 700; text-underline-offset: 3px; }

.group + .group { margin-top: 28px; }
.group > legend { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0 0 12px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--primary-dark); }
.group > legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 20px; }
@container form (min-width: 560px) {
  .fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .field { grid-column: span 3; }
  .field.wide { grid-column: 1 / -1; }
  .group:nth-of-type(1) .field.wide { grid-column: span 3; }
}
@container form (min-width: 620px) {
  .group:nth-of-type(-n+2) .field, .group:nth-of-type(-n+2) .field.wide { grid-column: span 2; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field :is(input, select, textarea) { scroll-margin-top: 36px; } /* naast scroll-padding van html: het label erboven blijft onder de sticky header zichtbaar */

.field label { font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--navy); }
.field abbr { text-decoration: none; color: #A3261C; }
.opt { font-weight: 400; font-size: .9375em; color: var(--muted); }

input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink); background-color: #fff; border: 1.5px solid #6F8B9B; border-radius: var(--radius);  transition: border-color .2s ease, outline-offset .15s ease; }
select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C2F52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; }
textarea { resize: vertical; min-height: 88px; }
input:hover, select:hover, textarea:hover { border-color: var(--primary); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
[aria-invalid="true"] { border-color: #A3261C; border-width: 2px; }
.hint { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.err { font-size: .9375rem; font-weight: 700; color: #A3261C; line-height: 1.4; }
.err[hidden] { display: none; }

.submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.submit .btn { min-height: 56px; padding-inline: 36px; }
.submit .btn[disabled] { opacity: .7; cursor: progress; }
.next { max-width: 34ch; margin: 0; font-size: .9375rem; line-height: 1.45; color: var(--muted); }

/* Footer: donkerblauw met turkooizen accent; logo op een lichte plaat (de kleuren van het logo blijven ongewijzigd) */
.site-footer { background: var(--navy); color: #fff; border-top: 4px solid var(--reg); padding-top: clamp(36px, 4.5vw, 56px); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.foot-logo { display: inline-block; line-height: 0; border-radius: 8px; }
.foot-logo img { width: 200px; height: auto; }
.foot-brand p { margin-top: 18px; max-width: 28ch; color: #C5DAE6; }
.foot-h { margin-bottom: 10px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cta); }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { padding: 4px 0; color: #C5DAE6; }
.foot-col a { display: inline-block; padding: 4px 0; color: #fff; font-weight: 500; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot-col .foot-tel { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(28px, 3.5vw, 44px); padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .9375rem; color: #C5DAE6; }
.foot-bottom p { margin: 0; max-width: none; }

@media (max-width: 1020px), (pointer: coarse) {
  .foot-col li { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
}

/* Zwevende contactknoppen (WhatsApp + bellen) */
.fab { position: fixed; z-index: 40; right: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-right)); bottom: calc(clamp(24px, 18vh, 160px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.fab-actions { display: flex; flex-direction: column; gap: 14px; }
.fab .fab-toggle { display: none; padding: 0; cursor: pointer; font: inherit; }
.fab.is-footer { visibility: hidden; }
.fab-btn { box-sizing: border-box; display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #fff; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(12, 47, 82, .28), 0 2px 5px rgba(12, 47, 82, .2); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.fab-btn svg { width: 30px; height: 30px; }
.fab-wa { background: #1A9F4B; }
.fab-call { background: var(--navy); }
.fab-wa:hover { background: #158A40; }
.fab-call:hover { background: #123E6A; }
.fab-btn:hover { transform: scale(1.06); box-shadow: 0 10px 24px rgba(12, 47, 82, .34), 0 3px 7px rgba(12, 47, 82, .22); }
.fab-btn:active { transform: scale(.97); }
/* dubbele focusring: zichtbaar op lichte en donkere achtergronden */
.fab-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(12, 47, 82, .28); }

/* Formulier krijgt de volle breedte zodra twee kolommen te krap worden */
@media (max-width: 1100px) {
  .enroll-grid { grid-template-columns: 1fr; }
  .enroll-head { position: static; padding-top: 0; }
}

/* ===== Tablet en kleine laptop ===== */
@media (max-width: 1020px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; }
  .bar-cta { grid-column: 2; }
  .menu-btn { grid-column: 3; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; justify-self: stretch; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .js .nav.open { display: flex; }
  .js .nav a { font-size: 1.125rem; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .js .nav a:last-child { border-bottom: 0; }
  /* zonder JavaScript: navigatie als aparte rij onder de balk */
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; flex-wrap: wrap; justify-content: center; padding-bottom: 8px; }
  .js .nav { grid-row: auto; }
  .brand img { height: 52px; }
  .bar-cta { min-height: 44px; padding: 0 20px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-layout, .know-grid { grid-template-columns: 1fr; }
  .practical .intro { max-width: 40rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid, .enroll-grid { grid-template-columns: 1fr; }
  .enroll-head { position: static; }
  .about-text { max-width: none; }
  .portrait { max-width: 560px; margin-right: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* hero: foto bovenaan (vervaagt naar het aqua vlak), tekst eronder */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-block: 0 clamp(56px, 9vw, 72px); background: #DCF2F9; }
  .hero-media { position: relative; width: 100%; height: clamp(200px, 58vw, 400px); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero-media img { object-position: 50% 22%; }
  .hero .wrap { padding-top: 8px; }
  .hero-sub { max-width: 36rem; }
  .hero-note { display: none; }
}

/* Zwevende contactknoppen op smalle of lage schermen (ook bij 150–200% zoom): één compacte trigger,
   twee acties na openen. Verborgen in de inschrijfsectie en de footer (zie script.js). Zonder JavaScript blijven beide knoppen zichtbaar. */
@media (max-width: 1100px), (max-height: 600px) {
  .fab { right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); gap: 10px; transition: none; }
  .fab-btn { width: 48px; height: 48px; }
  .fab-btn svg { width: 24px; height: 24px; }
  .fab.is-enroll { visibility: hidden; }
  .js .fab-toggle { display: grid; background: var(--navy); }
  .js .fab-toggle .i-close, .js .fab.is-open .fab-toggle .i-open { display: none; }
  .js .fab.is-open .fab-toggle .i-close { display: block; }
  .js .fab-actions { display: none; position: absolute; right: 0; bottom: calc(100% + 10px); flex-direction: column; gap: 10px; }
  .js .fab.is-open .fab-actions { display: flex; }
}

/* ===== Mobiel ===== */
@media (max-width: 640px) {
  :root { --header: 64px; }
  .brand img { height: 44px; }
  .bar-cta { padding: 0 14px; font-size: .9375rem; }
  .js .nav a { padding: 14px 0; }
  .foot-logo img { width: 160px; }
  .hero-sub { padding-right: 56px; }
  .hero { padding-block: 0 56px; }
  .hero-actions { margin-top: 24px; padding-right: 56px; } /* zelfde reservering als de tekst: de zwevende knoppen bedekken de CTA niet */
  .hero-actions .btn { width: 100%; }

  /* lesaanbod: foto links, tekst rechts */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { flex-direction: row; align-items: stretch; border-radius: 14px; }
  .card-photo { flex: 0 0 32%; aspect-ratio: auto; min-height: 112px; }
  .c4 .card-photo img { object-position: 74% 50%; }
  .card-body { padding: 16px 18px 18px; align-self: center; }
  .card-body h3 { font-size: 1.1875rem; }
  .card-body p { margin-top: 6px; font-size: 1rem; line-height: 1.5; }

  .about-grid { gap: 24px; }
  .portrait { aspect-ratio: 5 / 4; max-width: none; margin-right: calc(-1 * var(--gutter)); }

  .prices { grid-template-columns: 1fr; gap: 12px; }
  .price + .price::before { display: none; }
  .price { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title amount" "desc desc"; column-gap: 16px; align-items: start; padding: 18px 20px 20px; }
  .price h3 { grid-area: title; }
  .price h3::after { margin-top: 10px; }
  .price .desc { grid-area: desc; margin-top: 12px; }
  .price .amount { grid-area: amount; margin: 0; padding: 0; text-align: right; }
  .amount strong { font-size: 4rem; }
  .amount span { margin-top: 4px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .know-list { grid-template-columns: 1fr; }
  .know-list li, .know-list li:nth-child(odd), .know-list li:nth-child(even) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .know-list li:first-child { border-top: 0; padding-top: 4px; }

  .submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .submit .btn { width: 100%; }
  .next { max-width: none; }
}

@media (max-width: 359px) {
  .foot-grid { grid-template-columns: 1fr; }
  .card-photo { flex-basis: 28%; }
  .card-body { padding-inline: 14px; min-width: 0; }
  .card-body h3 { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .bar { column-gap: 8px; }
  .brand img { height: 40px; }
  .bar-cta { padding: 0 10px; font-size: .875rem; }
}

/* Micro-interacties: alleen met een muis, korte duur, kleine afstanden */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .card:hover { transform: translateY(-3px); }
  .card:hover .card-photo img { transform: scale(1.02); }
}

/* Beweging: hero-entrance en eenmalige reveals. De klasse .mo wordt door motion.js gezet; zonder script blijft alles zichtbaar. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mo-rise { from { opacity: 0; transform: translateY(var(--mo-y, 18px)); } }
  @keyframes mo-settle { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes mo-media { from { clip-path: inset(0 0 14% 0); } }
  @keyframes mo-zoom { from { transform: scale(1.03); } }
  @keyframes mo-wave { from { transform: translateY(20px); } }

  .mo { --mo-ease: cubic-bezier(.22, .61, .36, 1); }
  .mo .site-header { animation: mo-settle .35s var(--mo-ease) backwards; }
  .mo .hero-media { animation: mo-media .85s cubic-bezier(.45, 0, .2, 1) .05s backwards; }
  .mo .hero-media img { animation: mo-zoom .95s var(--mo-ease) .05s backwards; }
  .mo .hero-wave { animation: mo-wave .8s var(--mo-ease) .1s backwards; }
  .mo .hero h1 .l { animation: mo-rise .5s var(--mo-ease) .18s backwards; }
  .mo .hero h1 .l + .l { animation-delay: .25s; }
  .mo .hero-sub { --mo-y: 12px; animation: mo-rise .42s var(--mo-ease) .38s backwards; }
  .mo .hero-actions { --mo-y: 12px; animation: mo-rise .4s var(--mo-ease) .46s backwards; }
  .mo .hero-note { --mo-y: 8px; animation: mo-rise .45s var(--mo-ease) .58s backwards; }

  .mo .mo-r { opacity: 0; }
  .mo .mo-r.mo-done { opacity: 1; }
  .mo .mo-r.mo-in { opacity: 1; animation: mo-rise .6s var(--mo-ease) calc(var(--i, 0) * 70ms) backwards; }
  .mo .mo-wide { --mo-y: 22px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .mo { --mo-y: 10px; }
  .mo .hero-media img { animation: none; }
  .mo .mo-wide { --mo-y: 10px; }
}

@media print {
  .fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .card:hover, .card:hover .card-photo img, .fab-btn:hover { transform: none; }
}

/* Bedanktpagina */
.thanks { padding-block: clamp(72px, 12vw, 160px); }
.thanks h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.thanks .lead { margin-top: clamp(20px, 2.4vw, 28px); max-width: 36rem; font-size: 1.1875rem; line-height: 1.6; }
.thanks .note { margin-top: 16px; max-width: 36rem; color: var(--muted); }
.thanks-actions { margin-top: clamp(32px, 4vw, 44px); }
@media (max-width: 640px) { .thanks-actions .btn { width: 100%; } }

/* Privacyverklaring en privacyverwijzingen */
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; color: #fff; text-underline-offset: 4px; }
.foot-bottom a:hover { text-decoration-color: var(--cta); text-decoration-thickness: 2px; }
.privacy-note { max-width: none; margin-top: 16px; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.privacy-note a { color: var(--primary-dark); font-weight: 600; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--navy); }
.thanks-foot { padding-block: 0 clamp(32px, 4vw, 48px); font-size: .9375rem; }
.thanks-foot p { max-width: none; }
.thanks-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 4px; }

.legal { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.legal-body { max-width: 44rem; }
.legal-body h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.legal-body h2 { margin-top: clamp(36px, 4.5vw, 52px); font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.legal-body h1 + h2 { margin-top: clamp(28px, 3.5vw, 40px); }
.legal-body p, .legal-body li { max-width: none; line-height: 1.7; overflow-wrap: anywhere; }
.legal-body h2 + p, .legal-body h2 + ul, .legal-body p + p, .legal-body ul + p { margin-top: 14px; }
.legal-body ul { margin: 0; padding-left: 1.25rem; }
.legal-body li + li { margin-top: 8px; }
.legal-body li::marker { color: var(--primary); }
.legal-body p a { color: var(--primary-dark); font-weight: 600; text-underline-offset: 3px; }
.legal-body p a:hover { color: var(--navy); }
.legal-body .btn, .legal-body .btn:hover { color: #fff; }
.legal-body .legal-back { margin-top: clamp(40px, 5vw, 56px); }
@media (max-width: 640px) { .legal-back .btn { width: 100%; } }

/* Sociale media in de footer */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-col .foot-social { padding-top: 8px; }
.foot-col .foot-social a, .thanks-foot .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; color: #fff; transition: border-color .2s ease, background-color .2s ease; }
.foot-col .foot-social a:hover { text-decoration: none; border-color: var(--cta); background: rgba(127, 227, 236, .12); }
.foot-social .ic { width: 1.25rem; height: 1.25rem; }
.thanks-foot .foot-social { margin-top: 4px; }
.thanks-foot .foot-social a { border-color: var(--line); color: var(--navy); }
.thanks-foot .foot-social a:hover { border-color: var(--primary); background: var(--pale); }

/* E-mailadres in de footer */
.foot-col .foot-mail { overflow-wrap: anywhere; }

/* E-mailadres onder het telefoonnummer in de inschrijvingssectie */
.phone.phone-mail { margin-top: 12px; padding-top: 0; border-top: 0; }
.phone-mail a { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* Made by TRIVO */
.made-by-label { font-weight: 400; opacity: .72; }
.foot-bottom .made-by a, .thanks-foot .made-by a { font-weight: 700; }

/* Ondernemingsnummer in de footer */
.foot-col .foot-biznr { padding-top: 6px; font-size: .8125rem; opacity: .72; }
.thanks-foot .foot-biznr { margin-top: 4px; font-size: .8125rem; color: var(--muted); opacity: .85; }

/* Lesvoorwaarden: prijstabel */
.legal-table { width: 100%; margin: 18px 0 0; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.legal-table th, .legal-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { font-size: .875rem; font-weight: 700; color: var(--muted); }
.legal-table tbody th { font-weight: 600; }
.legal-table .num { text-align: right; white-space: nowrap; }
.legal-table + p { margin-top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Onderste footerbalk: links copyright, midden juridische links, rechts Made by */
.foot-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 24px; font-size: .875rem; letter-spacing: .01em; }
.foot-bottom > p:first-child { justify-self: start; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; justify-self: center; }
.foot-bottom .foot-legal a { margin-block: -12px; padding-inline: 18px; color: #C5DAE6; text-decoration: none; }
.foot-bottom .foot-legal a + a { background: linear-gradient(rgba(255, 255, 255, .24), rgba(255, 255, 255, .24)) left center / 1px 14px no-repeat; }
.foot-bottom .foot-legal a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 2px; }
.foot-bottom .made-by { justify-self: end; }
@media (max-width: 760px) {
  .foot-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; padding-block: 14px 20px; }
  .foot-bottom > p:first-child, .foot-bottom .made-by { justify-self: center; }
  .foot-bottom .made-by { margin-top: 4px; }
}
@media (max-width: 359px) { .foot-bottom .foot-legal a + a { background: none; } }
