/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** 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;
        align-items: start;
        width: 100%;
    }
    .menuitem {
        flex-direction: column;
        align-items: start;
        margin-left: 1rem;
    }
    #burgermenu {
        display: block;
    }
    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
        display: none;
    }
    .menuitem.about-us:hover > .dropdown,
    .menuitem:hover > .dropdown{
    display: block;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    nav li {
        height: fit-content;
        align-items: start;
    }
    .tel-btn {
        display: none;
    }
    nav ul{
        gap: 1rem;
    }
    .about-us .dropdown.vertical,
    .dropdown.vertical {
        display: flex;
        flex-direction: column;
        align-items: start;
        display: none;
    }

    .dropdown{
        background: var(--blue)
    }
    .dropdown .menuitem a{
        color: var(--white);
    }
    .dropdown .menuitem a:hover{
        color: var(--orange);
    }
}
@media all and (max-width: 1700px) {
        .bottommenu, .topmenu {
        padding: 0 80px;
    }
}
/**** LAPTOP ****/
@media all and (max-width: 1314px) {
    #hero h1 {
        width: 100%;
    }
    .bottommenu, .topmenu {
        padding: 0 40px;
    }
    .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: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);
    }
    #popup .select {
        flex-direction: row;
    }
    
}
@media (max-width: 900px){
  .dropdown{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    width: min(620px, 92vw);
  }
    #topfooter .inner.grid {
    grid-template-columns: 1fr;
  }


  #teaserbox .grid{
        display: grid;
        grid-template-columns: repeat(2,1fr); 
    }

    #teaserbox .box{
        width: 100%;
        margin: 0 auto;
    }
    #topfooter svg{
        width: 7rem;
        height: auto;
    }
    #topfooter img {
        width: 7rem;
        height: auto;
    }
    .slide{
        height: 60vh;
    }

}
@media (max-width: 750px){
    #teaserbox .grid{
        grid-template-columns: repeat(1,1fr);
    }
}

@media (max-width: 620px){
  .dropdown{
    grid-template-columns: 1fr;
    left: 0;
    transform: translateX(0) translateY(12px);
    width: 92vw;
  }
  .menuitem:hover > .dropdown,
  .menuitem:focus-within > .dropdown{
    transform: translateX(0) translateY(0);
  }
}
/**** 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;
    }
      #topfooter .box,
  #topfooter .box:nth-child(3) {
    align-items: center;
  }
    #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
    }
    #bottomfooter .inner {
        flex-direction: column;
        align-items: center;
    }
    #bottomfooter  ul{
        flex-direction: column;
        align-items: center;
    }
    .bottommenu svg{
        height: 3rem;
    }
    .bottommenu .inner, .topmenu .inner {
        width: 100%;
        height: 5rem;
    }
    .bottommenu{
        padding: 0;
        padding-right:1rem;
    }
    #topfooter .box a{
        display: flex;
        justify-content: center;
    }
    #topfooter .box:nth-child(1) i {
        padding-top: 0;
    }
    #topfooter ul.contact-info {
        align-items: 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;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button{
        width: 100%;
    }
    .bottommenu svg{
        height: 2.5rem;
    }
    .bottommenu .inner, .topmenu .inner {
        width: 100%;
        height: 4rem;
    }
    .bottommenu{
        padding: 0;
        padding-right:1rem;
    }
}