/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** BURGER MENU ****/
@media all and (max-width: 1200px) {
    header {
        display: block;
        position: relative;
        top: 0;
        z-index: 9999;
        background: #fff;
    }

    #side-nav {
        display: none;
    }

    main,
    footer {
        margin-left: 0;
    }

    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bottommenu .inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bottommenu .logo {
        width: 160px;
        height: 90px;
    }

    #burgermenu {
        display: block;
    }

    .bottommenu nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #9e8f69;
        padding: 0;
        z-index: 9998;
    }

    .bottommenu nav.visible {
        display: block;
    }

    .bottommenu nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .bottommenu nav li {
        width: 100%;
        margin: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .bottommenu nav > ul > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 65px;
        padding: 0 1.5rem;
        font-size: 17px;
        font-weight: 300;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: none;
    }   
    
    .bottommenu nav > ul > li:first-child > a {
        min-height: 65px;
        padding: 0 1.5rem;
        font-size: 17px;
        font-weight: 300;
    }

    .menuitem {
        flex-direction: column;
        align-items: stretch;
    }

    nav li {
        height: fit-content;
        width: 100%;
    }

    .dropdown {
        position: static;
        display: none;
        padding: 0;
        margin: 0;
        top: 0;
        background: transparent;
        visibility: visible;
        opacity: 1;
    }

    .content {
        padding: calc(1rem + 5vw) calc(1rem + 3vw);
    }
    
    .bottommenu nav .dropdown {
        display: none;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #9e8f69;
    }

    .bottommenu nav .menuitem.has-submenu.open > .dropdown {
        display: block;
    }

    .bottommenu nav .dropdown li {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .bottommenu nav .dropdown li a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 65px;
        padding: 0 1.1rem 0 2.1rem;
        font-size: 17px;
        font-weight: 300;
    }
    .bottommenu nav li.has-submenu > a {
        position: relative;
        padding-right: 3rem;
    }

    .bottommenu nav li.has-submenu > a::after {
        content: "⌵";
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        line-height: 1;
        color: #000000;
    }
}

/**** 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: 1000px) {
    .info.flex {
        flex-direction: row;
        gap: .5rem;
    }
    .right img {
        display: none;
    }
    .flex {
        flex-direction: column;
        gap: 1em;
    }
    .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);
    }
    .bottommenu {
        padding: 0.5rem 1rem 0.75rem 1rem;
    }
    .bottommenu .inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }
    .bottommenu .logo {
        width: 230px;
        height: 230px;
        margin: 0 auto;
        background-position: center top;
    }
    #burgermenu {
        width: 2rem;
        margin-top: 1.8rem;
        margin-bottom: 1.5rem;
    }
    #hero .inner {
        min-height: auto;
    }

    #hero img {
        height: 78vh;
        object-fit: cover;
        object-position: center center;
    }
    #hero .content {
        width: 72%;
        top: 58%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #hero h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin: 0 0 0.75rem 0;
        padding: 0.35rem 0.75rem;
    }
    #hero .content button {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    #teaserbox .grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    }
    #teaserbox .box:nth-child(3) {
        grid-column: 1 / 3;
        justify-self: center;
        width: 100%;
        max-width: 340px;
    }
}

/**** SMARTPHONE ****/
@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
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .topmenu {
        display: none;
    }
    #popup {
        margin: 1rem;
    }
    .bottommenu .inner{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.9rem;
    }
    .bottommenu .logo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        background-position: center top;
    }
    #burgermenu {
        width: 2rem;
        margin: 0 auto 1rem auto;
        display: block;
    }
    .bottommenu nav {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        overflow-x: hidden;
    }
    .bottommenu nav ul,
    .bottommenu nav li,
    .bottommenu nav li a {
        max-width: 100%;
    }
    .bottommenu nav li a {
        min-height: 56px;
        padding: 0 1.2rem;
        font-size: 0.95rem;
    }
    .bottommenu nav li:first-child > a {
        min-height: 46px;
        font-size: 0.9rem;
    }
    .select.flex {
        flex-direction: column;
    }
    #topfooter .inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2rem;
    }

    #topfooter .box {
        width: 100%;
    }
}