/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** LAPTOP ****/
@media all and (max-width: 1300px) {
    #hero h1 {
        width: 100%;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    .box:nth-child(1) {
        grid-row: 2;
    }
    .box:nth-child(2) {
        grid-row: 2;
    }
    .box:nth-child(3) {
        grid-row: 3;
    }
    .box:nth-child(4) {
        grid-row: 3;
    }
    .grid {
        justify-content: normal;
    }
}

/**** TABLET *****/
@media all and (max-width: 1150px) {
    .mega-menu .menu-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .mega-menu .menu-inner .menu-column,
    .mega-menu .menu-inner .menu-column:first-of-type {
        grid-column: span 1;
        height: fit-content;
    }
    .mega-menu .menu-inner .menu-column:first-of-type {
        grid-row: 4;
    }
    .mega-menu .contact-nav {
        display: none;
    }
    .mega-menu .menu-column .menu-header {
        flex-direction: row;
        align-items: center;
        height: 5.3rem;
        padding: .6rem;
    }
    .mega-menu .menu-column .menu-header .menu-arrow {
        align-self: center;
    }
    .mega-menu .menu-column .menu-nav {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .25s;
        padding: 0;
    }
    .mega-menu .menu-column .menu-nav .nav-list {
        gap: 0;
        overflow: hidden;
    }
    .mega-menu .menu-column .menu-nav .nav-list .menuitem {
        width: 100%;
    }
    .mega-menu .menu-column .menu-nav .nav-list .menuitem:first-of-type {
        margin-top: 1rem;
    }
    .mega-menu .menu-column .menu-nav .nav-list .menuitem:last-of-type {
        margin-bottom: .35rem;
    }
    .mega-menu .menu-column .menu-nav .nav-list .menuitem a {
        padding: .65rem 1.35rem;
        width: 100%;
    }
    .mega-menu .menu-column .menu-nav.open {
        grid-template-rows: 1fr;
    }
    .mega-menu .menu-copyright p {
        text-align: start;
    }
}
@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;
    }
    .select {
        flex-direction: row;
    }
    #popup .select {
        flex-direction: row;
    }
    .teaser div {
        margin: auto;
        text-align: center;
        width: 100%;
        margin: auto;
    }
    .teaser i {
        margin: auto;
    }
    .content {
        padding: calc(1rem + 5vw) calc(1rem + 3vw);
    }
    #popup {
        left: calc(1rem + 3vw);
        width: calc(100% - calc(calc(1rem + 3vw) * 2));
        transform: translateY(-50%);
        max-width: none;
    }
    #popup .select {
        flex-direction: row;
    }
    #topfooter .grid {
        grid-template-columns: 1fr;
    }
    #topfooter .footer-nav {
        justify-content: flex-start;
        padding: 0;
    }
    #topfooter .footer-legal {
        justify-content: flex-start;
        padding: 1rem 0 0;
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 750px) {
    .bottommenu .inner, 
    .topmenu .inner,
    .header.opened .bottommenu .inner, 
    .header.scrolled.opened .bottommenu .inner  {
        min-height: 3.75rem;
    }
    .header.opened .logo, 
    .header.scrolled.opened .logo,
    .logo {
        transform: scale(0.5) translateY(0%);
    }
    .header.scrolled .logo {
        transform: scale(0.4) translateY(20%);
    }
    .header.scrolled.opened #burgermenu,
    #burgermenu {
        top: 2.125rem;
    }
    .teaser {
        padding: 3rem;
        margin: 5rem 0;
    }
    #topfooter {
        padding: 4rem 2rem 3rem;
    }
}
@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: 2;
    }
    .box:nth-child(2) {
        grid-row: 3;
    }
    .box:nth-child(3) {
        grid-row: 4;
    }
    .box:nth-child(4) {
        grid-row: 5;
    }
    .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;
    }
    #linkblock ul {
        gap: .5rem;
    }
    .teaser {
        padding: 2rem;
        margin: 3.5rem 0;
    }
    .teaser p {
        font-size: 1.1rem;
    }
    #topfooter .footer-nav {
        flex-direction: column;
        gap: 5rem;
        padding: 1rem 0 0;
    }
    #topfooter .inner:last-of-type {
        margin: 5rem 0 0;
    }
    #topfooter .footer-address {
        flex-direction: column;
        gap: 1.25rem;
    }
    #topfooter .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
        padding: 1.5rem 0 0;
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .topmenu {
        display: none;
    }
    .select.flex {
        flex-direction: column;
    }
    .flex {
        flex-direction: column;
    }
    .option {
        align-items: start;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button{
        width: 100%;
    }
}