/* +++++++++++++++++ Navigation +++++++++++++++++ */

nav {
    position: fixed;
    top: 0px;
    width: 100%;
    -ms-user-select: None;
    -moz-user-select: None;
    -webkit-user-select: None;
    user-select: none;
    z-index: 10000;
}

nav .naviheader {
    z-index: 100;
    position: relative;
    width: 100%;
    background-color: var(--tuerkis);
    box-shadow: 0px 6px 5px #0003;
    border-bottom: 2px solid #fff;
}

nav .content {
    display: grid;
    grid-template-columns: 391px 1fr;
    grid-gap: 20px;
    align-items: center;
    width: calc(100% - 80px);
    max-width: 1280px;
    height: 90px;
    margin: auto;
    padding: 0px 0px;
}

nav .content .logo {
    max-height: 55px;
    margin-top: -5px;
}

nav .content .logo img {
    width: 100%;
    max-width: 391px;
}

nav .content .servicenavi {
    display: grid;
    grid-template-columns: 1fr 40px 40px 20px 40px 40px;
    grid-gap: 3px;
    align-self: flex-start;
    height: 36px;
    color: var(--white);
}

nav .content .servicenavi div {
    position: relative;
}

nav .content .servicenavi div img {
    max-height: 20px;
}

nav .content .servicenavi .btn_sprachweiche {
    position: absolute;
    z-index: 100;
    right: 0px;
    width: 120px;
    display: grid;
    align-content: center;
    justify-content: center;
    justify-self: end;
    font-family: "Hind", sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
}

#navilayer {
    display: none;
    position: fixed;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: #fff0;
}

#navilayer.active {
    display: block;
}

.gt_float_switcher .gt-selected .gt-current-lang {
    padding: 6px 5px 6px !important;
    color: var(--tuerkis) !important;
    font-weight: bold !important;
}

.frederikspark .gt_float_switcher .gt-selected .gt-current-lang,
.nordport .gt_float_switcher .gt-selected .gt-current-lang {
    padding: 5px 5px !important;
}

.gt_float_switcher {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.frederikspark .gt_float_switcher,
.nordport .gt_float_switcher {
    box-shadow:
        0px 0px 0px 2px var(--tuerkis),
        0px 5px 8px #0004 !important;
}

.gt_float_switcher img {
    width: 20px !important;
    margin: 0 !important;
}

a.nturl {
    font-size: 15px !important;
}

.gt-selected {
    padding: 0px !important;
}

.gt_float_switcher .gt_options a {
    padding: 8px 5px !important;
}

nav .content .servicenavi .btn_schriftgroesse {
    border-bottom-left-radius: 8px;
    background-image: url("../img/schriftgroesse.svg");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav .content .servicenavi .btn_kontrast {
    border-bottom-right-radius: 8px;
    background-image: url("../img/kontrast.svg");
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav .content .servicenavi .btn_telefon {
    border-bottom-left-radius: 8px;
    background-image: url("../img/telefon.svg");
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav .content .servicenavi .btn_email {
    border-bottom-right-radius: 8px;
    background-image: url("../img/email.svg");
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav .content .servicenavi .btn_email a,
nav .content .servicenavi .btn_telefon a {
    width: 34px;
    height: 34px;
}

nav .content .servicenavi .btn_schriftgroesse,
nav .content .servicenavi .btn_kontrast,
nav .content .servicenavi .btn_telefon,
nav .content .servicenavi .btn_email {
    display: grid;
    align-content: center;
    justify-content: center;
    border-top: none;
    background-color: var(--white);
    transition: 0.3s;
}

nav .content .servicenavi .btn_schriftgroesse:hover,
nav .content .servicenavi .btn_kontrast:hover,
nav .content .servicenavi .btn_telefon:hover,
nav .content .servicenavi .btn_email:hover {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

nav .content .servicenavi a {
    line-height: 0px;
}

nav .content .servicenavi div {
    float: left;
}

nav #navigation {
    display: grid;
    align-items: center;
    width: calc(100% - 80px);
    max-width: 1280px;
    height: 50px;
    margin: auto;
    padding: 0px 0px;
}

ul#hauptnavi {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 2px;
    line-height: 0px;
    margin-top: 0px;
    background-color: var(--tuerkis);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

#hauptnavi.active {
    display: flex;
    grid-gap: 2px;
    justify-content: center;
    align-content: center;
    margin: 0px;
    padding: 0px;
    list-style: none;
}

#hauptnavi li {
    position: relative;
    display: flex;
    flex: auto;
}

#hauptnavi li a {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    font-family: "Hind", sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 5vw, 20px);
    color: var(--tuerkis);
    text-align: center;
    line-height: 1em;
    text-transform: uppercase;
    padding: 17px 20px 13px;
    background-color: var(--white);
    box-shadow: 0px 6px 5px #0003;
    transition: 0.3s;
}

#hauptnavi li a:hover,
#hauptnavi li a.active {
    color: var(--white);
    background-color: var(--tuerkis);
    box-shadow:
        0px 5px 5px #0003 inset,
        0px 6px 5px #0003;
    transition: 0.3s;
}

#hauptnavi li:first-child a {
    border-bottom-left-radius: 12px;
}

#hauptnavi li:last-child a {
    border-bottom-right-radius: 12px;
}

#hauptnavi li ul.subnavi {
    display: none;
    position: absolute;
    top: 0px;
    background-color: var(--white);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0px 6px 5px #0003;
    padding: 65px 0px 20px;
    margin: 0px;
    z-index: 0;
}

#hauptnavi li ul.subnavi.die_egno {
    right: 0px;
}

#hauptnavi li ul.subnavi.active {
    display: block;
}

#hauptnavi li ul.subnavi li a {
    background-color: transparent;
    box-shadow: none;
    font-family: "Hind", sans-serif;
    font-weight: 400;
    padding: 10px 20px;
    text-align: left;
    transition: 0.3s;
}

#hauptnavi li ul.subnavi li a:hover {
    color: var(--gruen);
    transition: 0.3s;
}

#hamburger {
    display: none;
    align-content: center;
    justify-content: center;
    justify-self: right;
    padding: 0px;
    transition: 0.3s;
}

#hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--white);
    margin: 3px;
    transition: 0.3s;
}

#hamburger:hover {
    opacity: 0.7;
    transition: 0.3s;
}

/* +++++++++++++++++ Navigation Mobile +++++++++++++++++ */
@media (max-width: 1320px) {
    nav #navigation {
        width: calc(100% - 40px);
    }

    nav .content .servicenavi {
        grid-template-columns: 1fr 40px 40px 20px 40px 40px 50px;
    }

    nav #hauptnavi {
        display: none;
    }

    #hamburger {
        display: grid;
    }

    nav #hauptnavi.active {
        display: block;
        background-color: var(--white);
        box-shadow: 0px 6px 5px #0003;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    #hauptnavi li {
        display: block;
    }

    #hauptnavi li a {
        display: inline-block;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        border-top: 1px solid var(--tuerkis);
    }

    #hauptnavi li:first-child a {
        border-bottom-left-radius: 0px;
    }

    #hauptnavi li:last-child a {
        border-bottom-right-radius: 0px;
    }

    #hauptnavi li:first-child a {
        border-top: none;
    }

    #hauptnavi li ul.subnavi {
        position: relative;
        background-color: transparent;
        box-shadow: none;
        padding: 0px;
        text-align: center;
        border-radius: 0px;
    }

    #hauptnavi li ul.subnavi li a {
        text-align: center;
        border-top: none;
    }

    nav .content {
        padding: 0px;
        width: calc(100% - 80px);
    }
}

/* ++++++++++++++++++++++++ Navigation 768px ++++++++++++++++++++++++ */

@media (max-width: 880px) {
    nav #navigation {
        width: calc(100% - 20px);
    }

    nav .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-gap: 10px;
        justify-items: center;
        height: 90px;
        width: calc(100% - 20px);
    }

    .frederikspark nav .naviheader,
    .frederikspark nav .naviheader {
        background-image: linear-gradient(var(--text), var(--text) 45px, var(--white) 45px);
    }

    nav .content .servicenavi {
        grid-row: 1 / 2;
        grid-template-columns: 100px 40px 40px 10px 40px 40px 50px;
        align-self: flex-end;
        height: 34px;
        margin-top: -1px;
    }

    .gt_float_switcher .gt-selected .gt-current-lang {
        padding: 5px 5px 5px !important;
    }

    nav .content .servicenavi .btn_schriftgroesse {
        background-image: url("../img/schriftgroesse_dark.svg");
        background-size: 24px;
    }

    nav .content .servicenavi .btn_kontrast {
        background-image: url("../img/kontrast_dark.svg");
        background-size: 22px;
    }

    nav .content .servicenavi .btn_telefon {
        background-image: url("../img/telefon_dark.svg");
        background-size: 20px;
    }

    nav .content .servicenavi .btn_email {
        background-image: url("../img/email_dark.svg");
        background-size: 24px;
    }

    nav .content .logo {
        margin-top: 15px;
        margin-bottom: 15px;
        grid-row: 2 /3;
    }

    nav .content .logo img {
        max-width: 290px;
    }

    #hauptnavi li ul.subnavi li a {
        font-size: 18px;
    }

    #hamburger {
        margin-top: 5px;
    }

    .frederikspark nav .naviheader,
    .nordport nav .naviheader {
        background-image: linear-gradient(var(--text), var(--text) 45px, var(--white) 45px);
    }

    .frederikspark .gt_float_switcher,
    .nordport .gt_float_switcher {
        box-shadow: 0px 0px 0px 2px var(--white) !important;
    }
}
