.brodesser-overlay-nav-root {
    position: relative;
    z-index: 9999;

    --brodesser-red: #951727;
    --brodesser-outline-red: #ab1d31;
    --brodesser-overlay-red: rgba(150, 43, 58, 0.9);
    --brodesser-header-height: 70px;
}

/* Scroll-Header */

.brodesser-scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;

    height: var(--brodesser-header-height);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;

    transition:
        transform .35s ease,
        opacity .25s ease,
        visibility 0s linear .35s;
}

.brodesser-overlay-nav-root.is-scrolled:not(.is-open) .brodesser-scroll-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;

    transition:
        transform .35s ease,
        opacity .25s ease,
        visibility 0s;
}

.brodesser-scroll-header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brodesser-scroll-header-logo img {
    display: block;

    width: 130px;
    height: 30px;

    object-fit: contain;
    object-position: left center;
}

.brodesser-scroll-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brodesser-scroll-header-actions a {
    display: inline-flex;
    align-items: center;
    color: #706f6f;
    text-decoration: none;
    line-height: 1;
}

.brodesser-scroll-header-phone {
    gap: 6px;
    font-size: 1.1875rem;
    font-weight: 300;
    color: #706f6f !important;
}

/* Scroll-Header Icons */

.brodesser-scroll-icon {
    display: inline-block;
    width: 28px;
    height: 28px;

    background-color: var(--brodesser-outline-red);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.brodesser-scroll-icon-phone {
    width: 30px;
    height: 30px;
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/06/Icons_Phone-outline.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/06/Icons_Phone-outline.svg");
}

.brodesser-scroll-icon-map {
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Maps.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Maps.svg");
}

.brodesser-scroll-icon-facebook {
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Facebook.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Facebook.svg");
}

.brodesser-scroll-icon-candle {
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Gedenkstaette.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/Icons_Gedenkstaette.svg");
}

/* Öffnen-Button oben */

.brodesser-nav-trigger {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 10001;

    width: 116px;
    height: 64px;

    transform: translateX(-50%);

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;

    background: transparent !important;
    color: #ffffff;
    cursor: pointer;

    display: block;
    padding: 0;
    overflow: visible;

    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-transform: uppercase;

    transition:
        top .35s ease,
        opacity .25s ease,
        visibility .25s ease;
}

.brodesser-nav-trigger:focus,
.brodesser-nav-trigger:active,
.brodesser-nav-trigger:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.brodesser-nav-trigger-bg {
    position: absolute;
    top: 0;
    left: 50%;

    width: 130%;
    height: auto;

    transform: translateX(-50%);

    display: block;
    max-width: none !important;
    pointer-events: none;
}

.brodesser-nav-trigger-content {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding-top: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.brodesser-nav-trigger-icon {
    width: 46px;
    height: 14px;
    display: block;

    background-color: #ffffff;
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/MenueIconweiss.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/02/MenueIconweiss.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.brodesser-nav-trigger-text {
    display: block;
    margin-top: 2px;

    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

/* Scroll-Zustand: Button unter weißem Header, ohne Text */

.brodesser-overlay-nav-root.is-scrolled:not(.is-open) .brodesser-nav-trigger {
    top: var(--brodesser-header-height);
}

.brodesser-overlay-nav-root.is-scrolled:not(.is-open) .brodesser-nav-trigger-text {
    display: none;
}

.brodesser-overlay-nav-root.is-scrolled:not(.is-open) .brodesser-nav-trigger-content {
    padding-top: 4px;
}

.brodesser-overlay-nav-root.is-scrolled:not(.is-open) .brodesser-nav-trigger-icon {
    width: 44px;
    height: 18px;
}

/* Overlay */

.brodesser-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 64px;
    left: 0;
    z-index: 10000;

    background: var(--brodesser-overlay-red);

    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.55s ease,
        opacity 0.35s ease,
        visibility 0s linear 0.55s;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.brodesser-overlay-nav-root.is-open .brodesser-nav-overlay {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;

    transition:
        transform 0.55s ease,
        opacity 0.35s ease,
        visibility 0s;
}

.brodesser-overlay-nav-root.is-open .brodesser-nav-trigger,
.brodesser-overlay-nav-root.is-open .brodesser-scroll-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.brodesser-nav-overlay-inner {
    width: min(1500px, calc(100% - 120px));
    margin: 0 auto;
    padding: 94px 0 120px;
}

/* Menü */

.brodesser-overlay-menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 64px 90px;
    width: 100%;
}

.brodesser-menu-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brodesser-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 18px;
}

.brodesser-menu-column li {
    margin: 0 0 8px 0;
}

.brodesser-overlay-menu a {
    position: relative;
    display: inline-block;
    color: #ffffff !important;
    text-decoration: none;
    line-height: 1.25;
    transition: background .25s ease, padding .25s ease;
}

.brodesser-menu-title {
    font-size: 1.1875rem;
    color: #ffffff !important;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brodesser-menu-column li a {
    font-size: 1.1875rem;
    color: #ffffff !important;
    font-weight: 300;
    text-transform: uppercase;
}

.brodesser-overlay-menu a:hover,
.brodesser-overlay-menu a.is-active,
.brodesser-overlay-menu a.current-menu-item,
.brodesser-overlay-menu a.current-menu-ancestor {
    color: #ffffff !important;
    background: var(--brodesser-red);
    padding: .28em .75em .28em 1.85em;
}

.brodesser-overlay-menu a:hover::before,
.brodesser-overlay-menu a.is-active::before,
.brodesser-overlay-menu a.current-menu-item::before,
.brodesser-overlay-menu a.current-menu-ancestor::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-color: #ffffff;
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/03/LogoBildmarkeMenue.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/03/LogoBildmarkeMenue.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
}

/* Close-Button unten */

.brodesser-nav-close {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 10002;

    width: 116px;
    height: 64px;

    transform: translateX(-50%);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;

    background: transparent !important;
    color: #ffffff;
    cursor: pointer;

    display: block;
    padding: 0;
    overflow: visible;

    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-transform: uppercase;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.brodesser-overlay-nav-root.is-open .brodesser-nav-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.brodesser-nav-close:focus,
.brodesser-nav-close:active,
.brodesser-nav-close:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.brodesser-nav-close-bg {
    position: absolute;
    top: 0;
    left: 50%;

    width: 150%;
    height: auto;

    transform: translateX(-50%);

    display: block;
    max-width: none !important;
    pointer-events: none;
}

.brodesser-nav-close-content {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding-top: 0px;
    box-sizing: border-box;
    pointer-events: none;
}

.brodesser-nav-close-icon {
    width: 34px;
    height: 34px;
    display: block;

    background-color: #ffffff;
    -webkit-mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/03/closeIcon.svg");
    mask-image: url("https://brodesser.treehousemedia.de/wp-content/uploads/2026/03/closeIcon.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.brodesser-nav-close-text {
    display: block;
    margin-top: 2px;

    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

/* Body Lock */

body.brodesser-nav-is-open {
    overflow: hidden;
}

/* Tablet */

@media (max-width: 1200px) {
    .brodesser-nav-overlay-inner {
        width: min(1000px, calc(100% - 80px));
    }

    .brodesser-overlay-menu {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 48px 70px;
    }
}

@media (max-width: 900px) {
    .brodesser-nav-overlay-inner {
        width: calc(100% - 48px);
        padding-top: 90px;
    }

    .brodesser-overlay-menu {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 40px 48px;
    }

    .brodesser-scroll-header {
        padding: 0 18px;
    }

    .brodesser-scroll-header-logo img {
        height: 42px;
        max-width: 150px;
    }

    .brodesser-scroll-header-actions {
        gap: 16px;
    }

    .brodesser-scroll-header-phone span {
        display: none;
    }
}

/* Mobil */

@media (max-width: 640px) {
    .brodesser-overlay-nav-root {
        --brodesser-header-height: 62px;
    }

    .brodesser-scroll-header {
        height: var(--brodesser-header-height);
        padding: 0 14px;
    }

    .brodesser-scroll-header-logo img {
        height: 38px;
        max-width: 130px;
    }

    .brodesser-scroll-header-actions {
        gap: 12px;
    }

    .brodesser-scroll-icon {
        width: 24px;
        height: 24px;
    }

    .brodesser-scroll-icon-phone {
        width: 25px;
        height: 25px;
    }

    .brodesser-nav-trigger,
    .brodesser-nav-close {
        width: 100px;
        height: 56px;
    }

    .brodesser-nav-trigger-bg,
    .brodesser-nav-close-bg {
        width: 130%;
    }

    .brodesser-nav-trigger-icon {
        width: 42px;
        height: 13px;
    }

    .brodesser-nav-trigger-text,
    .brodesser-nav-close-text {
        font-size: 0.68rem;
    }

    .brodesser-nav-close-icon {
        width: 30px;
        height: 30px;
    }

    .brodesser-nav-close-content {
        padding-top: 18px;
    }

    .brodesser-nav-overlay-inner {
        width: calc(100% - 40px);
        padding: 78px 0 96px;
    }

    .brodesser-overlay-menu {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .brodesser-menu-column ul {
        margin-left: 14px;
    }

    .brodesser-menu-title,
    .brodesser-menu-column li a {
        font-size: 1.05rem;
    }
}