/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** BURGER MENU ****/
@media all and (max-width: 1200px) {
    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 2rem 0;
        padding-top: 0;
        top: 100%;
        right: 0;
        width: 100%;
        opacity: 1;
        border-top: 1px solid #e5e5e5;
    }
    .bottommenu nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .menuitem {
        flex-direction: column;
        align-items: center;
    }
    #burgermenu {
        display: block;
    }
    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    nav li {
        height: fit-content;
    }
    .bottommenu .inner {
        flex-direction: row;
        align-items: center;
        padding-top: 1rem;
        padding-bottom: 1rem
    }
    .bottommenu nav ul {
        align-items: start;
        justify-content: start;
        text-align: start;
        gap: 0;
    }
    .bottommenu nav li {
        height: 50px;
        border-bottom: 1px solid #e5e5e5;
        width: 100%;
        text-align: start;
        align-items: start;
        padding-left: 2rem;
    }
    .bottommenu nav li:hover {
        background-color: #4c4c4c;
        color: #FFFFFF;
    }
    .bottommenu nav li a {
        font-weight: bold;
        color: #333;
        width: 100%;
    }
    .bottommenu nav li:hover > a {
        color: #ffffff;
    }
    #hero .content {
        max-width: 900px;
    }
    .bottommenu .menuitem a:hover {
        color: #ffffff;
    }
}
/**** LAPTOP ****/
@media all and (max-width: 1730px) {
    .bottommenu {
        padding: 0 calc(1rem + 5vw);
    }
    #topfooter {
        padding: calc(1rem + 10vh) calc(1rem + 5vw);
    }
    .content {
         padding: calc(1rem + 10vh) calc(1rem + 5vw);
    }
    #hero .inner {
        max-width: 1920px;
    }
}
@media all and (max-width: 1300px) {
    #hero h1 {
        width: 100%;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    #teaserbox .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .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;
    }
    #topfooter .inner {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    #bottomfooter .inner {
        width: auto;
    }
    #topfooter .contact-adress {
        padding-top: 2rem;
    }
    #topfooter .opening-hours {
        border-left: 0;
        padding-left: 0;
    }
    #topfooter img {
        width: 196px;
        height: auto;
    }
    #topfooter nav .footer-icons img{
        width: 40px;
        height: auto;
    }
    #topfooter nav .footer-icons {
        padding-top: 0.5rem;
    }
}

/**** 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;
    }
    .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 .content {
        position: absolute;
        text-wrap: balance;
        z-index: 1;
        background: white;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 1150px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    #popup .select {
        flex-direction: row;
    }
    .prev, .next {
        top: 50%
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 800px) {
    #topfooter .inner {
        grid-template-columns: repeat(1, 1fr);
        display: grid;
    }
}
@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;
    }
    #teaserbox .grid {
        grid-template-columns: 1fr;
    }
    .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
    }
    #topfooter .border-box {
        border-left: none;
    }
    #topfooter .box {
        align-items: center;
        justify-content: center;
        display: flex;
    }
    #topfooter nav ul{
        align-items: center;
    }
    #topfooter h3{
        padding-bottom: 0;
        padding-top: 2rem;
        margin-bottom: 0;
    }
    #topfooter {
        padding-bottom: 1.5rem;
    }
    #topfooter a,
    #topfooter p {
        line-height: 0.5;
    }
    #topfooter nav a {
        line-height: 1.5;
    }
    #hero .content {
        max-width: 700px;
    }
    .logo {
        width: 77px;
        height: auto;
}
}

/**** 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;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button{
        width: 100%;
    }
}