@media only screen and (max-width: 1399px) {
  .background_image {
    width: 550px;
  }

  .block-recently-projects>div {
    margin-bottom: 15px;
  }

  .img_wrap {
    width: 275px;
    height: 184px;
  }
}

@media only screen and (min-width: 1199px) and (max-height: 660px) {
  .block-title,
  .block-recently-projects,
  .block-information {
    height: 80vw !important;
  }
}

@media only screen and (max-width: 1199px) {
  .img_wrap {
    width: 230px;
    height: 140px;
  }

  .background_image {
    width: 450px;
    top: 30%;
  }

  .video_container,
  .image_container {
    /* width: 80vw; */
    height: auto;
  }

  .video_container,
  .image_container:last-child {
    width: 90vw !important;
  }

  .image_container img {
    width: 100%; /*Disable*/
    height: auto;
    max-height: 80vh;
  }

  .image_container:last-child img {
    height: 100%;
    width: 100% !important;
  }

  .video_container>div>div:first-child {
    /* margin-bottom: 16px; */
  }

  .video_container .title-box,
  .video_container .info-descr,
  .image_container .title-box,
  .image_container .info-descr {
    width: auto;
  }

  /* width */
  ::-webkit-scrollbar {
    width: 5px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #888;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  .video_container {
    height: 80vh;
    /* overflow: auto;
    overflow-x: hidden; */
  }

  .block-information .title-box h2 {
    font: normal normal bold 90px/80px DIN Condensed;
    padding: 20px 20px;
  }

  .block-information .info-descr p {
    font: normal normal normal 15px/20px Arial;
  }

  /* Kontakt Formular */
  .contact_form>.row {
    width: 90%;
  }


}

@media only screen and (max-width: 1151px) {
  .image_container:last-child .row>div:last-child {
    width: 41.66666667%;
    margin-left: 0;
  }
}

@media only screen and (max-width: 1140px) {
  /* .image_container:not(:last-child) img {
    width: 90vw;
    height: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .image_container:last-child {
    width: 90vw;
  } */
}

@media only screen and (max-width: 992px) {
  nav {
    height: 45px;
  }

  .navbar-brand img {
    height: 30px;
    width: 30px;
  }

  .navbar-light .navbar-toggler-icon {
    width: 30px;
    height: 30px;
  }

  nav>div {
    height: 100%;
    justify-content: space-between !important;
  }

  .block-title {
    height: 70vh !important;
    margin: 100px auto;
  }

  .background_image {
    right: unset;
    width: 50vw;
    top: unset;
  }

  .main_heading {
    width: 90vw;
  }

  .popup {
    height: calc(100vh - 45px);
    top: 45px;
  }

  .popup .slick-list,
  .popup .slick-track {
    height: calc(100vh - 45px);
  }

  .image_container:last-child>div>div {
    height: 100%;
  }

  .image_container:last-child {
    height: 70vh;
  }

  .video_container>div {
    align-items: center;
  }

  .image_container .title-box h2,
  .video_container .title-box h2 {
    /* font-size: 60px;
    line-height: 50px; */
    padding: 23px 23px;
  }

  .slider_close_btn {
    margin: 66px 0 0 0;
  }

  /* Block-information*/
  .block-information {
    height: unset !important;
  }

  .block-information img {
    display: block;
    margin: 0 auto 16px auto;
    float: unset;
  }

  .block-information .title-box {
    max-width: unset;
    width: 86%;
    margin: auto;
  }

  .block-information .title-box h2 {
    font: normal normal bold 60px/70px DIN Condensed;
    text-align: center;
  }

  .block-information .info-descr {
    max-width: unset;
    width: unset;
    margin: 0 50px;
  }

  .block-information .info-descr p {}

  /* Kontakt Formular */
  .contact_form>.row {
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .img_wrap {
    width: 170px;
    height: 110px;
  }

  /* Block Recently Projects */
  .block-recently-projects {
    height: unset !important;
    margin: 100px auto;
  }

  .block-recently-projects>div {
    margin-bottom: 0;
  }

  .block-recently-projects div:not(.row):not(.img_wrap) {
    margin-bottom: 20px;
  }

  .block-recently-projects>div>div {
    padding: 0 calc(var(--bs-gutter-x) * 0.5);
  }

  .img_wrap {
    width: 80%;
    height: 280px;
  }

  .img_description {
    font-size: 40px;
    line-height: 45px;
  }

  .slick-list {
    height: 100%;
  }

  .slick-track {
    height: 100%;
  }

  .slick-prev {
    margin-left: 10px;
  }

  .slick-next {
    margin-right: 10px;
  }

  .image_container {
    height: 100%;
  }

  .image_container>div {
    align-items: center;
  }

  .image_container:last-child {
    overflow: auto;
    overflow-x: hidden;
    height: 50vh !important;
    /* width: auto !important; */
  }

  .image_container:last-child img {
    /* width: auto !important; */
  }

  .image_container:last-child .row div:first-child {
    margin-bottom: 16px;
  }

  .image_container:last-child .row>div:last-child {
    width: 100%;
  }

  .image_container:last-child>div>div {
    height: auto;
  }

  .image_container .title-box {
    margin-bottom: 24px;
  }

  .image_container .info-descr {
    height: auto !important;
  }

  .image_container .info-descr p {
    margin-bottom: 12px;
  }

  .image_container .title-box h2,
  .video_container .title-box h2 {
    font-size: 50px;
    line-height: 40px;
  }

  /* Block Information */
  .block-information .title-box {
    width: 100%;
  }

  .block-information .info-descr {
    margin: 0;
  }

  /* Kontakt Formular */
  .contact_form {
    height: auto;
    margin: 50px auto;
  }

  .social_media {
    margin-bottom: 16px;
  }
}

@media only screen and (max-width: 575px) {
  .main_heading {
    /* font-size: 28px; */
    width: 90vw;
    margin: 0 0 50px;
  }

  .show_more_btn {
    color: white;
  }

  .img_wrap {
    width: 100%;
    height: 240px;
    margin: 0 auto;
  }

  .block-information .title-box>h2 {
    font-size: 50px !important;
    text-align: center;
  }

  .popup {
    height: calc(100vh - 45px);
    top: 45px;
  }

  .slider_close_btn {
    width: 30px;
    height: 30px;
  }

  .slider_close_btn>.dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  .slick-prev,
  .slick-next {
    width: 40px;
    height: 40px;
  }

  .slick-prev:before,
  .slick-next:before {
    font-size: 30px;
    top: 1px;
  }

  .slick-dots>li {
    width: 4vw;
  }

  .slick-dots>li>button {
    width: 4vw;
  }
}


@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance: none) {
    #menu-topmenu>li::before {
      top: 42% !important;
    }

    /*
    .text_container .title-box h2 {
      padding: 7px 12px 0 12px !important;
    }

    .block-information .title-box h2 {
      padding: 28px 12px 0px 12px;
    } */

    /* .show_more_btn {
      padding: 13px 77px 3px 77px;
    }

    .block-information .title-box h2 {
      padding: 25px 20px 8px 20px;
    }

    .contact_heading {
      padding: 10px 20px 4px 20px;
    }
  
    #in_submit {
      padding: 10px 20px 4px 20px;
    }

    .datenschutz > h1,
    .datenschutz > h2,
    .datenschutz > h3 {
      background-color: #d62c32;
      padding: 10px 10px 2px 10px;
    }

    .image_container .title-box h2,
    .video_container .title-box h2 {
      padding: 33px 23px 13px 23px;
    } */
  }
}

@media (orientation: landscape) and (max-width: 992px) and (max-height: 576px) {
  .home .container.block-title {
    height: 90vw !important;
    margin-top: 0 !important;
  }

  .home .container.block-recently-projects {
    height: fit-content !important;
  }

  .home .container.block-information {
    height: fit-content !important;
  }

  .slick-dots {
    bottom: 0px !important;
  }

  .popup {
    height: calc(100vh - 45px);
    /* margin-top: 45px; */
  }
}

@media (orientation: landscape) and (max-width: 992px) and (max-height: 400px) {
  #menu-topmenu {
    overflow-y: scroll;
    height: calc(100vh - 45px);
  }

  .popup {
    /* top: 0px; */
  }

  .slick-prev,
  .slick-next {
    width: 30px;
    height: 30px;
  }

  .slick-prev:before,
  .slick-next:before {
    font-size: 20px;
  }

  .slider_close_btn {
    width: 30px;
    height: 30px;
    margin-top: 10px;
    right: 10px;
  }

  .slider_close_btn>.dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  .video_container {
    height: 80vh;
    width: 60vw !important;
    margin: 8px 8px 0 8px;
    overflow: unset;
  }

  .image_container {
    min-width: unset;
    width: unset;
    min-height: unset;
    height: unset;
    max-height: none;

    margin: 8px 8px 0 8px;
  }

  .text_container {
    height: 80vh;
    min-height: unset;
    max-height: unset;
    margin: 8px 8px 0 8px;

    overflow-x: hidden;
    overflow-y: scroll;
  }

  .image_container img {
    max-height: calc(100vh - 60px);
  }
}