/* Language switcher "EN | DE" + the German hint — markup from lib/i18n.js (switcherHtml), behaviour in i18n.js. App-owned. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
}
.lang-switch a,
.lang-switch .lang-cur {
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-sm, 0.375rem);
  text-decoration: none;
}
.lang-switch a { color: var(--text-muted, #b8a89a); transition: var(--transition, all 0.2s ease); }
.lang-switch a:hover { color: var(--accent-cyan, #06b6d4); }
.lang-switch .lang-cur { color: var(--text-light, #f8fafc); cursor: default; }
.lang-switch .lang-sep { color: var(--text-muted, #b8a89a); opacity: 0.4; }

/* Pill, top right — mirrors the back link (.blog-back / .vc-back) on the left. */
.lang-switch--fixed {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  padding: 0.5rem 0.65rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md, 0.625rem);
}

/* Homepage on narrow screens: the nav bar (46px) is full width, so the pill sits just below it. */
@media (max-width: 968px) { .lang-switch--home { top: 54px; right: 0.6rem; padding: 0.3rem 0.45rem; font-size: 0.8rem; } }

/* "This page is also available in German" — bottom right, above the cookie bar. */
.lang-hint {
  position: fixed;
  right: 1rem;
  bottom: 3.6rem;
  z-index: 9998;
  max-width: min(22rem, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.5rem 0.9rem;
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 0.625rem);
  font-family: "Ubuntu", sans-serif;
  font-size: 0.8rem;
  color: #9ca3af;
}
.lang-hint a { color: #67e8f9; text-decoration: underline; white-space: nowrap; }
.lang-hint button { background: none; border: none; color: #6b7280; cursor: pointer; font-size: 1rem; padding: 0 0.15rem; line-height: 1; }
