/* =========================================================
   EICHENREICH24 – GLOBAL HEADER
========================================================= */

.er24-site-header,
.er24-site-header * {
    box-sizing: border-box;
}


/* =========================================================
   ALTE HEADER AUSBLENDEN
========================================================= */

body.er24h-hide-old-header
header.site-header:not(.er24-site-header),

body.er24h-hide-old-header
#site-header:not(.er24-site-header),

body.er24h-hide-old-header
.site-header:not(.er24-site-header),

body.er24h-hide-old-header
.elementor-location-header {
    display: none !important;
}


/* =========================================================
   HEADER
========================================================= */

.er24-site-header {
    position: relative;

    z-index: 99990;

    width: 100%;

    background:
        var(--er24h-bg);

    border-bottom:
        1px solid
        var(--er24h-line);

    color:
        var(--er24h-text);

    font-family: inherit;
}

.er24-site-header.er24h-sticky {
    position: sticky;
    top: 0;
}


/* WP ADMIN BAR */

body.admin-bar
.er24-site-header.er24h-sticky {
    top: 32px;
}


/* =========================================================
   MAIN
========================================================= */

.er24h-main {
    width:
        min(
            1360px,
            calc(100% - 50px)
        );

    min-height: 86px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 38px;
}


/* =========================================================
   LOGO
========================================================= */

.er24h-logo {
    display: block;

    width: 250px;

    max-width: 100%;

    text-decoration: none !important;

    transform: none !important;
}

.er24h-logo:hover {
    transform: none !important;
}

.er24h-logo img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 55px;

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


/* =========================================================
   DESKTOP NAV
========================================================= */

.er24h-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.er24h-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.er24h-nav-list > li {
    position: relative;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.er24h-nav-list > li > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 46px;

    padding: 0 14px;

    border-radius: 4px;

    color:
        var(--er24h-text) !important;

    font-size: 15px;
    line-height: 1;

    font-weight: 550;

    text-decoration: none !important;

    background: transparent !important;

    transform: none !important;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.er24h-nav-list > li > a:hover,
.er24h-nav-list > li.current-menu-item > a,
.er24h-nav-list > li.current-menu-ancestor > a {
    color:
        var(--er24h-primary-dark) !important;

    background:
        var(--er24h-soft) !important;

    transform: none !important;
}


/* Dropdown-Markierung */

.er24h-nav-list
.menu-item-has-children > a::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-left: 8px;
    margin-top: -3px;

    border-right:
        1.5px solid currentColor;

    border-bottom:
        1.5px solid currentColor;

    transform:
        rotate(45deg);
}


/* =========================================================
   DESKTOP DROPDOWN
========================================================= */

.er24h-nav-list .sub-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    z-index: 40;

    width: 290px;

    margin: 0 !important;
    padding: 9px !important;

    list-style: none !important;

    border:
        1px solid
        var(--er24h-line);

    border-radius: 6px;

    background:
        var(--er24h-bg);

    box-shadow:
        0 18px 45px
        rgba(32,41,56,.10);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(5px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.er24h-nav-list
.menu-item-has-children:hover
> .sub-menu,

.er24h-nav-list
.menu-item-has-children:focus-within
> .sub-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.er24h-nav-list
.sub-menu li {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.er24h-nav-list
.sub-menu a {
    display: block;

    padding: 11px 12px;

    border-radius: 4px;

    color:
        var(--er24h-text) !important;

    font-size: 14px;
    line-height: 1.35;

    font-weight: 500;

    text-decoration: none !important;

    background: transparent !important;

    transform: none !important;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.er24h-nav-list
.sub-menu a:hover,

.er24h-nav-list
.sub-menu
.current-menu-item > a {
    color:
        var(--er24h-primary-dark) !important;

    background:
        var(--er24h-soft) !important;
}


/* =========================================================
   ACTIONS
========================================================= */

.er24h-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* =========================================================
   CART
========================================================= */

.er24h-cart {
    position: relative;

    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    border:
        1px solid
        var(--er24h-line);

    border-radius: 5px;

    background:
        var(--er24h-bg);

    color:
        var(--er24h-text) !important;

    text-decoration: none !important;

    transform: none !important;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        color .2s ease;
}

.er24h-cart:hover {
    border-color:
        var(--er24h-primary);

    background:
        var(--er24h-soft);

    color:
        var(--er24h-primary-dark) !important;

    transform: none !important;
}

.er24h-cart svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.er24h-cart-count {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 20px;
    height: 20px;

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

    padding: 0 5px;

    border:
        2px solid
        var(--er24h-bg);

    border-radius: 999px;

    background:
        var(--er24h-primary);

    color: #fff;

    font-size: 10px;
    line-height: 1;

    font-weight: 700;
}


/* =========================================================
   CTA
========================================================= */

.er24h-cta {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 18px;

    border:
        1px solid
        var(--er24h-primary);

    border-radius: 5px;

    background:
        var(--er24h-primary);

    color: #fff !important;

    font-size: 14px;
    line-height: 1;

    font-weight: 600;

    text-decoration: none !important;

    transform: none !important;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.er24h-cta:hover {
    border-color:
        var(--er24h-primary-dark);

    background:
        var(--er24h-primary-dark);

    color: #fff !important;

    transform: none !important;
}

.er24h-cta svg,
.er24h-mobile-cta svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   HAMBURGER
========================================================= */

.er24h-toggle {
    display: none;

    width: 46px;
    height: 46px;

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

    gap: 5px;

    padding: 0 !important;

    border:
        1px solid
        var(--er24h-line) !important;

    border-radius: 5px !important;

    background:
        var(--er24h-bg) !important;

    box-shadow: none !important;

    cursor: pointer;

    transform: none !important;
}

.er24h-toggle span {
    width: 19px;
    height: 1.5px;

    display: block;

    background:
        var(--er24h-text);

    transition:
        transform .28s ease,
        opacity .2s ease;
}

.er24h-toggle.is-open
span:nth-child(1) {
    transform:
        translateY(6.5px)
        rotate(45deg);
}

.er24h-toggle.is-open
span:nth-child(2) {
    opacity: 0;
}

.er24h-toggle.is-open
span:nth-child(3) {
    transform:
        translateY(-6.5px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE PANEL
========================================================= */

.er24h-mobile-panel {
    display: none;

    border-top:
        1px solid
        var(--er24h-line);

    background:
        var(--er24h-bg);
}


/* =========================================================
   OVERLAY
========================================================= */

.er24h-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 99980;

    width: 100%;
    height: 100%;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;

    background:
        rgba(32,41,56,.25) !important;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .25s ease;
}

.er24h-overlay.is-open {
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1099px) {

    .er24h-main {
        width:
            min(
                100% - 32px,
                1360px
            );

        min-height: 74px;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 15px;
    }


    .er24h-logo {
        width: 215px;
    }


    .er24h-logo img {
        max-height: 48px;
    }


    .er24h-desktop-nav,
    .er24h-cta {
        display: none;
    }


    .er24h-actions {
        gap: 8px;
    }


    .er24h-cart {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }


    .er24h-toggle {
        display: flex;
    }


    /* PANEL */

    .er24h-mobile-panel {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        z-index: 100;

        display: block;

        max-height:
            calc(
                100vh - 74px
            );

        overflow-y: auto;

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-8px);

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


    .er24h-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0);
    }


    .er24h-mobile-inner {
        width:
            min(
                100% - 32px,
                1360px
            );

        margin: 0 auto;

        padding:
            18px
            0
            26px;
    }


    /* NAV */

    .er24h-mobile-list,
    .er24h-mobile-list ul {
        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }


    .er24h-mobile-list > li {
        position: relative;

        margin: 0 !important;

        border-bottom:
            1px solid
            var(--er24h-line);
    }


    .er24h-mobile-list > li > a {
        display: flex;
        align-items: center;

        min-height: 54px;

        padding:
            0
            48px
            0
            4px;

        color:
            var(--er24h-text) !important;

        font-size: 16px;
        line-height: 1.25;

        font-weight: 550;

        text-decoration: none !important;

        background: transparent !important;

        transform: none !important;
    }


    .er24h-mobile-list
    .current-menu-item > a,

    .er24h-mobile-list
    .current-menu-ancestor > a {
        color:
            var(--er24h-primary-dark) !important;
    }


    /* SUB TOGGLE */

    .er24h-sub-toggle {
        position: absolute;

        top: 7px;
        right: 0;

        width: 40px;
        height: 40px;

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

        padding: 0 !important;

        border: 0 !important;

        border-radius: 4px !important;

        background:
            var(--er24h-soft) !important;

        color:
            var(--er24h-primary-dark) !important;

        box-shadow: none !important;

        cursor: pointer;

        transform: none !important;
    }


    .er24h-sub-toggle svg {
        width: 16px;
        height: 16px;

        fill: none;

        stroke: currentColor;

        stroke-width: 1.7;

        transition:
            transform .3s ease;
    }


    .er24h-mobile-list
    .menu-item-has-children
    > .sub-menu {
        display: none;

        padding:
            6px
            0
            13px
            14px !important;
    }


    .er24h-mobile-list
    .menu-item-has-children
    > .sub-menu li {
        margin: 0 !important;
    }


    .er24h-mobile-list
    .menu-item-has-children
    > .sub-menu a {
        display: block;

        padding:
            10px
            14px;

        border-radius: 4px;

        color:
            var(--er24h-muted) !important;

        font-size: 14px;
        line-height: 1.4;

        font-weight: 500;

        text-decoration: none !important;

        background: transparent !important;

        transform: none !important;
    }


    .er24h-mobile-list
    .menu-item-has-children
    > .sub-menu a:hover {
        color:
            var(--er24h-primary-dark) !important;

        background:
            var(--er24h-soft) !important;
    }


    .er24h-mobile-list
    .menu-item-has-children.er24h-sub-open
    > .sub-menu {
        display: block;
    }


    .er24h-mobile-list
    .menu-item-has-children.er24h-sub-open
    > .er24h-sub-toggle svg {
        transform:
            rotate(180deg);
    }


    /* BOTTOM */

    .er24h-mobile-bottom {
        display: grid;

        gap: 9px;

        padding-top: 20px;
    }


    .er24h-mobile-contact {
        display: block;

        padding:
            11px
            4px;

        color:
            var(--er24h-muted) !important;

        font-size: 14px;

        text-decoration: none !important;
    }


    .er24h-mobile-cta {
        min-height: 52px;

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

        gap: 9px;

        margin-top: 5px;

        border-radius: 5px;

        background:
            var(--er24h-primary);

        color: #fff !important;

        font-size: 15px;
        font-weight: 600;

        text-decoration: none !important;

        transform: none !important;
    }


    body.er24h-menu-open {
        overflow: hidden;
    }

}


/* =========================================================
   KLEINE HANDYS
========================================================= */

@media (max-width: 480px) {

    .er24h-main {
        width:
            calc(100% - 24px);
    }


    .er24h-logo {
        width: 180px;
    }


    .er24h-mobile-inner {
        width:
            calc(100% - 24px);
    }

}


/* =========================================================
   MOBILE ADMIN BAR
========================================================= */

@media (max-width: 782px) {

    body.admin-bar
    .er24-site-header.er24h-sticky {
        top: 46px;
    }

}


/* =========================================================
   EICHENREICH24 HEADER – LOGO GRÖSSER
========================================================= */

.er24h-logo {
    width: 300px;
}

.er24h-logo img {
    max-height: 64px;
}


/* TABLET / MOBILE */

@media (max-width: 1099px) {

    .er24h-logo {
        width: 235px;
    }

    .er24h-logo img {
        max-height: 54px;
    }

}


/* KLEINE HANDYS */

@media (max-width: 480px) {

    .er24h-logo {
        width: 205px;
    }

    .er24h-logo img {
        max-height: 49px;
    }

}


/* =========================================================
   EICHENREICH24 – TOPBAR
========================================================= */

.er24h-topbar {
    width: 100%;

    background:
        var(--er24h-primary-dark);

    color: #fff;

    border-bottom:
        1px solid
        rgba(255,255,255,.12);
}


.er24h-topbar-inner {
    width:
        min(
            1360px,
            calc(100% - 50px)
        );

    min-height: 36px;

    margin: 0 auto;

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

    gap: 30px;
}


/* =========================================================
   BENEFITS
========================================================= */

.er24h-topbar-benefits {
    display: flex;
    align-items: center;

    gap: 25px;

    min-width: 0;
}


.er24h-topbar-item {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    white-space: nowrap;

    color:
        rgba(255,255,255,.94);

    font-size: 12px;
    line-height: 1;

    font-weight: 550;

    letter-spacing: .01em;
}


.er24h-topbar-check {
    width: 15px;
    height: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 15px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.15);
}


.er24h-topbar-check svg {
    width: 10px;
    height: 10px;

    fill: none;

    stroke: #fff;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   KONTAKT RECHTS
========================================================= */

.er24h-topbar-contact {
    display: flex;
    align-items: center;

    gap: 20px;

    flex-shrink: 0;
}


.er24h-topbar-contact a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color:
        rgba(255,255,255,.88) !important;

    font-size: 12px;
    line-height: 1;

    font-weight: 500;

    text-decoration: none !important;

    transform: none !important;

    transition:
        color .2s ease,
        opacity .2s ease;
}


.er24h-topbar-contact a:hover {
    color: #fff !important;

    opacity: 1;

    transform: none !important;
}


.er24h-topbar-contact svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1099px) {

    .er24h-topbar-inner {
        width:
            min(
                100% - 32px,
                1360px
            );

        min-height: 34px;
    }


    .er24h-topbar-benefits {
        gap: 18px;
    }


    .er24h-topbar-item {
        font-size: 11px;
    }


    .er24h-topbar-contact {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .er24h-topbar {
        overflow: hidden;
    }


    .er24h-topbar-inner {
        width:
            calc(100% - 24px);

        min-height: 34px;

        justify-content: center;

        overflow: hidden;
    }


    .er24h-topbar-benefits {
        width: 100%;

        justify-content: space-between;

        gap: 10px;

        overflow: hidden;
    }


    .er24h-topbar-item {
        gap: 5px;

        font-size: 10.5px;
    }


    .er24h-topbar-check {
        width: 13px;
        height: 13px;

        flex-basis: 13px;
    }


    .er24h-topbar-check svg {
        width: 8px;
        height: 8px;
    }

}


/* =========================================================
   SEHR KLEINE HANDYS
========================================================= */

@media (max-width: 480px) {

    .er24h-topbar-item--1 {
        display: none;
    }


    .er24h-topbar-benefits {
        justify-content: space-around;
    }

}


/* =========================================================
   ER24 HEADER – LOGO + HEADER GRÖSSER
========================================================= */

/* Desktop Header höher */
@media (min-width:1100px) {

    .er24h-main {
        min-height:112px !important;
    }

    /* Logo ca. 30 % größer */
    .er24h-logo,
    .er24h-brand img,
    .er24-site-header .custom-logo {

        width:390px !important;
        max-width:390px !important;

        height:auto !important;
        max-height:84px !important;

        object-fit:contain !important;
    }

    .er24h-brand {
        min-width:390px !important;
    }

}


/* Tablet ebenfalls etwas größer */
@media (max-width:1099px) and (min-width:768px) {

    .er24h-main {
        min-height:88px !important;
    }

    .er24h-logo,
    .er24h-brand img,
    .er24-site-header .custom-logo {

        width:285px !important;
        max-width:285px !important;

        height:auto !important;
        max-height:66px !important;
    }

}


/* Handy nicht übertreiben */
@media (max-width:767px) {

    .er24h-logo,
    .er24h-brand img,
    .er24-site-header .custom-logo {

        width:225px !important;
        max-width:225px !important;

        height:auto !important;
        max-height:56px !important;
    }

}


/* =========================================================
   ER24 HEADER – LOGO FINAL GRÖSSER
========================================================= */

@media (min-width:1100px) {

    .er24h-main {
        min-height:112px !important;
    }

    .er24h-logo {
        width:390px !important;
        max-width:390px !important;
        flex:0 0 390px !important;
    }

    .er24h-logo img {
        display:block !important;

        width:390px !important;
        max-width:390px !important;

        height:auto !important;
        max-height:84px !important;

        object-fit:contain !important;
    }

}


/* TABLET */

@media (max-width:1099px) and (min-width:768px) {

    .er24h-logo {
        width:285px !important;
        max-width:285px !important;
    }

    .er24h-logo img {
        width:285px !important;
        max-width:285px !important;

        height:auto !important;
        max-height:66px !important;
    }

}


/* MOBILE */

@media (max-width:767px) {

    .er24h-logo {
        width:225px !important;
        max-width:225px !important;
    }

    .er24h-logo img {
        width:225px !important;
        max-width:225px !important;

        height:auto !important;
        max-height:56px !important;
    }

}
