/* Sprachumschalter (DE/EN) */
.eb-lang { --eb-lang-w: 40px; --eb-lang-h: 28px; position: relative; display: inline-flex; align-items: center; gap: 0; padding: 3px; border-radius: 999px; border: 1px solid rgba(11, 31, 51, 0.18); background: rgba(255, 255, 255, 0.6); line-height: 1; isolation: isolate; }
.eb-lang, .eb-lang * { text-shadow: none !important; }
/* Schieber: liegt unter der aktuellen Sprache und gleitet beim Ueberfahren der anderen Sprache hinueber */
.eb-lang::before { content: ""; position: absolute; z-index: 0; top: 3px; left: 3px; width: var(--eb-lang-w); height: var(--eb-lang-h); border-radius: 999px; background: #0B1F33; transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1), background-color 0.2s ease; }
.eb-lang--cur-en::before { transform: translateX(var(--eb-lang-w)); }
.eb-lang--cur-de:has(a:hover, a:focus-visible)::before { transform: translateX(var(--eb-lang-w)); }
.eb-lang--cur-en:has(a:hover, a:focus-visible)::before { transform: translateX(0); }
.eb-lang__item { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: var(--eb-lang-w); height: var(--eb-lang-h); padding: 0; border-radius: 999px; font: 600 0.78rem/1 var(--eb-font-body, Inter, sans-serif); letter-spacing: 0.06em; text-decoration: none; color: #0B1F33; transition: color 0.2s ease; }
/* Hintergrund am aktiven Item (nicht nur am ::before-Schieber), sonst melden
   Kontrastscanner weissen Text auf Seitenhintergrund (Ally Farbkontrast). */
.eb-lang__item.is-current { color: #fff; background-color: #0B1F33; }
.eb-lang:has(a:hover, a:focus-visible) .eb-lang__item.is-current { color: #0B1F33; background-color: transparent; }
.eb-lang a.eb-lang__item:hover, .eb-lang a.eb-lang__item:focus-visible { color: #fff; }
.eb-lang a:focus-visible { outline: 2px solid #1D5E8A; outline-offset: 2px; }
.eb-lang--dark { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.eb-lang--dark::before { background: #3FD1C7; }
.eb-lang--dark .eb-lang__item { color: #fff; }
.eb-lang--dark .eb-lang__item.is-current { color: #0B1F33; background-color: #3FD1C7; }
.eb-lang--dark:has(a:hover, a:focus-visible) .eb-lang__item.is-current { color: #fff; background-color: transparent; }
.eb-lang--dark a.eb-lang__item:hover, .eb-lang--dark a.eb-lang__item:focus-visible { color: #0B1F33; }
.eb-lang--dark:has(a:hover, a:focus-visible) .eb-lang__item.is-current { color: #fff; }
.eb-lang--dark a.eb-lang__item:hover, .eb-lang--dark a.eb-lang__item:focus-visible { color: #0B1F33; }
@media (prefers-reduced-motion: reduce) { .eb-lang::before, .eb-lang__item { transition: none; } }
.eb-lang .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.eb-header-lang { display: flex; align-items: center; }
.eb-header .eb-header-lang.elementor-widget { flex: 0 0 auto !important; width: auto !important; max-width: none !important; margin: 0 4px 0 8px !important; position: static; }
.eb-header .eb-header-lang .elementor-widget-container, .eb-header .eb-header-lang .elementor-shortcode { display: flex; align-items: center; }
.eb-oc__top .eb-lang--oc { margin-left: auto; margin-right: 4px; }
@media (min-width: 1025px) { .eb-oc__top .eb-lang--oc { grid-area: 1 / 1; justify-self: end; margin: 0; } }
@media (max-width: 480px) { .eb-lang { --eb-lang-w: 34px; --eb-lang-h: 26px; } }
@media (max-width: 370px) { .elementor-location-header .eb-logo-a, .elementor-location-header .eb-logo-b { font-size: 0.9rem !important; } .elementor-location-header .eb-logo-mark { width: auto !important; height: 30px !important; } .elementor-location-header .eb-logo { gap: 0.2em !important; } }
@media (max-width: 430px) { .eb-lang { --eb-lang-w: 30px; --eb-lang-h: 24px; } .eb-lang__item { font-size: 0.72rem; } .eb-header .eb-header-lang.elementor-widget { margin-inline-end: 0 !important; } .elementor-location-header .eb-header-inner { gap: 6px !important; } }
@media (max-width: 1480px) { .elementor-location-header .elementor-widget-nav-menu { display: none !important; } .eb-header .eb-header-lang.elementor-widget { margin-inline-start: auto !important; } .elementor-location-header .eb-btn-help-sm { margin-inline-start: 0 !important; } }
