/* ── Language Switcher – Schnitzel of Vienna ──────────────────────────────── */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(1, 55, 34, 0.08);
  border: 1px solid rgba(1, 55, 34, 0.2);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: rgba(1, 55, 34, 0.6);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.lang-btn .lang-flag {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}

.lang-btn:hover {
  color: rgba(1, 55, 34, 0.9);
  background: rgba(1, 55, 34, 0.08);
}

.lang-btn:hover .lang-flag {
  transform: scale(1.15);
}

.lang-btn.active {
  background: rgba(1, 55, 34, 0.15);
  color: #013722;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(1, 55, 34, 0.5);
  outline-offset: 2px;
}

.lang-btn:active {
  transform: scale(0.96);
}

/* ── Nav integration ────────────────────────────────────────────────── */
.nav-lang-slot {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

/* When nav has dark overlay (hero area) – invert colors */
.navigation-figl.nav-transparent .lang-switcher,
.navigation-figl.nav-hero .lang-switcher {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}
.navigation-figl.nav-transparent .lang-btn,
.navigation-figl.nav-hero .lang-btn {
  color: rgba(255,255,255,0.7);
}
.navigation-figl.nav-transparent .lang-btn.active,
.navigation-figl.nav-hero .lang-btn.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Hide desktop switcher on mobile – only mobile menu switcher shown ── */
@media (max-width: 1024px) {
  .nav-lang-slot {
    display: none;
  }
}

/* ── Mobile menu language switcher ─────────────────────────────────────── */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
}

.mobile-lang-switcher .mobile-lang-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-right: 4px;
  flex-shrink: 0;
}

.mobile-lang-switcher .lang-btn {
  padding: 9px 16px;
  font-size: 0.78rem;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  min-height: 42px;
  color: rgba(255,255,255,0.65);
}

.mobile-lang-switcher .lang-btn.active {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lang-btn,
  .lang-btn .lang-flag {
    transition: none;
  }
}
