/* =====================================================================
   V2 · Vormtaal poging 2: vrije, golvende vormen (rustig, niet handgetekend)
   Basis petrol en warm wit; zalm, geel en turquoise alleen als accent.
   Vormen in: homepagebeeld, tekstvlak, footer en lichter bij foto's.
   ===================================================================== */
:root{
  --vlak-vorm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 470' preserveAspectRatio='none'%3E%3Cpath fill='%2300445B' d='M74,60 C160,12 300,34 418,20 C524,8 592,62 597,156 C602,252 566,334 502,394 C432,460 304,472 194,444 C92,418 12,354 6,254 C1,172 22,96 74,60 Z'/%3E%3C/svg%3E");
  --golf-kop-v:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M4,0 C0,38 8,62 3,100 L100,100 L100,0 Z'/%3E%3C/svg%3E");
  --golf-kop-h:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V95 C66,90 34,99 0,94 Z'/%3E%3C/svg%3E");
  --golf-links:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M9,0 C4,14 12,30 7,47 C2,63 10,80 5,100 L100,100 L100,0 Z'/%3E%3C/svg%3E");
  --golf-onder-1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V91 C82,97 66,86 47,92 C30,97 14,90 0,94 Z'/%3E%3C/svg%3E");
  --golf-onder-2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V94 C86,89 70,97 52,93 C34,89 18,96 0,91 Z'/%3E%3C/svg%3E");
  --golf-onder-3:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V90 C80,95 62,98 44,92 C28,87 12,95 0,93 Z'/%3E%3C/svg%3E");
}
body{margin:0}

/* Knoppen en pijlen: rond, rustig */
.pijlblok{border-radius:50%;width:34px;height:34px}
.knop{border-radius:999px;padding:0 10px 0 28px;gap:16px;min-height:56px}
.knop .pijlblok{width:36px;height:36px;background:var(--wit);color:var(--petrol)}
.knop-turq .pijlblok{background:var(--wit);color:var(--turquoise)}
.knop-lijn{border-radius:999px}
.knop-vierkant{border-radius:50%}
.label-demo{border-radius:999px;padding:8px 14px}
.filter{border-radius:999px}
.zoekrij input{border-radius:999px 0 0 999px}

/* Vormscheidingen (SVG): golf zonder vast patroon */
.golf{position:absolute;left:0;width:100%;display:block;pointer-events:none}
.golf path{fill:currentColor}
.hoofd .golf-kop{top:calc(100% - 1px);height:clamp(10px,1vw,16px);color:var(--petrol)}

/* Homepage: één groot beeld (video of foto) met golvende onderrand */
.hh{position:relative}
.hh-beeld{position:relative;height:clamp(560px,78vh,820px);overflow:hidden;background:var(--petrol)}
.hh-poster,.hh-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:35% 0%}
.hh-video{opacity:0;transition:opacity .6s ease}
.hh-video.speelt{opacity:1}
.hh-waas{position:absolute;inset:0;z-index:1;background:linear-gradient(to left,rgba(0,54,74,.78) 0%,rgba(0,54,74,.55) 30%,rgba(0,54,74,0) 58%)}
.hh-beeld .golf-onder{bottom:-1px;height:clamp(70px,9vw,150px);color:var(--warmwit);z-index:2}
.hh-pauze{position:absolute;z-index:3;right:calc(var(--as-r) + 4px);bottom:clamp(120px,12vw,190px);width:44px;height:44px;border-radius:50%;border:2px solid var(--wit);background:rgba(0,68,91,.55);color:var(--wit);cursor:pointer}
.hh-pauze::before,.hh-pauze::after{content:"";position:absolute;top:13px;width:4px;height:14px;background:currentColor;border-radius:2px}
.hh-pauze::before{left:15px}.hh-pauze::after{right:15px}
.hh-pauze[aria-pressed="true"]::before{left:16px;width:0;height:0;border-radius:0;background:none;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent currentColor;top:12px}
.hh-pauze[aria-pressed="true"]::after{display:none}
.hh-in{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;padding-bottom:clamp(140px,14vw,220px);pointer-events:none}
.hh-tekst{pointer-events:auto;width:min(100%,clamp(380px,31vw,500px))}
.hh-tekst h1{color:var(--wit);font-size:clamp(40px,4.2vw,64px);line-height:1.04;letter-spacing:-0.01em}

.keuzes{--overlap:clamp(110px,11vw,170px);position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.6vw,24px);margin-top:calc(var(--overlap) * -1);padding-bottom:clamp(96px,10vw,160px);background:linear-gradient(to bottom,transparent var(--overlap),var(--warmwit) var(--overlap))}
.keuzes .golf-wit{bottom:-1px;height:clamp(48px,5vw,84px);color:var(--wit)}
.keuzes .keuze{position:relative;isolation:isolate;display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:12px;align-content:start;padding:clamp(32px,2.9vw,42px) clamp(28px,2.6vw,38px) clamp(34px,3vw,44px)}
.keuze-vorm{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}
.keuze-vorm .lijf{fill:var(--wit)}
.keuze-vorm .rand{fill:none;stroke:var(--accent);stroke-width:6;stroke-linecap:round}
.keuze-vraag{font-style:italic;font-size:18px;line-height:1.45;color:var(--petrol);opacity:.86;align-self:end}
.keuzes .keuze h2{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:var(--t-h3);padding-bottom:12px;border-bottom:1px solid var(--lijn)}
.keuzes .keuze h2 a{text-decoration:none}
.keuzes .keuze h2 a::after{content:"";position:absolute;inset:0;z-index:3}
.keuzes .keuze h2 .pijlblok{flex:none}
.keuzes .keuze > p:last-child{font-size:18px;line-height:1.55}
.keuzes .keuze:hover h2 a,.keuzes .keuze:has(a:focus-visible) h2 a{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.keuzes .keuze:hover .pijlblok{transform:translateX(4px)}

.home-mog{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(36px,6vw,96px);align-items:center;padding-top:clamp(56px,6vw,96px)}
.hm-beeld{margin:0}
.hm-beeld img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.hm-tekst{display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.hm-tekst p{max-width:32em}img.vrij-2,figure.vrij-2 img{border-radius:38% 14% 30% 12% / 32% 18% 34% 14%}
.home-over{padding-top:clamp(48px,5vw,80px);padding-bottom:clamp(24px,3vw,48px);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(36px,6vw,96px);align-items:center}
.ho-tekst{display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.ho-tekst p{max-width:32em}
.ho-beeld{margin:0}
.ho-beeld img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:40% 20%}
.ho-beeld figcaption{font:700 14px var(--f-ui);padding-top:10px;text-align:right}

/* Grote paginabeelden: golvende onderrand */
.over-beeld img{-webkit-mask:var(--golf-onder-2) 0 0/100% 100% no-repeat;mask:var(--golf-onder-2) 0 0/100% 100% no-repeat}
/* Vrije vorm voor losse foto's: zacht, onregelmatig, niet rond */
img.vrij,.coach-foto,.over-foto,figure.vrij img{border-radius:12% 34% 18% 40% / 16% 30% 22% 36%}

/* Paginakoppen: golvende rand tussen tekstvlak en foto */
.inw-hero,.org-hero,.prod-kop{background:var(--warmwit)}
.org-hero img{-webkit-mask:var(--golf-links) left top/100% 100% no-repeat;mask:var(--golf-links) left top/100% 100% no-repeat}
.org-hero .kwart{display:none}

/* Foto's in ingangen: lichte golf aan de onderkant, per kaart anders */
.ingang .foto{-webkit-mask:var(--golf-onder-1) 0 0/100% 100% no-repeat;mask:var(--golf-onder-1) 0 0/100% 100% no-repeat}
.ingang:nth-child(3n+2) .foto{-webkit-mask-image:var(--golf-onder-2);mask-image:var(--golf-onder-2)}
.ingang:nth-child(3n) .foto{-webkit-mask-image:var(--golf-onder-3);mask-image:var(--golf-onder-3)}

/* Footer: petrol met golvende bovenrand */
footer{position:relative;background:var(--petrol);color:var(--wit);margin-top:clamp(120px,12vw,200px)}
footer.zonder-marge{margin-top:clamp(80px,8vw,140px)}
footer .golf-voet{bottom:calc(100% - 1px);height:clamp(44px,5vw,80px);color:var(--petrol)}
.voet{padding-block:40px 72px}
.voet h2{color:var(--warmwit);opacity:.8}
.voet a{color:var(--wit)}
.voet :is(a,button,input,select,textarea,summary):focus-visible{outline-color:var(--warmwit)}

@media (max-width:1200px){
  .hoofd{transition:transform .28s ease}
  .hoofd.weg{transform:translateY(-100%)}
}
@media (max-width:860px){
  .hh-beeld{height:clamp(380px,64vh,560px)}
  .hh-beeld .golf-onder{height:44px}
  .hh-waas{background:linear-gradient(to top,rgba(0,54,74,.82) 0%,rgba(0,54,74,.5) 38%,rgba(0,54,74,0) 64%)}
  .hh-pauze{top:16px;bottom:auto;right:var(--g-r)}
  .hh-in{align-items:flex-end;justify-content:flex-start;padding:0 var(--g-r) 64px var(--g)}
  .hh-tekst h1{font-size:clamp(32px,8.4vw,44px)}
  .home-mog{grid-template-columns:1fr}
  .keuzes{grid-template-columns:1fr;margin-top:0;gap:16px;padding-top:28px;background:var(--warmwit)}
  .keuzes .keuze{grid-row:auto;grid-template-rows:none;display:flex;flex-direction:column}
  .home-over{grid-template-columns:1fr}img.vrij,.coach-foto,.over-foto,figure.vrij img{border-radius:8% 22% 10% 26% / 10% 20% 14% 24%}
}

/* ---------- Paginakoppen: één lichte golf met themalijn (ronde 4) ---------- */
.kop-beeld{position:relative;min-width:0;display:flex}
.kop-beeld .inw-hero-foto,.kop-beeld img{width:100%;height:100%;object-fit:cover;-webkit-mask:var(--golf-kop-v) left top/100% 100% no-repeat;mask:var(--golf-kop-v) left top/100% 100% no-repeat;margin-left:0}
.inw-hero .kop-beeld img{position:absolute;inset:0}
.kop-golf{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}
.kop-golf path{fill:none;stroke:var(--accent,var(--turquoise));stroke-width:6;stroke-linecap:butt}
.kop-golf .h{display:none}
.sectie-intro .inw-hero-tekst{border-bottom:0}
.inw-hero.sectie-intro{min-height:clamp(440px,36vw,520px)}
.inw-hero.sectie-intro h1{font-size:clamp(36px,3.6vw,52px)}
.inw-hero.sectie-intro .inw-hero-tekst{padding-block:clamp(40px,4vw,64px)}
.inw-hero.sectie-intro .lead{font-size:clamp(18px,1.3vw,20px)}
.inw-hero-foto{min-height:0}
/* Gemeentestrook op de inwonersstart */
.home-gem .gemblok{margin-top:clamp(64px,8vw,120px)}
.andere-vormen{display:flex;flex-wrap:wrap;gap:16px 36px;align-items:center;padding-top:28px;border-top:1px solid var(--lijn)}
.andere-vormen .label{width:100%;font:800 14px var(--f-ui);letter-spacing:.06em;text-transform:uppercase}
@media (max-width:860px){
  .kop-beeld .inw-hero-foto,.kop-beeld img{-webkit-mask-image:var(--golf-kop-h);mask-image:var(--golf-kop-h);aspect-ratio:4/3;height:auto}
  .kop-golf .v{display:none}
  .kop-golf .h{display:inline}
  .kop-beeld{order:-1}
  .inw-hero .kop-beeld img{position:static}
  .inw-hero.sectie-intro{min-height:0}
}

/* ---------- Homepage: video loopt onder de menubalk door; balk 90% petrol (10% transparant) zolang hij boven de video staat ---------- */
:root.is-home #kop-ruimte{height:0}
:root.is-home .hh-beeld{height:calc(var(--kop-start) + env(safe-area-inset-top,0px) + clamp(560px,78vh,820px))}
:root.is-home .hh-in{padding-top:calc(var(--kop-start) + env(safe-area-inset-top,0px))}
:root.is-home .hoofd:not(.compact){background:rgba(0,68,91,.9);transition:background-color .25s ease,transform .28s ease}
:root.is-home .hoofd:not(.compact) .golf-kop{color:rgba(0,68,91,.9)}
:root.is-home{--onder-balk:48px}
:root.is-home .hh-poster,:root.is-home .hh-video{top:0;height:100%}
.hoofd{transition:background-color .25s ease,transform .28s ease}
@media (max-width:860px){
  :root.is-home .hh-beeld{height:calc(var(--kop-start) + env(safe-area-inset-top,0px) + clamp(380px,64vh,560px))}
  :root.is-home .hh-pauze{top:calc(var(--kop-start) + env(safe-area-inset-top,0px) + 14px)}
  :root.is-home{--onder-balk:16px}
}

