/* Template: Häuser Flip Box */ 
/* Class: mh-3-haus-flip-box */

.mh-3-haus-flip-box .elementor-flip-box {
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
}


/* Template: MHB Post Grid Spaltenbreite wechselnd */ 
/* Class: mh-last-projects-post-grid-columns */
.mh-last-projects-post-grid-columns .mhb-post-grid-container {
    grid-template-columns: repeat(5, 1fr) !important;
    height: auto !important;
}


.mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item {
    height: 400px !important;
}

.mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:only-child {
    grid-column: 1 / -1 !important; /* Span all columns */
    width: min(1400px, 100%); /* Use 1400px or 100% width, whichever is smaller */
    max-width: 1400px;
    justify-self: center; /* Center the item horizontally */
    height: 400px;
}

@media (min-width: 768px) {
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(1),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(4),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(5),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(8),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(9) {
        grid-column: span 2;
    }
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(2),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(3),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(6),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(7),
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item:nth-child(10) {
        grid-column: span 3;
    }
}

/*  Custom solution for 9 Houses */ 
.mh-last-projects-post-grid-columns.mh-custom-grid-columns-9 .mhb-post-grid-container .mhb-post-grid-item:nth-child(7)  {
    grid-column: span 1;
}
.mh-last-projects-post-grid-columns.mh-custom-grid-columns-9 .mhb-post-grid-container .mhb-post-grid-item:nth-child(8),
.mh-last-projects-post-grid-columns.mh-custom-grid-columns-9 .mhb-post-grid-container .mhb-post-grid-item:nth-child(9) {
    grid-column: span 2;
}

/* Make Last Element full width */
.mhb-post-grid-item:last-child:nth-child(2n+1) {
  grid-column: span 5 !important;
}

@media (max-width: 767px) {
    .mh-last-projects-post-grid-columns .mhb-post-grid-container .mhb-post-grid-item {
        grid-column: 1 / -1 !important;
        height: 200px;
    }
    .mh-last-projects-post-grid-columns .mhb-post-grid-container {
        height: auto !important;
    }
}



/* Template: Text mit Fokus-Bild */ 
/* Class: mh-changing-images-sections */

/* General styling for the slider images */

.mh-changing-images-sections .first-screen img,
.mh-changing-images-sections .middle-screen img,
.mh-changing-images-sections .last-screen img{
    border-radius: 25px;
}

@media (min-width: 1024px){
    .mh-changing-images-sections .first-screen {
        opacity: 1;
        -moz-transition: opacity .25s ease-out;
        -webkit-transition: opacity .25s ease-out;
        transition: opacity .25s ease-out;
    }


    .mh-changing-images-sections .middle-screen,
    .mh-changing-images-sections .last-screen {
        opacity: 0;
        -moz-transition: opacity .25s ease-out;
        -webkit-transition: opacity .25s ease-out;
        transition: opacity .25s ease-out;
    }

    .mh-changing-images-sections .elementor-sticky--active.middle-screen,
    .mh-changing-images-sections .elementor-sticky--active.last-screen {
        opacity: 1 !important;
    }
 
    /* Sticky - effects offset behavior once it's reached */

    .mh-changing-images-sections .elementor-sticky--effects.first-screen,
    .mh-changing-images-sections .elementor-sticky--effects.middle-screen {
        opacity: 0 !important;
    }
}


/* START: Swiper Lightbox Background */
.swiper-zoom-container img {
    background: white;
}
/* END: Swiper Lightbox Background */


/* START: #kontakt */
#kontakt {
  padding-left: 0;
  padding-right: 0;
}

#kontakt > div {
    padding-left: 25px;
    padding-right:25px;
}
/* END: #kontakt */

/* START: .mh-3col-counter */
@media (max-width: 767px) {
    .mh-3col-counter > .elementor-element > .e-con-inner {
        flex-direction: column;
    }
}
/* END: .mh-3col-counter */


/* START: .mhb-stepbystep */
@media (max-width: 767px) {
    .mhb-stepbystep {
        flex-direction: column;
    }
}
/* END: .mhb-stepbystep */


/* START: .mhb-swiper-slider */
@media screen and (max-width: 1024px) {
  .mhb-swiper-slider {
    padding: 0;

    } 
    .mhb-swiper-slider > .e-con-inner > .elementor-element:first-child {
        padding: 0 10px;
    }

    .mhb-swiper-slider .mh-swiper-slider-elementor {
        padding: 0;
    }

    .mhb-swiper-slider .mh-swiper-slider-elementor .swiper-initialized .swiper-slide > .elementor-element {
        margin: 0;
        padding: 0;
    }

    .mhb-swiper-slider .mh-swiper-slider-elementor .swiper-initialized .swiper-slide .e-con-inner > .elementor-element {
        padding: 20px 10px;
    }

    .mhb-swiper-slider .mh-swiper-slider-elementor .swiper-initialized .swiper-slide .e-con-inner > .elementor-element > .elementor-element {
        padding: 0;
    }
}
/* END: .mhb-swiper-slider */


/* START: .flt-mhb-posts-grid */
@media screen and (max-width: 1024px) {
  .flt-mhb-bt-container {
    height: 35px !important;
  }
}
/* END: .flt-mhb-posts-grid */


/* START: .flt-mhb-posts-grid (only Über Uns page) */
@media screen and (max-width: 1024px) {
  .flt-mhb-bt-container {
    height: fit-content !important;
    padding: 10px 5px;
    width: fit-content;
  }

  .flt-mhb-bt-container .flt-mhb-bt-container-shape {
    height: fit-content;
  }

  .flt-mhb-bt-container .flt-mhb-bt-container-shape .flt-mhb-button-text {
    margin-left: 10px;
  }
}
/* END: .flt-mhb-posts-grid (only Über Uns page) */


/* START: .mh-sustainability-section (Über Uns Seite) */
@media (max-width: 1023px){
 .mh-sustainability-section {
    background: none !important;
 }
}
/* END: .mh-sustainability-section (Über Uns Seite) */


/* START: .mh-quote-big */
.mh-quote-big {
  padding: 0 10px;
}
/* END: .mh-quote-big */


/* START: .mh-changing-images-sections */
/* Template: Text mit Fokus-Bild */ 

.mh-changing-images-sections .first-screen img,
.mh-changing-images-sections .middle-screen img,
.mh-changing-images-sections .last-screen img{
    border-radius: 25px;
}

@media (min-width: 1024px){
    .mh-changing-images-sections .first-screen {
        opacity: 1;
        -moz-transition: opacity .25s ease-out;
        -webkit-transition: opacity .25s ease-out;
        transition: opacity .25s ease-out;
    }


    .mh-changing-images-sections .middle-screen,
    .mh-changing-images-sections .last-screen {
        opacity: 0;
        -moz-transition: opacity .25s ease-out;
        -webkit-transition: opacity .25s ease-out;
        transition: opacity .25s ease-out;
    }

    .mh-changing-images-sections .elementor-sticky--active.middle-screen,
    .mh-changing-images-sections .elementor-sticky--active.last-screen {
        opacity: 1 !important;
    }
 
    /* Sticky - effects offset behavior once it's reached */

    .mh-changing-images-sections .elementor-sticky--effects.first-screen,
    .mh-changing-images-sections .elementor-sticky--effects.middle-screen {
        opacity: 0 !important;
    }
}
/* END: .mh-changing-images-sections */


/* START: #mh-mega-menu */
.e-n-menu-content > .e-child {
  box-shadow: 0px 3px 5px #ececec;
}

#mh-mega-menu .menu-arrow-link p::after {
    display: inline-block;
    -webkit-transform: scale(0.5, 1); /* Safari and Chrome */
    -moz-transform: scale(0.5, 1); /* Firefox */
    -ms-transform: scale(0.5, 1); /* IE 9 */
    -o-transform: scale(0.5, 1); /* Opera */
    transform: scale(0.5, 1); /* W3C */
    content: ">";
    position: absolute;
    right: 0;
    font-size: 18px;
}

@media (max-width: 767px) {
    .mh-mega-menu-item-container {
    width: 45%;
    }
}


.mh-mega-menu-item-container:hover p.elementor-heading-title {
  color: var( --e-global-color-primary) !important;
}
/* END: #mh-mega-menu */


/* START: Wissen Content Styles */
.wissen-content-column {
    line-height: 28px;
}

.wissen-content-column h2,
.wissen-content-column h3,
.wissen-content-column img {
    margin-top: 30px;
}

.wissen-content-column span {
    display: block;
    margin-bottom: .9rem;
}
/* END: Wissen Content Styles */



/* START: .wissen-autor-column */
.wissen-autor-column .wissen-autor-container p {
    margin-bottom: 0;
}
/* END: .wissen-autor-column */


/* START: Global Styles */
html {
    scroll-padding-top: 125px;
    overflow-x: hidden; /* prevent horiz. scroll */
}

body {
    overflow-x: hidden; /* prevent horiz. scroll */
}

table {
    /* hyphens: auto; */
    display: block;
    width: 100%;
    overflow-x: auto;
    word-break: normal;
}
/* END: Global Styles */


/* START: .mh-image-text fixes */
@media (min-width: 768px) {
    .mh-image-text {
        margin-block-end: 150px;
    }
}

@media (max-width: 767px) {
    .mh-image-text {
        margin-top: 50px;
        margin-bottom: 50px;
    }
}
/* END: .mh-image-text fixes */


/* START: .mh-hero fixes */
.mh-hero > div.elementor-element {
    background-color: rgba(255, 255, 255, 0.75) !important;
}

@media (min-width: 768px) {
    .mh-hero > .elementor-element {
        max-width: 70%;
    }
}

@media (max-width: 767px) {
    .mh-hero > div.elementor-element {
        margin: 0;
        height: 400px;
        align-content: center;
        justify-content: center;
        padding-right: 10%;
    }

    .mh-hero h1.elementor-heading-title {
        font-size: 23px !important;
    }
}
/* END: .mh-hero fixes */