  :root {
      --menu-height: 60px;
    }

    /* Smooth scrolling */
    html { scroll-behavior: smooth;  overflow-x: hidden; }
    /* Globale stijlen */
    * { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #b6e0fe 55%, #93c5fd 80%, #d1fae5 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  line-height: 1.6;
  color: #21243d;
}
    @keyframes gradientBG { 0%{background-position:0 50%} 50%{background-position:100% 50%} 100%{background-position:0 50%} }
    header { position: relative; }

    /* Sticky navigatie */
    .top-header {
      position: sticky;
      top: 0;
      z-index: 1101; /* boven de menubalk */
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      height: 60px;
      padding: 0 1rem;
      margin: 0;
      background: rgba(224, 231, 239, 0.9);
      backdrop-filter: blur(6px);
      position: fixed; top: 0; left: 0; right: 0; z-index: 1101;
    }


    .top-header svg {
      height: 98%;           /* 98% van 60px = ~59px */
      width: auto;
      display: block;
      /* margin-bottom removed */
      /* gebruik relatieve positie om logo visueel naar beneden te halen */
      position: relative;
      top: 2px;
      fill: #002446 !important;
    }
    .top-header h1 {
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      height: 60px;
      line-height: 60px;
      margin: 0;
      color: #21243d;
      font-weight: 700;
      display: block;
    }

    .main-nav a {
      color: white;
      text-decoration: none;
      font-weight: 600;
      padding: 0.5rem 1rem; /* basis padding */
      transition: background 0.3s, color 0.3s, transform 0.3s;
    }
    .main-nav a:hover {
      background: rgba(255,255,255,0.2);
      border-radius: 0.5rem;  /* rechthoekige hover met afgeronde hoeken */
      transform: scale(1.1);  /* iets groter */
    }


    /* Carousel */
.banner-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  height: 300px;
  margin: 1rem auto;
  border-radius: 1rem;
}

.slides-container {
  display: flex;
  width: 400%; /* 4 slides */
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-slide {
  flex: 0 0 25%;  /* belangrijk: 100 / 4 slides = 25% */
  height: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-slide.slide1 {
  background-image: url('images/carousel1.jpg');
}
.carousel-slide.slide2 {
  background-image: url('images/carousel2.jpg');
}
.carousel-slide.slide3 {
  background-image: url('images/carousel3.jpg');
}
.carousel-slide.slide4 {
  background-image: url('images/carousel4.jpg');
}
.carousel-slide.slide5 {
  background-image: url('images/carousel5.jpg');
}
.carousel-slide.slide6 {
  background-image: url('images/carousel6.jpg');
}


    .slide-text {
      position:absolute; bottom:1rem; left:1rem;
      background:rgba(0,0,0,0.4); color:#fff;
      padding:.5rem 1rem; border-radius:.5rem;
      font-size:1.5rem; font-weight:600;
    }
    .carousel-dots {
      position:absolute; bottom:10px; width:100%; text-align:center;
      z-index:10;
    }
    .carousel-dots .dot {
      display:inline-block; width:10px; height:10px; margin:0 5px;
      background:rgba(255,255,255,0.6); border-radius:50%; cursor:pointer;
      transition:background .3s;
    }
    .carousel-dots .dot.active { background:#fff; }
    /* Secties */
    section#intro { background: #f0f8ff; }
    section#resultaten { background: #f5f7fa; }
    section#foto { background: #fdf6e3; }
    section#agenda { background: #effaf1; }
    section#sponsoring {
      background: #fff7f0;
      padding: 4rem 2rem;
      min-height: 100vh;
    }
    /* Sponsors grid */
    .sponsors-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }
    .sponsor-card {
      background: #f0f0f0;
      border-radius: 0.75rem;
      padding: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }
    .sponsor-card:hover {
      transform: translateY(-5px);
    }
    .sponsor-card img {
      max-width: 100%;
      height: auto;
    }
    .sponsor-divider {
      border: none;
      border-top: 1px solid #ccc;
      margin: 2rem 0;
    }
    .become-sponsor {
      text-align: center;
      font-size: 1.1rem;
      color: #21243d;
    }
    /* Sponsoring packages layout */
    .packages {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }
    .package {
      flex: 1;
      min-width: 200px;
      background: #fff;
      border-radius: 0.75rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      padding: 1.5rem;
      text-align: center;
    }

    
    .package.gold { border-top: 4px solid #d4af37; }
    .package.silver { border-top: 4px solid #c0c0c0; }
    .package.bronze { border-top: 4px solid #cd7f32; }
    .package h3 { margin-bottom: 0.5rem; color: #21243d; }
    .package p { margin-bottom: 1rem; color: #555; }
    .package .btn { display: inline-block; padding: 0.5rem 1rem; background: #002446; color: #fff; text-decoration: none; border-radius: 0.5rem; transition: background 0.3s; }
    .package .btn:hover { background: #001f3f; }
    section#contact { background: #f3f0ff; }
    section {
      min-height: 100vh;
      padding: 4rem 2rem;
      /* removed default scroll-margin-top */
    }
/* Individual sections with correct offset */
section#intro,
section#resultaten,
section#foto,
section#agenda,
section#sponsoring,
section#contact {
  scroll-margin-top: calc(var(--menu-height) - 10px); /* fine-tune small gap */ /* offset only nav height */
}

 .backdrop {
      max-width:900px; margin:0 auto; background:rgba(255,255,255,0.9);
      border-radius:1rem; padding:2rem;
    }
    h1,h2 { 
      text-align:center; color:#21243d; margin-bottom:1.5rem; 
      font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    }
    /* Tabel */
    table { width:100%; border-collapse:collapse; margin-top:1rem; }
    th,td { padding:10px; border-bottom:1px solid #ccc; }
    th { cursor:pointer; background:#f0f4f8; }
    th.sort-asc::after { content:' ▲'; }
    th.sort-desc::after { content:' ▼'; }
    /* Alternating row colors */
    #resultatenTabel tbody tr:nth-child(odd) { background:#ffffff; }
    #resultatenTabel tbody tr:nth-child(even) { background:#f7f9fc; }

    /* Foto gallery */
    #matchSelect { display:block; margin:0 auto 1rem; padding:.5rem; }
    .photo-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* maximaal 4 foto's per rij */
      gap: 1rem;
      justify-items: center;
    }
    .photo-gallery img { width:100px; height:100px; object-fit:cover; object-position:center; border-radius:8px; cursor:pointer; transition:transform .3s; }
    .photo-gallery img:hover { transform:scale(1.1); }
    /* Modal */
    .modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); display:flex; align-items:center; justify-content:center; visibility:hidden; opacity:0; transition:opacity .3s; }
    
    .modal-overlay.active { visibility:visible; opacity:1; }
    .modal-image { max-width:80%; max-height:80%; border-radius:8px; }
    /* Back to top */
    #toTop { position:fixed; bottom:20px; right:20px; background:#002446; color:#fff; border:none; padding:10px 15px; border-radius:5px; cursor:pointer; display:none; }
    /* Agenda table alternating rows */
    #agendaTabel tbody tr:nth-child(odd) { background:#ffffff; }
    #agendaTabel tbody tr:nth-child(even) { background:#f7f9fc; }
    /* Footer */
  #footer {
      background:rgba(0,0,0,0.8); display:flex; align-items:center; justify-content:center;
      visibility:hidden; opacity:0; transition:opacity .3s, visibility .3s; z-index:200;
    }
    
    /* Back to top */
    #backToTop { position: fixed; bottom: 1rem; right: 1rem; background: #002446; color: #fff; padding: .5rem; border-radius: 50%; cursor: pointer; display: none; z-index:1000; }
    /* Footer */
    footer { background:#64748b; color:white; text-align:center; padding:1rem; }
    footer a { color:#e0f0ff; margin:0 .5rem; }


       /* Contact form layout */
    .contact-form { display: flex; flex-direction: column; gap: 1rem; }
    .contact-form .form-group { display: flex; flex-direction: column; }
    .contact-form label { margin-bottom: 0.25rem; font-weight: 600; }
    .contact-form input,
    .contact-form textarea { padding: 0.75rem; border: 1px solid #ccc; border-radius: 0.5rem; font-size: 1rem; }
    .contact-form input:focus, .contact-form textarea:focus { border-color: #002446; }
    .cta-btn { display: inline-block; padding: 0.75em 2em; font-size: 1.14em; font-weight: 600; background: linear-gradient(90deg, var(--accent, #af4261) 65%, var(--accent2, #1c92d2) 100%); color: #fff; border-radius: 1.8em; text-decoration: none; box-shadow: 0 4px 16px rgba(44,44,44,0.12); transition: transform 0.15s, box-shadow 0.15s; border: none; cursor: pointer; text-align: center; }
    .cta-btn:hover { transform: translateY(-2px) scale(1.05); }



/* Verborgen checkbox */
.menu-toggle {
  display: none;
}

/* Hamburger icoon */
.menu-icon {
  width: 30px;
  height: 22px;
  position: absolute;
  cursor: pointer;
  display: none; /* standaard verborgen */
  z-index: 2001;
  top: 1rem;
  right: 1rem;
}

.menu-icon span,
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon::before {
  top: 0;
}

.menu-icon::after {
  bottom: 0;
}

/* Animatie naar X bij openen */
.menu-toggle:checked ~ .menu-icon span {
  opacity: 0;
}

.menu-toggle:checked ~ .menu-icon::before {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle:checked ~ .menu-icon::after {
  transform: translateY(-10px) rotate(-45deg);
}

/* Navigatie */
.main-nav {
  position: fixed;
  top: var(--menu-height); /* 60 px */
  z-index: 1100;
  display: flex;
  gap: 1rem;
  justify-content: center;
  background: #002446;
  padding: 0.125rem 1rem;   /* nog dunner in hoogte */
  width: 100%;
}

.menu-toggle:checked ~ .main-nav {
  display: flex !important;
}

.main-nav a {
  color: white;
}

section#nieuws { background: #eef2ff; }

/* Nieuwssectie layout */
section#nieuws { background: #eef2ff; scroll-margin-top: calc(var(--menu-height) - 10px); }

.nieuws-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  padding: 2rem;
  display: grid;                         /* belangrijk: grid aan */
  grid-template-columns: minmax(220px, 1fr) 2fr; /* foto kolom smaller */
  gap: 1.25rem;
  align-items: start;
}

.nieuws-foto {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.nieuws-foto img {
  width: 100%;
  max-width: 360px;    /* maak de foto kleiner */
  height: auto;
  border-radius: .75rem;
}

.nieuws-lijst {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;         /* zeker weten geen vreemde breedtes */
}

.nieuws-lijst a {
  display: block;
  background: #f0f4f8;
  padding: .75rem 1rem;
  border-radius: .5rem;
  text-decoration: none;
  color: #002446;
  font-weight: 600;
  transition: transform .15s, background .15s;
}

.nieuws-lijst a:hover { transform: translateY(-2px); background: #e6edf3; }

/* bron boven de titel, kleine letters */
.nieuws-lijst a span.bron {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: #666;
  margin-bottom: 0.25rem;
}

.sectie-titel {
  grid-column: 1 / -1;   /* laat de titel over beide kolommen lopen */
  text-align: center;
  margin: 0 0 1.5rem 0;

}.nieuws-lijst a span.meta {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: #666;
  margin-bottom: 0.25rem;
}



/* Alleen op echt smalle schermen stapelen */
@media (max-width: 640px) {
  .nieuws-wrap { grid-template-columns: 1fr; }
  .nieuws-foto { justify-content: center; }
  .nieuws-foto img { max-width: 100%; }
}


@media (max-width: 768px) {
  .menu-icon {
      width: 30px;
      height: 22px;       /* ← vaste hoogte voor het icoon zelf */
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      padding: 0.3rem 0;  /* optioneel: iets ruimte boven/onder */
  }

.menu-icon span,
.menu-icon::before,
.menu-icon::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

  .nieuws-wrap { grid-template-columns: 1fr; }


  .hide-mobile {
    display: none;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background: #002446;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
  }

  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }

.top-header {
  justify-content: space-between;
  border-bottom: 3px solid #002446; 
}

  section {
    padding: 2rem 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .banner-carousel {
    height: 30vh; /* bijvoorbeeld halve viewporthoogte */
   margin: 0rem auto;
   border-radius: 0rem;
  }

  .carousel-slide .slide-text {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  .menu-icon { display: flex; }

  .main-nav {
    display: none;          /* verborgen totdat checkbox aan staat */
    flex-direction: column;
  }
  #menu-toggle:checked ~ .main-nav { display: flex; }
}
