/* Eigener Platz rechts neben dem Astra-Menü, auch im mobilen Header. */
#masthead:has(.rcr-sprachwahl) .ast-primary-header-bar {
    padding-right: 88px;
}
.ast-header-break-point #masthead:has(.rcr-sprachwahl) .ast-mobile-header-wrap .ast-primary-header-bar {
    padding-right: 88px;
}
.rcr-sprachwahl {
    position: absolute;
    top: 18px;
    bottom: 0;
    pointer-events: none;
    right: 8px;
    z-index: 1000;
}
.rcr-sprachwahl button,
.rcr-sprachwahl a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 4px 8px;
    background: #fff;
    color: #1D3533;
    font: 600 14px/1.3 sans-serif;
}
.rcr-sprachwahl button {
    pointer-events: auto;
    min-width: 44px;
    border: 1px solid #2F6B67;
    border-radius: 4px;
}
.rcr-sprachwahl ul {
    position: absolute;
    right: 0;
    top: 100%; /* Unterhalb der tatsächlichen Kopfzeile, auch bei Textumbruch */
    pointer-events: auto;
    width: max-content;
    list-style: none;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid #2F6B67;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.rcr-sprachwahl svg {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.rcr-sprachwahl a[aria-current] { text-decoration: underline; }
.rcr-sprachwahl :focus-visible { outline: 3px solid #2F6B67; outline-offset: 2px; }
.rcr-sprachwahl [hidden] { display: none; }

/* Ohne Skript bleiben drei beschriftete Links in der reservierten Kopfspalte. */
.rcr-sprachwahl button[hidden] + ul {
    top: -16px;
    padding: 0;
}
.rcr-sprachwahl button[hidden] + ul a {
    min-height: 24px;
    gap: 3px;
    padding: 0 3px;
    font-size: 12px;
}
.rcr-sprachwahl button[hidden] + ul svg { width: 16px; height: 11px; }
