:root {
  --h1: clamp(2rem, 5vw, 3rem);
  --h2: clamp(1.5rem, 5vw, 2rem);
  --h3: 1.17em;
  --p: 1em;
  --borderradius: 1rem;
  --shadow: 0 5px 15px rgba(2, 2, 2, 0.3);
  --black: #000;
  --blackhalf: #00000031;
  --yellow: #ffc823;
  --red: #ff0000;
  --grijstint: #ccc;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 100%;
  overflow: "";
}

p {
  line-height: 2rem;
}

a {
  color: var(--red);
}

h1 {
  display: inline-block;
  padding-bottom: .1rem;
  border-bottom: 3px solid var(--red);
}

/* taalswitch */
.taalswitch {
  display: flex;
  align-items: center;
}

.taalswitch p {
  padding: 1rem;
}

/* hamburger */
#checkbox {
  display: none;
}

.burger {
  font-size: 2rem;
}

/* navigatie */
.logo {
  width: 4rem;
  border-radius: 50%;
}

.navigatie a {
  color: var(--black);
  text-decoration: none;
  background-color: white;
}

nav {
  position: fixed;
  background-color: white;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  padding: .5rem 1.5rem;
  height: 5rem;
}

.navigatie {
  position: absolute;
  width: 100%;
  left: 100%;
  top: 4rem;
  background-color: rgb(255, 255, 255);
  padding: 0;
  transition: left 0.3s ease-in-out;
  height: 100vh;
}

.navigatie li {
  list-style: none;
  padding: 1rem;
  border-bottom: 1px solid var(--blackhalf);
}

.navigatie li a:hover {
  color: red;
}

.navigatie li:first-child {
  border-top: 1px solid var(--blackhalf);
}

.navigatie li:last-child {
  border: none;
}

/* dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1rem;
  margin-bottom: -1rem;
  background-color: rgb(255, 255, 255);
}

.dropdown-menu li {
  margin: 0 -1rem;
  border-bottom: 1px solid var(--blackhalf);
  padding-left: 1rem;
}

.dropdown-menu li a {
  margin-left: 2rem;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

/* dropdown zichtbaarheid */
.dropdown.open .dropdown-menu {
  display: block;
}

/* contact button */
#contact {
  border: 1px solid var(--red);
  background-color: var(--red);
  color: white;
  padding: .5rem;
  width: 100%;
  display: block;
  border-radius: var(--borderradius);
  text-align: center;
}

#contact:hover {
  background-color: white;
  color: var(--red);
  transition: all 0.3s;
}

.header {
  padding-top: 6rem;
}

.steltenlopersh1 {
  border: none;
}

main {
  margin: 1rem;
}

footer {
  background-color: black;
  color: var(--yellow);
  padding: 1rem;
  border-radius: 1.5rem 1.5rem 0 0;
  text-align: left;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.items h3 {
  margin-bottom: -.5rem;
}


footer p {
  line-height: 1.5rem;
}

.CulErf {
  width: 6rem;
  border-radius: .2rem;
  display: flex;
  justify-content: center;
  margin: .5rem auto 0 auto;
}

/*INDEX*/
.header {
  background-color: var(--yellow);
  padding: 6rem 1rem 1rem 1rem;
  border-radius: 1.5rem;
  text-align: center;
}

.groepsfoto {
  width: 100%;
  border-radius: var(--borderradius);
}

.social-media a i {
  font-size: 2rem;
}

.social-media a {
  padding: 1rem;
}





/* de groep */
main section {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

main img {
  display: flex;
  align-items: center;
  margin: 0 auto;
}




/*cultureel erfgoed*/
.tekstlogo {
  display: grid;
  grid-template-rows: 30% 70%;
  align-items: center;
}

.tekslogo img {
  grid-row: 1;
}

.tekstlogo div {
  grid-row: 2;
}

.tekstlogo img {
  display: flex;
  text-align: center;
  width: 50%;
}





/* steltentrainingen */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--borderradius);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}




/* historiek¨*/
main img {
  border-radius: var(--borderradius);
  width: 80%;
}




/*galerij*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 3fr));
  gap: 1rem;
}

.youtube {
  padding: 1rem;
}

.youtube h2 {
  text-align: center;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.videos iframe {
  flex: 1 1 300px;
  max-width: 560px;
  height: 315px;
}

.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  object-fit: cover;
}

.hidden {
  display: none;
}

.overlay img.groot {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--borderradius);
}


.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.prev {
  left: 10px;
  border: 1px solid white;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 0.5rem;
}

.next {
  right: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid white;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.close {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  border: 1px solid white;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/*contact*/
.contact-container i {
  font-size: 2rem;
  color: var(--red);
  margin-right: 1rem;

}

.contact-form {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--borderradius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
textarea {
  border: 1px solid var(--grijstint);
  border-radius: 5px;
}

.contact-form input {
  height: 2rem;
}

.contact-form label {
  margin-bottom: -0.5rem;
}


.contact-form input:focus,
textarea:focus {
  border: 2px solid var(--red);
  outline: none;
}

.submit {
  background-color: var(--red);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--borderradius);
  cursor: pointer;
  transition: background-color 0.3s;
  border: var(--red) 1px solid;
}

.submit:hover {
  background-color: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}




/*palmares*/
.werelddeel {
  pointer-events: all;
  cursor: pointer;
}

.werelddeel path,
.werelddeel circle {
  fill-opacity: 0.3;
  stroke: transparent;
  stroke-width: 5px;
  transition: fill-opacity 0.2s ease;
  pointer-events: all;
  cursor: pointer;
}

/* Hover: tijdelijk volle kleur */
.werelddeel:hover path,
.werelddeel:hover circle {
  fill-opacity: 1;
}

/* Geselecteerd continent: permanente volle kleur */
.werelddeel.selected path,
.werelddeel.selected circle {
  fill-opacity: 1;
}

.visible {
  display: block;
  /* of flex/grid zoals je wil */
}

svg {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.teksten div {
  padding-bottom: 1rem;
}

.teksten div ul li {
  margin: 1rem;
}

.teksten div h2 {
  padding-top: 6rem;
}







/* 404 PAGE */
.error404 {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: system-ui, sans-serif;
    background-color: #f8f8f8;
}

/* afbeelding */
.error404__image {
    max-width: 500px;
    width: 80%;
    height: auto;
}

/* button */
.error404__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    background-color: var(--red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--borderradius);
    transition: all 0.2s ease;
}



@media (min-width: 800px) {

  /* basis */
  nav {
    justify-content: space-between;
  }

  /* logo + nav op één lijn */
  .navigatie {
    position: static;
    /* haalt 'absolute' weg */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: transparent;
    width: auto;
    height: auto;
  }

  .navigatie li {
    border: none;
    /* geen lijntjes in horizontale weergave */
    padding: 0 .7rem;
  }

  .navigatie li:first-child {
    border-top: none;
  }

  /* burger verbergen op breed scherm */
  .burger {
    display: none;
  }

  /* dropdown horizontaal werkend */
  .dropdown-menu {
    position: absolute;
    top: 2rem;
    left: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    background-color: white;
    box-shadow: var(--shadow);
    display: none;
    border-radius: var(--borderradius);
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    margin: 0;
    padding: 1rem 1rem;
    border-bottom: none;
    width: 15rem;
    border-top: 1px solid var(--blackhalf);
  }

  .dropdown-menu li a {
    margin-left: 0;
  }

  .dropdown-menu li:nth-child(4) {
    border-bottom: 1px solid var(--blackhalf);
  }

  #contact {
    width: 7rem;
    border-radius: .5rem;
  }

  .taalswitch {
    position: relative;
  }

  .header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8rem 2rem 4rem 2rem;
    justify-content: center;
    align-items: center;
  }

  .header img {
    width: 100%;
    padding: 1rem;
    border-radius: 2rem;
  }

  /*INDEX*/
  .groepsfoto {
    width: 70%;
  }

  .video {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: 70%;
  }



  footer .items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  footer .items section {
    padding: 1rem;
    text-align: center;
  }

  footer p {
    text-align: center;
  }

  /* historiek¨*/
  main img {
    border-radius: var(--borderradius);
    width: 50%;
  }

  /*cultureel erfgoed*/
  .tekstlogo {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .tekstlogo div {
    grid-row: 1;
    grid-column: 1;
    /* tekst links */
  }

  .tekstlogo img {
    grid-row: 1;
    grid-column: 2;
    width: 60%;
    justify-self: center;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 3fr));

  }

}

@media (min-width: 1200px) {
  .width {
    padding-left: 15%;
    padding-right: 15%;
  }

  /* historiek¨*/
  main img {
    border-radius: var(--borderradius);
    width: 50%;
  }
}