/* ============================================================
   Sprach-Switcher (Etappe-A i18n) — scoped auf .gq-lang-*
   Funktioniert in allen geoquality-Themes (dunkel + hell), passt
   sich via currentColor an Header/Footer an.
   ============================================================ */

.gq-lang-switch { position: relative; display: inline-flex; align-items: center; }

/* ── Header-Variante: Globus + Code + Dropdown ───────────── */
.gq-lang-switch--header .gq-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.gq-lang-switch--header .gq-lang-trigger:hover {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.4);
  color: #fff;
}
.gq-lang-switch--header .gq-lang-trigger[aria-expanded="true"] {
  background: rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.5);
}
.gq-lang-trigger-code { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

.gq-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #0f0f18;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  z-index: 1000;
}
.gq-lang-menu[hidden] { display: none; }
.gq-lang-menu li { margin: 0; }
.gq-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.gq-lang-menu a:hover { background: rgba(168,85,247,0.10); color: #fff; }
.gq-lang-menu a.is-active {
  background: rgba(168,85,247,0.18);
  color: #c4b5fd;
  border: 1px solid rgba(168,85,247,0.35);
  padding: 7px 10px;
}
.gq-lang-menu-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(168,85,247,0.95);
  min-width: 22px;
}
.gq-lang-menu-name { font-size: 12.5px; color: inherit; }

/* ── Footer-Variante: 4 Pills inline ───────────────────────── */
.gq-lang-switch--footer { gap: 6px; flex-wrap: wrap; }
.gq-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.03);
  transition: color .15s, border-color .15s, background .15s;
}
.gq-lang-pill:hover {
  color: #fff;
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.10);
}
.gq-lang-pill.is-active {
  color: #c4b5fd;
  border-color: rgba(168,85,247,0.55);
  background: rgba(168,85,247,0.15);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.22);
}

@media (max-width: 480px) {
  .gq-lang-switch--header .gq-lang-trigger { padding: 6px 9px; font-size: 11px; }
  .gq-lang-pill { min-width: 30px; padding: 4px 8px; font-size: 10.5px; }
}
