body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
  background-color: rgba(220, 20, 20);
  color: white;
  padding: 1em;
  text-align: center;
}

.subnav {
  position: sticky;
  top: var(--nav-height, 56px);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;   /* ruimte links/rechts en boven/onder */
  text-align: center;   /* centreren */
}

.subnav-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 6px;
}

.subnav-links {
  display: flex;
  flex-wrap: wrap;       /* laat links naar nieuwe lijn springen */
  justify-content: center; /* centreren */
}

.subnav-links::before {
    content: "➔";
}

.subnav-links a {
  text-decoration: underline;
  color: black;
  position: relative;
  padding-left: 14px; /* ruimte voor de pijl */
}

.subnav-links a:hover {
    text-decoration-thickness: 2px;
}

/* Zorg dat ankers netjes onder beide balken landen */
section { scroll-margin-top: calc(var(--nav-height,56px) + var(--subnav-height,40px)); }

footer {
  color: black;
  font-size: 0.9em;
}

/* Footer menu */
.footer-menu {
  background-color: rgba(255, 245, 245, 1);
  color: black;
  display: flex;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
  padding: 2em 1em 1em; /* boven extra ruimte voor menu */
}

.footer-menu .menu-column h4 {
  margin-bottom: 0.5em;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu a {
  color: black;                /* links zwart */
  text-decoration: none;       /* geen onderlijn */
}

.footer-menu a:hover {
  text-decoration: underline;  /* subtiel effect bij hover */
}

.footer-menu li {
  margin-bottom: 0.3em;
}

.footer-info {
  display: flex;
  color:white;
  flex-wrap: wrap;        /* laat items onder elkaar vallen op smalle schermen */
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em 1em;
  background-color: rgba(220, 20, 20);
  text-align: center;
  max-width: 100%;        /* voorkomt overflow */
  overflow: hidden;       /* extra safeguard tegen scroll */
}

.footer-info img {
  max-height: 80px;
  width: auto;
  flex-shrink: 1;         /* zorgt dat logo kan verkleinen op smalle schermen */
}

.footer-info p {
  margin: 0;
  line-height: 1.4;
  word-break: break-word; /* lange teksten breken indien nodig */
}

.footer-info a {
  color: white;
  text-decoration: none;
}

.footer-info a:hover {
  color:white;
  text-decoration: underline;  /* subtiel effect bij hover */
}

/* Responsive tablets */
@media (max-width: 992px) {
  .footer-menu {
    gap: 2em;
  }
}

@media (max-width: 600px) {
  .footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5em 1em;
  }

  .footer-info img {
    max-height: 70px;
  }
}

@media (max-width: 768px) {
  .footer-menu {
    display: none;
  }
}

nav {
  background-color: rgba(220, 20, 20, 0.8);
  position: sticky;
  top: 0;
  z-index: 1001;
}

nav ul.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul.menu li a {
  position: relative;
  display: block;
  padding: 0.6em;
  color: white;
  text-decoration: none;
  font-size: 1.2em;   /* groter */
  font-weight: 500;   /* iets dikker */
  margin: 10px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Specifiek menu-item Contact */
nav ul.menu li a[href="contact.php"] {
  background-color: white;
  color: #cc0000;        /* fel rood */
}

/* Hover-stijl: inverse */
nav ul.menu li a[href="contact.php"]:hover {
  background-color: #cc0000;
  color: white;
}

nav ul.menu li a:hover {
    background-color: rgba(200, 0, 0, 0.85);
}

/* Hoofdmenu-items positioneren */
nav ul.menu li {
  position: relative;
}

main {
  max-width: 900px;
  margin: 2em auto;
  padding: 0 1em;
  line-height: 1.6;
  /*flex: 1;*/
}

main h2 {
  color: #000000;
  margin-top: 1.5em;
  border-bottom: 2px solid #000000;
  padding-bottom: 0.3em;
}

main p {
  margin-bottom: 1em;
}

main a {
  color: #0055aa;
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

.mainnav a.active {
    border-bottom: 3px solid darkred;
}

/* minder ruimte tussen subnav en eerste h2 */
main section:first-of-type h2 {
  margin-top: 0;
}

.page-title {
  text-align: center;
  font-size: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #000000;
}

.logo-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      align-items: center;
      margin: 20px 0;
}

.logo-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: #333;
}

.logo-img {
  height: 80px; /* Vaste hoogte voor beide logo's */
  width: auto; /* Behoud aspect ratio */
  max-width: 200px; /* Maximale breedte om te voorkomen dat ze te breed worden */
  margin-bottom: 5px;
}

/* Voor kleine schermen - logo's onder elkaar */
@media (max-width: 600px) {
  .logo-container {
      flex-direction: column;
  }
}

/* Footer links altijd zwart */
footer a {
  color: black;
  text-decoration: none;  /* eventueel geen onderlijning */
}

footer a:hover {
  color: black;           /* ook bij hover zwart houden */
  text-decoration: underline; /* of none, naar voorkeur */
}

body.push-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.push-footer main {
  flex: 1;
}

.api-section {
  display: flex;
  align-items: flex-start;   /* bovenkant gelijk */
  gap: 20px;                 /* ruimte tussen tekst en foto */
  margin: 30px 0;
}

.api-text {
  flex: 2;   /* neemt 2/3 van de breedte */
}

.api-photo {
  flex: 1;   /* neemt 1/3 van de breedte */
}

.api-photo img {
    width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.foto-galerij {
    display: grid;
    grid-template-columns: 1fr;       /* standaard: 1 kolom (mobiel) */
    gap: 20px;                        /* ruimte tussen de foto’s */
    max-width: 1200px;                /* optioneel: max breedte galerij */
    margin: 0 auto;                   /* centreren */
    padding: 10px;
}

@media (min-width: 768px) {
    .foto-galerij {
        grid-template-columns: 1fr 1fr;   /* vanaf tablet/desktop: 2 kolommen */
    }
}

.foto-galerij figure {
    margin: 0;
    text-align: center;                 /* caption onder foto centreren */
}

.andere-photo {
    width: 100%;        /* past zich aan de kolom aan */
    height: auto;       /* behoudt verhouding */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.jeugd-photo {
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.personen-photo {
  width: 150px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {
  .api-section {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .api-text {
    order: 2;
  }
  .api-photo {
    order: 1;
  }
}

/* verberg op desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  align-items: center;
  cursor: pointer;
}

/* icoon voor de knop */
.menu-toggle::before {
  content: "\2630"; /* ☰ */
  font-size: 1.4em;
  margin-right: 8px;
}
.menu-toggle.open::before {
  content: "\2716"; /* ✖ */
}

/* mobiel */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* zichtbaar op mobiel */
    background-color: rgba(220, 20, 20, 0.9);
    font-weight: bold;
    font-size: 1.3em;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  nav ul.menu {
    display: none !important;   /* dicht op mobiel */
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(220, 20, 20, 0.95);
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav ul.menu.show {
    display: flex !important;   /* open op mobiel */
  }

}

/* default: stacked op mobiel */
.bestuur-card {
  display: flex;
  flex-direction: column;   /* foto boven tekst */
  align-items: center;
  gap: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;       /* tekst onder foto centreren */
}

/* foto */
.bestuur-card img.personen-photo {
  width: 120px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* tekst */
.bestuur-info h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}
.bestuur-info p {
  margin: 5px 0 0;
  color: #555;
  word-break: break-word;   /* forceer afbreken indien nodig */
}

/* vanaf tablet: foto links naast tekst */
@media (min-width: 600px) {
  .bestuur-card {
    flex-direction: row;
    text-align: left;
  }
  .bestuur-info {
    text-align: left;
  }
}

/* grid */
.bestuur {
  display: grid;
  grid-template-columns: 1fr;   /* standaard 1 kolom */
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}
@media (min-width: 768px) {
  .bestuur {
    grid-template-columns: 1fr 1fr; /* 2 kolommen op tablet/desktop */
  }
}

.schedule-table-wrapper {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-size: 1em;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.schedule-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* Op smalle schermen: tabel wordt blokken */
@media (max-width: 768px) {
  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table th,
  .schedule-table td,
  .schedule-table tr {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .schedule-table-wrapper {
      overflow-x: hidden; /* horizontaal scrollen voorkomen */
    }
    
  .schedule-table thead {
    display: none; /* kolomtitels verbergen */
  }

  .schedule-table tr {
    margin-bottom: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .schedule-table td {
    border: none;
    padding: 6px 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #333;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed; /* verdeelt de kolommen volgens percentage */
}
.price-table td {
  padding: 8px;
  vertical-align: top;
}
.price-table td.text {
  width: 70%; /* vaste breedte voor tekst */
}
.price-table td.price {
  width: 30%;              /* vaste breedte voor prijs */
  white-space: nowrap;     /* houdt € en bedrag samen */
  font-weight: 500;        /* optioneel iets vetter */
}
.section-divider {
  border: none;
  border-top: 2px solid #ccc;
  margin: 20px 0;
}
