/* Sprachumschalter im Header [bb_lang_switch] */
.bb-lang {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1;
}
.bb-lang summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 4px;
    font-weight: 600;
    color: var(--e-global-color-text, #3e3d3d);
    user-select: none;
    white-space: nowrap;
}
.bb-lang summary::-webkit-details-marker { display: none; }
.bb-lang summary::after {
    content: "";
    display: inline-block;
    margin-left: 5px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    vertical-align: middle;
}
.bb-lang ul {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}
.bb-lang li a {
    display: block;
    padding: 7px 12px;
    color: var(--e-global-color-text, #3e3d3d);
    white-space: nowrap;
    text-decoration: none;
}
.bb-lang li a span {
    opacity: 0.7;
    margin-left: 4px;
}
.bb-lang li a:hover {
    background: rgba(0, 0, 0, 0.05);
}
.elementor-widget-shortcode:has(.bb-lang) {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
}
.bb-lang-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.bb-lang summary:focus { outline: none; }
.bb-lang summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
