/* ===== Gemeinsame Navigation – nav.css ===== */
:root {
  --gold: #c0973b;
  --black: #000;
}

/* ===== Hamburger-Button (Mobile) ===== */
#hamburger {
  display: none;
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 10001;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
#hamburger span {
  display: block;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Desktop-Navigation ===== */
#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
#desktop-nav a,
.language-button {
  background: var(--black);
  color: #fff;
  border: 2px solid var(--black);
  padding: 0.6rem 1.4rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 6px rgba(148, 117, 46, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}
#desktop-nav a:hover,
.language-button:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 12px rgba(148, 117, 46, 0.8);
}

/* ===== Sprach-Dropdown (Desktop) ===== */
.language-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
}
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 0 12px rgba(148, 117, 46, 0.8);
  z-index: 10000;
  min-width: 100%;
}
.language-dropdown a {
  display: block;
  padding: 0.6rem 1.4rem;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}
.language-dropdown a:hover {
  background: var(--gold);
  color: var(--black);
}
.language-dropdown-container:hover .language-dropdown {
  display: block;
}

/* ===== Mobile-Navigation ===== */
#mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.98);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  text-align: center;
  justify-content: center;
  gap: 0.3rem;
  overflow-y: auto;
}
#mobile-nav a {
  background: var(--black);
  color: #fff;
  border: 2px solid var(--black);
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  display: block;
  width: 80%;
  margin: 0.3rem auto;
  box-shadow: 0 0 6px rgba(148, 117, 46, 0.4);
  transition: all 0.3s ease;
}
#mobile-nav a:hover {
  background: var(--gold);
  color: var(--black);
}

/* Mobile-Sprach-Dropdown */
#mobile-lang {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.3rem;
}
#mobile-lang a {
  background: #111;
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: bold;
  border: 1px solid #333;
  font-size: 1rem;
  width: 60%;
}
#mobile-lang a:hover {
  background: var(--gold);
  color: var(--black);
}

/* Mobile: Schliessen-Button */
#mobile-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10002;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  #desktop-nav {
    display: none !important;
  }
  #hamburger {
    display: flex;
  }
}
@media (min-width: 768px) {
  #hamburger {
    display: none !important;
  }
  #mobile-nav {
    display: none !important;
  }
}
