#topnav {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: var(--background-light);
    z-index: 2;
    box-shadow: 0 1px 16px 0 var(--header-shadow);
    letter-spacing: 0.07em;
}

#topnav a {
    text-decoration: none;
    font-size: 0.8rem;
}

#topnav .topnav-wrapper {
    max-width: 1506px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 710px) {
    #topnav .topnav-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 33.33%);
    }
}

@media (max-width: 709px) {
    .topnav-left {
        display: none;
    }
}

.topnav-left ul {
    list-style-type: none;
    padding-top: 0.6rem;
    display: flex;
    flex-direction: row;
}

.topnav-left ul li {
    margin-right: 2.2rem;
    text-align: center;
}

.topnav-right ul {
    list-style-type: none;
    margin: 0;
    padding-right: 10px;
    padding-top: 0.4rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.topnav-right ul li {
    text-align: center;
}

@media (min-width: 641px) {
    .topnav-right ul {
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    .topnav-left ul {
        padding-top: 0.3rem;
    }

    .topnav-left ul li {
        display: none;
    }

    .topnav-left ul li:nth-of-type(1) {
        display: inline-block;
    }

    .topnav-left ul li:nth-of-type(1) img {
        height: 1.75rem;
    }
}

@media (max-width: 1270px) {
    .topnav-left ul li {
        margin-right: 0.8rem;
    }
}

.topnav-left .nav-toggle-top,
.topnav-right .nav-logout-top {
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: normal;
    font-size: 0.8rem;
}

.topnav-right .nav-logout-top svg {
    margin-top: 0.4rem;
    height: 2.5rem;
    width: 3rem;
}

@media (max-width: 1024px) {
    .topnav-right .nav-logout-top svg {
        margin-top: 0;
        height: 1.3rem;
    }
}

.topnav-left .nav-toggle-top:hover,
.topnav-right .nav-logout-top:hover {
    cursor: pointer;
}

.topnav-left a,
.topnav-right a {
    color: var(--primary-dark);
    width: 100%;
}

.topnav-left a:hover span,
.topnav-left ul .nav-toggle-top:hover span,
.topnav-right a:hover span {
    color: var(--secondary-dark);
}

.topnav-left a.active i {
    color: var(--secondary-dark);
}

.topnav-left img {
    height: 3rem;
}

.topnav-left a span,
.topnav-right a span {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 0.8rem;
}

.topnav-left span,
.topnav-right span {
    display: flex;
    justify-content: center;
}

.topnav-centered {
    text-align: center;
    margin-left: 0;
}

@media (min-width: 1024px) {
    .topnav-centered {
        width: 300px;
        margin-left: 90px;
    }
}

.logo {
    width: 11rem;
    padding-top: 0.5rem;
}

@media (max-width: 1024px) {
    .logo {
        width: 6.8rem;
        padding-top: 0.4rem;
    }
}

/* ----------- */
/* Searchfield */
/* ----------- */
.topnav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topnav-right form {
    display: flex;
    align-items: right;
    margin-top: 2px;
    margin-right: -10px;
}

@media (min-width: 1024px) {
    .topnav-right form {
        margin-top: 10px;
        margin-right: 24px;
    }
}

@media (min-width: 710px) {
    .topnav-right form {
        margin-right: 24px;
    }
}

.topnav-right input {
    border-style: solid;
    border-width: 1px;
    border-color: var(--primary-light);
    width: 180px;
    height: 34px;
    padding: 5px;
    color: grey;
}

@media (min-width: 1200px) {
    .topnav-right input {
        width: 275px;
    }
}

.topnav-right button {
    padding: 5px 10px;
    border-width: 1px;
    border-color: var(--primary-light);
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-dark-gradient-start));
    width: 30px;
    height: 26px;
}

@media (min-width: 710px) {
    .topnav-right button {
        width: 44px;
        height: 34px;
    }
}

.topnav-right button:hover {
    cursor: pointer;
    background: linear-gradient(to bottom, var(--secondary-dark), var(--secondary-dark-gradient-start));
}

.topnav-right button img {
    width: 16px;
    height: 24px;
    margin-top: -6px;
    margin-left: -3px;
}

@media (min-width: 710px) {
    .topnav-right button img {
        width: 24px;
        margin-top: 0px;
        margin-left: 0px;
    }
}
