/* Algemene styling */
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  max-width: 1200px;
  margin: auto;
  padding-top: 200px;
}

.container {
  background: white;
  margin: auto;
  max-width: 600px;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.container2 {
  background: white;
  margin: auto;
  max-width: 700px;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

h1 {
  color: #FFD700;
  text-shadow: 1px 1px 2px #000;
  margin-top: 0;
  text-align: center;
}
h2, h3 {
  color: #000;
  text-align: center;
}
.navbar {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: 2em;
  background: #ffd700;
  padding: 1em;
  border-radius: 10px;
}
.navbar a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}
select, table {
  width: 100%;
}
table {
  border-collapse: collapse;
  margin-top: 1em;
  background: #fff;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}
th {
  background: #ffe100;
}
.navigatie {
  margin-bottom: 1em;
}
.navigatie a {
  margin-right: 1em;
}
.subtotaal {
  font-weight: bold;
  background: #fdd835;
}
.leegcel {
  border: none;
  background: none;
}
.eindtotaal {
  font-weight: bold;
  background: #ffeb3b;
}
.etappe-totaal {
  font-weight: bold;
  background: #c5e1a5;
}
.scoreblok {
  margin-bottom: 4em;
}
.slot-totaal {
  margin-top: 3em;
  border-top: 2px solid #999;
}
.slot-totaal table {
  width: 100%;
  border-collapse: collapse;
}
.slot-totaal th {
  background: #ffd54f;
}
.slot-totaal td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

.jaar-links a {
  display: block;
  margin: 1em 0;
  padding: 0.75em;
  background: #ffe100;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.jaar-links a:hover {
  background: #ffcc00;
}

.admin-link {
  margin-top: 2em;
  display: inline-block;
  color: #666;
  text-decoration: none;
}

/* Navigatiebalk */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #000;
  color: #fff;
}

.nav-top, .nav-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 1em;
  flex-wrap: wrap;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #fff;
}

.nav-left a {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #fff;
}

.nav-left a:hover {
  display: flex;
  align-items: center;
  gap: 1em;
  color: #fff;
}

.nav-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  background: white;
  padding: 4px;
  border-radius: 6px;
}

.nav-top a, .nav-sub a {
  color: #444;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
}

.nav-top a:hover, .nav-sub a:hover {
  color: #fff;
  background: #444;
  border-radius: 6px;
}

.nav-button {
  color: #000;
  background: #ffe100;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1em;
  font-weight: bold;
  text-decoration: none;
}

.nav-button:hover {
  background: #ffcc00;
  color: #fff;
}

.nav-sub {
  color: #000;
  background: #ffe100;
  justify-content: center;
  gap: 2em;
  border-radius: 12px;
}

#mobile-menu {
  display: none;
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  #mobile-menu {
    display: block;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    background: #111;
  }

  #main-nav.active {
    display: flex;
  }

  .nav-sub {
    flex-direction: column;
    gap: 1em;
    padding: 1em;
  }

  .nav-top, .nav-sub {
    flex-direction: column;
    gap: 0.5em;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    gap: 0.5em;
  }
}

#mobile-menu.open {
  color: #ffe100;
}
