/* ------------------------------- */
/* 🌍 Basisinstellingen            */
/* ------------------------------- */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #f6f6f6;
  color: #333;
  font-family: 'Helvetica', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ------------------------------- */
/* 🧭 Navigatie                    */
/* ------------------------------- */

/* --- Compacte, stijlvolle navigatiebalk --- */
.bg-steel {
  background-color: #5f788a;
}

/* Algemene stijl van de navbar */
.navbar {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  transition: all 0.3s ease;
}

/* Links in de navbar */
.navbar-nav .nav-link {
  color: #cbd5db !important;
  font-size: 1rem; /* basisgrootte */
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* Hover-effect */
.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Actieve link */
.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #fff !important;
}

/* Container iets smaller maken */
.site-header {
  min-height: auto;
}

/* --- Mobiele optimalisatie --- */
@media (max-width: 768px) {
  .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .navbar-nav .nav-link {
    font-size: 4.5vw; /* iets grotere tekst voor touchscreens */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* ------------------------------- */
/* 🏷️ Titels                      */
/* ------------------------------- */

h1, h2, h3, h4, h5, h6 {
  color: #444;
  font-family: 'Helvetica', sans-serif;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.5rem); }

/* ------------------------------- */
/* 📦 Containers & content         */
/* ------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem;
}

.content-section {
  background: #fff;
  padding: 1.6vw;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1.3vw;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.intro {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  text-align: justify;
}

.small-note {
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: #666;
}

.result {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-top: 1.5rem;
}

/* ------------------------------- */
/* 🎯 Centrerende helpers          */
/* ------------------------------- */

.marginauto {
  margin: 0 auto;
  display: block;
}

/* ------------------------------- */
/* 🔘 Buttons                      */
/* ------------------------------- */

.button {
  border: none;
  color: white;
  padding: 1.6vw 7vw;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 3vw;
  margin: 0vw;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  color: white;
}

/* 🎨 Kleuren per thema */
.button-algemeen { background-color: slategray; }
.button-voorjaar { background-color: deepskyblue; }
.button-giro { background-color: hotpink; }
.button-tour { background-color: #E7E70d; }
.button-vuelta { background-color: crimson; }
.button-wk {
  background: linear-gradient(
    to bottom,
    blue 0%,
    blue 15%,
    red 15%,
    red 35%,
    black 35%,
    black 65%,
    yellow 65%,
    yellow 85%,
    green 85%,
    green 100%
  );
  color: white;
  opacity: 0.8;
}
.button-ultieme { background-color: darkslategray; }

/* ------------------------------- */
/* 📊 Tabellen                     */
/* ------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
  text-align: center; /* ✅ Zorgt dat alles in de tabel standaard gecentreerd is */
}

th, td {
  border: 1px solid silver;
  padding: 0.6rem;
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  text-align: center; /* ✅ Extra zekerheid, ook als tabel inline styles zou hebben */
  vertical-align: middle; /* ✅ Houdt tekst mooi verticaal in het midden */
}

th {
  background-color: #f2f2f2; /* optioneel: subtiele achtergrond voor headers */
  font-weight: 600;
}

/* Responsieve aanpassingen */
@media (max-width: 767px) {
  table {
    font-size: 3vw;
  }
}

/* ------------------------------- */
/* 📱 Responsief gedrag            */
/* ------------------------------- */

@media (min-width: 768px) {
  .button {
    font-size: 1.3vw;
    padding: 0.7vw 0.4vw;
    width: auto;
  }

  .button:hover {
    font-size: 1.4vw;
    }

  .content-section {
    padding: 1.8rem 2.8rem;
  }
}

@media (max-width: 767px) {
  .button {
    font-size: 4.8vw;
    padding: 2.5vw 1.2vw;
    width: 100%;
  }
  .button:hover {
    font-size: 5vw;
    }

  h1 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
  h2 { font-size: clamp(1.6rem, 3vw, 3rem); }
  h3 { font-size: clamp(1.4rem, 2.5vw, 2.5rem); }

  table {
    font-size: 3.5vw; /* iets kleiner lettertype */
  }

  th, td {
    padding: 0.1rem; /* compacter */
    word-break: break-word; /* voorkomt dat tekst buiten de cel loopt */
  }

  th {
    font-size: 2vw; /* koppen iets groter dan gewone cellen */
  }

  td {
    font-size: 2vw;
  }

  .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
    }
}
