.link {
   display: block;
   text-align: center;
   justify-content: center
}
/*==========MENU===========*/
/* Navigatiebalk achtergrond */
nav {
    background-color: #d0e4f7;   /* jouw hoofdkleur */
    border-bottom: 2px solid #7aa7d9;
}

/* Menu lijst */
.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;      /* bolletjes weg */
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* Menu horizontaal maken */
.menu li {
    display: flex;
}

/* Links */
.menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #003366;        /* donkerblauw */
    font-weight: bold;
}

/* Hover effect */
.menu li a:hover {
    background-color: #7aa7d9;
    color: white;
}

/* Actieve pagina */
.menu li a.active {
    background-color: #003366;
    color: white;
}
/* ===== HELP BLOK ===== */

.help-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 16px;

  background: #c4d9ee;
  border-radius: 10px;
}

.help-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.help-image {
  display: block;
  margin: 0 auto 16px auto;

  max-width: 100%;
  height: auto;

  background: #a0c0d8;
  padding: 6px;
  border-radius: 8px;
}

.help-grid {

  display: grid;

  grid-template-columns:
    1fr 1fr
    1fr 1fr;

  gap: 6px 12px;

  font-size: 14px;
}

.help-header {
  font-weight: bold;
  margin: 20px 0px;
}

.help-footer {
  margin-top: 20px;
  padding: 12px;
  font-size: 12px;
  text-align: center;
  color: #333;
}

@media (max-width: 700px) {

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

}

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

.site-header {
  background: transparent;
  padding: 20px 10px 10px;
  text-align: center;
}

.site-header h1 {
  display: inline-block;
  background: #d0e4f7;
  color: #2a5a8a;
  font-size: 22px;
  font-weight: normal;
  padding: 10px 60px;
  border: 2px solid white;
  margin: 0;
}

#pagina-titel-h2 {
  margin: 0;
}

.container {
   margin: 0 auto;
}

.ticker {
display: flex;
justify-content: center;
margin-bottom: 20px;
} 

.ticker img {
  max-width: 100%;
  height: auto;
  display: block;
}

.doel {
text-align: center;
margin: 20px 0px;
} 

.foto-blok {
display: flex;
justify-content: center;
margin-bottom: 20px;
} 

.foto-blok img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ===== RESPONSIVE VIEWER ===== */
.viewer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

#viewerCanvas {
  width: 90vw;
  max-width: 1000px;
  height: 45vw;
  max-height: 600px;
  display: block;
}

/* ===== INFO ===== */
#groupTitle {
  text-align: center;
  color: #2a5a8a;
  font-weight: bold;
  margin: 10px 0 2px;
}

#imageFile {
  text-align: center;
  color: #2a5a8a;
  font-size: 12px;
}

/* ===== RESOLUTIE SELECTOR ===== */
#res-selector {
  text-align: center;
  margin: 8px auto 4px;
  font-size: 14px;
  color: #2a5a8a;
}

#resKeuze {
  margin: 0 6px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #8aaacb;
  background: #c4d9ee;
  color: #2a5a8a;
  font-size: 14px;
  cursor: pointer;
}

#res-info {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 3px;
}
/*=========Stambomen=======*/

.stamboom-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 900px;
  margin: 20px auto;
  padding: 10px;
}

.link .stamboom-container {
  grid-template-columns: 1fr;  /* 1 kolom i.p.v. 3 */
  max-width: 320px;             /* past bij 1 kaartje */
}

.stamboom-uitleg-container {
  max-width: 900px;
  margin: 20px auto;
  position: relative;
}

.item a {
  word-break: break-all;
}

.media-container {
  border-radius: 10px;
  margin-bottom: 40px
}

.media-grid {
display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

/* ÉÉN doorlopende middenlijn */
.media-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: black;
  transform: translateX(-50%);
}

/* Links */
.media-grid > div:nth-child(odd) {
  text-align: right;
  padding-right: 20px;
}

/* Rechts */
.media-grid > div:nth-child(even) {
  text-align: left;
  padding-left: 20px;
}

.drone-tools-container {
  border-radius: 10px;
  margin-bottom: 40px
}

.drone-tools-grid {
display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

/* ÉÉN doorlopende middenlijn */
.drone-tools-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: black;
  transform: translateX(-50%);
}

/* Links */
.drone-tools-grid > div:nth-child(odd) {
  text-align: right;
  padding-right: 20px;
}

/* Rechts */
.drone-tools-grid > div:nth-child(even) {
  text-align: left;
  padding-left: 20px;
}

.stamboom-uitleg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

/* ÉÉN doorlopende middenlijn */
.stamboom-uitleg-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #7aa7d9;
  transform: translateX(-1px);
}

/* Links */
.stamboom-uitleg-grid > div:nth-child(odd) {
  text-align: right;
  padding-right: 20px;
}

/* Rechts */
.stamboom-uitleg-grid > div:nth-child(even) {
  text-align: left;
  padding-left: 20px;
}

.stamboom-card {
  display: flex;
  justify-content: center;
  align-items: center;

  background: #c4d9ee;
  border: 2px solid #7aa7d9;
  border-radius: 10px;

  padding: 30px;
  text-decoration: none;
  color: #003366;
  font-weight: bold;

  transition: 0.2s;
}

.stamboom-card:hover {
  background: #7aa7d9;
  color: white;
  transform: scale(1.03);
}

.stamboom-uitleg-container {
  background: #c4d9ee;
  border-radius: 10px;
}


/* ===== JAAR-GROEPEN ===== */
#radio-container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
}

.jaar-sectie {
  margin-bottom: 8px;
  border: 1px solid #8aaacb;
  border-radius: 10px;
  overflow: hidden;
}

.jaar-header {
  width: 100%;
  background: #5a84aa;
  color: white;
  border: none;
  padding: 8px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  box-sizing: border-box;
}

.jaar-header:hover {
  background: #4a6f92;
}

.jaar-pijl {
  transition: transform 0.25s ease;
}

.jaar-sectie.open .jaar-pijl {
  transform: rotate(90deg);
}

.jaar-items {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #ddeaf7;
}

.jaar-sectie.open .jaar-items {
  display: flex;
}

.radio-item {
  background: #c4d9ee;
  border: 1px solid #8aaacb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  user-select: none;
}

.radio-item:hover {
  background: #b0ccdf;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  background: gray;
  vertical-align: middle;
}

.dot.online {
  background: #2ecc71; /* groen */
}

.dot.offline {
  background: #e74c3c; /* rood */
}


@media (max-width: 600px) {
  #viewerCanvas {
    height: 40vh;
  }

  .radio-item {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .stamboom-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .stamboom-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .stamboom-uitleg-grid {
    grid-template-columns: 1fr !important;
  }

  .stamboom-uitleg-grid::before {
    display: none !important;
  }

  .stamboom-uitleg-grid .item {
    background: #f3f7ff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .stamboom-uitleg-grid .help-header {
    font-weight: bold;
    margin-bottom: 6px;
  }
}

/*=========Drone-vitrine=======*/

.drone-vitrine-container {
  border-radius: 10px;
  margin-bottom: 40px;
}

.drone-vitrine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.drone-vitrine-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: black;
  transform: translateX(-50%);
}

.drone-vitrine-grid > .drone-vitrine-item:nth-child(odd) {
  text-align: right;
  padding-right: 20px;
}

.drone-vitrine-grid > .drone-vitrine-item:nth-child(odd) .video-wrapper {
  margin-left: auto;
}

.drone-vitrine-grid > .drone-vitrine-item:nth-child(even) .video-wrapper {
  margin-right: auto;
}

.drone-vitrine-grid > .drone-vitrine-item:nth-child(even) {
  text-align: left;
  padding-left: 20px;
}

.video-wrapper {
  max-width: 640px;
  width: 100%;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

.map-wrapper {
  width: 100%;
  max-width: 827px;
}

.map-wrapper iframe {
  width: 100%;
  aspect-ratio: 827 / 1495;
  height: auto;
  display: block;
}

/* BELANGRIJK: dit maakt het responsive */
.wrapper {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

/* tabel laten meeschalen */
.wrapper table {
  width: 100% !important;
  border-collapse: collapse;
}

/* alle afbeeldingen schalen */
.wrapper img {
  width: 100%;
  height: auto;
  display: block;


@media (max-width: 1500px) {
  .drone-vitrine-grid {
    grid-template-columns: 1fr;
  }

  .drone-vitrine-grid::before {
    display: none;
  }

 @media (max-width: 1500px) {
  .drone-vitrine-grid {
    grid-template-columns: 1fr;
  }

  .drone-vitrine-grid::before {
    display: none;
  }

  /* 🔥 Belangrijk: reset alignment */
  .video-wrapper {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .map-wrapper {
    max-width: 100%;
  }
}