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

nav {
    position: fixed;
    z-index: 10000;
    top: 0px;
    display: grid;
    grid-template-rows: 1frw 50px;
    width: 100%;
    height: 90px;
    background-color: var(--weiss);
    box-shadow: 0px 5px 8px #0003;
}

.navigation {
    position: relative;
    display: grid;
    justify-items: end;
    align-items: center;
    height: 50px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    position: absolute;
    top: 15px;
    left: 0px;
    background-color: var(--weiss);
    padding: 14px 20px 18px 20px;
    padding-left: calc(50% - 640px);
    background-image: linear-gradient(to left, #E8EDF4 0px, var(--weiss) 20px, var(--weiss) 100px, #E8EDF4 180px, #e6f0fe 220px, var(--weiss) 280px);
}

@media (max-width:1380px) {
    .logo {
        padding-left: 40px;
    }
}

@media (max-width:767px) {
    .logo {
        padding-left: 20px;
        background-image: linear-gradient(to left, #E8EDF4 0px, var(--weiss) 20px, var(--weiss) 100px, #E8EDF4 160px, #d6e2f2 200px, var(--weiss) 220px);
    }
}

/* Verlaufsschatten als Pseudoelement */
.logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, #0005 0px, transparent 300px);
    z-index: -1;
    filter: blur(10px);
    transform: translate(0px, 0px);
    pointer-events: none;
}

.logo a {
    font-size: 0;
}

.logo img {
    height: 55px;
}

.navigation ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
}

.navigation ul li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    padding: 0;
}


.navigation li a {
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--text);
    padding: 0 0 0 40px;
    transition: .3s;
}

.navigation li a:hover,
.navigation li a.active {
    color: var(--blau);
    transition: .3s;
}


.navigation ul li ul {
    display: none;
}

.navigation ul li ul.active {
    display: block;
    position: absolute;
    top: 53px;
    left: calc(50% + 20px);
    box-shadow: 0px 5px 12px #0003;
    height: auto;
    transform: translateX(-50%);
}

.navigation ul li ul#subnavi li::after,
.navigation ul li ul#subnavi li::before {
    background: none;
}

.navigation ul li ul li {
    background-color: var(--weiss);
    padding: 13px 30px;
    min-width: 240px;
    text-transform: none;
    border-bottom: 1px solid var(--blau);
}

.navigation ul li ul li:last-child {
    border: none;
}

.navigation ul li ul li a {
    color: var(--grau);
    padding: 0;
    font-size: 1.125rem;
}

.hamburger {
    display: none;
}

@media(max-width:1280px) {
    #hauptnavi li a {
        padding: 0 0 0 clamp(5px, 2.2vw, 40px);
    }
}

@media(max-width:1180px) {
    nav .content {
        grid-template-columns: 240px 1fr;
    }

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

    .navigation ul {
        padding. -top: 30px;
    }

    #hauptnavi li a {
        padding: 0 0 0 clamp(5px, 1.4vw, 40px);
        ;
    }

    .navigation ul#hauptnavi li ul li a {
        padding: 0px;
    }

    .navigation ul li ul.active {
        left: 50%;
    }
}

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

@media(max-width:1120px) {
    nav {
        box-shadow: none;
    }

    .hamburger {
        display: grid;
        align-content: center;
        justify-content: center;
        background-color: var(--weiss);
        width: 36px;
        height: 40px;
        padding: 4px;
        cursor: pointer;
        transition: .3s;
    }

    .hamburger span {
        display: block;
        width: 36px;
        height: 4px;
        background-color: var(--blau);
        margin: 3px;
        transition: .3s;
    }

    .hamburger:hover span {
        opacity: .6;
        transition: .3s;
    }

    nav .content {
        width: 100%;
        height: 90px;
    }

    .navigation {
        box-shadow: 0px 5px 8px #0003;
    }

    .navigation ul:not(#subnavi) {
        padding-top: 0px;
        border-top: none;
    }

    .navigation ul li:first-child::before,
    .navigation ul li::after {
        background: none;
    }

    #hauptnavi {
        display: none;
    }

    #hauptnavi.active {
        display: block;
        position: absolute;
        z-index: -2;
        left: 0px;
        top: 50px;
        width: 100%;
        margin: 0px auto;
        background-color: var(--weiss);
    }

    #hauptnavi li {
        display: block;
        background-color: var(--weiss);
        min-width: 300px;
        margin: auto;
    }

    #hauptnavi li:before {
        content: none;
    }

    #hauptnavi li a {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 15px;
        border-top: 1px solid var(--blau);
    }

    .navigation ul li:last-child a {
        box-shadow: 0px 5px 8px #0003;
    }

    #hauptnavi li ul li a {
        border: none;
    }

    .navigation ul li ul {
        display: none;
    }

    .navigation ul li ul.active {
        display: block;
        position: relative;
        top: unset;
        padding-bottom: 15px;
        margin-top: -10px;
        box-shadow: none;
    }

    .navigation ul li ul li {
        border: none;
        padding: 2px 0;
    }

    .navigation ul li ul li:last-child a {
        box-shadow: none;
    }
}

@media(max-width:768px) {
    .logo img {
        height: 50px;
    }

    nav .content {
        padding: 0px 20px;
    }

    .navigation {
        padding: 0 20px;
    }
}


/* +++++++++++++++++ Servicenavi Top +++++++++++++++++ */

.servicenavi {
    background-color: var(--blau);
    background-image: linear-gradient(to right, #1b5588 0%, transparent 30%, transparent 90%, #1b5588 100%);
    height: 100%;
    width: 100%;
}

.servicenavi .content {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: right;
    height: 40px;
    margin: 0 auto;
}

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

.servicenavi .search,
.servicenavi .search * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.servicenavi .search input {
    background-color: var(--blau);
    border: 1px solid var(--weiss);
    border-radius: 3px;
    color: var(--weiss);
    padding: 3px !important;
    width: 120px;
    height: 22px;
}

.servicenavi .search input::placeholder {
    font-size: 11px;
    color: var(--weiss);
    opacity: 1;
    text-transform: uppercase;
}

#search-filter-form-411 ul li::before {
    display: none;
}

.servicenavi .lang {
    border: 1px solid var(--weiss);
    border-radius: 3px;
    padding: 0px 5px;
    font-size: 0.9375rem;
    color: var(--weiss);
    height: 22px;
}

@media(max-width:996px) {
    .servicenavi {
        background-image: var(--blau);
    }
}

@media(max-width:620px) {
    .navigation {
        height: auto;
    }

    .servicenavi {
        height: 50px;
    }

    .servicenavi .content {
        justify-content: center;
        gap: 10px;
    }

    .logo {
        top: 40px;
        padding: 9px 10px 11px 20px;
        background-image: linear-gradient(to left, #E8EDF4 0px, var(--weiss) 20px, var(--weiss) 60px, #E8EDF4 120px, #d6e2f2 150px, var(--weiss) 165px);
    }

    .logo img {
        height: 40px;
    }

    #hauptnavi.active {
        top: 40px;
    }
}

/* +++++++++++++++++ Schnellnavi +++++++++++++++++ */

div.telefon-service,
div.kontakt-service {
    position: fixed;
    z-index: 1000;
    right: -156px;
    top: 120px;
    display: grid;
    align-items: center;
    grid-template-columns: 30px 1fr;
    grid-gap: 10px;
    padding: 7px 12px;
    border-top-left-radius: 12px;
    background-color: var(--blau);
    box-shadow: 0px 0px 10px #0003;
    cursor: pointer;
    transition: 1s;
}

div.telefon-service img,
div.kontakt-service img {
    width: 30px;
    height: auto;
}

div.kontakt-service {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 12px;
    right: -159px;
    top: 165px;
    width: 210px
}

div.telefon-service:hover,
div.kontakt-service:hover {
    right: 0;
    transition: .3s;
}

div.telefon-service a,
div.kontakt-service a {
    color: var(--weiss);
    text-decoration: none;
    margin: 0;
    font-size: 1rem;
    line-height: 1em;
}


/* +++++++++++++++++ Google Translator +++++++++++++++++ */

select.gt_selector {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: var(--blau);
    padding: 0px;
    border: none;
    border-radius: 0px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--weiss);
    cursor: pointer;
}
