#rsr-kontaktleiste,
.rsr-werkzeuge .rsr-kurzlabel { display: none; }

@media screen {
    #rhg-lesehilfen .rsr-werkzeuge {
        --rsr-rand: 14px;
        --rsr-kreis: 48px;
        position: fixed;
        z-index: 149;
        right: max(var(--rsr-rand), env(safe-area-inset-right));
        bottom: max(var(--rsr-rand), env(safe-area-inset-bottom));
        display: grid;
        justify-items: end;
        gap: 7px;
        pointer-events: none;
    }
    body:has(.grecaptcha-badge[data-style="bottomright"]) #rhg-lesehilfen .rsr-werkzeuge {
        bottom: calc(max(var(--rsr-rand), env(safe-area-inset-bottom)) + 72px);
    }
    body:has(.rk-header.rk-kopf-klein) #rsr-kontaktleiste {
        display: grid;
        justify-items: end;
        gap: 7px;
    }
    body:has(dialog:modal, #rhg-lesemenue[open], .rk-header .rs-mobilemenu[open], .cmplz-cookiebanner.cmplz-show) #rhg-lesehilfen .rsr-werkzeuge {
        display: none;
    }
    #rhg-lesehilfen .rsr-werkzeuge .rhg-leseoeffner {
        position: relative;
        inset: auto;
        pointer-events: auto;
    }
    .rsr-werkzeuge .rhg-lesetipp { left: auto; right: calc(100% + 10px); }
    #rsr-kontaktleiste a {
        display: inline-flex;
        flex-direction: row-reverse;
        align-items: center;
        min-height: var(--rsr-kreis);
        max-width: calc(100vw - 2 * var(--rsr-rand));
        padding: 0;
        border: 2px solid #fff;
        border-radius: calc(var(--rsr-kreis) / 2);
        background: #30383c;
        color: #fff;
        box-shadow: 0 2px 9px #17202750;
        font: 650 .94rem/1.3 "RK Montserrat", Arial, sans-serif;
        text-decoration: none;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    #rsr-kontaktleiste .rsr-kontaktsymbol {
        display: grid;
        place-items: center;
        flex: none;
        width: calc(var(--rsr-kreis) - 4px);
        height: calc(var(--rsr-kreis) - 4px);
    }
    #rsr-kontaktleiste svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    #rsr-kontaktleiste .rsr-kontaktlabel {
        display: grid;
        grid-template-columns: 0fr;
        min-width: 0;
    }
    #rsr-kontaktleiste .rsr-kontaktlabel > span {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }
    #rsr-kontaktleiste a:focus-visible { background: #93251f; }
    #rsr-kontaktleiste a:focus-visible .rsr-kontaktlabel {
        grid-template-columns: 1fr;
        padding-left: .85rem;
    }
}
@media screen and (hover: hover) and (pointer: fine) {
    #rsr-kontaktleiste a:hover { background: #93251f; }
    #rsr-kontaktleiste a:hover .rsr-kontaktlabel { grid-template-columns: 1fr; padding-left: .85rem; }
}
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1440px) and (hover: hover) {
    html:not(.rhg-bewegungsarm, .rs-still) #rsr-kontaktleiste .rsr-kontaktlabel {
        transition: grid-template-columns .2s ease-out, padding .2s ease-out;
    }
}

@media screen and (max-width: 1439px), screen and (pointer: coarse) {
    html:has(#rhg-lesehilfen .rsr-werkzeuge) { scroll-padding-bottom: calc(var(--rsr-bedienhoehe, 54px) + 6px); }
    #rhg-lesehilfen:has(.rsr-werkzeuge) { min-height: var(--rsr-bedienhoehe, 54px); }
    #rhg-lesehilfen .rsr-werkzeuge,
    body:has(.grecaptcha-badge[data-style="bottomright"]) #rhg-lesehilfen .rsr-werkzeuge {
        --rsr-unterkante: 1;
        inset: auto 0 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        padding: 4px max(10px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        border-top: 1px solid #cbd0d2;
        background: #fff;
        color: #293135;
        pointer-events: auto;
    }
    body:has(.rk-header.rk-kopf-klein) #rsr-kontaktleiste { display: flex; gap: 0; }
    #rsr-kontaktleiste a,
    #rhg-lesehilfen .rsr-werkzeuge .rhg-leseoeffner {
        display: inline-flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: auto;
        min-height: 44px;
        height: auto;
        padding: 5px clamp(7px, 2.2vw, 16px);
        border: 0;
        border-radius: 4px;
        background: #fff;
        color: #293135;
        box-shadow: none;
        font: 650 .8125rem/1.25 "RK Montserrat", Arial, sans-serif;
    }
    #rsr-kontaktleiste .rsr-kontaktsymbol { width: auto; height: auto; }
    #rsr-kontaktleiste svg,
    #rhg-lesehilfen .rsr-werkzeuge .rhg-leseoeffner svg { width: 20px; height: 20px; }
    .rsr-werkzeuge .rsr-kurzlabel { display: inline; }
    .rsr-werkzeuge .rhg-lesetipp { display: none; }
    #rsr-kontaktleiste a:is(:hover, :focus-visible),
    #rhg-lesehilfen .rsr-werkzeuge .rhg-leseoeffner:is(:hover, :focus-visible) {
        background: #f5eeed;
        color: #8a211a;
    }
    #rhg-lesehilfen .rsr-werkzeuge :focus-visible { outline-offset: -3px; }
    #rsr-kontaktleiste .rsr-kontaktlabel { display: none; }
    /* Tastatur oder Maus zeigen die Adresse innerhalb der Leiste. */
    #rhg-lesehilfen .rsr-werkzeuge:has(#rsr-kontaktleiste a:focus-visible) { padding-top: 24px; }
    #rsr-kontaktleiste a:focus-visible .rsr-kontaktlabel { display: block; }
    #rsr-kontaktleiste a .rsr-kontaktlabel {
        position: absolute;
        inset: 3px max(16px, env(safe-area-inset-right)) auto max(16px, env(safe-area-inset-left));
        padding: 0;
        text-align: right;
        pointer-events: none;
        font-size: .8125rem;
        color: #71221d;
    }
    html:has(#rhg-lesehilfen .rsr-werkzeuge) .grecaptcha-badge[data-style="bottomright"],
    html:has(#rhg-lesehilfen .rsr-werkzeuge) .grecaptcha-badge[data-style="bottomleft"] {
        bottom: calc(var(--rsr-bedienhoehe, 54px) + 10px) !important;
    }
    @media (hover: hover) and (pointer: fine) {
        #rhg-lesehilfen .rsr-werkzeuge:has(#rsr-kontaktleiste a:hover) { padding-top: 24px; }
        #rsr-kontaktleiste:has(a:hover) a:not(:hover) .rsr-kontaktlabel { display: none; }
        #rsr-kontaktleiste a:hover .rsr-kontaktlabel { display: block; }
    }
}
@media screen {
    #rhg-lesehilfen.rsr-im-menue { min-height: 0; }
    #rhg-lesehilfen.rsr-im-menue .rsr-werkzeuge { display: none !important; }
    #page-container #main-content .rk-header .rs-mobile-panel .rsr-menueaktionen {
        display: flex;
        flex-wrap: wrap;
        gap: 0 14px;
        padding: 6px 0 max(0px, env(safe-area-inset-bottom));
        border-top: 1px solid #dce0e2;
        margin: 4px 0 0;
    }
    #page-container #main-content .rk-header .rs-mobile-panel .rsr-menueaktionen > :is(a,button) {
        display: inline-flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        width: auto !important;
        flex: 0 0 auto;
        gap: 5px;
        min-height: 44px !important;
        padding: 2px 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #30383c;
        font: 600 13px/1.3 "RK Montserrat", Arial, sans-serif;
        text-decoration: none;
        cursor: pointer;
    }
    .rk-header .rsr-menueaktionen :is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
    .rk-header .rsr-menueaktionen .rsr-kurzlabel { display: inline; }
    .rk-header .rsr-menueaktionen .rsr-kontaktsymbol { display: inline-flex; flex: none; }
    .rk-header .rsr-menueaktionen svg {
        width: 17px;
        height: 17px;
        flex: none;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}
@media (forced-colors: active) {
    #rsr-kontaktleiste a { border-color: ButtonText; }
}

