/* Interactions formerly supplied by the WordPress theme and extensions. */
#page { overflow: clip; }
#page > .masthead { position: sticky; top: 0; z-index: 200; }

body.home {
    --row-gutter: 35px;
    --header-height: 136px;
}
body.home #main > .wf-wrap {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
body.home #wpb-content-root > .vc_row {
    width: min(1230px, calc(100% - 2 * var(--row-gutter)));
    margin-inline: auto;
}
body.home #wpb-content-root > .vc_row[data-vc-full-width="true"] {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0;
    padding-inline: max(var(--row-gutter), calc((100% - 1230px) / 2));
}
#leistungen { scroll-margin-top: calc(var(--header-height) + 12px); }

#primary-menu > li > a[aria-current],
#mobile-menu > li > a[aria-current] {
    background-color: #303135;
    box-shadow: inset 0 3px #ee1c25;
}
#primary-menu > li > a[aria-current] .menu-text,
#mobile-menu > li > a[aria-current] .menu-text {
    color: #ee1c25;
}

body.page-id-11 #fancy-header {
    background-image: url('/wp-content/uploads/2019/08/Kontakt_Logo.jpg') !important;
}
#cookie-law-info-bar {
    display: block;
    position: fixed;
    bottom: 0;
    background: #303135;
    color: #fff;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
}
#cookie-law-info-bar .cli_settings_button {
    margin: 5px 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e31d25;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
#cookie_action_close_header { margin: 5px; background: #e31d25; color: #fff; border: 0; cursor: pointer; }
#cookie-law-info-again { display: none; }
.cookie-preferences-set #cookie-law-info-bar { display: none; }
.cookie-preferences-set #cookie-law-info-again {
    display: block !important;
    position: fixed;
    top: auto !important;
    bottom: 0;
    left: 4px;
    width: auto;
    padding: 8px 10px;
    z-index: 9998;
    cursor: pointer;
    background: #303135;
    color: #fff;
    border: 0;
    font: inherit;
}
#cookie-preferences {
    position: fixed;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1.5rem;
    border: 0;
    border-radius: .3rem;
    background: #fff;
    color: #212529;
}
#cookie-preferences::backdrop { background: #0008; }
body:has(#cookie-preferences[open]) { overflow: hidden; }
#cookie-preferences h2 { margin: 0 2rem .75rem 0; color: inherit; font-size: 1.4rem; }
.cookie-preferences-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}
.cookie-preferences-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
    cursor: pointer;
}
.cookie-preferences-option input { margin-top: .3rem; accent-color: #e31d25; }
.cookie-preferences-save {
    padding: .625rem .875rem;
    background: #c41920;
    border: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.awmp-map:not(:has(iframe)) {
    display: grid;
    place-items: center;
    border: 1px solid grey !important;
    background: linear-gradient(#ffffff80, #ffffff80), url('/wp-content/plugins/aweos-google-maps-iframe-load-per-click/map.svg') left top / cover;
}
.awmp-map iframe { width: 100%; height: 100%; border: 0; }
.map-load { border: 0; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.map-placeholder, .map-placeholder .map-load { color: grey; }
.map-placeholder { text-align: center; padding: 16px; }
.map-placeholder > div { font-size: 22px; margin-bottom: 10px; }
.masthead > .mobile-header-bar { display: none; }
.site-mobile-contacts { display: grid; gap: 2px; padding: 24px 28px; }
.site-mobile-contacts a { color: #333; font: 600 14px/24px Raleway, sans-serif; text-decoration: none; }
.site-mobile-contacts i { margin-right: 5px; }
#bottom-bar .menu-select select {
    font: inherit;
    color: inherit;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}
.mobile-sticky-header-overlay { display: none; }
/* The copied The7 media stylesheet hides the desktop menu through 1150px. */
@media (max-width: 1150px) {
    body.home { --row-gutter: 5px; --header-height: 68px; }
    .masthead > .top-bar, .masthead > .header-bar { display: none; }
    .masthead > .mobile-header-bar {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 68px; padding: 0 20px;
        background: #1b1c20;
    }
    .mobile-header-bar .dt-mobile-menu-icon {
        display: inline-flex; align-items: center; justify-content: center;
        background: transparent; border: 0; color: #fff; cursor: pointer;
        min-width: 36px; min-height: 40px;
    }
    .mobile-header-bar .mobile-navigation { position: absolute; right: 20px; top: 14px; }
    .mobile-header-bar .menu-line { display: block; width: 23px; height: 2px; margin: 4px 0; background: currentColor; }
    body.right-mobile-menu #page.closed-mobile-header .dt-mobile-header {
        left: auto; right: 0 !important; visibility: hidden; transform: translateX(100%);
    }
    body.right-mobile-menu #page.show-mobile-header .dt-mobile-header {
        left: auto; right: 0 !important; visibility: visible; transform: translateX(0);
    }
    body.show-overlay-mobile-header .mobile-sticky-header-overlay {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 201;
    }
    #page.show-mobile-header .dt-mobile-header { z-index: 202; }
    body.right-mobile-menu #page .dt-mobile-header ul.mobile-main-nav { padding: 43px 28px 0; }
    body.right-mobile-menu #page .dt-mobile-header .dt-close-mobile-menu-icon { right: 12px; }
}
