/* ALGEMENE OPMAAK: dezelfde stylesheet voor alle pagina's */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #242424;
  /*onderstaand is nieuw ivm het zetten van de footer op de bodem van de website*/
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/*main is nieuw tov het origineel ivm het zetten van de footer op de bodem van de website*/
main {
  flex: 1;
  /*onderstaand ivm het sticky zetten van de header. Later toegevoegd.*/
  display: grid;
}

/* HEADER: titelbalk en menu blijven bovenaan staan */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: white;
}

/* Witte titelbalk met logo links en titel in het midden */
.titelbalk {
  background: white;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 24px;
}

/* Logo links */
.logo {
  grid-column: 1;
  justify-self: start;
  width: 75px;
  height: 75px;
  object-fit: contain;
  border-radius: 10px;
}

/* Titel precies in het midden */
.titelbalk h1 {
  grid-column: 2;
  color: #B20934;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 650;
  text-align: center;
}

/* Rode hoofdnavigatie, met Home links en de rest rechts */
.hoofdmenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #B20934;
  padding: 0 max(24px, calc((100% - 1200px)/2));
}

.hoofdmenu a {
  display: inline-block;
  padding: 18px 13px;
  color: white;
  text-decoration: none;
  font-size: 22px;

}

.hoofdmenu a:hover, .hoofdmenu a.actief {
  background: #770522;
}

.menu-rechts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Het hoofdraster: met of zonder linkernavigatie */
.pagina {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1240px;
  margin: 28px auto;
  padding: 0 20px;
  gap: 24px;
}

.pagina.met-zijmenu {
  grid-template-columns: 220px minmax(0, 1fr);
}

.zijmenu {
  background: white;
  padding: 20px;
  align-self: start;
  border-radius: 10px;
  box-shadow: 0 3px 12px #00000020;
}

.zijmenu h2 {
  font-size: 20px;
  margin-top: 0;
}

.zijmenu a {
  display: block;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

.zijmenu a:hover, .zijmenu a.actief {
  background: #f9e1e4;
  color: #B20934;
}

/* Body bevat een grid: tekst + afbeelding, daaronder een tekst over de volle breedte */
.inhoud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-content: start;
}

.tekstvak {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 12px #00000020;
  line-height: 1.65;
}

.tekstvak h2 {
  color: #B20934;
  margin-top: 0;
}


/* Lijsten met vinkjes in plaats van bullets */
.tekstvak ul {
    list-style: none;
    padding-left: 0;
}

.tekstvak ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.tekstvak ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #B20934;
    font-weight: bold;
    font-size: 18px;
}

/* Afbeeldingen op de pagina */
.afbeelding {
  width: 100%;
  height: auto; /* behoudt de oorspronkelijke verhoudingen. */
  min-height: 0; /* Dwingt geen minimale hoogte af.*/
  max-height: none;
  object-fit: contain; /*Laat de volledige afbeelding zien.*/

  /* Witte rand en schaduw */
  background: white;
  padding: 10px;
  border: 3px solid white;
  border-radius: 10px;
  box-shadow: 0 3px 12px #00000040;

  display: block;
}

/* Grote afbeelding onder het brede tekstvak */
.afbeelding.breed-afbeelding {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    display: block;

    /* Dezelfde vormgeving als tekstvak */
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px #00000020;
}

.breed {
  grid-column: 1 / -1;
}

/* Twee afbeeldingen naast elkaar */
.afbeeldingen-naast-elkaar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Omgeving van iedere afbeelding */
.afbeelding-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px #00000020;
    margin-top: 24px;
}

/* Titel boven de afbeelding */
.afbeelding-container h2 {
    color: #B20934;
    margin-top: 0;
    text-align: center;
}

/* Afbeeldingen */
 .afbeelding-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
} 

footer {
  text-align: center;
  padding: 25px;
  color: #666;

  /*Onderstaand is nieuw ivm het zetten van de footer op de bodem van de website*/
  background-color: #B20934;
  color: white;
  text-align: center;
  padding: 20px;
}

/* Opmaak van de tabel */
.lestabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: center;
}

/* Opmaak van alle cellen */
.lestabel th,
.lestabel td {
    border: 2px solid rgb(166, 76, 76);
    padding: 12px;
    background-color: #B20934;
    color: white;
}

/* Opmaak van de kolomkoppen */
.lestabel th {
    font-weight: bold;
}


/* Op een smaller scherm komen de onderdelen onder elkaar */
@media (max-width: 760px) {
  /* Titelbalk aanpassen voor mobiele schermen */
.titelbalk {
  gap: 10px;
  padding: 12px;
}

.logo {
  width: 55px;
  height: 55px;
}

.titelbalk h1 {
  font-size: 20px;
  font-weight: 650;

}
  .hoofdmenu {
    flex-wrap: wrap;
  }

  .menu-rechts {
    justify-content: flex-start;
  }

  .pagina.met-zijmenu {
    grid-template-columns: 1fr;
  }

  .inhoud {
    grid-template-columns: 1fr;
  }

  .breed {
    grid-column: 1;
  }

  .afbeelding {
    height: 260px;
  }
  .afbeeldingen-naast-elkaar {
    grid-template-columns: 1fr;
}
}