/* Sprachwahl im Kopfbereich – zusätzlich zu css/style.css laden */
.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.1rem;
}

.language-switch a {
  display: grid;
  width: 34px;
  height: 26px;
  place-items: center;
  padding: 3px;
  border: 1px solid rgba(23, 61, 50, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(23, 61, 50, 0.08);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.language-switch a:hover {
  border-color: var(--forest-700, #2c6755);
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 61, 50, 0.14);
  transform: translateY(-1px);
}

.language-switch a[aria-current="page"] {
  border-color: var(--forest-800, #205344);
  background: var(--sage-100, #e7eee4);
  box-shadow: 0 0 0 2px rgba(32, 83, 68, 0.13);
  cursor: default;
}

.language-switch img {
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.legal-topbar .language-switch {
  margin-left: auto;
}

.legal-topbar .legal-nav-shell > nav {
  margin-left: 0;
}

@media (max-width: 760px) {
  .language-switch {
    gap: 0.25rem;
  }

  .language-switch a {
    width: 32px;
    height: 24px;
    padding: 3px;
  }

  .language-switch img {
    width: 24px;
    height: 16px;
  }
}

@media (max-width: 430px) {
  .language-switch a {
    width: 30px;
    height: 23px;
  }

  .language-switch img {
    width: 22px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch a {
    transition: none;
  }

  .language-switch a:hover {
    transform: none;
  }
}
