/*
Theme Name: Themify Ultra Child
Description: A child theme of Themify Ultra
Template: themify-ultra
Author: admin (markus.rutz@pingag.ch)
*/

/* Woohoo! Let's customize! */
img[title] {
  pointer-events: none !important;
}
:is(button, a, input, select, textarea, .button):focus {
    outline: none !important;
}

h1 {
    font-size: 50px !important;
}

h2 {
    font-size: 45px !important;
}

h3 {
    color: #2b3e5f !important;
    text-transform: none;
    font-size: 24px;
    line-height: 35px;
}

.post-title {
    letter-spacing: normal;
}

h3.post-title a {
    color: #2b3e5f;
    text-decoration: none;
}

b,
strong {
    font-weight: 700;

}
.home strong,
.wp-singular strong{
    color:#2b3e5f ;
}
.themify_builder_slider_wrap h3 {
    font-size: 18px !important;
    line-height: 28px !important;
    color: #666666;
    font-weight: 300 !important;
    text-align: left;
    margin-left: 0;
}

.nohyphens{
    hyphens: none !important;
    word-break: keep-all;
}
.themify_builder_slider .slide-content {
    padding: 0;
    margin-top: 10px;
}

.themify_builder_slider_wrap h3 a {
    color: #666666 !important;
}

button,
input[type=reset],
input[type=submit],
.builder_button {
    font-family: "grotesk-regular" !important;
    font-weight: 700 !important;
    background: #2B3E5C !important;
   
}
div.button-wrapper .module-buttons a{
    color:#b7b7b7!important;
}

#header {
    width: 100%;
    padding: 0 !important;
}

#headerwrap {
    border: none;
}

#site-logo {
    padding-left: 20px;
}

.sidemenu-right,
.sidemenu-right .fixed-header {
    left: 0;
}

.sidemenu {
    background-color: #2b3e5f;
    color: #fff;
    width: 100vw;
    -webkit-transition: opacity 300ms linear;
    -moz-transition: opacity 300ms linear;
    transition: opacity 300ms linear;
    opacity: 0;
    z-index: -1;
}

li {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 28px;
}

p {
    margin: 0 0 1.3em;
    padding: 0;
    font-size: 18px;
    line-height: 28px;
}

.referenzen .entry-content,
.referenzen .entry-content p,
.loops-wrapper.grid2 .post-title  {
    font-size: 18px;
    line-height: 28px;
}
/* referenz mehr lesen*/
.entry-content .ref-block {
  position: relative;
  overflow: hidden;
  transition: max-height 420ms ease, padding 200ms ease;
}

.entry-content .ref-block.ref-truncated {
  max-height: 10.5em; 
}

.entry-content .ref-block.ref-expanded {
  max-height: 2000px; 
}

.entry-content .ref-block::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 60%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 320ms ease;
}

.entry-content .ref-block.ref-expanded::after {
  opacity: 0;
}

/* Button */
.ref-toggle {
  appearance: none;
  background: none !important;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  color: #2b3e5f !important;
  cursor: pointer;
  display: inline-block;
  margin-top: 6px;
}
.ref-toggle:hover {
  color: #2b3e5f !important;
  font-weight: bold !important;
 
}
.ref-toggle:focus {
  outline: none;
  outline-offset: 2px;
}

.loops-wrapper .post-image {
    margin-bottom: 10px;
    width: 505px;
    height: 305px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.loops-wrapper .post-image img {
    height: auto;
    max-width: fit-content !important;
}

.loops-wrapper.grid2>.post, .loops-wrapper.products.grid2>.product {

    overflow: hidden;

}
.page-id-31 .themify_builder .headervideo .image-wrap{
  position: relative;
  overflow: hidden;
  margin-bottom: 1em;
  aspect-ratio: 16 / 9;     
  height: auto;      
  width: auto;   
}

.page-id-31 .themify_builder .headervideo .image-wrap img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                 
  object-position: center;
}



.sidemenu-on {
    opacity: 1;
    z-index: 999;
}

#main-nav .menu-item {
    position: relative;
    opacity: 0;
    -webkit-transform: translate3d(0, 10px, 0);
    -moz-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0);
}

#main-nav .menu-item a {
    font-size: 30px !important;
    line-height: 1.33em !important;
    color: #b7b7b7;
    border: none;
    display: inline-block;
    -webkit-transition: transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 150ms linear;
    -moz-transition: transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 150ms linear;
    transition: transform 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 150ms linear;
}

#main-nav .menu-item.current_page_item a {
    color: #fff;
}

#main-nav .menu-item a:hover {
    /*-webkit-transform: translate3d(35px, 0, 0);
    -moz-transform: translate3d(35px, 0, 0);
    transform: translate3d(35px, 0, 0);*/
    color: #fff;
}

#main-nav {
    display: flex;
    flex-direction: column;
}

#main-nav li {
    clear: both;
    display: inline-block;
    width: auto;
}


.sidemenu-on #main-nav .menu-item {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition: opacity 300ms linear, transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
    -moz-transition: opacity 300ms linear, transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: opacity 300ms linear, transform 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
}


#main-nav .menu-item:nth-child(1) {
    -webkit-transition-delay: 150ms;
    -moz-transition-delay: 150ms;
    transition-delay: 150ms;
}

#main-nav .menu-item:nth-child(2) {
    -webkit-transition-delay: 200ms;
    -moz-transition-delay: 200ms;
    transition-delay: 200ms;
}

#main-nav .menu-item:nth-child(3) {
    -webkit-transition-delay: 250ms;
    -moz-transition-delay: 250ms;
    transition-delay: 250ms;
}

#main-nav .menu-item:nth-child(4) {
    -webkit-transition-delay: 300ms;
    -moz-transition-delay: 300ms;
    transition-delay: 300ms;
}

#main-nav .menu-item:nth-child(5) {
    -webkit-transition-delay: 350ms;
    -moz-transition-delay: 350ms;
    transition-delay: 350ms;
}

#main-nav .menu-item:nth-child(6) {
    -webkit-transition-delay: 400ms;
    -moz-transition-delay: 400ms;
    transition-delay: 400ms;
}

#mobile-menu {
    left: -100vw;
    transition: all .8s ease-out;
}

.sidemenu-active {
    transition: all .8s ease-out;
}

#menu-icon-close {
    right: 7%;
    top: 40px;
}

.navbar-wrapper {
    width: 1160px;
    margin: 0 auto;
}

#main-nav-wrap .highlight-link {
    border: none;
    position: absolute;
    bottom: 50px;
}

#main-nav-wrap .highlight-link a {
    font-size: 18px !important;
    transition: none;
    border-bottom: none !important;
    background: none;
}

#main-nav-wrap .highlight-link a:hover {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}


.sidemenu-left #mobile-menu.sidemenu-on {
    left: 100px;
}

#site-logo img {
    height: 50px;
}

.menu-icon-inner {
    height: 25px;
    width: 33px;
}

.mobile-menu-visible .menu-icon-inner {
    border: 0;
    height: 33px;
    overflow: hidden;
    width: 33px;
}

#body {
    padding-left: 100px;
    padding-top: 90px;
}

#footerwrap {
    padding-left: 100px;
    padding-left: 0;
    margin-left: 100px;
	padding: 20px !important;
}
.footer-text{
    padding: 10px 0 0 !important;
}

footer .footer-text-inner .two a {
    margin-right: 7px;
}
.social-links .icon-medium em {
    margin: 0 10px 5px 0 !important; 
    padding: 0px !important; 
}


.sidemenu-active #headerwrap {
    left: -219px;
}

.header-minbar #headerwrap .header-icons {
    top: 5px;
    left: 15px;
}

.header-bar {
    transform: none;
    left: inherit;
    right: 100px;
    top: 9px;
    transition: all .3s ease;
}

.logo_sidebar .header-bar {
    transform: rotate(-90deg);
    top: -200px !important;
    opacity: 0;
}

.scroll .header-bar {
    opacity: 1;
    right: inherit;
    left: 23px;
    top: inherit !important;
}



#site-logo {
    margin: 0;
    padding: 0;

}

body #site-logo a img {
    width: auto !important;
}


#content {
    padding: 0 0 5.75% 0;

}

#footer {
    display: flex;
    align-items: flex-end;
    max-width: calc(1160px * 0.9);
}

#footerwrap {
    background-color: #2b3e5f;
    color: #ffffff;
}

#footer-logo a:hover,
#footerwrap a:hover {
    color: #fff;
}

#footer .main-col {
    text-align: left;
}

#footer .main-col {
    width: 70%;
}

.footer-left-col .section-col {
    width: 30%;
}

#menu-icon:hover {
    background: transparent;
}

.menu-icon-inner:after,
.menu-icon-inner:before {
    border-top: 3px solid;
}

.menu-icon-inner {
    border-bottom: 3px solid;
    color: #2b3e5f;
}

@media (max-width: 1260px) {
    #headerwrap .header-icons {
        top: 5px;
    }
}



.animation_slow.module,
.fullwidth {
    animation-duration: 2s !important;
    animation-timing-function: ease-in-out !important;
}

.sliderwrapper {
    margin-left: -10px;
    width: calc(100% + 20px);
}

.sliderwrapper .module-text {
    padding-left: 8px;
    padding-right: 8px;
}

.immo_slider.themify_builder_slider_wrap .carousel-next,
.immo_slider.themify_builder_slider_wrap .carousel-prev {

    border-radius: 100%;

    color: #2b3e5f;
    cursor: pointer;
    font-size: 16px;
    height: 44px;
    inset: 0;
    padding: 0;
    opacity: 1;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s ease-in-out .2s, transform .2s ease-in-out, background-color .5s;
    display: flex;
    width: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;

    &:before {
        height: 13px;
        width: 13px;
    }

    &:after {
        display: none;
    }

    &:hover {
        background-color: #2b3e5f;
        color: #fff;
        box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
    }
}

.immo_slider.themify_builder_slider_wrap .carousel-next {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;

    &:before {
        margin-right: 6.5px;
    }

}

.immo_slider.themify_builder_slider_wrap .carousel-prev {
    position: absolute;
    left: -54px;
    top: 0;

    &:before {
        margin-left: 6.5px;
    }

}

.immo_slider .carousel-nav-wrap {
    position: absolute;
    top: calc(50% - 2.5em);
    margin: 0;
}

.loops-wrapper.list-large-image .post-image {
    margin: 0 4em 2.5em 0;
}

h1 {
    margin-bottom: 30px !important;
}

.headervideo {
    position: relative;
    animation-duration: 6s !important;

}


.instagram_link {
    position: absolute !important;
    z-index: 1;
    top: 20px;
    right: 20px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: 2px solid #2b3e5f;

    transition: all 0.3s ease;
    background: #2b3e5f;
    z-index: 1500;

}

.instagram_link a,
.instagram_link .tb_text_wrap {
    height: 56px;
    width: 56px;
    display: block;
}

.instagram_link a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container_object {
    border-top: 3px solid #e0e0e0;
    padding-top: 20px;
}

.container_object p {
    margin-bottom: 0;
}

.container_object>div {
    padding: 10px 0 !important;
    border-top: none !important;
}

.instagram_link svg {
    width: 35px;
    height: 35px;
}

.instagram_link svg path {
    fill: #ada385;
    transition: all 0.3s ease;
}

.instagram_link:hover svg path {
    fill: #fff;
}

.color_title p {
    color: #2b3e5f;
}

#footerwrap #block-7 .wp-block-image {
    position: absolute;
    bottom: 15px;
}

#footerwrap #block-8 .wp-block-image {
    position: absolute;
    bottom: 42px;
}

#content .immobox article .post-image {
    float: left;
    order: 2;
    margin: 0 0 0 40px;
    width: calc(65% - 40px);
}

#content .immobox article .post-image img {
    height: auto;
    object-fit: cover;
}

#content .immobox article {
    display: flex;
    margin-bottom: 50px;
}

#content .immobox article .post-content {
    background-color: #2b3e5f;
    color: #fff;
    width: 35%;
    padding: 20px;
}

#content .immobox article .post-content h3 a {
    color: #fff;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

#content .immobox article .post-content h3 {
    margin-bottom: 0;
}

#content .immobox article .post-content h3, #content .immobox article .post-content p {
    letter-spacing: normal;
}

button,
input[type=reset],
input[type=submit],
.builder_button {
    font-family: "grotesk-regular" !important;
    font-weight: 300 !important;
}

.module_row.fullheight {
    min-height: initial;
}

.themify_builder_slider .slide-image {
    margin: 0;
}

.themify_builder {
    .headervideo {

        video,
        img {
            max-height: calc(100vh - 275px);
            /*max-height: calc(100vh - 370px);*/
        }
/*
        &:first-child {

            video,
            img {
               max-height: 100vh !important;
            }
        }*/

        .image-wrap {
            margin-bottom: 1em;
            max-height: calc(100vh - 317px) !important;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 640px;
        
        }

    }
    .module-video{
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
    }
}
.themify_builder.themify_builder_content>.tb_yf78370.module_row{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0 20px;
}

.button {
    background-color: var(--theme_alt_accent);
    border: 0;
    color: #fff;
    font: normal 1.3em Playfair Display, serif;
    padding: .65em 2.1em
}

.button:hover {
    background-color: var(--theme_accent);
    transform: none;
    color: #fff;
}

.button-wrapper {
    margin-bottom: 80px;
}

.button-wrapper > .module_column{
    display: flex;
    flex-wrap: wrap;
    grid-gap: 20px;
    justify-content: right;
}

.button-wrapper > .module_column > .module-text {
    position: absolute;
    left: 0;
}

.button-wrapper > .module_column .module-buttons {
    margin-top: 15px;
}

#main-nav a {
    text-transform: inherit;
    letter-spacing: 1.12px;
}

.col4-2 .module-text p, .module_subrow {
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

.button-wrapper .module-buttons a, .buttonwrapper-detail .button, button, input[type=reset], input[type=submit], .builder_button {
    padding: 0px 15px;
    font-size: 18px;
    line-height: 28px;
    background-color: #2B3E5C !important;
    color: #b7b7b7 !important;
    font-family: "grotesk-regular";
    font-weight: 400 !important;
    box-shadow: none !important;
    text-transform: inherit;
    letter-spacing: normal !important;
    border: 0;
    height: 30px;
    padding-top: 2px;
    display: inline-block;
}
input[type=submit] {
    height: 32px;
}
/*
.button-wrapper .module-buttons:not(.active) a, .button-wrapper .module-buttons a:hover {
    color: white !important;
    background-color: whtie !important;
}
*/

.button-wrapper .module-buttons.active a {
    color: white !important;
    cursor: default;
}

.button-wrapper .module-buttons:not(.active) a:hover, button:hover, input[type=reset]:hover, input[type=submit]:hover, .builder_button:hover {
    color: white !important;
}


.immo-wrapper .tabbox:not(.active) {
    display: none;
}

.buttonwrapper-detail {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.buttonwrapper-detail .button {
    cursor: pointer;
}

.buttonwrapper-detail .button:hover {
    color: white !important;
}

input:read-write, select, textarea {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.25);
    padding: 0 0 5px 0;
}

textarea {
    height: 130px;
    min-height: auto;
}

.themify_builder_content-871 .tb_kfm0742 {
    padding-bottom: 0;
}

.contactimg {
    width: 80% !important;
}

.module-text a {
    font-weight: 500;
}

.sub_column .module-text h3 {
    margin-top: -3px;
}
/*Newsletter form*/
.mc_embed_signup div#mce-responses {
    margin: 0 !important;
}
.mc_embed_signup .mc-field-group {
    padding-bottom: 0;
}
.mc_embed_signup {
  background: #2b3e5f !important;
  clear: left;
  font-family: "grotesk-regular";
  max-width: 320px;
  width: 100%;
  margin: 40px auto;
  padding: 10px 30px;
  color:#ffffff;
  font-weight: 300;
  font-size: 16px;
}
.mc_embed_signup h2{
    color: #ffffff !important;
    font-family: "grotesk-regular";
    font-weight: 400;
    font-size: 30px !important;
}

.mc_embed_signup input[type="email"] {
    width: 90%;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 0 !important;
    margin: 0px 0 10px 0;
}
.mc_embed_signup .mc-field-group label{
    display: none;
}

.mc_embed_signup .button {
  cursor: pointer;
  border-radius: 0 !important;
  padding: 0px 15px;
  font-size: 18px;
  line-height: 28px;
  background-color:  #b7b7b7 !important;
  color: #2B3E5C !important;
  font-family: "grotesk-regular";
  font-weight: 400 !important;
  box-shadow: none !important;
  text-transform: inherit;
  letter-spacing: normal !important;
  border: 0;
  height: 30px;
  padding-top: 2px;
  display: inline-block;
}
.mc_embed_signup .button:hover{
   background-color:  #ffffff !important; 
   color:#2b3e5f !important;
}

.mc_embed_signup .button:disabled {
  background-color: #b7b7b7;
  cursor: not-allowed;
}
#footerwrap {
    display: flex;
}

#footerwrap .mc_embed_signup.footer{
  background: transparent !important ;
  font-family: "grotesk-regular";
  font-weight: 300;
  font-size: 16px;
  max-width: 240px;
  width: 100%;
  margin: 0px auto;
  padding: 0px;
}

#footerwrap .mc_embed_signup.footer input[type="email"] {
  width: 100% !important;
  margin: 10px 0 !important;
  
}
#footer .main-col {
    width: 50% !important;
}
#footerwrap .mc_embed_signup.footer h2{
    font-size: 20px !important;
    margin: 0 !important;
}

@media (max-width: 1262px){
    .headervideo{
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-left: -10px;
    }
}

footer#footer > .main-col.first {
        order: 1;
}
footer#footer > .section-col.tf_clearfix {
        order: 3;
}
footer#footer > .mc_embed_signup.footer{
        order: 2;
}

div.module_column.no-post {
    display: none;
}
.no_immo_posts div.module_column.no-post {
    display: block;
}
.error404 #main-content{
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;

}