/* --------------------------------------------------
   Basis
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: clamp(0.8rem, 3vmin, 1.3rem);
}

/* --------------------------------------------------
   Header Container
-------------------------------------------------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--hero-color);
  color: white;
}
.language-switch {
  display: flex;
  align-items: center;
}
.language-switch button {
  display: flex;
  align-items: center;
  gap: 0.4rem;

  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  position: relative;
  opacity: 0.7;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.language-switch button:first-child::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 10%;
  height: 75%;
  width: 3px;
  background: rgba(255, 255, 255, 1);
}
.language-switch button:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
  opacity: 1;
}
.language-switch button.active {
  opacity: 1;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration: underline;
}
.flag-icon {
  height: 18px;
  display: block;
  border-radius: 2px;
}
/* --------------------------------------------------
   Logo
-------------------------------------------------- */
.header-logo-link {
  display: flex;
  align-items: center;
}
.header-logo {
  height: var(--header-logo-height);
  width: auto;
  display: block;
}
/* --------------------------------------------------
   Hamburger Menü
-------------------------------------------------- */
.menu-toggle {
  width: 2.2rem;
  height: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 0.22rem;
  background: white;
  border-radius: 999px;
  transition: all 0.25s ease;
}

/* Hamburger -> X */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(0.65rem) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-0.65rem) rotate(-45deg);
}
/* --------------------------------------------------
   Dropdown Navigation
-------------------------------------------------- */
.nav {
  display: none;
  position: absolute;
  right: 1rem;
  top: calc(100% + 0.5rem);
  min-width: 14rem;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.nav.open {
  display: block;
}
.nav ul {
  list-style: none;
}
.nav li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav li:last-child {
  border-bottom: none;
}
.nav a {
  display: block;
  padding: 0.9rem 1rem;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}
/* --------------------------------------------------
   Font Skalierung
-------------------------------------------------- */
@media (max-width: 1500px) {
  body {
    font-size: clamp(0.8rem, 2.4vmin, 1.1rem);
  }
  .menu-toggle {
    width: 1.9rem;
    height: 1.2rem;
    z-index: 1001;
  }
  .menu-toggle span {
    height: 0.12rem;
    background: white;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(0.58rem) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-0.58rem) rotate(-45deg);
  }
  .nav {
    min-width: 10rem;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .language-switch button {
    font-size: 0.9rem;
  }
  .flag-icon {
    height: 14px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: clamp(0.7rem, 2.4vmin, 1.1rem);
  }
}
/* @media (max-width: 1250px) {
  body {
    font-size: clamp(0.5rem, 1.8vmin, 0.9rem);
  }
}
@media (max-width: 1050px) {
  body {
    font-size: clamp(0.5rem, 1.5vmin, 0.8rem);
  }
} */
