:root {
    --rbsv-a11y-navy: #002c5f;
    --rbsv-a11y-blue: #00529b;
    --rbsv-a11y-red: #c8102e;
    --rbsv-a11y-text: #172033;
    --rbsv-a11y-focus: #ffbf47;
}

/* Dauerhafte WCAG- und Navigationskorrekturen der Website. */
header .custom-logo-link img, header .site-logo-img img { width: 132px !important; max-width: 132px !important; }
#ast-desktop-header .main-header-menu > .menu-item > .menu-link,
#ast-desktop-header .main-header-menu .sub-menu .menu-link {
    border-radius: 7px; color: #172033; transition: background-color .15s ease, color .15s ease;
}
#ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
#ast-desktop-header .main-header-menu .sub-menu .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu .sub-menu .menu-item.current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu .menu-link:focus-visible {
    background: #eaf1f8 !important; color: #002c5f !important;
}
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:hover,
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:focus-visible,
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link {
    background: #eaf1f8 !important; color: #002c5f !important;
}
.ast-builder-menu-mobile .main-navigation .ast-menu-toggle:hover,
.ast-builder-menu-mobile .main-navigation .ast-menu-toggle:focus-visible { background: #d6e3f1 !important; color: #002c5f !important; }
.main-header-menu .dropdown-menu-toggle.ast-header-navigation-arrow[role="button"] { display: inline-flex; min-width: 24px; min-height: 24px; align-items: center; justify-content: center; }
body :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
    outline: 3px solid #ffbf47 !important; outline-offset: 3px !important;
}
.rbsv-tile__text, .rbsv-card .rbsv-t-body, .rbsv-card .rbsv-t-small { color: #334155; }
.entry-content :where(p,li,dd) a:not(.rbsv-btn):not(.elementor-button),
.elementor-widget-text-editor :where(p,li,dd) a,
.rbsv-card__text a, .rbsv-tile__text a { text-decoration: underline !important; text-decoration-thickness: .1em !important; text-underline-offset: .16em !important; }
.rbsv-home-hero__media .elementor-widget-image img { border-radius: 22px; box-shadow: 0 20px 42px rgba(0,44,95,.18); }
.rbsv-home-hero__media { position: relative; }
.rbsv-home-hero__media::before { content: ""; position: absolute; z-index: 0; inset: -10px 22px 22px -10px; border-radius: 24px; background: linear-gradient(135deg,#00529b 0 34%,#fff 34% 64%,#c8102e 64%); }
.rbsv-home-hero__media > * { position: relative; z-index: 1; }
#aktuelles-termine { scroll-margin-top: 120px; }
.ast-custom-footer, .ast-custom-footer .elementor-element { opacity: 1 !important; }

/* Barrierefreiheitswerkzeug: bewusst nüchtern, funktional und flach. */
.rbsv-a11y {
    --rbsv-a11y-border: #c8d2de;
    --rbsv-a11y-control-border: #7a8ca0;
    --rbsv-a11y-muted: #59687a;
    position: relative;
    z-index: 999999;
    font-family: "DM Sans", Arial, sans-serif;
}
.rbsv-a11y *, .rbsv-a11y *::before, .rbsv-a11y *::after { box-sizing: border-box; }
.rbsv-a11y button, .rbsv-a11y select { font: inherit; touch-action: manipulation; }
.rbsv-a11y svg { display: block; }

.rbsv-a11y__trigger {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0 !important;
    place-items: center;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: var(--rbsv-a11y-blue) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 28, 65, .24);
    cursor: pointer;
    transition: background-color .2s ease;
}
.rbsv-a11y__trigger:hover, .rbsv-a11y__trigger:focus-visible { background: var(--rbsv-a11y-navy) !important; }
.rbsv-a11y__trigger-icon { display: grid; place-items: center; }
.rbsv-a11y__trigger-icon svg { width: 27px; height: 27px; stroke-width: 2; }
.rbsv-a11y__trigger:focus-visible, .rbsv-a11y button:focus-visible, .rbsv-a11y select:focus-visible {
    outline: 4px solid var(--rbsv-a11y-focus) !important;
    outline-offset: 3px !important;
}

.rbsv-a11y__panel {
    position: fixed;
    left: 16px;
    bottom: 82px;
    width: min(440px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 98px));
    overflow: hidden;
    border: 1px solid var(--rbsv-a11y-control-border);
    border-radius: 5px;
    background: #fff;
    color: var(--rbsv-a11y-text);
    box-shadow: 0 12px 30px rgba(0, 28, 65, .18);
    transform-origin: left bottom;
    animation: rbsv-a11y-panel-in .16s ease-out;
}
.rbsv-a11y__panel[hidden] { display: none !important; }
@keyframes rbsv-a11y-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.rbsv-a11y__header {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 13px 14px 13px 18px;
    background: var(--rbsv-a11y-navy);
    color: #fff;
}
.rbsv-a11y__heading { min-width: 0; }
.rbsv-a11y__header h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}
.rbsv-a11y__heading p {
    margin: 2px 0 0;
    color: #dbe6f1;
    font-size: 13px;
    line-height: 1.3;
}
.rbsv-a11y__close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.rbsv-a11y__close svg { width: 21px; height: 21px; stroke-width: 2.2; }
.rbsv-a11y__close:hover { background: #fff !important; color: var(--rbsv-a11y-navy) !important; }

.rbsv-a11y__body {
    max-height: calc(min(720px, 100vh - 98px) - 72px);
    overflow-y: auto;
    padding: 0;
    background: #fff;
    overscroll-behavior: contain;
    scrollbar-color: #8f9dad transparent;
    scrollbar-width: thin;
}
.rbsv-a11y__body::-webkit-scrollbar { width: 10px; }
.rbsv-a11y__body::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #8f9dad; background-clip: padding-box; }
.rbsv-a11y__section {
    padding: 18px;
    border-bottom: 1px solid var(--rbsv-a11y-border);
    background: #fff;
}
.rbsv-a11y__body h3 {
    margin: 0 0 13px;
    color: var(--rbsv-a11y-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.rbsv-a11y__speech { display: grid; grid-template-columns: 1fr 66px 66px; gap: 8px; align-items: stretch; }
.rbsv-a11y__speech button, .rbsv-a11y__speech select, .rbsv-a11y__size button, .rbsv-a11y__reset {
    min-height: 44px;
    border: 1px solid var(--rbsv-a11y-control-border) !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: var(--rbsv-a11y-navy) !important;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.rbsv-a11y__speech button { padding: 8px 9px !important; }
.rbsv-a11y__speech button:not(:disabled):hover, .rbsv-a11y__size button:hover, .rbsv-a11y__reset:hover {
    border-color: var(--rbsv-a11y-blue) !important;
    background: #eef4f9 !important;
}
.rbsv-a11y__speech button:disabled, .rbsv-a11y__speech select:disabled { opacity: .5; cursor: not-allowed; }
.rbsv-a11y__speech .rbsv-a11y__speech-main {
    border-color: var(--rbsv-a11y-blue) !important;
    background: var(--rbsv-a11y-blue) !important;
    color: #fff !important;
}
.rbsv-a11y__speech .rbsv-a11y__speech-main:not(:disabled):hover { background: var(--rbsv-a11y-navy) !important; }
.rbsv-a11y__speech-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-right: 3px;
    place-items: center;
    vertical-align: -4px;
}
.rbsv-a11y__speech-icon svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.rbsv-a11y__pause-icon { display: none !important; }
.rbsv-a11y__speech-main[data-playing="true"] .rbsv-a11y__play-icon { display: none; }
.rbsv-a11y__speech-main[data-playing="true"] .rbsv-a11y__pause-icon { display: block !important; }
.rbsv-a11y__speech label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    color: #34445a;
    font-size: 14px;
    font-weight: 700;
}
.rbsv-a11y__speech select { min-width: 108px; min-height: 44px; padding: 6px 30px 6px 10px; }
.rbsv-a11y__status { margin: 10px 0 0; color: var(--rbsv-a11y-muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
.rbsv-a11y__disclosure { margin: 6px 0 0; color: var(--rbsv-a11y-muted); font-size: 12px; line-height: 1.5; }

.rbsv-a11y__size {
    display: grid;
    grid-template-columns: 58px 1fr 58px;
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid var(--rbsv-a11y-control-border);
    border-radius: 3px;
    background: #f7f9fb;
}
.rbsv-a11y__size button {
    min-height: 44px;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}
.rbsv-a11y__size button:first-child { border-right: 1px solid var(--rbsv-a11y-border) !important; }
.rbsv-a11y__size button:last-child { border-left: 1px solid var(--rbsv-a11y-border) !important; }
.rbsv-a11y__size button:hover { background: #eef4f9 !important; }
.rbsv-a11y__size output { text-align: center; color: var(--rbsv-a11y-navy); font-size: 15px; font-weight: 700; }

.rbsv-a11y__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--rbsv-a11y-border);
    border-left: 1px solid var(--rbsv-a11y-border);
}
.rbsv-a11y__toggle {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 11px 52px 11px 12px !important;
    border: 0 !important;
    border-right: 1px solid var(--rbsv-a11y-border) !important;
    border-bottom: 1px solid var(--rbsv-a11y-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--rbsv-a11y-text) !important;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease;
}
.rbsv-a11y__toggle:hover { background: #f5f8fb !important; }
.rbsv-a11y__toggle:active { background: #eaf1f8 !important; }
.rbsv-a11y__toggle[aria-pressed="true"] {
    background: #eaf1f8 !important;
    box-shadow: inset 3px 0 0 var(--rbsv-a11y-blue);
}
.rbsv-a11y__toggle-copy, .rbsv-a11y__toggle-title, .rbsv-a11y__toggle-desc { display: block; }
.rbsv-a11y__toggle-copy { min-width: 0; }
.rbsv-a11y__toggle-title { color: var(--rbsv-a11y-navy) !important; font-size: 14px; font-weight: 700; line-height: 1.25; }
.rbsv-a11y__toggle-desc { margin-top: 3px; color: var(--rbsv-a11y-muted) !important; font-size: 12px; font-weight: 400; line-height: 1.35; }
.rbsv-a11y__toggle-check {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 34px;
    height: 20px;
    border: 2px solid #758497;
    border-radius: 999px;
    background: #fff;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease;
}
.rbsv-a11y__toggle-check::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #59687a;
    content: "";
    transition: background-color .2s ease, transform .2s ease;
}
.rbsv-a11y__toggle[aria-pressed="true"] .rbsv-a11y__toggle-check { border-color: var(--rbsv-a11y-blue); background: var(--rbsv-a11y-blue); }
.rbsv-a11y__toggle[aria-pressed="true"] .rbsv-a11y__toggle-check::after { background: #fff; transform: translateX(14px); }

.rbsv-a11y__reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 36px);
    margin: 16px 18px 18px;
    padding: 9px 12px !important;
    border-color: transparent !important;
    background: #fff !important;
    color: #425268 !important;
    font-size: 13px;
}
.rbsv-a11y__reset svg { width: 17px; height: 17px; }
.rbsv-a11y__reset:hover { border-color: var(--rbsv-a11y-border) !important; }
.rbsv-a11y__reading-line { display: none; pointer-events: none; position: fixed; z-index: 999998; left: 0; right: 0; top: 50%; height: 42px; border-top: 3px solid #ffbf47; border-bottom: 3px solid #ffbf47; background: rgba(255, 191, 71, .16); }

html.rbsv-a11y-readable body, html.rbsv-a11y-readable body *:not(.dashicons) { font-family: Arial, Helvetica, sans-serif !important; }
html.rbsv-a11y-line-spacing body, html.rbsv-a11y-line-spacing p, html.rbsv-a11y-line-spacing li { line-height: 2 !important; }
html.rbsv-a11y-letter-spacing body { letter-spacing: .1em !important; }
html.rbsv-a11y-word-spacing body { word-spacing: .16em !important; }
html.rbsv-a11y-underline-links body a:not(.ab-item) { text-decoration: underline !important; text-decoration-thickness: .14em !important; text-underline-offset: .18em !important; }
html.rbsv-a11y-reading-line .rbsv-a11y__reading-line { display: block; }
html.rbsv-a11y-grayscale { filter: grayscale(1); }
html.rbsv-a11y-hide-images img, html.rbsv-a11y-hide-images video, html.rbsv-a11y-hide-images picture, html.rbsv-a11y-hide-images iframe, html.rbsv-a11y-hide-images [style*="background-image"] { visibility: hidden !important; }
html.rbsv-a11y-reduce-motion *, html.rbsv-a11y-reduce-motion *::before, html.rbsv-a11y-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
html.rbsv-a11y-focus :focus-visible { outline: 5px solid #ffbf47 !important; outline-offset: 4px !important; box-shadow: 0 0 0 8px #002c5f !important; }
html.rbsv-a11y-large-cursor body, html.rbsv-a11y-large-cursor body * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M3 2v24l6-6 4 10 5-2-4-9h9z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 3 2, auto !important; }

html.rbsv-a11y-contrast body, html.rbsv-a11y-contrast #page, html.rbsv-a11y-contrast main, html.rbsv-a11y-contrast article, html.rbsv-a11y-contrast section:not(.rbsv-a11y__panel), html.rbsv-a11y-contrast header:not(.rbsv-a11y__header), html.rbsv-a11y-contrast footer, html.rbsv-a11y-contrast nav, html.rbsv-a11y-contrast div:not(.rbsv-a11y__trigger):not(.rbsv-a11y__reading-line) { background-color: #000 !important; background-image: none !important; color: #fff !important; }
html.rbsv-a11y-contrast body :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,span,strong,em,label,legend,time,address) { color: #fff !important; }
html.rbsv-a11y-contrast body :where(span,strong,em,label,legend,time,address) { background-color: transparent !important; background-image: none !important; }
html.rbsv-a11y-contrast body a { background-color: #000 !important; background-image: none !important; color: #ffeb3b !important; text-decoration: underline !important; }
html.rbsv-a11y-contrast body button:not(.rbsv-a11y__trigger), html.rbsv-a11y-contrast body input, html.rbsv-a11y-contrast body select, html.rbsv-a11y-contrast body textarea { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.rbsv-a11y-contrast body a:focus-visible, html.rbsv-a11y-contrast body button:focus-visible, html.rbsv-a11y-contrast body input:focus-visible, html.rbsv-a11y-contrast body select:focus-visible { outline-color: #ffeb3b !important; }
html.rbsv-a11y-contrast .rbsv-a11y__trigger { background: #ffeb3b !important; color: #000 !important; border-color: #000 !important; }
html.rbsv-a11y-contrast .rbsv-a11y__trigger span { color: #000 !important; }
html.rbsv-a11y-contrast .rbsv-a11y__panel, html.rbsv-a11y-contrast .rbsv-a11y__panel * { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.rbsv-a11y-contrast .rbsv-a11y__toggle[aria-pressed="true"] { background: #ffeb3b !important; color: #000 !important; }
html.rbsv-a11y-contrast .rbsv-a11y__toggle[aria-pressed="true"] * { background: transparent !important; color: #000 !important; }
html.rbsv-a11y-contrast .rbsv-a11y__toggle[aria-pressed="true"] .rbsv-a11y__toggle-check { border-color: #000 !important; }
html.rbsv-a11y-contrast .rbsv-a11y__toggle-check::after { background: #fff !important; }
html.rbsv-a11y-contrast .rbsv-a11y__toggle[aria-pressed="true"] .rbsv-a11y__toggle-check::after { background: #000 !important; }

@media (max-width: 600px) {
    .rbsv-a11y__trigger { left: 10px; bottom: 10px; width: 52px; height: 52px; }
    .rbsv-a11y__panel {
        left: 6px;
        bottom: 70px;
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 76px);
        border-radius: 4px;
    }
    .rbsv-a11y__header { min-height: 68px; padding: 11px 11px 11px 16px; }
    .rbsv-a11y__header h2 { font-size: 20px; }
    .rbsv-a11y__body { max-height: calc(100dvh - 144px); }
    .rbsv-a11y__section { padding: 16px; }
    .rbsv-a11y__grid { grid-template-columns: 1fr; }
    .rbsv-a11y__toggle { min-height: 70px; }
}

@media (max-width: 350px) {
    .rbsv-a11y__speech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rbsv-a11y__speech-main { grid-column: 1 / -1; }
}

@media (max-width: 921px) {
    header .custom-logo-link img, header .site-logo-img img { width: 78px !important; max-width: 78px !important; }
    .rbsv-home-hero__media::before { inset: -7px 14px 14px -7px; }
}

@media (prefers-reduced-motion: reduce) {
    .rbsv-a11y__panel { animation: none; }
    .rbsv-a11y__trigger, .rbsv-a11y__toggle, .rbsv-a11y__toggle-check, .rbsv-a11y__toggle-check::after,
    .rbsv-a11y__speech button, .rbsv-a11y__close { transition: none; }
}

@media print {
    .rbsv-a11y { display: none !important; }
}
