/** editsm-core-css.css*/
.sm {
    z-index: 1000;
}

/** Ende edit  sm-core-css.css*/
/** edit aus sm-simple.css*/
.sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active {
    padding: 0 58px 20px;
    font-family: inherit;
    font-size: 17px;
}

.sm-simple a .sub-arrow {
    font: 28px/28px monospace !important;

    background: none;
}

/** Ende edit aus sm-simple.css*/


.main-nav {
    position: relative;
    background: #fff;
    /*-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);*/
    /*-moz-box-shadow: 0 1px 41px rgba(0, 0, 0, 0.2);*/
    /*box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);*/
}


.nav-brand {
    float: left;
    margin: 0;
}

.nav-brand a {
    display: block;
    padding: 11px 11px 11px 20px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 17px;
    text-decoration: none;
}

#main-menu {
    clear: both;
    border: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

@media (min-width: 991px) {
    #main-menu {
        float: right;
        clear: none;
    }
}


/* Mega menus */


/* make mega menus take the full width of .main-nav */

#main-menu,
#main-menu > .has-mega-menu {
    position: static !important;
}

#main-menu .mega-menu {
    margin-left: -1px !important;
    margin-right: -1px !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
}

#main-menu > .has-mega-menu .scroll-up,
#main-menu > .has-mega-menu .scroll-down {
    margin-left: 0 !important;
}


/* clear any floats inside the mega menus */

#main-menu .mega-menu > li {
    overflow: auto;
}


/* reset mega menu list/link styles (which are inherited from the SmartMenus core/theme styles) */

#main-menu .mega-menu {
    color: inherit;
    background: #FFFFFF;
}

#main-menu .mega-menu ul {
    position: static;
    display: block;
    margin: 0.83em 0;
    border: 0;
    padding: 0 0 0 20px;
    width: auto;
    background: transparent;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#main-menu .mega-menu ul li {
    display: list-item;
    list-style-type: none;
    border: 0;
}

#main-menu .mega-menu a {
    display: inline;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}


/* simple columns inside the mega menus */

#main-menu .mega-menu .column-1-4 {
    padding: 0 20px;
}

@media (min-width: 991px) {

    #main-menu .mega-menu .column-1-4 {
        float: left;
        width: 25%;
    }
}


/* Sample image placeholder */

.mega-menu-sample-image {
    margin: 0.83em 0;
    border: 1px solid;
    height: 80px;
    line-height: 80px;
    text-align: center;
}


/* Mobile menu toggle button */

.main-menu-btn {
    float: right;
    margin-left: 20px;
    position: relative;
    display: inline-block;
    width: 28px;
    height: 25px;
    text-indent: 29px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* hamburger icon */

.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
    position: absolute;
    top: 50%;
    left: 2px;
    height: 2px;
    width: 24px;
    background: #555;
    -webkit-transition: all 0.25s;
    transition: all 0.25s;
}

.main-menu-btn-icon:before {
    content: '';
    top: -7px;
    left: 0;
}

.main-menu-btn-icon:after {
    content: '';
    top: 7px;
    left: 0;
}


/* x icon */


#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
    height: 0;
    background: transparent;
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
    top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
    top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* hide menu state checkbox (keep it visible to screen readers) */

#main-menu-state {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}


/* hide the menu in mobile view */

#main-menu-state:not(:checked) ~ #main-menu {
    display: none;
}

#main-menu-state:checked ~ #main-menu {
    display: block;
    padding-top: 20px;
}

@media (min-width: 991px) {
    /** Nav bei größeren Displays zentrieren*/
    .main-nav {
        display: grid;
        place-items: center;
    }

    /* hide the button in desktop view */
    .main-menu-btn {
        position: absolute;
        top: -99999px;
    }

    /* always show the menu in desktop view */
    #main-menu-state:not(:checked) ~ #main-menu {
        display: block;
    }
}

/** Eigene Styles:*/

.sm-simple > li {
    border: none;
}

@media screen and (max-width: 991px) {
    .navbar > .container {
        display: unset;
    }

    .sm-simple a, .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active {
        padding: 0 0 20px;
    }

    #main-menu .mega-menu a {
        font-size: .75em !important;
    }

    ul li.dropdown.menu-large a {
        padding-left: 15px !important;
    }

    #mainMenu .mega-menu .dropdown-header > a {
        color: #008519;
        font-size: 1.2em !important;
    }

    #main-menu .mega-menu ul:first-child {
        margin-top: 0;
    }
}

/** aus style.css*/
@media screen and (max-width: 1390px) {
    #main-menu .has-mega-menu {
        padding: 0 !important;
    }

    #main-menu > li > a {
        text-transform: none;
    }
}

@media screen and (min-width: 1400px) {
    #main-menu .has-mega-menu {
        padding: 3px 15px !important;
    }

    #main-menu > li > a {
        text-transform: uppercase;
    }

}

@media screen and (min-width: 991px) {
    #mainMenu .mega-menu {
        margin-left: 0;
        margin-right: 0;
        /*height: 500px;*/
        border-bottom: 4px solid #008519;
    }

    #main-menu > li > a {
        font-family: inherit;
        color: #262626;
        font-size: 18px;
        margin-left: 0;
        padding: 24px;
    }

    #mainMenu .mega-menu > li:nth-child(1),
    #mainMenu .mega-menu > li:nth-child(2),
    #mainMenu .mega-menu > li:nth-child(3),
    #mainMenu .mega-menu > li:nth-child(4) {
        margin-bottom: 30px;
        display: flex;
    }

    #mainMenu .mega-menu > li:last-child {
        margin-bottom: 0;
    }

    /*style für Nav-Links erste Ebene*/
    #mainMenu .sm-simple > li > a:focus,
    #mainMenu .sm-simple > li > a:hover,
    #mainMenu .sm-simple > li > a:active,
    #mainMenu .sm-simple > li > a.highlighted {
        background-color: transparent;
        background-image: url("../../../Images/iconHoverMenu.svg");
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 22px auto;
        color: #008519;
    }
    #mainMenu .sm-simple > li > a.active {
        background-image: url("../../../Images/iconHoverMenu.svg");
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: 22px auto;
        color: #008519;
    }

    /*Ende style für Nav-Links erste Ebene*/
    #mainMenu > li:first-child > a.active,
    #mainMenu > li:first-child > a:hover {
        background-position: calc(50% - 12px) bottom;
    }

    #mainMenu .dropdown-menu > .active > a,
    #mainMenu .dropdown-menu > .active > a:hover,
    #mainMenu .dropdown-menu > .active > a:focus {
        background: transparent;
    }

    #mainMenu.navbar > li:first-child > a {
        padding-left: 0;
    }

    #mainMenu.navbar {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #mainMenu .menu-large {
        position: static !important;
    }

    #mainMenu .mega-menu {
        padding: 20px 0 30px;
        width: 100%;
        background: rgba(255, 255, 255, 0.98) none repeat scroll 0 0;
        border-bottom: 4px solid #ffc100;
    }

    #mainMenu .has-mega-menumega > li {
        padding: 0;
        margin: 0;
        border-left: 1px solid #505050;
    }

    #mainMenu .mega-menu > li:first-child ul {
        border: 0;
    }

    #mainMenu .mega-menu  > ul > li {
        list-style: none;
        color: #008519;
        text-transform: uppercase;
        font-size: 17px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    /** erste Überschrift im Megamenu*/
    #mainMenu .mega-menu .dropdown-header > a {
        color: #008519;
        font-size: 18px;
        margin-bottom: 6px;
        padding: 0;
        text-transform: none;
        font-weight: bold;
    }

    #mainMenu .mega-menu > li > ul {
        margin-bottom: 15px;
    }

    #mainMenu .mega-menu .dropdown-header > a:hover,
    #mainMenu .mega-menu .dropdown-header > a:focus,
    #mainMenu .mega-menu .dropdown-header > a:active {
        color: #ffc100;
    }


    #main-menu .mega-menu ul li {
        clear: both;
        font-size: 17px;
        color: #555759;
        display: block;
        font-weight: normal;
        line-height: 30px;
        padding: 3px 20px;
        text-transform: none;
        white-space: normal;
    }

    #main-menu .mega-menu ul li a {
        font-size: 17px;
    }

    #mainMenu .mega-menu a:active,
    #mainMenu .mega-menu a:hover,
    #mainMenu .mega-menu a:focus {
        text-decoration: none;
        color: #008519;
    }

    #mainMenu ul.nav li.dropdown:hover ul.dropdown-menu {
        margin-top: 0;
        display: flex;
    }

    #mainMenu ul.nav li.dropdown ul.dropdown-menu {
        flex-wrap: wrap;
    }

    #mainMenu ul.nav li.dropdown ul.dropdown-menu li {
        display: flex;
    }

    .sub-arrow {
        display: none;
    }

}
