/* ============================================================
   Hondenschool DTC Tongeren
   Stijl geïnspireerd op dtctongeren.be: witte pagina's, een
   bordeaux accentkleur en een rustige, zakelijke opmaak.
   Palet:  bordeaux     #82403E   (huisstijlkleur)
           bordeaux-d   #5F2F2D   (donkere variant, hover/voettekst)
           wit          #FFFFFF   (paginaäergrond)
           vlak         #F4F3F2   (lichte vlakken t.o.v. wit)
           inkt         #3C3C3C   (tekst)
           lijn         #E3E1E0   (randen)
   ============================================================ */
:root {
  --bordeaux: #82403E;
  --bordeaux-donker: #5F2F2D;
  --wit: #ffffff;
  --vlak: #F4F3F2;
  --inkt: #3C3C3C;
  --lijn: #E3E1E0;
  --display: "Raleway", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
  /* aliassen zodat oudere regels blijven werken */
  --veld: var(--bordeaux);
  --veld-donker: var(--bordeaux-donker);
  --krijt: var(--wit);
  --lint: var(--bordeaux);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--inkt);
  background: var(--wit);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 700; color: #262626; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; margin: 0.25rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; }
a { color: var(--bordeaux); }
a:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; }

/* ---------- header & navigatie ---------- */
.site-header {
  background: var(--wit);
  color: var(--inkt);
  border-bottom: 1px solid var(--lijn);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center;
  gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap;
}

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none; cursor: pointer;
  font-weight: 600; padding: 0.5rem 1rem;
  border: 1px solid var(--lijn); border-radius: 6px; color: var(--inkt);
}

.nav-list {
  display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none;
  flex-wrap: wrap; align-items: center;
  font-family: var(--display);
}
.nav-list a, .nav-label {
  display: block; padding: 0.55rem 0.9rem; color: var(--inkt);
  text-decoration: none; font-weight: 500; border-radius: 5px;
}
.nav-label { cursor: default; }
.nav-list > li > a:hover, .nav-list > li:hover > .nav-label, .nav-list > li:hover > a,
.nav-list > li.is-actief > a {
  background: var(--bordeaux); color: var(--wit);
}
.has-sub { position: relative; }
.has-sub > .nav-label::after, .has-sub > a::after { content: " ▾"; font-size: 0.7em; }
.sub-list {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 12rem; margin: 0; padding: 0.4rem; list-style: none;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(60,60,60,0.15);
}
.has-sub:hover .sub-list, .has-sub:focus-within .sub-list { display: block; }
.sub-list a { color: var(--inkt); padding: 0.45rem 0.7rem; }
.sub-list a:hover { background: var(--vlak); color: var(--bordeaux); }

@media (max-width: 800px) {
  .nav-toggle-label { display: inline-block; }
  .nav-list { display: none; flex-direction: column; align-items: stretch; width: 100%; padding-top: 0.5rem; }
  .nav-toggle-input:checked ~ .nav-list { display: flex; }
  .sub-list { display: block; position: static; box-shadow: none; border: 0;
    background: transparent; padding-left: 1rem; }
  .sub-list a { color: var(--inkt); opacity: 0.8; }
  .sub-list a:hover { background: var(--vlak); opacity: 1; }
  .site-nav { width: 100%; }
}

/* ---------- meldingen ---------- */
.mededelingen { display: flex; flex-direction: column; }
.mededeling { padding: 0.65rem 0; }
.mededeling-inner { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.mededeling-icoon { flex: none; font-size: 1.1rem; line-height: 1; }
.mededeling-tekst { flex: 1; min-width: 12rem; margin: 0; font-weight: 600; font-size: 0.92rem; }
.mededeling-link { flex: none; font-weight: 700; font-size: 0.88rem; text-decoration: underline; white-space: nowrap; }
.mededeling-sluiten {
  flex: none; margin-left: auto; background: none; border: none; cursor: pointer;
  color: inherit; font-size: 1rem; line-height: 1; padding: 0.2rem; opacity: 0.7;
}
.mededeling-sluiten:hover { opacity: 1; }
.mededeling-info { background: #F1DEDB; color: var(--bordeaux-donker); }
.mededeling-info .mededeling-link { color: var(--bordeaux-donker); }
.mededeling-geen-les { background: #F7E3B0; color: #6B4A12; }
.mededeling-geen-les .mededeling-link { color: #6B4A12; }

/* ---------- paginakop ---------- */
.page-head {
  background: var(--vlak);
  color: var(--inkt);
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--lijn);
}
.page-head a { color: var(--bordeaux); }
.eyebrow {
  margin: 0; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bordeaux); font-weight: 700;
}
.lead { font-size: 1.1rem; max-width: 46rem; margin-bottom: 0; color: #5a5a5a; }

.content { padding: 2rem 1.25rem 3.5rem; max-width: 48rem; }
.content img { max-width: 100%; height: auto; border-radius: 8px; }
.content blockquote {
  margin: 1.5rem 0; padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--bordeaux); background: var(--vlak); border-radius: 0 8px 8px 0;
}
.les-foto {
  aspect-ratio: 16/9; overflow: hidden; border-radius: 8px;
  margin: 1.5rem 0; background: var(--lijn);
}
.les-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---------- home ---------- */
.hero {
  background: var(--vlak);
  color: var(--inkt); padding: 3.5rem 0;
  border-bottom: 1px solid var(--lijn);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 30rem; height: 30rem; border-radius: 50%; top: -10rem; right: -8rem;
  background: radial-gradient(circle, rgba(130,64,62,0.15), rgba(130,64,62,0) 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: 1.15rem; }
.hero-acties { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-tekst { animation: hero-op 700ms ease-out both; }
.hero-foto { animation: hero-op 700ms ease-out 150ms both; }
@keyframes hero-op {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-foto {
  border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
  box-shadow: 0 16px 32px rgba(60,60,60,0.18);
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; animation: hero-wissel 18s linear infinite;
}
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 6s; }
.hero-slider img:nth-child(3) { animation-delay: 12s; }
@keyframes hero-wissel {
  0%, 5.5% { opacity: 0; }
  11%, 27.7% { opacity: 1; }
  33.3%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider img { animation: none !important; opacity: 0; }
  .hero-slider img:first-child { opacity: 1; }
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-foto { order: -1; }
}
.knop {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 5px;
  font-weight: 600; text-decoration: none; font-family: var(--display);
}
.knop-primair { background: var(--bordeaux); color: var(--wit); }
.knop-primair:hover { background: var(--bordeaux-donker); }
.knop-secundair { border: 2px solid var(--inkt); color: var(--inkt); }
.knop-secundair:hover { background: var(--inkt); color: var(--wit); }
.knop-licht { background: var(--wit); color: var(--bordeaux-donker); }
.knop-licht:hover { background: #F4E4E3; }

/* ---------- instapklassen-banner (homepage) ---------- */
.instap-banner { background: var(--bordeaux); color: var(--wit); padding: 1.5rem 0; }
.instap-banner-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem;
}
.instap-banner-titel {
  flex: 1 1 14rem; margin: 0; color: var(--wit);
  font-size: 1.15rem;
}
.instap-banner-datums { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.instap-banner-datums li {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.92rem; white-space: nowrap;
}
.instap-banner-datum { font-family: var(--display); font-weight: 700; }
.instap-banner-tijd { opacity: 0.85; }
.instap-banner-knop { flex: none; }
@media (max-width: 700px) {
  .instap-banner { padding: 1.1rem 0; }
  .instap-banner-inner { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .instap-banner-titel { flex: none; width: 100%; font-size: 1.05rem; }
  .instap-banner-datums { gap: 0.5rem; }
  .instap-banner-datums li { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
  .instap-banner-knop { width: 100%; text-align: center; }
}

.home-blokken {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.25rem; padding: 3rem 1.25rem;
}
.blok {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: var(--inkt);
  display: flex; align-items: stretch; min-width: 0;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.blok:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60,60,60,0.15); }
.blok-foto { flex: 0 0 38%; overflow: hidden; background: var(--lijn); }
.blok-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 350ms ease; }
.blok:hover .blok-foto img { transform: scale(1.06); }
.blok-tekst { flex: 1; min-width: 0; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.blok h2 { margin: 0 0 0.5rem; font-size: 1.1rem; line-height: 1.3; color: var(--bordeaux); }
.blok p { margin: 0; font-size: 0.92rem; }

@media (max-width: 560px) {
  .blok { flex-direction: column; }
  .blok-foto { flex: none; aspect-ratio: 16/9; }
}

/* ---------- scroll-onthulling (homepage) ---------- */
.js-animaties [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.js-animaties [data-reveal].in-beeld { opacity: 1; transform: translateY(0); }
.home-blokken .blok:nth-child(2) { transition-delay: 90ms; }
.home-blokken .blok:nth-child(3) { transition-delay: 180ms; }
.home-blokken .blok:nth-child(4) { transition-delay: 270ms; }

/* ---------- lesrooster (homepage) ---------- */
.rooster-sectie { padding: 1rem 0 3rem; }
.rooster-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.rooster-dag {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px;
  padding: 1.25rem 1.4rem 1.4rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.rooster-dag.is-vandaag { border-color: var(--bordeaux); box-shadow: 0 8px 20px rgba(130,64,62,0.14); }
.rooster-dag h3 { margin: 0 0 0.9rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.rooster-lijst { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.rooster-lijst li { display: flex; gap: 0.9rem; align-items: baseline; flex-wrap: wrap; }
.rooster-tijd {
  flex: none; font-family: var(--display); font-weight: 700; color: var(--bordeaux);
  background: var(--vlak); border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 0.88rem;
  white-space: nowrap;
}
.rooster-klassen { flex: 1; min-width: 10rem; font-size: 0.92rem; color: var(--inkt); }
.rooster-noot { display: block; font-size: 0.8rem; color: #767676; margin-top: 0.2rem; }

/* ---------- kaart (homepage) ---------- */
.kaart-sectie { padding: 1rem 0 3.5rem; }
.kaart-frame {
  aspect-ratio: 16/7; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--lijn); margin: 1.5rem 0;
}
.kaart-knop { margin-top: 0.25rem; }
@media (max-width: 700px) {
  .kaart-frame { aspect-ratio: 4/3; }
}

/* ---------- facebook (homepage) ---------- */
.facebook-sectie { padding: 1rem 0 3.5rem; }
.facebook-frame {
  max-width: 500px; margin: 1.5rem 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--lijn);
}
.facebook-frame iframe { display: block; width: 100%; max-width: 100%; height: 213px; }
.facebook-knop { margin-top: 1.25rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem;
  align-items: start; padding: 3rem 1.25rem 3.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  display: flex; gap: 1rem; background: var(--wit);
  border: 1px solid var(--lijn); border-radius: 10px; padding: 1.25rem 1.4rem;
}
.contact-icon {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--vlak); display: flex; align-items: center; justify-content: center;
}
.contact-icon svg {
  width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--bordeaux);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--bordeaux); }
.contact-card p { margin: 0; font-size: 0.92rem; }
.contact-card p + p { margin-top: 0.6rem; }
.contact-kaart { position: sticky; top: 1.25rem; }
.contact-kaart .kaart-frame { aspect-ratio: 3/4; margin: 0 0 1rem; }
.contact-kaart .kaart-knop { display: block; text-align: center; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 3rem; }
  .contact-kaart { position: static; }
  .contact-kaart .kaart-frame { aspect-ratio: 4/3; }
}

/* ---------- overzichtslijst (sectie-hoofdpagina's) ---------- */
.overzicht-lijst {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem;
}
.overzicht-lijst a {
  display: block; height: 100%; background: var(--wit); color: inherit; text-decoration: none;
  border: 1px solid var(--lijn); border-radius: 10px; padding: 1.25rem 1.4rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.overzicht-lijst a:hover { border-color: var(--bordeaux); box-shadow: 0 8px 20px rgba(130,64,62,0.14); transform: translateY(-2px); }
.overzicht-lijst h3 { margin: 0 0 0.4rem; color: var(--bordeaux); font-size: 1.05rem; }
.overzicht-lijst p { margin: 0; font-size: 0.92rem; color: var(--inkt); }

/* ---------- nieuwsbrieven ---------- */
.nieuwsbrief-datum {
  margin: 0 0 0.3rem; font-family: var(--display); font-weight: 700;
  font-size: 0.85rem; color: var(--bordeaux); text-transform: capitalize;
}
.overzicht-lijst p.nieuwsbrief-datum { color: var(--bordeaux); font-size: 0.8rem; }
.nieuwsbrief-terug { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--lijn); font-weight: 600; }

/* ---------- traject (lesaanbod) ---------- */
.traject { margin: 2rem 0; }
.traject .overzicht-lijst { margin-top: 0; }
.traject-pijl {
  text-align: center; margin: 1.1rem 0; font-size: 0.85rem;
  font-weight: 600; color: #767676;
}
.traject-rij--smal { max-width: 20rem; margin-left: auto; margin-right: auto; }
.parcours a { font-weight: 600; }

/* ---------- fotogalerij ---------- */
.jaar-sectie { margin-top: 2.5rem; }
.jaar-sectie:first-child { margin-top: 1.5rem; }
.jaar-sectie:last-child { margin-bottom: 2.5rem; }
.jaar-titel {
  margin: 0; padding-bottom: 0.6rem;
  font-size: 2rem; border-bottom: 2px solid var(--bordeaux);
}
.maand-sectie { margin-top: 0.5rem; }
.maand-titel {
  margin: 1.75rem 0 0; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #767676;
}
.album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.25rem; padding: 1rem 0 1rem;
}
.album-card {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: var(--inkt);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.album-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60,60,60,0.15); }
.album-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--lijn); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-info { padding: 0.9rem 1rem 1rem; }
.album-info h2 { margin: 0 0 0.15rem; font-size: 1.1rem; color: var(--bordeaux); }
.album-info p { margin: 0; font-size: 0.9rem; color: #767676; }

.foto-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem; padding: 2rem 0 3.5rem;
}
.foto-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--lijn); }
.foto-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 150ms ease; }
.foto-grid a:hover img { transform: scale(1.04); }

/* ---------- lightbox ---------- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 17, 0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 1.5rem 0;
}
.lb-overlay[hidden] { display: none; }
.lb-hoofd { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-hoofd img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-sluiten {
  position: absolute; top: 1rem; right: 1.25rem; background: none; border: none;
  color: var(--wit); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2;
}
.lb-pijl {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12);
  border: none; color: var(--wit); font-size: 2.2rem; line-height: 1; width: 3rem; height: 3rem;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-pijl:hover { background: rgba(255, 255, 255, 0.25); }
.lb-vorige { left: 1rem; }
.lb-volgende { right: 1rem; }
.lb-teller { color: var(--wit); opacity: 0.75; font-size: 0.85rem; margin: 0.75rem 0 0; text-align: center; }
.lb-strook {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 0.5rem 1.5rem;
  max-width: 100%; scroll-behavior: smooth;
}
.lb-strook img {
  height: 4rem; width: 5.3rem; object-fit: cover; border-radius: 6px; cursor: pointer;
  opacity: 0.5; border: 2px solid transparent; flex: none;
  transition: opacity 150ms ease, border-color 150ms ease;
}
.lb-strook img:hover { opacity: 0.85; }
.lb-strook img.is-actief { opacity: 1; border-color: var(--bordeaux); }
@media (max-width: 700px) {
  .lb-pijl { width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
  .lb-strook img { height: 3rem; width: 4rem; }
}

/* ---------- tabellen (kalenders) ---------- */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; background: var(--wit); display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--lijn); }
th { background: var(--bordeaux); color: var(--wit); font-family: var(--display); font-weight: 600; }

/* ---------- kalender (jaarkalender) ---------- */
.kalender-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.5rem 0;
}
.kalender-kaart {
  border: 1px solid var(--lijn); border-radius: 10px; padding: 0.85rem 1rem;
  background: var(--wit);
}
.kalender-kaart.is-geenles { background: rgba(130, 64, 62, 0.045); }
.kalender-datum {
  font-family: var(--display); font-weight: 700; color: var(--bordeaux); font-size: 0.85rem;
}
.kalender-titel { margin: 0.2rem 0 0; font-size: 0.98rem; font-weight: 600; }
.kalender-opmerking { margin: 0.25rem 0 0; font-size: 0.83rem; color: #6b6b6b; }
.badge {
  display: inline-block; margin-top: 0.4rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.03em; padding: 0.18rem 0.55rem; border-radius: 999px;
  text-transform: uppercase; white-space: nowrap;
}
.badge-geenles { background: #f1e0df; color: var(--bordeaux-donker); }
.badge-les { background: #e0efe3; color: #2f6b3f; }

.kalender-voorbij { margin: -0.5rem 0 1.5rem; }
.kalender-voorbij summary {
  cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 0.92rem;
  color: var(--bordeaux); padding: 0.6rem 0; list-style: none;
}
.kalender-voorbij summary::-webkit-details-marker { display: none; }
.kalender-voorbij summary::before { content: "▸ "; }
.kalender-voorbij[open] summary::before { content: "▾ "; }
.kalender-voorbij .kalender-grid .kalender-kaart { opacity: 0.55; }

@media (max-width: 800px) {
  .kalender-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .kalender-grid { grid-template-columns: 1fr; }
}

/* ---------- wedstrijdkalender ---------- */
.wk-ploeg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 2rem;
}
.wk-ploeg-kolom h3 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--bordeaux); }
.wk-ploeg-kolom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wk-ploeg-kolom li {
  background: var(--vlak); border-radius: 6px; padding: 0.45rem 0.7rem;
  font-size: 0.9rem; color: var(--inkt);
}
@media (max-width: 800px) {
  .wk-ploeg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .wk-ploeg-grid { grid-template-columns: 1fr; }
}

.wk-legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 1.25rem 0; font-size: 0.88rem; }
.wk-legende-item { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--inkt); }
.wk-stip { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; flex: none; }
.wk-stip-brevet { background: var(--inkt); }
.wk-stip-debutanten { background: var(--bordeaux); }
.wk-stip-gp1 { background: var(--bordeaux-donker); }
.wk-stip-gp2 { background: #F1DEDB; border: 1px solid var(--bordeaux-donker); }

.wk-kalender {
  border: 1px solid var(--lijn); border-radius: 10px; background: var(--wit);
  padding: 1.25rem; margin: 1.5rem 0;
}
.wk-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.wk-maand-titel { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.wk-nav {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--lijn);
  background: var(--wit); color: var(--bordeaux); font-size: 1.2rem; line-height: 1;
  cursor: pointer; transition: background 150ms ease;
}
.wk-nav:hover:not(:disabled) { background: var(--vlak); }
.wk-nav:disabled { opacity: 0.3; cursor: default; }

.wk-weekdagen {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #767676;
  text-align: center; margin-bottom: 0.4rem;
}
.wk-weekdagen span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.wk-dag {
  min-width: 0; aspect-ratio: 1; border: 1px solid var(--lijn); border-radius: 8px; background: var(--wit);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  font-family: var(--body); font-size: 0.85rem; color: var(--inkt);
  padding: 0.25rem; cursor: default; overflow: hidden;
}
.wk-dag-leeg { border-color: transparent; background: transparent; }
.wk-dag:disabled { color: #b8b8b8; }
.wk-dag.heeft-wedstrijd {
  cursor: pointer; font-weight: 600; background: var(--vlak);
  transition: border-color 150ms ease, transform 150ms ease;
}
.wk-dag.heeft-wedstrijd:hover { border-color: var(--bordeaux); transform: translateY(-2px); }
.wk-dag.is-vandaag { border-color: var(--bordeaux); border-width: 2px; }
.wk-dag-nummer { line-height: 1; }
.wk-dag-stippen { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; max-width: 100%; }

.wk-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 17, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.wk-modal-overlay[hidden] { display: none; }
.wk-modal {
  position: relative; background: var(--wit); border-radius: 12px; padding: 1.75rem;
  max-width: 30rem; width: 100%; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(20, 18, 17, 0.3);
}
.wk-modal-sluiten {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--inkt); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0.6;
}
.wk-modal-sluiten:hover { opacity: 1; }
.wk-modal-titel { margin: 0 1.75rem 1rem 0; font-size: 1.1rem; text-transform: capitalize; }
.wk-modal-lijst { display: flex; flex-direction: column; gap: 1rem; }
.wk-modal-item { border-top: 1px solid var(--lijn); padding-top: 1rem; }
.wk-modal-item:first-child { border-top: none; padding-top: 0; }
.wk-modal-item h4 { margin: 0; font-size: 1rem; color: var(--bordeaux); }
.wk-modal-adres { margin: 0.25rem 0 0; font-size: 0.9rem; color: #6b6b6b; }
.wk-modal-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.wk-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; white-space: nowrap;
}
.wk-badge-brevet { background: var(--inkt); color: var(--wit); }
.wk-badge-debutanten { background: var(--bordeaux); color: var(--wit); }
.wk-badge-gp1 { background: var(--bordeaux-donker); color: var(--wit); }
.wk-badge-gp2 { background: #F1DEDB; color: var(--bordeaux-donker); }

@media (max-width: 560px) {
  .wk-kalender { padding: 0.85rem; }
  .wk-weekdagen, .wk-grid { gap: 0.25rem; }
  .wk-dag { font-size: 0.68rem; border-radius: 6px; padding: 0.15rem; gap: 0.15rem; }
  .wk-dag-nummer { font-size: 0.78rem; }
  .wk-dag-stippen { gap: 0.12rem; }
  .wk-stip { width: 0.36rem; height: 0.36rem; }
}
@media (max-width: 380px) {
  .wk-kalender { padding: 0.6rem; }
  .wk-weekdagen, .wk-grid { gap: 0.15rem; }
  .wk-dag { font-size: 0.62rem; border-radius: 5px; padding: 0.1rem; }
  .wk-dag-nummer { font-size: 0.7rem; }
  .wk-stip { width: 0.3rem; height: 0.3rem; }
  .wk-nav { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
  .wk-maand-titel { font-size: 1rem; }
}

/* ---------- faq ---------- */
.faq-lijst { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--lijn); border-radius: 10px; background: var(--wit);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; font-family: var(--display); font-weight: 600; color: var(--inkt);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.2rem; font-weight: 400; line-height: 1;
  color: var(--bordeaux); transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--vlak); }
.faq-item[open] summary { border-bottom: 1px solid var(--lijn); }
.faq-item p { margin: 0; padding: 0.9rem 1.1rem 1.1rem; color: var(--inkt); }

/* ---------- sponsors ---------- */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin: 2rem 0 2.5rem;
}
.sponsor-card {
  display: flex; flex-direction: column; background: var(--wit);
  border: 1px solid var(--lijn); border-radius: 12px; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sponsor-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60,60,60,0.15); }
.sponsor-logo {
  height: 7rem; flex: none; background: var(--vlak); display: flex;
  align-items: center; justify-content: center; padding: 1rem;
  border-bottom: 1px solid var(--lijn);
}
.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; }
.sponsor-inhoud { flex: 1; display: flex; flex-direction: column; padding: 1.25rem 1.5rem 1.5rem; }
.sponsor-inhoud h3 { margin: 0; font-size: 1.05rem; color: var(--bordeaux); }
.sponsor-tagline { margin: 0.15rem 0 0.75rem; font-size: 0.85rem; color: #6b6b6b; font-style: italic; }
.sponsor-inhoud p { margin: 0; font-size: 0.92rem; }
.sponsor-inhoud p + p { margin-top: 0.75rem; }
.sponsor-extra { background: var(--vlak); border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.87rem; }
.sponsor-link {
  margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--lijn);
  font-weight: 600; font-size: 0.88rem;
}

/* ---------- medewerkerslijst ---------- */
.personen-lijst {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1.75rem 1.25rem; margin: 1.5rem 0 2.5rem;
}
.persoon-rij { display: block; }
.persoon-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: var(--lijn); margin-bottom: 0.65rem;
}
.persoon-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.persoon-avatar--leeg {
  display: flex; align-items: center; justify-content: center;
  background: var(--bordeaux); color: var(--wit);
  font-family: var(--display); font-weight: 700; font-size: 2rem;
}
.persoon-naam { margin: 0; font-weight: 600; }
.persoon-rol { margin: 0.15rem 0 0; font-size: 0.85rem; color: #767676; }

/* ---------- sponsorbanner ---------- */
.sponsor-band {
  background: var(--vlak);
  border-top: 1px solid var(--lijn);
  padding: 1.25rem 0 1.5rem;
}
.sponsor-band-label { margin: 0 0 0.75rem; text-align: center; }
.sponsor-band-label a {
  font-family: var(--display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.sponsor-band-label a:hover { text-decoration: underline; }
.sponsor-band-viewport { overflow: hidden; }
.sponsor-band-track {
  --sponsor-kopieen: 6;
  display: flex; align-items: center; gap: 3rem;
  width: max-content;
  animation: sponsor-band-scroll 32s linear infinite;
}
.sponsor-band:hover .sponsor-band-track { animation-play-state: paused; }
.sponsor-band-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 3rem; }
.sponsor-band-logo img {
  height: 100%; width: auto; max-width: 9rem; object-fit: contain;
  filter: grayscale(100%); opacity: 0.65;
  transition: filter 150ms ease, opacity 150ms ease;
}
.sponsor-band-logo:hover img, .sponsor-band-logo:focus-visible img { filter: grayscale(0%); opacity: 1; }
@keyframes sponsor-band-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / var(--sponsor-kopieen))); }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-band-track { overflow-x: auto; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bordeaux-donker); color: var(--wit);
  padding: 1.5rem 0; text-align: center;
}
.site-footer a { color: #E8B9B7; }
.site-footer a:hover { color: var(--wit); }
.footer-links { margin: 0 0 0.6rem; font-size: 0.9rem; }
.footer-small { opacity: 0.75; font-size: 0.8rem; margin: 0; }
.footer-social { display: flex; justify-content: center; gap: 0.6rem; margin: 0 0 0.75rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--wit);
  transition: background 150ms ease, color 150ms ease;
}
.footer-social a:hover { background: var(--wit); color: var(--bordeaux-donker); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-social svg.icon-facebook { fill: currentColor; }
.footer-social svg.icon-instagram { fill: none; stroke: currentColor; stroke-width: 1.8; }
