/* Video-hero (donker) en videoslider voor de landingspagina. Bij server/views/videos.js en
   public/assets/js/videos.js. Eigen voorvoegsel nf- zodat niets botst met landing.css of de app.
   Knoppen komen uit app.css (.btn, .btn-primary, .btn-glas, .btn-lg).
   Zonder JS: de film speelt (autoplay muted), het eerste woord staat er, de clips staan in een raster
   met eigen afspeelknoppen. Met prefers-reduced-motion: alleen de posters, geen beweging. */

.nf-hero, .nf-slider {
  --nf-navy: #0B2454;
  --nf-teal: #00A99D;
  --nf-teal-ink: #00887e;
  --nf-ink: #101828;
  --nf-text: #475467;
  --nf-muted: #667085;
  --nf-line: #EAECF0;
  --nf-bg: #F7F8FA;
  --nf-max: var(--l-max, 1200px);
  --nf-gutter: var(--l-gutter, clamp(20px, 4vw, 40px));
  --nf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nf-schaduw: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 24px -14px rgba(16, 24, 40, 0.16), 0 30px 60px -40px rgba(16, 24, 40, 0.45);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.nf-wrap { width: min(100% - 2 * var(--nf-gutter), var(--nf-max)); margin-inline: auto; }
.nf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nf-accent { color: var(--nf-teal-ink); }
.nf-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.12em; color: var(--nf-muted);
}
.nf-eyebrow-lijn { width: 28px; height: 2px; border-radius: 2px; background: var(--nf-teal); flex: none; }

/* ================================================================================================
   Hero met de productfilm (sinds 1.0.2): warm en licht, kop in het midden in een rustige letterdikte,
   de film groot op een "podium" met een zachte pastel-lucht en twee zwevende kaartjes.
   ================================================================================================ */

.nf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: var(--l-steen, #F4F2EE);
  color: var(--nf-tekst-warm, #55565c);
  text-align: center;
}
.nf-hero.is-onder-kopbalk { margin-top: calc(-1 * var(--l-header, 0px)); padding-top: calc(var(--l-header, 0px) + clamp(48px, 7vw, 96px)); }
.nf-hero-binnen { display: grid; justify-items: center; }

/* Klein label als pil, met een turquoise stip. */
.nf-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 0 0 1px rgba(20, 20, 20, 0.05); font-size: 13.5px; font-weight: 600; color: #2b2d33; }
.nf-label-stip { width: 7px; height: 7px; border-radius: 50%; background: #00A99D; box-shadow: 0 0 0 4px rgba(0, 169, 157, 0.16); }

.nf-hero-kop {
  margin: 0; color: #111318;
  font-size: clamp(42px, 6.2vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -0.05em;
}
.nf-regel { display: block; }
.nf-hero-kop .nf-accent { color: #0B2454; }
/* Beeldmerk van bol in de kop (server/views/merken.js): bol-blauw, ongeveer zo hoog als de letters. */
.nf-bol { display: inline-block; color: #0000A4; }
.nf-bol .bol-logo { display: inline-block; height: 0.74em; width: auto; vertical-align: -0.02em; margin: 0 0.02em 0 0.06em; }

/* Het wisselende woord. */
.nf-wissel-regel { margin: 26px 0 0; color: #111318; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -0.025em; }
.nf-wissel { display: inline-grid; vertical-align: bottom; color: #00887e; font-weight: 600; text-align: left; }
.nf-woord { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.nf-woord.is-actief { opacity: 1; }
.nf-punt { color: #111318; }
.nf-hero.is-js .nf-woord { filter: blur(10px); transform: translateY(0.35em); transition: opacity 0.6s ease, filter 0.7s ease, transform 0.8s var(--nf-ease); }
.nf-hero.is-js .nf-woord.is-actief { filter: blur(0); transform: none; }
.nf-hero.is-js .nf-woord.is-weg { opacity: 0; filter: blur(8px); transform: translateY(-0.3em); transition-duration: 0.45s; }

.nf-lede { margin: 18px auto 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: #55565c; max-width: 36em; }

/* Knoppen als pil: donker met een pijl in een wit rondje, en een witte. */
.nf-knoppen { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; }
.nf-knop { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: transform 0.2s var(--nf-ease), box-shadow 0.2s ease, background 0.2s ease; }
.nf-knop.is-donker { padding-right: 7px; background: #111318; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 24px -12px rgba(17, 19, 24, 0.55); }
.nf-knop.is-donker:hover { background: #0B2454; color: #fff; transform: translateY(-1px); }
.nf-knop-pijl { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #111318; transition: transform 0.25s var(--nf-ease); }
.nf-knop-pijl .icon { width: 17px; height: 17px; }
.nf-knop.is-donker:hover .nf-knop-pijl { transform: translateX(2px) rotate(-45deg); }
.nf-knop.is-licht { background: #fff; color: #111318; box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 0 0 1px rgba(20, 20, 20, 0.07); }
.nf-knop.is-licht:hover { color: #111318; box-shadow: 0 1px 2px rgba(20, 20, 20, 0.08), 0 0 0 1px rgba(20, 20, 20, 0.14); transform: translateY(-1px); }
.nf-knop:focus-visible { outline: 2px solid #00A99D; outline-offset: 3px; }

/* Het podium: een groot rond vlak met een zachte pastel-lucht, de film erin, kaartjes erop. */
.nf-podium-wrap { margin-top: clamp(48px, 6vw, 80px); }
.nf-podium { position: relative; padding: clamp(18px, 3.4vw, 56px) clamp(14px, 4.2vw, 72px) 0; border-radius: clamp(20px, 2.4vw, 32px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #DCEAF7 0%, #F6E3D6 62%, #F7EEE6 100%); }
.nf-podium-lucht { position: absolute; inset: 0; z-index: -1; }
.nf-wolk { position: absolute; border-radius: 50%; filter: blur(60px); }
.nf-wolk.is-a { width: 55%; height: 70%; left: -10%; top: -20%; background: rgba(176, 228, 220, 0.85); }
.nf-wolk.is-b { width: 50%; height: 60%; right: -12%; top: -10%; background: rgba(196, 214, 248, 0.9); }
.nf-wolk.is-c { width: 70%; height: 60%; left: 15%; bottom: -30%; background: rgba(250, 205, 178, 0.75); }
.nf-hero.is-js .nf-wolk { animation: nf-drijf 18s ease-in-out infinite alternate; }
.nf-hero.is-js .nf-wolk.is-b { animation-duration: 22s; animation-delay: -6s; }
.nf-hero.is-js .nf-wolk.is-c { animation-duration: 26s; animation-delay: -12s; }
@keyframes nf-drijf { to { transform: translate3d(6%, 4%, 0) scale(1.08); } }

.nf-kader.is-hero { position: relative; border-radius: 16px 16px 0 0; border: 1px solid rgba(255, 255, 255, 0.7); border-bottom: 0; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35), 0 30px 60px -30px rgba(40, 40, 60, 0.45); }
.nf-kader.is-hero .nf-kader-balk { background: #fff; }
.nf-hero-beeld { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #F7F8FA; }
.nf-hero-poster, .nf-hero-poster img, .nf-hero-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.nf-hero-video { background: transparent; }
.nf-hero.is-js .nf-hero-video { opacity: 0; transition: opacity 0.9s ease; }
.nf-hero.is-js .nf-hero-video.is-klaar { opacity: 1; }

/* Zwevende kaartjes (glas), deinen zacht mee. */
.nf-zweef { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 18px 40px -18px rgba(30, 30, 60, 0.45); }
.nf-zweef.is-links { left: clamp(10px, 2vw, 28px); top: 46%; }
.nf-zweef.is-rechts { right: clamp(10px, 2vw, 28px); top: 22%; }
.nf-hero.is-js .nf-zweef { animation: nf-dein 6s ease-in-out infinite alternate; }
.nf-hero.is-js .nf-zweef.is-rechts { animation-delay: -3s; }
@keyframes nf-dein { to { transform: translateY(-10px); } }
.nf-zweef-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.nf-zweef-ico .icon { width: 19px; height: 19px; }
.nf-zweef-ico.is-teal { background: #DDF5F2; color: #00887e; }
.nf-zweef-ico.is-perzik { background: #FCE7DA; color: #B5532A; }
.nf-zweef-tekst { display: grid; gap: 1px; font-size: 12.5px; line-height: 1.35; color: #55565c; }
.nf-zweef-tekst strong { font-size: 14px; font-weight: 700; color: #111318; letter-spacing: -0.01em; }

/* Onder het podium: streepjes die meelopen met de film, en de pauzeknop. */
.nf-hero-onder { display: flex; align-items: center; gap: 20px; margin-top: 20px; text-align: left; }
.nf-scenes { display: none; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.nf-hero.is-js .nf-scenes { display: grid; }
.nf-scene { display: grid; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8b90; cursor: pointer; transition: color 0.3s ease; }
.nf-scene.is-actief { color: #111318; }
.nf-scene-nr { color: #00887e; margin-right: 8px; }
.nf-scene-balk { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(17, 19, 24, 0.1); overflow: hidden; }
.nf-scene-vol { position: absolute; inset: 0; background: #111318; transform-origin: left; transform: scaleX(var(--vol, 0)); }

.nf-pauze {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
  border-radius: 50%; border: 1px solid rgba(16, 24, 40, 0.1); color: #111318; cursor: pointer; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06); transition: background 0.15s ease, transform 0.15s ease;
}
.nf-pauze[hidden] { display: none; }
.nf-pauze:hover { background: #fff; }
.nf-pauze:active { transform: scale(0.96); }
.nf-pauze:focus-visible { outline: 2px solid var(--nf-teal); outline-offset: 3px; }
.nf-pauze .nf-ic-speel, .nf-pauze[aria-pressed='true'] .nf-ic-pauze { display: none; }
.nf-pauze[aria-pressed='true'] .nf-ic-speel { display: block; }

/* Werkt samen met: rustige rij namen. */
.nf-werkt-met { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 40px; margin-top: clamp(40px, 5vw, 64px); }
.nf-werkt-met p { margin: 0; font-size: 13px; font-weight: 600; color: #8a8b90; }
.nf-werkt-met ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.nf-werkt-met li { font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; letter-spacing: -0.03em; color: #9a9ba0; }

/* Rustig binnenkomen, een voor een. */
.nf-hero.is-js .nf-in { animation: nf-in 1s var(--nf-ease) both; }
.nf-hero.is-js .in-0 { animation-delay: 0.05s; }
.nf-hero.is-js .in-1 { animation-delay: 0.15s; }
.nf-hero.is-js .in-2 { animation-delay: 0.28s; }
.nf-hero.is-js .in-3 { animation-delay: 0.38s; }
.nf-hero.is-js .in-4 { animation-delay: 0.48s; }
.nf-hero.is-js .in-5 { animation-delay: 0.62s; }
@keyframes nf-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

@media (max-width: 900px) {
  .nf-zweef { display: none; }
}
@media (max-width: 720px) {
  .nf-hero { padding: 36px 0 44px; }
  .nf-hero-kop { font-size: clamp(34px, 9.2vw, 50px); }
  .nf-wissel-regel { margin-top: 18px; font-size: clamp(18px, 5.4vw, 22px); }
  .nf-lede { font-size: 16px; }
  .nf-knoppen { margin-top: 26px; width: 100%; }
  .nf-knop { flex: 1 1 100%; justify-content: center; }
  .nf-knop.is-donker { justify-content: space-between; padding-left: 24px; }
  .nf-podium { padding: 14px 10px 0; }
  .nf-hero-onder { gap: 12px; margin-top: 14px; }
  .nf-scenes { gap: 8px; }
  .nf-scene { font-size: 10px; letter-spacing: 0.06em; gap: 8px; }
  .nf-scene-nr { display: none; }
  .nf-werkt-met { gap: 10px 22px; }
  .nf-werkt-met ul { gap: 8px 22px; }
}

/* ================================================================================================
   Videoslider
   ================================================================================================ */

.nf-slider { padding: clamp(72px, 9vw, 128px) 0; color: var(--nf-text); }
.nf-slider-kop { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.nf-slider-kop h2 { margin: 0; color: var(--nf-navy); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.042em; }
.nf-slider-sub { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; max-width: 34em; }

/* Zonder JS: alle vier de clips in een raster, met poster en eigen afspeelknop. */
.nf-panelen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; position: relative; }
.nf-paneel { margin: 0; min-width: 0; }
.nf-kader {
  position: relative; overflow: hidden; border-radius: 16px; background: #EEF1F5;
  border: 1px solid var(--nf-line); box-shadow: var(--nf-schaduw);
}
.nf-kader-balk { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--nf-line); }
.nf-kader-balk i { width: 9px; height: 9px; border-radius: 50%; background: #E4E7EC; }
.nf-kader-balk span { margin: 0 auto; padding-right: 33px; font-size: 11.5px; font-weight: 600; color: #98A2B3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.nf-clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #EEF1F5; }
.nf-paneel-tekst { display: grid; gap: 4px; margin-top: 14px; font-size: 15px; line-height: 1.55; }
.nf-paneel-titel { font-weight: 700; color: var(--nf-ink); }

/* Met JS: tabbladen links, één clip rechts. */
.nf-slider.is-js .nf-slider-raster { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.nf-slider.is-js .nf-panelen { display: grid; grid-template-columns: 1fr; gap: 0; }
.nf-slider.is-js .nf-paneel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.99); transition: opacity 0.5s ease, transform 0.6s var(--nf-ease), visibility 0s linear 0.5s; }
.nf-slider.is-js .nf-paneel.is-actief { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.6s var(--nf-ease), visibility 0s; }
.nf-slider.is-js .nf-paneel-tekst { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.nf-slider .nf-pauze.is-klein { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 40px; height: 40px; }

.nf-tabs { display: grid; gap: 6px; }
.nf-tabs[hidden] { display: none; }
.nf-tab {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: start; width: 100%;
  padding: 16px 18px 18px; border: 1px solid transparent; border-radius: 14px; background: transparent;
  font: inherit; text-align: left; color: var(--nf-text); cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nf-tab:hover { background: rgba(255, 255, 255, 0.7); }
.nf-tab.is-actief { background: #fff; border-color: var(--nf-line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 28px -18px rgba(16, 24, 40, 0.25); }
.nf-tab:focus-visible { outline: 2px solid var(--nf-teal); outline-offset: 2px; }
.nf-tab-nr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; color: #98A2B3; padding-top: 3px; letter-spacing: 0.04em; }
.nf-tab.is-actief .nf-tab-nr { color: var(--nf-teal-ink); }
.nf-tab-tekst { display: grid; gap: 4px; min-width: 0; }
.nf-tab-titel { font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; color: var(--nf-ink); }
.nf-tab-uitleg { font-size: 14px; line-height: 1.55; color: var(--nf-muted); display: none; }
.nf-tab.is-actief .nf-tab-uitleg { display: block; }
.nf-tab-balk { grid-column: 2; height: 2px; margin-top: 10px; border-radius: 2px; background: rgba(11, 36, 84, 0.1); overflow: hidden; visibility: hidden; }
.nf-tab.is-actief .nf-tab-balk { visibility: visible; }
.nf-tab-vol { display: block; height: 100%; background: var(--nf-teal); transform-origin: left; transform: scaleX(var(--vol, 0)); }

@media (max-width: 900px) {
  .nf-slider.is-js .nf-slider-raster { grid-template-columns: 1fr; gap: 20px; }
  .nf-slider.is-js .nf-panelen { order: -1; }
  .nf-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nf-tab { grid-template-columns: 1fr; padding: 12px 14px 14px; border-color: var(--nf-line); background: rgba(255, 255, 255, 0.6); }
  .nf-tab-nr { padding-top: 0; }
  .nf-tab-titel { font-size: 15px; }
  .nf-tab-uitleg { display: none !important; }
  .nf-tab-balk { grid-column: 1; margin-top: 6px; }
}
@media (max-width: 520px) {
  .nf-kader { border-radius: 12px; }
  .nf-kader-balk { height: 26px; padding: 0 10px; }
  .nf-kader-balk i { width: 7px; height: 7px; }
  .nf-kader-balk span { font-size: 10px; padding-right: 23px; }
}

/* ================================================================================================
   Minder beweging: alleen posters, geen binnenkomst, geen wisselend woord
   ================================================================================================ */

@media (prefers-reduced-motion: reduce) {
  .nf-hero-video { display: none; }
  .nf-hero.is-js .nf-in { animation: none; }
  .nf-hero.is-js .nf-woord { transition: none; }
  .nf-hero.is-js .nf-scenes { display: none; }
  .nf-hero.is-js .nf-wolk, .nf-hero.is-js .nf-zweef { animation: none; }
  .nf-slider.is-js .nf-paneel { transition: none; }
}
