/* Algemene stijl */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #222;
  background: white;
}

a {
  text-decoration: none;
  color: inherit;
}

#home, #programma, #palmares, #vip, #parcours, #sponsors, #deelnemers, #contact {
  scroll-margin-top: 92px;
}

html {
  scroll-behavior: smooth;
}

/* Header */
header {
  background: #005b65;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fbdb00;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fbdb00;
  user-select: none;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Navigatiebasis */
nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* Hover: goudkleur + underline-animatie */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fbdb00;
  transition: width 0.3s ease;
}

/* Navigatiebasis */
nav ul {
  list-style: none;       /* geen bullets */
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* Hover: goudkleur + underline-animatie (niet voor .cta) */
nav ul li a:not(.cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fbdb00;
  transition: width 0.3s ease;
}

nav ul li a:not(.cta):hover {
  color: #fbdb00;
}

nav ul li a:not(.cta):hover::after {
  width: 100%;
}

/* Actieve link */
nav ul li a.active {
  color: #fbdb00;
}

nav ul li a.active::after {
  width: 100%;
}

/* CTA-knop (Contact) */
.cta {
  background: gold;
  color: #000 !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta:hover {
  background-color: #ffd700;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  background: url('Afbeeldingen/Cover-min.jpg') no-repeat center center/cover;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.60);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  background: #fbdb00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
}

.btn-outline {
  border: 2px solid #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

.hero-countdown {
  margin-bottom: 48px;
  padding: 0;
  color: white;
  font-weight: 700;
  text-align: center;
}

.countdown-date {
  font-size: 7rem;
  font-weight: 900;
  color: white;
  margin: 0;
}

.countdown {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
  margin: 0;
}

p.countdown-date {
  margin-bottom: 2px; /* of 0, afhankelijk wat je wil */
}

/*Sponsorbalk*/
.sponsor-slider {
  overflow: hidden;
  width: 100%;
  background-color: white;
  padding: 20px 0;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 600%; /* 6 sets => elk 20% */
}

.logo-set {
  width: 16.6666666666%; /* 6 sets = elk 16,66% */
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap; /* laat logo's wrapen */
  padding: 0 10px; /* iets ruimte binnen sets */
}

.logo-set img {
  height: 60px;
  object-fit: contain;
  flex: 1 1 calc(25% - 30px); /* elk logo 25% breedte minus gap */
  max-width: 100px;
}


/* PROGRAMMA */
.programma-outer {
  background-color: #f9f8f4;
  padding: 1rem 0;
  width: 100%; /* neemt volledige breedte in */
}
.programma-section {
  background-color: #f9f8f4;
  padding: 1rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
}

.programma-outer h2 {
  color: #C9A14A;
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Twee kolommen voor uurschema */
.programma-schedules {
  display: flex;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto 2rem auto;
  gap: 2rem;
  flex-wrap: nowrap;
}

.schedule-column {
  width: 48%;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.schedule-column h3 {
  color: #C9A14A;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #C9A14A;
  padding-bottom: 0.3rem;
}

.schedule-column ul {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.schedule-column ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
}

/* Container voor de drie foto's tussen programma en tv-uitzending */
.programma-photos-middle {
  max-width: 960px;
  margin: 2rem auto 3rem auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
    flex-wrap: nowrap;
}

.programma-photos-middle img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.programma-photos-middle img:hover {
  transform: scale(1.05);
}

/* TV-UITZENDING BLOK */
.tv-uitzending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 960px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.tv-uitzending img {
  width: 400px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tv-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 200px;
}

.tv-info h3 {
  color: #C9A14A;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.tv-info p {
  margin-bottom: 1rem;
}

.tv-info ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  margin: 0;
}

.tv-info ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.6rem;
  color: #444;
}

.tv-info ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: #C9A14A;
  border-radius: 50%;
}

.tv-logos {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap; /* zorgt dat ze door kunnen breken */
}

.tv-logos img {
  height: 45px; /* pas dit aan naar wens */
  object-fit: contain;
  flex: 1 1 100px; /* minimale breedte, flexibel */
  max-width: 120px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.tv-logos img:hover {
  transform: scale(1.05); /* logo iets vergroten */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* subtiele schaduw */
}

.tv-logos img[alt="Sporza logo"] {
  padding-top: 5px;
  padding-bottom: 5px;
  background: transparent; 
}

/* ============================
   Parcours Section
============================ */
.parcours-section {
  padding: 4rem 2rem;
  background-color: #fff; /* zachte achtergrondkleur */
  text-align: center;
}

.parcours-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #c2a300;
}

/* ============================
   Parcours Container
============================ */
.parcours-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
}

/* ============================
   Info & Roadbook Stack
============================ */
.info-stack {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  min-height: 400px;
}

.info-stack .info-box,
.info-stack .roadbook-box {
  position: absolute;
  inset: 0;
  margin: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.info-stack .info-box {
  position: relative;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-stack .roadbook-box {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-stack.show-roadbook .info-box {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.info-stack.show-roadbook .roadbook-box {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   Info Box Styling
============================ */
.info-box {
  background-color: #f9f8f4;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-box h3 {
  color: #c2a300;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
}

/* ============================
   Info Layout Helpers
============================ */
.info-columns, .info-center-wrapper {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

.info-timing, .info-activities {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-timing-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-time, .info-extra-label {
  margin-left: 0;
  font-weight: 700;
  color: #8c6e00;
}

.info-center-wrapper,
.info-timing-row,
.info-extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;         /* vervangt individuele marges */
  align-items: center;
  justify-content: center; /* of flex-start als links uitlijnen */
}

.info-activity, .info-activities, .info-extra-value {
  flex: 1;
  line-height: 1.3;
}

.info-extra {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 100%;      /* voorkomt overflow */
  box-sizing: border-box;
}

.info-extra-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-timing-row,
.info-extra-row {
  display: flex;
  align-items: center; /* top-align werkt ook, maar center is vaak netter */
  gap: 1.5rem;         /* zelfde als timing */
}

.info-extra-label {
  flex: 0 0 200px; /* vaste breedte voor alle labels */
  font-weight: 600;
}

/* ============================
   Downloads
============================ */
.info-downloads {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.download-link {
  color: #c2a300;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted #c2a300;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.download-link:hover,
.download-link:focus {
  color: #8c6e00;
  border-bottom-color: #8c6e00;
  outline: none;
}

/* ============================
   Roadbook Styling
============================ */
.roadbook-box h3 {
  color: #c2a300;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
}

.roadbook-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Navigatie vaste breedte */
.roadbook-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;     
  flex: 0 0 300px;  
  padding-left: 0;
}

/* Verticale lijn in nav */
.roadbook-nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(1rem + 8px); /* lijn door midden bol */
  width: 4px;
  background-color: #c2a300;
  border-radius: 2px;
  z-index: 0;
}

/* Elk item */
.roadbook-nav .nav-item {
  position: relative;
  padding-left: 4rem;  
  cursor: pointer;
  font-weight: 600;
  color: #555;
  z-index: 1;
  font-size: 0.9rem;     /* iets kleinere tekst */
  line-height: 1.2;      /* compacter, minder witruimte boven/onder */
}

/* Bol */
.roadbook-nav .nav-item::before {
  content: '';
  position: absolute;
  left: 1rem; 
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 3px solid #c2a300;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
  transition: background 0.3s;
}

/* Hover en actieve staat */
.roadbook-nav .nav-item:hover,
.roadbook-nav .nav-item.active {
  color: #c2a300;
}

.roadbook-nav .nav-item.active::before {
  background: #c2a300;
}

/* ===== Roadbook Content vaste breedte, tabel past zich aan ===== */
.roadbook-content {
  flex: 0 0 1100px;  /* vaste breedte van content */
  width: 1100px;
  overflow: hidden; /* geen scroll */
}

/* Tabel past binnen container */
.roadbook-table {
  width: 100%;            /* past binnen content */
  table-layout: fixed;     /* verdeelt breedte gelijkmatig */
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.roadbook-table th,
.roadbook-table td {
  border: 1px solid #ddd;
  padding: 0.3rem 0.5rem;  /* minder padding → rijhoogte compacter */
  text-align: center;
  font-size: 0.9rem;       /* iets kleinere tekst */
  line-height: 1.2;        /* minder ruimte tussen regels */
  word-wrap: break-word;   /* lange tekst naar nieuwe regel */
}

.roadbook-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Kolombreedtes */
.col-small {
  width: 70px;   /* smalle kolommen, bv. km+ en tussenafstand */
}

.col-medium {
  width: 180px;  /* nieuwe tussenmaat */
}

.col-large {
  width: 300px;  /* brede kolom voor locatie */
}

/* ============================
   Media Box
============================ */
.media-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 280px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.media-box.hidden {
  display: none !important;
}

.video-wrapper,
.map-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe,
.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================
   Popup Overlay
============================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 1.6rem;
  border-radius: 12px;
  max-width: 420px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.popup-content h3 {
  color: #C9A14A;
  margin-bottom: 0.5rem;
}

.popup-content p {
  color: #333;
  line-height: 1.4;
  font-size: 0.98rem;
}

.popup-button {
  background: #C9A14A;
  color: #000;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
}

.popup-button:hover {
  background: #b08b3f;
}

/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
  .parcours-container {
    flex-direction: column;
  }

  .info-stack {
    width: 100%;
  }

  .info-stack .roadbook-box {
    width: 100%;
  }

  .media-box {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* ruimte tussen video en map */
  }

  .video-wrapper,
  .map-wrapper {
    width: 100%;
  }

  .parcours-container.roadbook-active .media-box {
    display: none;
  }
}

/* VIP */
.vip-outer {
  background-color: #f9f8f4;
  padding: 1rem 0;
  width: 100%; /* neemt volledige breedte in */
}
.vip-section {
  background-color: #f9f8f4; /* zachte lichte achtergrond */
  padding: 1rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
}

/* Titel */
.vip-outer h2 {
  font-size: 2.5rem;
  color: #C9A14A; /* goudkleur */
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Foto's container */
.vip-photos {
  display: flex;
  justify-content: space-between; /* foto’s links en rechts uitlijnen */
  max-width: 960px;  /* zelfde max-width als .vip-formules */
  margin: 0 auto 3rem auto;
  flex-wrap: nowrap;
}

.vip-photos img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.vip-photos img:hover {
  transform: scale(1.05);
}

.vip-photos img:not(:last-child) {
  margin-right: 10px;
}

/* Formules container */
.vip-formules {
  display: flex;
  justify-content: space-between; /* kolommen links en rechts uitlijnen */
  max-width: 960px; /* zelfde als .vip-photos */
  margin: 0 auto 3rem auto;
  flex-wrap: nowrap;
  align-items: stretch; /* kolommen dezelfde hoogte */
}

/* Elke formule als flex column zodat knop onderaan kan */
.formule {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.8rem 2rem;
  width: 47%; /* 2 kolommen met kleine ruimte ertussen binnen 960px */
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

/* Formule titel */
.formule h3 {
  color: #C9A14A;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #C9A14A;
  padding-bottom: 0.3rem;
  text-align: center; /* centraal */
}

.formule .prijs {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #B0781D;
  margin: 1rem 0 1.5rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Programma tekst */
.formule p, .formule ul {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1rem;
}

.formule ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.formule ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
}

.formule ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #C9A14A;
  border-radius: 50%;
}

/* Button - onderaan in de formule en horizontaal gecentreerd */
.vip-button {
  margin-top: auto; /* duwt de knop naar beneden */
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: #C9A14A;
  color: #000;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  max-width: 180px;
}

.vip-button:hover {
  background-color: #b08b3f;
}

/* teams */
.teams-outer {
  background-color: white;
  padding: 1rem 0;
  width: 100%; /* neemt volledige breedte in */
}
.teams-section {
  background-color: white; /* zachte lichte achtergrond */
  padding: 3rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
}

.teams-section h2 {
    font-size: 2.5rem;
    color: #C9A14A; /* goudkleur */
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
  }

.carousel-container {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    overflow: visible; /* pijlen mogen buiten container uitsteken */
  }

  .carousel-track {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    transition: transform 0.5s ease;
  }

  .carousel-track img {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.6) translateX(0);
    z-index: 1;
    filter: blur(1px);
    width: 180px;
    height: auto;
    pointer-events: none;
  }

  .carousel-track img.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Team-info tekst styling, geïnspireerd op palmares */
  .team-info {
    background-color: #F4F4F4;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .team-info h3 {
    color: #c2a300;
    border-bottom: 2px solid #c2a300;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    font-size: 1.5rem;
  }

  .team-info img.flag {
    width: 20px;
    vertical-align: middle;
    margin-left: 0.5rem;
    border-radius: 2px;
  }

  .team-info .category {
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #c2a300;
  }

  /* Carousel knoppen */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fbdb00;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
  }

  .carousel-btn.left {
    left: 10px;
  }

  .carousel-btn.right {
    right: 10px;
  }

  .click-zone {
  display: none; /* standaard niet tonen */
  position: fixed;
  top: 0;
  width: 50%;
  height: 100vh;
  z-index: 5;
}

.team-details-box {
  background-color: #fff; /* of een andere lichte kleur */
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.category {
  font-size: 1rem;
  color: #777;
  margin-bottom: 16px;
}

.riders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.rider-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rider-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.rider-number {
  width: 24px;
  text-align: right;
  color: #c2a300;
}

.rider-name {
  flex: 1;
  text-align: left;
}

.rider-flag img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}


/* palmares */
.palmares-section {
  padding: 4rem 2rem;
  background: #f9f8f4;
  text-align: center;
}

.palmares-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #c2a300;
}

.palmares-wrapper {
  position: relative;
  overflow: visible; /* pijlen mogen buiten uitsteken */
  max-width: 1150px;
  margin: 0 auto;
}

.palmares-slider-container {
  overflow: hidden; /* de échte “viewport” voor de slider */
  max-width: 1150px; /* breedte van 3 kolommen samen, pas aan */
  margin: 0 auto;
}

.palmares-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  width: 100%;
}

.palmares-column {
  flex: 0 0 350px;
  max-width: 350px;
  padding: 1.5rem;
  background: #f4f4f4;
  border-radius: 8px;
  margin: 0 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.palmares-column h3 {
  color: #c2a300;
  border-bottom: 2px solid #c2a300;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}

.palmares-column table {
  width: 100%;
}

.palmares-column td {
  padding: 0.3rem;
  font-size: 0.80rem;
  vertical-align: middle;
}

.flag {
  width: 20px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 2px;
}

/* Scrollknoppen */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fbdb00;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.scroll-btn.left {
  position: absolute;
  top: 50%;
  left: -50px;  /* net buiten de linker rand van de wrapper */
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-btn.right {
  position: absolute;
  top: 50%;
  right: -50px; /* net buiten de rechter rand van de wrapper */
  transform: translateY(-50%);
  z-index: 10;
}

/* Scrollbar verbergen */
.palmares-slider::-webkit-scrollbar {
  display: none;
}

/* Contact */
.contact-section {
  padding: 4rem 2rem;
  background-color: white;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #c2a300;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
  align-items: stretch; /* zorg dat kolommen even hoog zijn */
}

.contact-info,
.contact-form-box {
  background-color: #f9f8f4;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #333333;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  flex: 1;
  min-width: 280px;
  max-width: 600px;

  display: flex;
  flex-direction: column;
}

.contact-info {
  justify-content: flex-start; /* tekst links aan bovenkant */
}

.contact-form-box {
  justify-content: space-between; /* formulier netjes uitrekken */
}

.contact-info h3,
.contact-form-box h3 {
  color: #c2a300;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-form-box form > div {
  margin-bottom: 1rem;
}

.contact-form-box label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-form-box input[type="text"],
.contact-form-box input[type="email"],
.contact-form-box textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

.contact-form-box button {
  background-color: #fbdb00;
  color: #005b65;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form-box button:hover {
  background-color: #fff;
  color: #005b65;
}



/* SPONSORGRID */

.sponsor-grid {
  padding: 40px 20px;
  background-color: white;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.grid-container img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}

/* Footer */
footer {
  background: #005b65;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.social-icons {
  margin-bottom: 0.5rem;
}

.social-icons a {
  color: gold;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
}

 /** Cookie **/
  #cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #005b65;  /* zelfde als header achtergrond */
    color: white;
    font-family: 'Open Sans', sans-serif;
    display: none; /* standaard verborgen */
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 1rem;
    box-sizing: border-box;
    z-index: 9999;
    font-size: 14px;
  }

  /* Maak popup zichtbaar als .show is toegevoegd */
  #cookie-popup.show {
    display: flex;
  }

  .cookie-popup-content {
    margin: 0;
    white-space: nowrap;
  }

  .cookie-popup-link {
    color: #fbdb00; /* goudkleur */
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  .cookie-popup-link:hover {
    color: #fff;
  }

  .cookie-popup-buttons button {
    background-color: #fbdb00; /* goudkleur */
    color: #005b65; /* donkerblauw */
    border: none;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
  }

  .cookie-popup-buttons button:hover {
    background-color: #fff;
    color: #005b65;
  }



/* Responsive design */

/* Tablets (iPad portrait & landscape) */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    width: 40%;
  }

  nav ul {
    gap: 1rem;
  }
}

/* Smartphones (iPhone & Galaxy) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .logo-img {
    cursor: pointer;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: #005b65;
    padding: 1rem;
    position: static; /* eerder stond hier absolute */
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #nav-links.show {
    display: flex;
    max-height: 500px; /* genoeg hoog voor alle links */
    overflow: visible;
  }

  .palmares-column {
    flex: 0 0 96%;
    max-width: 96%;
    margin: 0 5%;
  }

  .palmares-slider-container {
    max-width: 100%;
  }

  .palmares-wrapper {
    padding: 0;
  }
  

  /* Pijlen blijven zichtbaar */
  .scroll-btn.left,
  .scroll-btn.right {
    display: block;
  }

    .scroll-btn.left {
    left: -20px;
  }
  .scroll-btn.right {
    right: -20px;
  }

   .parcours-container {
    flex-direction: column;
    gap: 2rem;
  }

  .info-center-wrapper {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    max-width: 100%;      /* belangrijk */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* altijd handig */
  }

  .info-extra-row {
    flex-direction: column;
    gap: 0.3rem;
  }

  .info-extra-label {
    flex: none;
    width: 100%;
  }

  .info-extra-value {
    flex: 1;          /* neemt de rest van de ruimte */
    line-height: 1.3;
    width: 100%;
  }

  .info-box {
    padding: 1.5rem 1rem; /* Iets minder padding voor small screens */
  }

  .vip-photos {
    max-width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .vip-photos img {
    width: 45vw;
    max-width: 300px;
    height: auto;
  }

  .vip-formules {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .formule {
    width: 100%;
    margin-bottom: 2rem;
  }

  .programma-schedules {
    flex-direction: column;
  }

  .schedule-column {
    width: 100%;
  }

  .programma-photos-middle {
    flex-direction: column;
    align-items: center;
  }

  .programma-photos-middle img {
    width: 90%;
    height: 200px;
  }

  .tv-uitzending {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tv-uitzending img {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .tv-info {
    height: auto;
    padding-top: 1rem;
  }

  .tv-logos {
    justify-content: center; /* centreren op kleine schermen */
  }

  .tv-logos img {
    flex: none;
    max-width: 80px; /* iets kleiner op mobiel */
    height: 40px;    /* lagere hoogte op mobiel */
  }

  .shirts-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    max-width: 600px;
  }
  
  .shirts-grid img {
    max-width: 110px;
  }
  
  .teams-section h2 {
    font-size: 2.25rem;
  }
  
  .team-category h3 {
    font-size: 1.3rem;
  }

  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .carousel-track {
    height: 180px;
  }

  .carousel-track img {
    width: 100px;                /* kleiner shirt */
    transform: scale(0.4);       /* visueel verder weg */
    margin: 0 -5px;             /* dichter bij elkaar */
  }

  .carousel-track img.visible {
    transform: scale(0.7);       /* centrale shirt iets groter */
  }

  .carousel-btn {
    font-size: 1.2rem;
    padding: 0.3rem 0.7rem;
  }

  .team-info {
    max-width: 280px;
    padding: 1rem;
  }

  .team-info h3 {
    font-size: 1.3rem;
  }

  .teams-section {
  position: relative; /* zodat de click-zones binnen deze container liggen */
  max-width: 600px; /* of breedte van je carousel */
  margin: auto;
}

    .click-zone {
    display: block;
    position: absolute;
    top: 0;
    height: 100%;   /* neem de volledige hoogte van de parent */
    width: 50%;
    cursor: pointer;
    background: transparent;
    z-index: 10;
  }
  .left-zone {
    left: 0;
  }
  .right-zone {
    right: 0;
  }
  /* Beperk de parent container (teams-section) hoogte naar carousel-container */
  .teams-section {
    height: auto;
  }
  .carousel-container {
    position: relative;
    height: 150px; /* stel hier je daadwerkelijke carousel hoogte in */
    touch-action: pan-y;
  }
  #carousel.swiping img {
    transition: none !important;
  }

#carousel img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.popup-content{ 
  padding:1rem; max-width:320px; 
}
.popup-content h3{ 
  font-size:1.15rem; 
}

#cookie-popup {
    flex-wrap: wrap;
    padding: 1rem;
    font-size: 13px;
  }

  .cookie-popup-content,
  .cookie-popup-link,
  .cookie-popup-buttons button {
    white-space: normal; /* tekst kan breken */
    flex-shrink: 1;
  }

  .cookie-popup-content {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
  }

  .cookie-popup-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }

  .cookie-popup-buttons button {
    flex-grow: 1;
    padding: 8px 0;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .info-box {
    max-width: 100%;
  }
}

/* Verberg knoppen op mobiel */
@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
}

/* Extra small devices (very small phones) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn,
  .btn-outline {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) {
  .logo-img {
    pointer-events: none;
  }

  #nav-links {
    display: flex !important;
    gap: 2rem;
    position: static;
    flex-direction: row;
  }
}





/* Hamburger knop */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fbdb00;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fbdb00;
}

/* Mobiel menu standaard verbergen */
#nav-links {
  transition: max-height 0.3s ease;
}