/* DE / EN toggle */
.lang-toggle {
  display: inline-flex;
  gap: 0.15rem;
  border: 2px solid var(--bk-ink, #10202a);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--bk-cream, #f6efe2);
  box-shadow: 0.2rem 0.2rem 0 var(--bk-ink, #10202a);
  font-family: "Archivo", Arial, Helvetica, sans-serif;
}
.lang-toggle a {
  display: inline-flex;
  min-width: 2.3rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--bk-ink, #10202a);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-toggle a[aria-current="true"] {
  background: var(--bk-ink, #10202a);
  color: var(--bk-cream, #f6efe2);
}
.lang-toggle a:not([aria-current="true"]):hover,
.lang-toggle a:not([aria-current="true"]):focus-visible {
  outline: none;
  background: oklch(18% 0.025 225 / 12%);
}
.header-end {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-self: end;
}
.lang-toggle--overture {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: clamp(1rem, 3vw, 2.5rem);
  z-index: 3;
}
.site-footer__owner {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  color: oklch(95% 0.025 82 / 55%);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .header-end { grid-column: 2; gap: 0.4rem; }
  .lang-toggle a { min-width: 2.05rem; min-height: 1.95rem; font-size: 0.62rem; }
}
@media (max-width: 360px) {
  .lang-toggle a { min-width: 1.8rem; }
}
/* legal pages (dark) */
.legal-topbar__end { display: inline-flex; gap: 1rem; align-items: center; }
.legal-shell .lang-toggle {
  border-color: rgba(245, 239, 229, 0.35);
  background: transparent;
  box-shadow: none;
}
.legal-shell .lang-toggle a { color: rgba(245, 239, 229, 0.6); }
.legal-shell .lang-toggle a[aria-current="true"] { background: #f5efe5; color: #0d0c0b; }
/* small phones: keep the logo icon, drop the wordmark so the toggle never overlaps it */
@media (max-width: 440px) {
  .site-header .brand-pill span { display: none; }
}
