/* @override 
	https://dehn-instatec.bw-testserver.de/typo3conf/ext/dehn_instatec/Resources/Public/Css/menu.css?* */


/* =========================================
   HAUPTNAVIGATION

   JavaScript-Klassen:

   .nav-has-sub
   Menüpunkt besitzt ein direktes Untermenü.

   .nav-open
   Menüpunkt ist geöffnet.
========================================= */

/* =========================================
   RESET UND GRUNDLAGE
========================================= */

#headernav,
#headernav * {
    box-sizing: border-box;
}

#headernav {
    position: relative;
    z-index: 1000;

    overflow: visible;
}

#headernav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

#headernav li {
    margin: 0;
    padding: 0;
}

#headernav a {
    color: inherit;
    text-decoration: none;
	
}

/* =========================================
   LEVEL 1
========================================= */

#headernav .level-1 {
    display: flex;
    align-items: center;

    gap: 10px;

    overflow: visible;
}

#headernav .level-1 > li {
    position: relative;

    flex: 0 0 auto;

    overflow: visible;
}

#headernav .level-1 > li > a {
    display: flex;
    align-items: center;
	padding: 0 12px;
	color: var(--color-textgray);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
line-height: 92px;
    transition:
        color 0.2s ease;
}

/* Optische Zustände */

#headernav .level-1 > li:hover > a,
#headernav .level-1 > li:focus-within > a,
#headernav .level-1 > li.nav-open > a,
#headernav .level-1 > li.active > a {
    color: #e30613;
	
}

/* =========================================
   PFEIL LEVEL 1
========================================= */

/*#headernav .level-1 > li.nav-has-sub > a::after {
    content: "";

    display: inline-block;
    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    margin-top: -4px;
    margin-left: 10px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);

    transition:
        transform 0.2s ease,
        margin-top 0.2s ease;
}*/

#headernav .level-1 > li.nav-has-sub.nav-open > a::after {
    margin-top: 4px;

    transform: rotate(-135deg);
}

/* =========================================
   LEVEL 2
========================================= */

#headernav .level-2 {
    width: max-content;
    min-width: 520px;

    padding: 4px 0;

    background: #fff;

    border-radius: 2px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12);
}

#headernav .level-2 > li {
    position: relative;

    width: 100%;
}

#headernav .level-2 > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 18px 28px;

    background: #fff;
    color: #111;

    text-align: left;
    white-space: nowrap;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.1;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

/* Optische Zustände */

#headernav .level-2 > li:hover > a,
#headernav .level-2 > li:focus-within > a,
#headernav .level-2 > li.nav-open > a,
#headernav .level-2 > li.active > a {
    padding-left: 34px;

    background: #f5f5f5;
    color: #e30613;
}

/* =========================================
   PFEIL LEVEL 2
========================================= */

#headernav .level-2 > li.nav-has-sub > a::after {
    content: "";

    display: inline-block;
    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    margin-left: 24px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(-45deg);

    transition:
        transform 0.2s ease;
}

#headernav .level-2 > li.nav-has-sub.nav-open > a::after {
    transform: rotate(135deg);
}

/* =========================================
   LEVEL 3
========================================= */

#headernav .level-3 {
    width: max-content;
    min-width: 420px;

    padding: 4px 0;

    background: #fff;

    border-radius: 2px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12);
}

#headernav .level-3 > li {
    width: 100%;
}

#headernav .level-3 > li > a {
    display: block;

    width: 100%;

    padding: 18px 28px;

    background: #fff;
    color: #111;

    text-align: left;
    white-space: nowrap;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

/* Optische Zustände */

#headernav .level-3 > li:hover > a,
#headernav .level-3 > li:focus-within > a,
#headernav .level-3 > li.active > a {
    padding-left: 34px;

    background: #f5f5f5;
    color: #e30613;
}

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

@media (min-width: 992px) {

    /*
     * Level 2 standardmäßig geschlossen.
     */

    #headernav .level-1 > li > ul.level-2 {
        display: none;

        position: absolute;

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

        z-index: 99999;
    }

    /*
     * Level 2 über JavaScript öffnen.
     */

    #headernav .level-1 > li.nav-open > ul.level-2 {
        display: block;
    }

    /*
     * Level 3 standardmäßig geschlossen.
     */

    #headernav .level-2 > li > ul.level-3 {
        display: none;

        position: absolute;

        top: 0;
        left: 100%;

        z-index: 100000;
    }

    /*
     * Level 3 über JavaScript öffnen.
     */

    #headernav .level-2 > li.nav-open > ul.level-3 {
        display: block;
    }
}

/* =========================================
   MOBILE UND TABLET
========================================= */

@media (max-width: 991px) {

    #headernav {
        width: 100%;
    }

    /* Level 1 untereinander */

    #headernav .level-1 {
        display: block;

        width: 100%;
    }

    #headernav .level-1 > li {
        width: 100%;
    }

    #headernav .level-1 > li > a {
        justify-content: space-between;

        width: 100%;

        padding: 18px 20px;

        border-bottom: 1px solid #eee;

        font-size: 20px;
    }

    /* Level 2 und Level 3 geschlossen */

    #headernav .level-1 > li > ul.level-2,
    #headernav .level-2 > li > ul.level-3 {
        display: none;

        position: relative;

        top: auto;
        left: auto;

        width: 100%;
        min-width: 0;

        border-radius: 0;
        box-shadow: none;
    }

    /* Untermenüs über JavaScript öffnen */

    #headernav .level-1 > li.nav-open > ul.level-2,
    #headernav .level-2 > li.nav-open > ul.level-3 {
        display: block;
    }

    /* Level 2 */

    #headernav .level-2 {
        padding: 0;
    }

    #headernav .level-2 > li > a {
        padding: 16px 35px;

        background: #fafafa;

        white-space: normal;

        border-bottom: 1px solid #eee;

        font-size: 17px;
        line-height: 1.3;
    }

    #headernav .level-2 > li:hover > a,
    #headernav .level-2 > li:focus-within > a,
    #headernav .level-2 > li.nav-open > a,
    #headernav .level-2 > li.active > a {
        padding-left: 41px;
    }

    /* Level 3 */

    #headernav .level-3 {
        padding: 0;
    }

    #headernav .level-3 > li > a {
        padding: 15px 50px;

        background: #f3f3f3;

        white-space: normal;

        border-bottom: 1px solid #e6e6e6;

        font-size: 16px;
        line-height: 1.4;
    }

    #headernav .level-3 > li:hover > a,
    #headernav .level-3 > li:focus-within > a,
    #headernav .level-3 > li.active > a {
        padding-left: 56px;
    }

    /* Pfeile auf Mobile */

    #headernav .level-1 > li.nav-has-sub > a::after {
        margin-left: 20px;
    }

    #headernav .level-2 > li.nav-has-sub > a::after {
        transform: rotate(45deg);
    }

    #headernav .level-2 > li.nav-has-sub.nav-open > a::after {
        transform: rotate(-135deg);
    }
}

/* =========================================
   TASTATURFOKUS
========================================= */

#headernav a:focus-visible {
    outline: 2px solid #e30613;
    outline-offset: -2px;
}

/* =========================================
   AKTIVE MENÜPUNKTE
========================================= */

#headernav .level-1 > li.active > a,
#headernav .level-2 > li.active > a,
#headernav .level-3 > li.active > a {
    color: var(--color-black);
}

/* =========================================
   LETZTE EINTRÄGE
========================================= */

#headernav .level-2 > li:last-child > a,
#headernav .level-3 > li:last-child > a {
    border-bottom: 0;
}

/* =========================================
   REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {

    #headernav *,
    #headernav *::before,
    #headernav *::after {
        transition: none;
        animation: none;
    }
}

