/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** BURGER MENU ****/
@media all and (max-width: 1200px) {
    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 2rem 0;
        top: 100%;
        right: 0;
        width: 100%;
        opacity: 1;
    }
    .bottommenu nav ul {
        flex-direction: column;
        gap: .5rem;
        width: 100%;
    }
    .menuitem {
        position: relative;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .menuitem a {
        padding: .6rem 1rem;
        width: 100%;
    }
    .menuitem:has(.button) {
        margin: 0;
    }
    .menuitem .button {
        padding: .6rem 1rem;
        font-size: 1rem;
        background: transparent;
        color: var(--blue);
    }
    .menuitem .button:hover {
        color: var(--orange);
    }
    .nav-list > .menuitem a {
        font-weight: 500;
    }
    .nav-list > .menuitem .dropdown .menuitem a {
        padding: .6rem 1rem;
        font-size: 1rem;
    }
    .menuitem.horizontal::after, 
    .menuitem.vertical::after {
        position: absolute;
        right: 1rem;
        top: .65rem;
        font-size: 1rem;
    }
    #burgermenu {
        display: block;
    }
    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
        background: transparent;
    }
    .header.scrolled .dropdown {
        top: 0;
    }
    .dropdown.vertical {
        gap: 0;
    }
    .dropdown li {
        border: 0;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .header.scrolled .nav-list > .menuitem,
    .header.scrolled .menuitem,
    nav li {
        height: fit-content;
    }
    #intro .grid .col-2 {
        grid-column: span 10;
    }
    #intro .grid .col-4 {
        grid-column: span 5;
    }
    #topfooter .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/**** LAPTOP ****/
@media all and (max-width: 1300px) {
    #hero h1 {
        width: 100%;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    .grid {
        justify-content: normal;
    }
    #teaserbox .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/**** TABLET *****/
@media all and (max-width: 1000px) {
    .info.flex {
        flex-direction: row;
        gap: .5rem;
    }
    .right img {
        display: none;
    }
    .flex:not(.option) {
        flex-direction: column;
        gap: 1em;
    }
    .option .flex {
        flex-direction: row;
    }
    .select {
        flex-direction: row;
    }
    .teaser div {
        margin: auto;
        text-align: center;
        width: 100%;
        margin: auto;
    }
    .teaser div:nth-of-type(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .teaser div:nth-of-type(2) {
        grid-row: 2;
        grid-column: 1;
    }
    .teaser div:nth-of-type(3) {
        grid-row: 3;
        grid-column: 1;
    }
    .teaser i {
        margin: auto;
    }
    .content {
        padding: calc(1rem + 5vw) calc(1rem + 3vw);
    }
    #hero .wrapper {
        padding: 0;
        bottom: 0;
    }
    #hero .wrapper-inner {
        max-width: none;
        padding-right: calc(1rem + 2vw);
        padding-left: calc(1rem + 2vw);
    }
    #popup .select.flex {
        flex-direction: row;
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 800px) {
    #intro .grid {
        grid-template-columns: 1fr;
    }
    #intro .grid .col-2 {
        grid-column: auto;
        display: flex;
        justify-content: center;
    }
    #intro .grid .col-4 {
        grid-column: auto;
    }
    #teaserbox .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@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;
    }
    .all a span {
        display: none;
    }
    #recaptcha {
        flex-direction: column;
        align-items: start;
        gap: 1rem
    }
    #teaserbox .grid {
        grid-template-columns: 1fr;
    }
    #topfooter .grid {
        grid-template-columns: 1fr;
    }
    #bottomfooter .inner {
        flex-direction: column;
    }
    #bottomfooter .social-icons {
        justify-content: center;
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .topmenu {
        display: none;
    }
    #popup {
        margin: 1rem;
    }
    .select.flex {
        flex-direction: column;
    }
    .flex {
        flex-direction: column;
    }
    .option {
        align-items: start;
    }
}