/* ============================================================
   TTV Nijlen – stijl
   Kleuren, maten en bewegingscurves staan als variabelen in :root,
   zodat je de huisstijl op één plek kan aanpassen.
   ============================================================ */

:root {
  /* Kleuren */
  --blue: #1f4fd1;
  --blue-dark: #0c1c45;
  --blue-deep: #071232;
  --yellow: #ffcc1a;
  --yellow-soft: #fff4cc;
  --ink: #0f1326;
  --ink-2: #3a4160;
  --muted: #646b87;
  --bg: #ffffff;
  --tint: #f5f7fc;
  --line: rgba(15, 19, 38, 0.08);
  --line-strong: rgba(15, 19, 38, 0.14);
  --line-dark: rgba(255, 255, 255, 0.2);

  /* Vorm */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 69, 0.06), 0 0 0 1px rgba(12, 28, 69, 0.05);
  --shadow: 0 1px 2px rgba(12, 28, 69, 0.04), 0 8px 24px -6px rgba(12, 28, 69, 0.12), 0 0 0 1px rgba(12, 28, 69, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(12, 28, 69, 0.25);

  /* Typografie */
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1160px;

  /* Beweging – sterke custom curves, de ingebouwde zijn te slap */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--yellow); color: var(--blue-deep); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; max-width: 22ch; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--blue);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.975rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 0.8em 1.45em;
  border-radius: 999px;
  border: 0;
  box-shadow: inset 0 -2px 0 rgba(7, 18, 50, 0.12), 0 1px 2px rgba(7, 18, 50, 0.12);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
/* Indrukken moet je voelen */
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-small { padding: 0.55em 1.15em; font-size: 0.9rem; }
.btn .arrow { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffd53d; }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line-strong); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; border-radius: 8px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--blue);
}
.nav-links .btn { margin-left: 10px; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover { color: var(--ink); background: var(--tint); }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform 250ms var(--ease-out), opacity 150ms ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--blue-deep);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 60%;
  animation: hero-settle 1400ms var(--ease-out) both;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 18, 50, 0.35) 0%, rgba(7, 18, 50, 0) 30%),
    linear-gradient(100deg, rgba(7, 18, 50, 0.94) 0%, rgba(7, 18, 50, 0.72) 42%, rgba(7, 18, 50, 0.15) 100%);
}
.hero-content { padding-top: 96px; padding-bottom: 88px; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 0.4em;
}
.accent { color: var(--yellow); }

/* Motto: "1 2 7" geteld, dan "alles geven!" */
.motto { display: flex; flex-direction: column; gap: 0.02em; }
.motto .count { display: flex; gap: 0.32em; font-size: 1.25em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.motto .accent { display: block; }
.hero-content > .motto { animation: none; }
.motto .count > span,
.motto .accent { animation: count-in 520ms var(--ease-out) both; }
.motto .count > :nth-child(1) { animation-delay: 120ms; }
.motto .count > :nth-child(2) { animation-delay: 220ms; }
.motto .count > :nth-child(3) { animation-delay: 320ms; }
.motto .accent { animation-name: rise; animation-duration: 700ms; animation-delay: 440ms; }
.hero-content > :nth-child(3) { animation-delay: 540ms; }
.hero-content > :nth-child(4) { animation-delay: 620ms; }

@keyframes count-in {
  from { opacity: 0; transform: translateY(0.25em) scale(0.92); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 30em; color: rgba(255, 255, 255, 0.82); margin: 0 0 2.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero-entree: zeldzaam, dus mag een tikje theatraal – kort gestaffeld */
.hero-content > * { animation: rise 700ms var(--ease-out) both; }
.hero-content > :nth-child(1) { animation-delay: 80ms; }
.hero-content > :nth-child(2) { animation-delay: 140ms; }
.hero-content > :nth-child(3) { animation-delay: 200ms; }
.hero-content > :nth-child(4) { animation-delay: 260ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes hero-settle {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Cijfers ---------- */
.stats { background: var(--blue); color: #fff; position: relative; }
.stats-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-top: 0; padding-bottom: 0; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 30px 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--yellow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Secties ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--blue); color: #fff; }
.section-dark .eyebrow { color: var(--yellow); }
.section-dark .muted { color: rgba(255, 255, 255, 0.88); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split p { color: var(--ink-2); }
.photo-stack { margin: 0; position: relative; }
.photo-stack img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.photo-stack::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
}

/* ---------- Palmares ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  transition: background-color 200ms ease;
}
.timeline .year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: var(--yellow);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.timeline h3 { margin-bottom: 0.35em; }
.timeline p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.94rem; line-height: 1.55; }

@media (hover: hover) and (pointer: fine) {
  .timeline li:hover { background: rgba(255, 255, 255, 0.14); }
}

/* ---------- Trainen ---------- */
.training-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 2.5rem 0 16px;
}
.training-card > div { padding: 40px; }
.training-card img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.training-list { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; }
.training-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.025rem;
}
.training-list li span { color: var(--muted); font-variant-numeric: tabular-nums; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; }
.card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--yellow);
}
.card h3 { margin-top: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.card-dark { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-dark); }
.card-dark p { color: rgba(255, 255, 255, 0.88); }

/* ---------- Nieuws ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 2.5rem; }
.news-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 250ms var(--ease-out), box-shadow 250ms ease;
}
.news-card .news-media { overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 600ms var(--ease-out); }
.news-body { padding: 22px 24px 26px; }
.news-body time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-body h3 { margin: 0.45em 0 0.4em; font-size: 1.2rem; }
.news-body p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 20px 40px -16px rgba(12, 28, 69, 0.2); }
  .news-card:hover img { transform: scale(1.03); }
}

/* ---------- Galerij ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--tint);
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item:active { transform: scale(0.98); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12, 28, 69, 0.06);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.04); }
}

/* Lightbox: modaal → blijft gecentreerd, in met ease-out, uit sneller dan in */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 0s linear 150ms;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms var(--ease-out), visibility 0s;
}
.lightbox img {
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 150ms ease;
}
.lightbox.open img { transform: scale(1); transition: transform 300ms var(--ease-out); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.lightbox-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
}

/* ---------- Sponsoring ---------- */
.lead-narrow { max-width: 640px; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; }
.sponsor-reasons { margin-top: 2.5rem; }
.card-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.sponsor-cta { margin-top: 3rem; text-align: center; }

/* ---------- Lidgeld ---------- */
.fee { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fee h3 { margin-bottom: 0.4em; }
.fee-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 0.5rem; }
.fee-amount { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fee-period { color: var(--ink-2); font-size: 0.95rem; }
.fee-period a { font-weight: 500; }
.fee-tiers { list-style: none; padding: 0; margin: 0 0 0.35rem; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.fee-tiers li { display: flex; flex-direction: column; gap: 4px; }
.fee-group { color: var(--ink-2); font-size: 0.9rem; }
.fee > .fee-period { margin: 0 0 0.5rem; }
.fee .muted { margin: 0; }

/* ---------- Integriteit ---------- */
.split-top { align-items: start; }
.section-dark a:not(.btn) { color: var(--yellow); }
.section-dark .split .lead-narrow { color: rgba(255, 255, 255, 0.88); }
.steps-title { margin: 2.25rem 0 1rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 204, 26, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 26, 0.35);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
/* Verbindingslijn tussen de stappen */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 2px;
  width: 1px;
  background: var(--line-dark);
}
.steps h4 { margin: 0 0 0.25em; font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.94rem; line-height: 1.6; }

.api-cards { display: grid; gap: 12px; }
.api-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.api-card-main { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.section-dark .api-card-main a { color: var(--blue); }
.api-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.88);
}
.api-card-main .api-label { color: var(--blue); }
.api-card h3 { margin-bottom: 0.35em; font-size: 1.15rem; }
.api-card p { margin: 0; font-size: 0.94rem; color: rgba(255, 255, 255, 0.88); }
.api-card-main p { color: var(--ink-2); }
.api-contact a { text-decoration: none; font-weight: 500; }
.api-more { display: inline-flex; gap: 6px; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.api-more span { transition: transform 200ms var(--ease-out); }
.tbd { color: var(--muted); font-weight: 500; font-style: italic; }
.section-dark .tbd { color: rgba(255, 255, 255, 0.88); }
.api-card-main .tbd { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  .api-contact a:hover { text-decoration: underline; }
  .api-more:hover span { transform: translate(2px, -2px); }
}

/* ---------- Aanspreekpunten (contact) ---------- */
.people { list-style: none; padding: 0; margin: 1.25rem 0 2.5rem; }
.people li { display: grid; gap: 1px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people li:first-child { border-top: 1px solid var(--line); }
.people-role { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.people strong { font-weight: 600; }
.people-contact { font-size: 0.9rem; }
.people-contact a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .people-contact a:hover { text-decoration: underline; }
}

.site-footer a { color: #fff; }

/* ---------- Kalender ---------- */
.calendar {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  margin-top: 2.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cal-main { padding: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cal-title { margin: 0; font-size: 1.35rem; text-transform: capitalize; font-variant-numeric: tabular-nums; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav button,
.cal-back {
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.cal-today { padding: 8px 14px; box-shadow: inset 0 0 0 1px var(--line-strong); margin-right: 6px; }
.cal-arrow { width: 36px; height: 36px; font-size: 1.35rem !important; line-height: 1; display: grid; place-items: center; }
.cal-nav button:active,
.cal-back:active { transform: scale(0.95); }

.cal-weekdays,
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 8px;
}
.cal-day {
  position: relative;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.cal-day:active { transform: scale(0.94); }
.cal-num { font-size: 0.925rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-dots { display: flex; gap: 3px; height: 5px; }
.cal-day.is-past { color: var(--muted); }
.cal-day.is-past .dot { opacity: 0.45; }
.cal-day.is-outside { color: rgba(15, 19, 38, 0.25); }
.cal-day.is-outside .dot { opacity: 0.3; }
.cal-day.is-today .cal-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -6px 0 -1px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-deep);
  font-weight: 700;
}
.cal-day.is-selected { background: var(--blue); color: #fff; }
.cal-day.is-selected .dot { opacity: 1; box-shadow: 0 0 0 1.5px var(--blue); }
.cal-day.is-selected.is-past { color: rgba(255, 255, 255, 0.8); }

.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); font-style: normal; }
.dot-training { background: var(--blue); }
.dot-wedstrijd { background: #e5484d; }
.dot-oefenavond { background: #30a46c; }
.dot-evenement { background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(7, 18, 50, 0.15); }
.cal-day.is-selected .dot-training { background: #8fb0ff; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .dot { width: 7px; height: 7px; }

.cal-side { background: var(--tint); padding: 28px; border-left: 1px solid var(--line); min-width: 0; }
.cal-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 14px; }
.cal-side-title { margin: 0; font-size: 1.05rem; }
.cal-side-title::first-letter { text-transform: uppercase; }
.cal-back { padding: 6px 12px; color: var(--blue); }

.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.agenda-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--muted);
}
.agenda-item.type-training::before { background: var(--blue); }
.agenda-item.type-wedstrijd::before { background: #e5484d; }
.agenda-item.type-oefenavond::before { background: #30a46c; }
.agenda-item.type-evenement::before { background: var(--yellow); }
.agenda-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.agenda-day { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.agenda-month { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 3px; }
.agenda-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.agenda-body strong { font-weight: 600; font-size: 0.95rem; }
.agenda-meta { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-meta::first-letter { text-transform: uppercase; }
.agenda-empty { color: var(--muted); font-size: 0.9rem; padding: 18px 0; }

@media (hover: hover) and (pointer: fine) {
  .cal-nav button:hover,
  .cal-back:hover { background: rgba(15, 19, 38, 0.05); color: var(--ink); }
  .cal-day:not(.is-selected):hover { background: var(--tint); }
}

.sponsor-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 2.5rem; }
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, color 150ms ease;
}
.sponsor:active { transform: scale(0.98); }
.sponsor img { max-height: 70px; width: auto; }
.sponsor-empty {
  box-shadow: none;
  border: 1.5px dashed var(--line-strong);
  color: var(--muted);
  font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
  .sponsor-empty:hover { border-color: var(--blue); color: var(--blue); }
}

/* ---------- Contact ---------- */
.contact-list, .board { list-style: none; padding: 0; margin: 1.75rem 0 2.5rem; }
.contact-list li, .board li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child, .board li:first-child { border-top: 1px solid var(--line); }
.contact-list strong {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact-list a { text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover { text-decoration: underline; }
}
/* Sociale media */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contact-list .social, .social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.social svg { flex: none; }
.social:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .contact-list .social:hover { text-decoration: none; border-color: var(--ink-2); }
  .socials-footer .social:hover { background: rgba(255, 255, 255, 0.12); }
}
.socials-footer { justify-content: flex-end; margin: 0 0 10px; }
.socials-footer .social { padding: 8px; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.socials-footer .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.socials-footer:empty { display: none; }

.board li { flex-direction: row; justify-content: space-between; gap: 16px; }
.board strong { font-weight: 600; }
.board span { color: var(--muted); text-align: right; }
.split:has(.contact-form) { align-items: start; }

.contact-form {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 0.2em; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.875rem; color: var(--ink-2); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-size: 1rem; /* 16px voorkomt inzoomen op iOS */
  font-weight: 400;
  color: var(--ink);
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 150ms ease, background-color 150ms ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(31, 79, 209, 0.14);
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: rgba(255, 255, 255, 0.88); font-size: 0.875rem; padding: 48px 0; line-height: 1.7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: 32px; }
.footer-grid strong { color: #fff; font-weight: 600; }
.footer-grid > div:last-child { text-align: right; }

/* ---------- Scroll-reveal ----------
   Kort en subtiel: ease-out, kleine afstand, items gestaffeld met 50ms. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* Foto's onthullen met clip-path van onder naar boven */
.reveal-clip {
  clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition: clip-path 900ms var(--ease-in-out);
}
.reveal-clip.visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
/* In de trainingskaart rondt de kaart zelf af */
.training-card .reveal-clip { clip-path: inset(0 0 100% 0); }
.training-card .reveal-clip.visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Minder beweging, niet nul: opacity mag blijven, verplaatsing niet */
  .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .reveal-clip { clip-path: none; transition: none; }
  .hero-content > *, .hero-bg, .motto .count > span, .motto .accent { animation: fade 400ms ease both; }
  .hero-content > .motto { animation: none; }
  .news-card, .news-card img, .gallery-item img, .lightbox img { transition: none; transform: none !important; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* Menu klapt open vanaf de header: origin bovenaan, snel, ease-out */
  .nav-links {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow), 0 24px 48px -16px rgba(12, 28, 69, 0.25);
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .nav-links a:not(.btn):active { background: var(--tint); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin: 6px 0 0; }

  .split, .training-card { grid-template-columns: 1fr; gap: 48px; }
  .calendar { grid-template-columns: 1fr; }
  .cal-side { border-left: 0; border-top: 1px solid var(--line); }
  .photo-stack { margin-right: 20px; }
  .stats-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .stat:last-child:nth-child(odd) { grid-column: span 2; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid > div:last-child { text-align: left; }
  .socials-footer { justify-content: flex-start; }
  .section { padding: 80px 0; }
  .hero-content { padding-top: 72px; padding-bottom: 64px; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .training-card > div { padding: 24px; }
  .cal-main, .cal-side { padding: 20px 14px; }
  .cal-weekdays, .cal-grid { gap: 2px; }
  .cal-day { height: 46px; }
  .cal-today { padding: 7px 12px; margin-right: 2px; }
  .contact-form { padding: 24px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 20px; gap: 14px; }
  .gallery { grid-auto-rows: 130px; gap: 8px; }
  .section { padding: 64px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}
