/* ==========================================================================
   Sprachumschalter (DE / FR / EN)
   ========================================================================== */

.vx-langsw {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.83rem;
	line-height: 1;
	white-space: nowrap;
}

.vx-langsw__item {
	display: inline-block;
	padding: 4px 6px;
	color: inherit;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-decoration: none;
	border-radius: var(--vx-radius);
	transition: color var(--vx-transition), background var(--vx-transition);
}

.vx-langsw__item:hover,
.vx-langsw__item:focus {
	color: #fff;
	background: var(--vx-accent);
}

.vx-langsw__sep {
	color: currentColor;
	opacity: 0.35;
	font-weight: 400;
}

/* Aktive Sprache: kein Link, deutlich abgesetzt */
.vx-langsw__item.is-current {
	color: #fff;
	font-weight: 700;
	cursor: default;
}

.vx-langsw__item.is-current:hover {
	background: none;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Variante in der Topbar (dunkler Hintergrund)
   -------------------------------------------------------------------------- */

.vx-topbar .vx-langsw {
	color: var(--vx-steel-light);
}

.vx-topbar__lang {
	margin-left: auto;
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------------------------------
   Variante im Header / in der Navigation (heller Hintergrund)
   -------------------------------------------------------------------------- */

.vx-langsw--menu {
	color: var(--vx-ink);
	margin-left: 12px;
	margin-right: 12px;
}

.vx-langsw--menu .vx-langsw__item {
	color: var(--vx-ink);
}

.vx-langsw--menu .vx-langsw__item.is-current {
	color: var(--vx-accent);
}

.vx-langsw--menu .vx-langsw__item:hover {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Ausklapp-Variante für mobile Ansichten
   -------------------------------------------------------------------------- */

.vx-langsw--compact .vx-langsw__item {
	padding: 6px 8px;
	font-size: 0.8rem;
}

@media (max-width: 767px) {
	.vx-topbar__lang {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.vx-langsw {
		font-size: 0.8rem;
		gap: 2px;
	}
}

/* --------------------------------------------------------------------------
   Fallback: Elementor-Header, falls die Topbar nicht aus dem Child kommt
   -------------------------------------------------------------------------- */

.elementor-location-header .vx-langsw {
	margin-left: 16px;
}
