/* Sprachauswahl im Header: Fahne als <span class="cwp-flagge cwp-flagge--de|en"> im Menütitel (nicht ::before — das belegt Elementors Menü-Zeiger), sitewide — cwp-code-pages/includes/sprache.php */
.cwp-flagge {
  display: inline-block; flex-shrink: 0; width: 22px; height: 14px; margin-right: 7px; vertical-align: -2px;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); background-size: cover; background-position: center;
}
.cwp-flagge--de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath d='M0 0h5v3H0z'/%3E%3Cpath fill='%23D00' d='M0 1h5v2H0z'/%3E%3Cpath fill='%23FFCE00' d='M0 2h5v1H0z'/%3E%3C/svg%3E"); }
.cwp-flagge--en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url%28%23t%29' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); }
.cwp-sprache-aktuell > a { cursor: default; }
/* ElementsKit-Dropdown (Desktop-Header): schmal und rechtsbündig, sonst ragt es über den Bildschirmrand */
.cwp-sprache-aktuell > .elementskit-dropdown { left: auto !important; right: 0 !important; min-width: 0 !important; width: 170px !important; }
.cwp-sprache-ziel > a { display: flex !important; align-items: center; justify-content: flex-start !important; white-space: nowrap; }

/* [cwp_sprachwahl]: beide Fahnen nebeneinander — aktiv hell mit Rahmen, die andere gedimmt */
.cwp-sprachwahl { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.cwp-sprachwahl-link { display: inline-flex; align-items: center; padding: 4px; border-radius: 6px; border: 1px solid transparent; line-height: 0; opacity: .45; filter: grayscale(.6); transition: opacity .2s, filter .2s, border-color .2s; }
.cwp-sprachwahl-link:hover, .cwp-sprachwahl-link:focus-visible { opacity: .9; filter: none; }
.cwp-sprachwahl-link.ist-aktiv { opacity: 1; filter: none; border-color: rgba(255, 255, 255, .75); }
.cwp-sprachwahl .cwp-flagge { width: 26px; height: 17px; margin-right: 0; vertical-align: 0; }
.cwp-sprachwahl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Im Handy-Menü größer und mittig unter dem Menü */
.elementor-location-popup .elementor-widget-shortcode:has(.cwp-sprachwahl) { width: 100% !important; max-width: 100% !important; }
.elementor-location-popup .cwp-sprachwahl { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.elementor-location-popup .cwp-sprachwahl .cwp-flagge { width: 36px; height: 24px; }
.elementor-location-popup .cwp-sprachwahl-link { padding: 6px; }
