/* ================= GLOBAL ================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f0f0f0;

  display: flex;            /* flexibles Layout */
  flex-direction: column;   /* alles untereinander */
  align-items: center;      /* horizontal zentrieren */
}

main {
  width: 100%;              /* optional, wenn du max-width beschränken willst */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= HEADER ================= */
h2 {
  text-align: center;
  margin: 20px 10px;
  font-size: 1.5rem;
}

/* ================= NAVIGATION ================= */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* horizontale Zentrierung */
  gap: 8px;
  padding: 10px;
}

.dropbtn {
  background-color: #3498db;
  color: white;
  padding: 12px 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f7ff00;
  min-width: 180px;
  z-index: 5;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
}

.dropdown-content a:hover {
  background: #ff8c00;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ================= IMAGE ================= */
#image-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 3/2; 
  margin: 30px auto;        /* zentriert horizontal */
  background-image: url('images/moulaybousselham3D_3.jpg');
  background-size: cover;
  border: 1px solid #ccc;
}

/* ================= MARKER ================= */
.marker {
  position: absolute;
  width: 2%;
  aspect-ratio: 1/1;
  background: red;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marker .tooltip {
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  display: none;
  pointer-events: none;
}

.marker:hover .tooltip {
  display: block;
}

/* ================= LANGUAGE SWITCHER ================= */
/* ================= LANGUAGE SWITCHER ================= */
#lang-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;          /* Abstand zwischen den Buttons kleiner */
  margin: 5px 0;     /* Abstand nach oben/unten klein */
  width: 100%;
  max-width: 500px;
}

#lang-switcher .lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem; /* Text kleiner */
  text-align: center;
  padding: 2px;      /* Weniger Abstand innen */
}

#lang-switcher .lang-btn img {
  width: 30px;        /* Flaggen kleiner */
  height: auto;
  display: block;
  margin-bottom: 2px; /* Abstand Bild/Text kleiner */
}

@media (max-width: 480px) {
  #lang-switcher {
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
  }
  #lang-switcher .lang-btn img {
    width: 30px;
  }
  #lang-switcher .lang-btn {
    font-size: 0.8rem;
  }
}
