/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** LAPTOP ****/
@media all and (max-width: 1200px) {
    .bottommenu nav ul {
        gap: 1.25rem;
    }
    #topfooter {
        padding-top: 5rem;
    }
    #hero .inner {
        padding: 0 3rem;
    }
    #topfooter .inner {
        gap: 4rem;
    }
    #bottomfooter .inner {
        padding-bottom: 3rem;
    }
}

/**** TABLET *****/
@media all and (max-width: 1000px) {
    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 5rem 1.5rem 3rem;
        top: 0;
        right: 0;
        width: 0;
        height: 100vh;
        opacity: 1;
        z-index: 4;
        background: var(--white);
    }
    .bottommenu nav.visible {
        width: 25rem;
    }
    .bottommenu #nav-overlay {
        position: fixed;
        display: block;
        inset: 0;
        background: rgba(0, 0, 0, .75);
        z-index: 3;
        opacity: 0;
        visibility: hidden;
    }
    .bottommenu #nav-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
    .bottommenu nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .bottommenu nav li {
        gap: 0;
        height: fit-content;
        width: 100%;
    }
    .bottommenu .nav-list > li {
        border-bottom: 1px solid var(--blue);
    }
    .bottommenu .nav-list > li > a {
        padding: 1rem;
    }
    .bottommenu nav li a {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        line-height: 1.2;
    }
    .bottommenu .menuitem.vertical > a::after {
        font-size: 1.1rem;
    }
    .menuitem {
        flex-direction: column;
        align-items: center;
    }
    #burgermenu {
        position: fixed;
        right: 1rem;
        top: 2rem;
        display: block;
        z-index: 6;
    }
    .bottommenu .dropdown {
        position: relative;
        margin: 0;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem 1rem 1rem 2rem;
        box-shadow: none;
        border-top: 1px solid var(--blue);
    }
    .topmenu {
        position: absolute;
        top: 1.85rem;
        right: 4.5rem;
        padding: 0;
        height: fit-content;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
        height: 5rem;
    }
    .bottommenu .inner {
        height: 100%;
    }
    main {
        margin-top: 5rem;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 1;
    }
    .box:nth-child(3) {
        grid-row: 2;
    }
    .box:nth-child(4) {
        grid-row: 2;
    }
    .grid {
        justify-content: normal;
    }
    .info.flex {
        flex-direction: row;
        gap: .5rem;
    }
    .right img {
        display: none;
    }
    .flex:not(.option) {
        flex-direction: column;
        gap: 1em;
    }
    .select {
        flex-direction: row;
    }
    #popup .select {
        flex-direction: row;
    }
    .teaser div {
        margin: auto;
        text-align: center;
        width: 100%;
        margin: auto;
    }
    .content {
        padding: calc(1rem + 5vw) 1rem;
    }
    #linkblock ul {
        gap: .25rem;
    }
    #linkblock li,
    p {
        font-size: 1.05rem;
    }
    #popup {
        left: calc(1rem + 3vw);
        width: calc(100% - calc(calc(1rem + 3vw) * 2));
        transform: translateY(-50%);
        max-width: none;
    }
    #popup .select {
        flex-direction: row;
    }
    #hero .inner {
        height: 20rem;
        padding: 0 1.5rem;
    }
    #hero img {
        width: 23rem;
        height: 22rem;
    }
    #about .left {
        height: 30rem;
        padding: 2rem 2rem 0;
    }
    #about img {
        max-width: 22.5rem;
    }
    #teaserbox .grid {
        gap: 1.5rem;
    }
    #teaserbox .box {
        padding: 1.5rem;
        height: 24rem;
    }
    #teaserbox .box:hover {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .teaser {
        padding: 3.5rem 6.5rem;
    }
    #topfooter .inner {
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: .75rem;
        column-gap: 3rem;
    }
    #topfooter .box:first-of-type {
        flex-basis: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    #topfooter .social-list {
        order: 4;
        margin: 0;
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 800px) {
    .button,
    button,
    input[type=submit] {
        padding: 1rem 1.5rem;
    }
    #hero .inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    #hero img {
        width: 5rem;
        height: 7rem;
    }
    #about .inner {
        gap: 2.25rem;
    }
    #about .button {
        margin-top: .5rem;
    }
    #teaserbox {
        padding-top: 3.5rem;
    }
    #teaserbox h2 {
        margin-bottom: 3.5rem;
    }
    .teaser {
        padding: 3.5rem;
        margin: 3.5rem 0;
    }
    #topfooter .inner {
        flex-direction: column;
    }
    #topfooter nav:not(:last-of-type) {
        margin-bottom: 3rem;
    }
    #bottomfooter .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    #bottomfooter nav ul {
        gap: 1.25rem;
    }
}
@media all and (max-width: 600px) {
    .info.flex {
        flex-direction: column;
    }
    input {
        padding: .5rem 0rem;
        text-align: center;
    }
    textarea::placeholder {
        text-align: center;
    }
    nav,
    .menuitem a {
        transition: none;
    }
    #all {
        grid-column: 1 / 2;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 2;
    }
    .box:nth-child(3) {
        grid-row: 3;
    }
    .box:nth-child(4) {
        grid-row: 4;
    }
    .all a span {
        display: none;
    }
    #recaptcha {
        flex-direction: column;
        align-items: start;
        gap: 1rem
    }
    #popup {
        top: auto;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 2rem 1.5rem;
        width: 100%;
        transform: none;
        border-radius: 0;
    }
    #teaserbox .box {
        height: fit-content;
    }
    #teaserbox .box:hover {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        border-radius: 0;
    }
    #teaserbox .box:hover p {
        margin-bottom: 2rem;
    }
    #teaserbox .box:hover h3 {
        margin-bottom: 1.5rem;
    }
    .teaser {
        padding: 3rem 2rem;
    }
    .topmenu .search {
        display: none;
    }
    .topmenu .languages {
        border: none;
        padding-left: 0;
        margin-left: 0;
    }
    .logo {
        width: 10.7rem;
    }
    .button, 
    button, 
    input[type=submit] {
        padding: .65rem 1.25rem;
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .select.flex {
        flex-direction: column;
    }
    .flex {
        flex-direction: column;
    }
    .option {
        align-items: start;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button{
        width: 100%;
    }
    #about .left {
        height: 22rem;
    }
    #about img {
        max-width: 15rem;
    }
    .bottommenu nav.visible {
        width: 22.5rem;
    }
}