/* MEDIA QUERIES - RESPONSIVE CSS
-------------------------------------------------- */

@media screen and (max-width: 1653.5px) {
  .inst-list:hover .nlist-body {
    margin-top: 0;
  }

  .nlist-body {
      margin-top: 25px;
  }

  .referenz-content {
      margin-bottom: 63px;;
  }
}

@media screen and (max-width: 1440px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .masonry-grid-sizer,
  .masonry-grid-item {
    width: calc(50% - 10px) !important;
    height: fit-content;
    padding: 0 !important;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 1200px) {

  #elevator {
    height: calc(100vh - 80px);
  }

  #wrap-inhalt.notb {
    margin-top: 80px;
  }

  div#scene-container3 {
    height: auto;
    width: 50vw;
    max-height: 50vh;
    margin-top: -50px;
    max-width: 50%;
    float:none;
    margin:0 auto;
  }

  div#scene-container3 {
   width:75vw;
    margin-top: -50px;
    max-width: initial;
    float: none;
    margin: 0 auto;
    height: 50vh;
  }

  .tempNav {
    display:none; 
  }

  .referenzMasonry {
    width: calc(100% - 100px);
  }
}

@media screen and (max-width: 1010px) {
  #megura-swissness {
    right: 15px !important;
  }

  .inhalt .row,
  #footer .row {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
}

@media screen and (max-width: 992px) {
  .home #wrap-inhalt {
    margin-top: 0px;
    padding-top: 80px;
    height: 100% !important;
  }

  #tempNav p {
    margin-bottom: -7px;
  }

  #tempNav {
    top: 2px;
  }

  #wrap-topbild {
    margin-top: 80px;
  }

  .powermail_input,
  .powermail_textarea {
    width: 120%;
  }

  #logo {
    width: 150px;
  }

  /* Markierung */
  div#scene-container3 {
    width: 75vw;
  }

  body:not(.uberUns) #topbild #indentedHome,
  body:not(.uberUns) #topbild .indentedHome {
    margin-left: 0;
  }

  .ueberUnsPortrait .ce-column,
  .ueberUnsPortrait .ce-gallery {
    margin-bottom: 0 !important;
  }

}

@media screen and (min-width: 767px) {
  /* Enable scroll on animation disable on Desktop*/
  .enableScroll {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  main,
  #inhalt {
    overflow: initial;
  }

  #wrapper {
    display: block !important;
  }

  #wrap-topbild {
    margin-top: 80px;
  }

   #topbild .ce-image img {
    height: auto;
  }
 
  #wrap-footer {
    border-left: 0px;
    border-right: 0px;
    border-bottom: 0px;
  }

  #frow1 .col-12 {
    margin-bottom: 20px;
  }

  #frow2 {
    margin-top: 10px;
  }

  #frow3 .ce-column {
    margin-bottom: 0px !important;
  }

  main img {
    max-width: 100% !important;
    height: auto;
  }

  #logo a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
  }

  #wrap-inhalt.notb {
    /* margin-top: 40px; */
  }

  .homeStoerer {
    width: 100%;
  }

  div#scene-container3 {
    height: 400px;
    margin-top: -75px;
    width: 100%;
  }

  .col-right {
    margin-top: -200px;
  }

  #tempNav {
    right: 10px;
    top: 12px;
  }

  .homeTitle {
    font-size: 70px !important;
  }

  .homeLead p {
    font-size: 16px !important;
  }

  .home #wrap-inhalt.notb {
    position: relative;
    height: auto;
  }

  .masonry-grid-sizer,
  .masonry-grid-item {
    width: 100% !important;
    height: fit-content;
    padding: 0 !important;
    margin-bottom: 20px;
  }

   #referenzenFilter .labelRadio {
    margin-right: 14px;
    margin-bottom: 14px;
  }

  span.checkmark {
    padding: 7px 12px;
  }

  /* Enable scroll on animation */
  #scene-container3 {
    position: relative;
  }

  .enableScroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Mobile view Referenzen */
  .referenzMasonry {
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: auto;
  }

  .inst-list {
    overflow: visible !important;;
  }

  .gridimg {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .referenz-content {
    position: relative;
    transform: translateY(0%);
    height: auto;
    margin-bottom: 0px;
  }
  
  .nlist-body {
    margin-top: 0 !important;
  }

  .referenzMasonry {
    width: calc(100% - 40px);
  }

}

@media screen and (max-width: 600px) {

  #slickid-241 .slick-prev, #slicksync-241 .slick-prev {
    left: -15px !important;
  }

  #slickid-241 .slick-next, #slicksync-241 .slick-next {
      right: -15px !important;
  }

  .home-elevator {
    margin-top: 25px;
  }

  .homeLead {
    max-width: 100%;
  }
}

@media screen and (max-width: 576px) {

  #frow1 .col-12 {
    margin-bottom: 30px;
  }

  .powermail_input,
  .powermail_textarea {
    width: 100%;
  }

  #footer-c4 {
    text-align: start;
  }

  #indentedHome {
    margin-left: auto;
  }

  h2.homeTitle {
    font-size: 40px !important;
    margin-bottom:14px; 
  }

  .referenzMasonry {
    width: calc(100% - 30px);
  }

  #footer-c4 > .frame-default {
    align-self: flex-end;
    margin-left:0 !important;
  }

  #frow1 .col-12:nth-of-type(2),
  #frow1 .col-12:nth-of-type(3) {
    display:none;
  }


}

@media screen and (max-width: 520px) {
  .referenz-content h3 {
    font-size: 16px !important;
  }

  #referenzenFilter .labelRadio {
    margin-right: 11px;
    margin-bottom: 11px;
  }

  span.checkmark {
    padding: 4px 6px;
  }

}

@media screen and (max-width: 480px) {

  #slickid-241 .slick-prev, #slicksync-241 .slick-prev {
    left: -15px !important;
  }

  #slickid-241 .slick-next, #slicksync-241 .slick-next {
      right: -15px !important;
  }
}
