/* Sprachwahl im Kopfbereich – wiederhergestellte helle, abgerundete Fassung. */
.site-header .header-inner {
  flex-wrap: nowrap;
}

.site-header .brand,
.site-header .brand-name {
  white-space: nowrap;
}

.site-header .language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 42px;
  margin: 0 0 0 auto;
  padding: 6px 16px;
  border: 1px solid #dbe1e6;
  border-radius: 999px;
  background: #f6f8fa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(2, 44, 66, 0.035);
  white-space: nowrap;
}

.site-header .language-switcher__button {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  outline-offset: 2px;
  background: transparent;
  cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.site-header .language-switcher__button:hover,
.site-header .language-switcher__button:focus-visible {
  background: rgba(2, 44, 66, 0.065);
  transform: translateY(-1px);
}

.site-header .language-switcher__button:focus-visible {
  outline: 2px solid rgba(2, 44, 66, 0.42);
}

.site-header .main-nav {
  flex: 0 0 auto;
  white-space: nowrap;
}

#google_translate_element {
  position: fixed !important;
  top: -10000px !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (width <= 1120px) {
  .site-header .language-switcher {
    justify-content: flex-end;
    margin-right: 0;
    margin-left: auto;
  }

  .site-header .menu-toggle {
    flex: 0 0 46px;
  }
}

@media (width <= 720px) {
  .site-header .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(4px, 1.5vw, 9px);
    min-height: 60px;
    padding: 7px 0;
  }

  .site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
  }

  .site-header .brand-name {
    font-size: clamp(0.82rem, 4vw, 1.05rem);
  }

  .site-header .menu-toggle {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .site-header .language-switcher {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 5px;
    min-height: 34px;
    margin: 0 0 0 auto;
    padding: 3px 7px;
  }

  .site-header .language-switcher__button {
    flex-basis: 18px;
    width: 18px;
    height: 24px;
    font-size: 17px;
  }
}

@media (width <= 390px) {
  .site-header .language-switcher {
    gap: 3px;
    padding-right: 5px;
    padding-left: 5px;
  }
}

@media (width <= 340px) {
  .site-header .header-inner {
    gap: 3px;
  }

  .site-header .brand-name {
    font-size: 0.74rem;
  }

  .site-header .menu-toggle {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .site-header .language-switcher {
    gap: 2px;
    min-height: 30px;
    padding: 2px 4px;
  }

  .site-header .language-switcher__button {
    flex-basis: 16px;
    width: 16px;
    height: 22px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .language-switcher__button {
    transition: none;
  }
}
