.carousel {
  position: relative;
  width: 100%;
  height: min(20vh, 200px);   /* 20% van viewporthoogte, maar nooit hoger dan 200px */
  max-height: 200px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slides {
  display: flex;
  height: 100%;              /* slides vullen de beschikbare hoogte */
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;        /* afbeelding volledig zichtbaar, met eventueel “letterboxing” */
  object-position: center;    /* netjes in het midden */
  background: #000000;        /* optioneel: zwarte balken wanneer contain niet volledig vult */
}

/* Navigatieknoppen blijven gecentreerd in de kleinere hoogte */
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots blijven onderin zichtbaar binnen de beperkte hoogte */
.dots {
  text-align: center;
  position: absolute;
  bottom: 8px;   /* iets hoger zodat het niet tegen de rand “plakt” */
  width: 100%;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}


.nav {
  background: linear-gradient(90deg, #4a90e2, #357ab8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Lijst horizontaal */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Links */
.nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Hover effect */
.nav ul li a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Actieve link */
.nav ul li a.active {
  background: rgba(255,255,255,0.3);
}

/* Mobiel (stapelt onder elkaar) */
@media (max-width: 600px) {
  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav ul li a {
    display: block;
    text-align: center;
  }
}

/* Container wordt een grid */
.container {
  display: grid;
  grid-template-columns: 1fr 2fr;  /* 2 kolommen */
  grid-template-rows: 100px 200px; /* 2 rijen */
  gap: 10px;                       /* ruimte tussen grid-items */
  padding: 10px;

  /* Zichtbare grid lijnen */
  border: 2px solid #333;
  background: repeating-linear-gradient(
    to right,
    #eee 0,
    #eee 1px,
    transparent 1px,
    transparent 1fr
  ),
  repeating-linear-gradient(
    to bottom,
    #eee 0,
    #eee 1px,
    transparent 1px,
    transparent 1fr
  );
}

/* Child elementen */
.logo {
  grid-column: 1 / 2;  /* kolom 1 */
  grid-row: 1 / 2;     /* rij 1 */
  background: lightcoral;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tekst {
  grid-column: 2 / 3;  /* kolom 2 */
  grid-row: 1 / 2;     /* rij 1 */
  background: lightgreen;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  grid-column: 1 / 3;  /* neemt beide kolommen */
  grid-row: 2 / 3;     /* rij 2 */
  background: lightblue;
  display: flex;
  align-items: center;
  justify-content: center;
}
