/* Mega Menu */

.megamenu-nav-item {
    position: unset;

    .megamenu-box {
        position: absolute;
        margin: 0 auto;
        left: 0;
        right: 0;
        max-width: 1280px;

        .megamenu {

            .frame-type-menu_pages a {
                .menu-title {
                    margin-bottom: 10px;
                    color: var(--hf-blue-600);
                    font-size: 20px;
                    font-weight: 600;
                    text-transform: none;
                }
                .menu-subtitle {
                    color: #919191;
                    font-size: 18px;
                    font-weight: 400;
                    text-transform: capitalize;
                    display: block!important;
                }
            }

            .ce-gallery {
                figcaption {
                    display: inline-block;
                    width: 100%;
                    padding-top: 5px;
                    margin-top: 0px;
                }
            }

            .frame-padding-before-medium {
                padding-top: 2em;
                padding-bottom: 1.5em;
            }

        }
    }
}

.header-primary {
    .megamenu {
        ul {
            padding-left: 0px;

            li {
                position: relative;
                list-style: none;

                a {
                    text-transform: uppercase;
                    letter-spacing: 0.03rem;

                    &:hover {
                        border-bottom: 2px solid #002853;
                    }

                    .title {
                        color: #113870;
                        font-family: Barlow;
                        font-size: 20px;
                        font-style: normal;
                        font-weight: 600;
                        line-height: normal;
                        text-transform: capitalize;
                    }

                    .subtitle {
                        color: #919191;
                        font-family: Barlow;
                        font-size: 18px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: normal;
                        text-transform: capitalize;
                        margin-top: 10px;
                        margin-bottom: 0px;
                    }
                }
            }
        }
    }
}


/* Menu Styling */

.lipidtech {
    .page-header, .header-primary {

        .logo path, .logo polygon {
            fill: var(--hf-dark-800) !important;
        }

        &.fixed {
            .logo path, .logo polygon {
                fill: var(--hf-dark-800) !important;
            }

            .nav-link {
                color: var(--hf-dark-800) !important;
            }
        }

        .meta-menu {
            & a:not(.btn-primary) {
                color: var(--hf-dark-800);
            }

        }

        #navigation {
            .nav-link {
                color: var(--hf-dark-800);
            }
        }
    }
}

.hf_group {
    .page-header, .header-primary {
        &.fixed {
            .logo path, .logo polygon {
                fill: var(--hf-blue-600) !important;
            }

            .nav-link {
                color: var(--hf-blue-600) !important;
            }
        }

        .meta-menu {
            & a:not(.btn-primary) {
                color: #fff;
            }

        }

        #navigation {
            .nav-link {
                color: #fff;
            }
        }
    }
}

.dropdown-menu {
    z-index: 110;
}
.page-header, .header-primary {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    z-index: 20;
    background: transparent; /* Startet mit transparentem Hintergrund */
    box-shadow: none !important; /* Kein Schatten zu Beginn */
    border: none !important;
    transition: background-color 0.3s ease;

    .header-secondary {
        width: 100%;
        background: transparent;
        padding-top: 0px;
        padding-bottom: 0px;

        #navigation {
            padding-bottom: 40px;
            padding-inline: 1rem;
        }

        .languageMenu {
            #languageDropdown {
                padding: 0px;
            }

            .dropdown-menu {
                min-width: unset;
                background-color: transparent;

                .dropdown-item {
                    padding: 0px;
                    margin-right: 29px;

                    &:hover, &:active, &:focus {
                        background-color: unset;
                    }
                }
            }

            .de-DE::before {
                content: ""; /* Setzt den Inhalt des Pseudoelements */
                display: block; /* Macht das Pseudoelement blocklevel (damit es die Größe des Bildes annehmen kann) */
                width: 30px; /* Setzt die gewünschte Breite */
                height: 23px; /* Setzt die gewünschte Höhe */
                background-image: url('../Icons/de_flag.png'); /* Setzt das Bild */
                background-size: cover; /* Skaliert das Bild, um das gesamte Pseudoelement zu füllen */
                background-position: center; /* Zentriert das Bild */
                background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */
                float: left;

            }

            .en-US::before {
                content: ""; /* Setzt den Inhalt des Pseudoelements */
                display: block; /* Macht das Pseudoelement blocklevel (damit es die Größe des Bildes annehmen kann) */
                width: 30px; /* Setzt die gewünschte Breite */
                height: 23px; /* Setzt die gewünschte Höhe */
                background-image: url('../Icons/en_flag.png'); /* Setzt das Bild */
                background-size: cover; /* Skaliert das Bild, um das gesamte Pseudoelement zu füllen */
                background-position: center; /* Zentriert das Bild */
                background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */
                float: left;

            }
        }


    }

    .dropdown-toggle::after {
        display: inline-block;
    }

}

.header-primary {
    z-index: 10 !important;
}


/* Button zum Öffnen des Menüs */
.sidebar-menu-button_out_wrapper {
    width: 20%;

    @media only screen and (max-width: 992px) {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}
.sidebar-menu-button {
    font-size: 16px;
    color: white;
    cursor: pointer;
    border-radius: 0px 0px 6px 6px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    height: 64px;
    padding: 17px 15px 12px 15px;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    border: none;
}

.menu-button:hover {
    background-color: #0056b3;
}

/* Menü (ausgeblendet standardmäßig) */
.side-menu {
    position: fixed;
    top: 0;
    left: -450px; /* Versteckt außerhalb des Bildschirms */
    width: 450px;
    height: 100%;
    color: #7C7C7C;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    background: linear-gradient(180deg, #E8EDEF 0%, #E8EDEF 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);

    a {
        &:hover {
            h5 {
                color: var(--hf-blue-400);
                transition: var(--animation-300);
            }

            .menu-item {
                box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.075);
                transition: var(--animation-300);
            }
        }
    }

    .menu-item {
        transition: var(--animation-300);

        h5 {
            text-transform: none;
        }
    }

    .teaser {
        color: var(--hf-gray-400);
    }
}


.meta_menu_out_wrapper {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    @media only screen and (max-width: 992px) {
        display: none;
    }

    a {
        font-size: 16px!important;
    }
    a:hover {
        text-decoration: underline;
    }
}

/* Inhalt im Menü */
.menu-content {
    padding: 30px;
}

#sideMenu .menu-item {
    background: #fff;
    padding: 35px 30px 30px 30px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Button zum Schließen des Menüs */

.close-menu {
    height: 45px;
    padding: 0px 30px;
}

.close-button {
    font-size: 44px;
    background: none;
    border: none;
    color: #009FE3;
    float: right;
    cursor: pointer;
}

.close-button:hover {
    color: #ccc;
}


/* Ke Search Settings */


.navi-right .nav-item:first-child {
    position: relative;
    top: 0;
    bottom: 0;
}

#navigation .tx-kesearch-pi1 {
    margin-right: 20px;

    #form_kesearch_pi1 {
        margin-bottom: 0;
    }
}

#navigation .tx-kesearch-pi1 #ke_search_sword {
    border: 2px solid transparent;
    position: relative;
    width: 35px;
    border-radius: 4px;
    font-size: 16px;
    background: transparent url('../Icons/Lupe.svg') no-repeat 9px center;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    padding: 10px 21px 10px 10px;
    color: #fff;
    @media only screen and (max-width: 992px) {
        &:focus {
            background: #fff!important;
            color: var(--hf-blue-600);
        }
    }
    .lipidtech & {
        color: #000;
        background: transparent url('../Icons/Lupe_black.svg') no-repeat 9px center;
    }
}


#navigation .tx-kesearch-pi1 #ke_search_sword:focus {
    outline: none;
    border: 1px solid #fff;
    box-shadow: none;
    width: 250px;
    background-color: transparent;
    padding: 10px 20px 10px 40px;
    .lipidtech & {
        border: 1px solid #000;
    }
}

input::placeholder {
    color: transparent;
}

input:-moz-placeholder {
    color: transparent;
}

input::-webkit-input-placeholder {
    color: transparent;
}

#navigation .tx-kesearch-pi1 #ke_search_sword:focus input::placeholder {
    color: #000;
}

.tx-kesearch-pi1 #kesearch_results .result-list-item .hit {
    color: #002853 !important;
    font-weight: bold;
}

#navigation .tx-kesearch-pi1 .resetbutt, #navigation .tx-kesearch-pi1 .submitbutt {
    display: none;
}

.tx-kesearch-pi1 .resetbutt, .tx-kesearch-pi1 .submitbutt {
    display: none;
}


/* Ke Search Mobile Header Styling */
.navi-right .nav-item:first-child {
    position: relative;
    top: 0;
    bottom: 0;
}

.menu .tx-kesearch-pi1 {
    margin-right: 20px;
}

.menu .tx-kesearch-pi1 #ke_search_sword {
    border: 2px solid transparent;
    position: relative;
    width: 35px;
    border-radius: 4px;
    font-size: 16px;
    background: #fff url('https://www.w3schools.com/howto/searchicon.png') no-repeat 9px center;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    padding: 10px 21px 10px 10px;
    color: #fff;

}

.menu .tx-kesearch-pi1 #ke_search_sword:focus {
    border: 2px solid #A4AAAE;
    width: 250px;
    background-color: #fff;
    padding: 10px 20px 10px 40px;
}

.menu .tx-kesearch-pi1 #ke_search_sword:focus input::placeholder {
    color: #fff;
}

.tx-kesearch-pi1 #kesearch_results .result-list-item .hit {
    color: #002853 !important;
    font-weight: bold;
}

.menu .tx-kesearch-pi1 form {
    border: 0 none;
    margin: 0 0 0 0;
}


/* Ke Search Mobile Menu */

@media (max-width: 1199px) {
    .menu .d-lg-none:last-child {
        position: absolute;
        right: 0;
    }

    .menu ul {
        position: absolute;
        right: 0;
    }

    .menu .tx-kesearch-pi1 {
        position: relative;
    }
}


/* Mega Menu Teaser */

/*Lipid Tech Menu Teaser Box*/
.lipidtech {
    .megamenu {
        .image_teaser_bottom {
            .image_teaser_bottom_overlay {
                background: linear-gradient(170deg, rgba(255, 255, 255, 0.00) 7.59%, rgba(251, 201, 14, 0.30) 46.25%, #FBC90E 84.91%);
            }
            .image_teaser_bottom_content_wrapper {
                color: var(--hf-dark-800);

                &:after {
                    background: url('../Icons/megamenu_card_arrow_dark.svg');
                    background-size: contain;
                    background-position: left center;
                    background-repeat: no-repeat;
                    width: .725em;
                    aspect-ratio: 1 / 1;
                    flex-shrink: 0;
                }
            }
        }
    }
}

.megamenu {

    .image_teaser_bottom_content_wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        text-transform: uppercase;

        p {
            margin: 0;
        }

        &:after {
            content: " ";
            background: url('../Icons/megamenu_card_arrow.svg');
            background-size: contain;
            background-position: left center;
            background-repeat: no-repeat;
            width: .725em;
            aspect-ratio: 1 / 1;
            flex-shrink: 0;
        }
    }

    ul {
        padding-inline: 2em!important;
        padding-block-start: 2em!important;

        li {
            padding-block-end: 15px;

            .menu-title {
                font-weight: 400!important;
                font-size: 18px!important;
            }

            &:first-child {
                .menu-title {
                    color: var(--hf-blue-600)!important;
                    font-weight: 600!important;
                }
            }

            &:last-child {
                padding-block-end: 0px;
            }
        }
    }

    .__li_space {
        padding-block-start: 15px!important;

        ul {
            padding-block-start: 0px!important;
        }
    }

    .row {
        .col-3 .col-sm-3 .col-md-3 .col-lg-3 .col-xl-3 {
            padding: 0px;
        }
    }
    .image_teaser_bottom {
        margin-top: 20px;
        margin-bottom: 20px;
        margin-right: 20px;
    }
}
.megamenu_teaser {
    background-color: var(--body-bg-color);
    height: 100%;
}

.meta-menu {
    .dropdown-menu {
        padding: 1em;
    }
    .dropdown-toggle, a {
        font-size: 16px!important;
        padding: 0px;
        display: flex;
        align-items: center;
        font-weight: 400!important;
    }
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: transparent;
}

.hf_group {
    .meta-menu {
        .dropdown {
            .dropdown-menu {
                a {
                    color: var(--hf-blue-600)!important;
                }
            }
        }
    }
}