
/* Wrapper bricht aus dem Satzspiegel aus */
.text_bild_wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Das eigentliche Flex-Layout */
.text_bild_wrapper .text_bild_item {
    display: flex;
    align-items: stretch;
    /*min-height: 100vh;*/
    padding:40px;
    
}

/* Flip-Variante */
.text_bild_wrapper .text_bild_item.flip_side
{
    flex-direction: row-reverse;
}

.text_bild_wrapper .text_bild_item.bxd.flip_side .bxd_inner
{
    flex-direction: row-reverse;
    
}

/* Textseite */
.text_bild_wrapper .split-text {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /*padding-left: max(40px, calc((90vw - var(--maxWidth)) / 2));*/
    padding-left: max(40px, calc((90vw - (var(--maxWidthWide) - 145px)) / 2));
}

.text_bild_wrapper .split-text .split-text-inner {
	width: 100%;
    max-width: 720px;
    padding: 60px 80px 60px 0;

    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.9s ease;
}

.text_bild_wrapper .split-text-inner.visible {
    opacity: 1;
    transform: translateX(0);
}


/* flip_side — Text kommt von rechts */
.flip_side .split-text-inner {
    transform: translateX(30px);
}

.flip_side .split-text-inner.visible {
    transform: translateX(0);
}


/* Bildseite */
.split-image {
    width: calc(50% - 40px );
    position: relative;
    overflow: hidden;
    margin: 20px;
    /*padding: 20px; */
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px; 
    -moz-background-clip: padding; 
    -webkit-background-clip: padding-box; 
    background-clip: padding-box;
/*    top:50%;
    transform: translateY(-50%);*/
}

.split-image video{
    /*transform: translate(-50%, -50%);*/
    height: 100%;
    min-width: 100%;
    max-width: 100vw;
    min-height: 56.25vw;
    object-fit: fill;
    object-fit: cover;
}

.split-image img {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: cover;
    object-position: center center; /* horizontal vertical */
    display: inline-block;
    border-radius: 20px;  
}

.round .split-image img{
    /*border: 1px solid #fff;*/
    height: auto;  
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 60%;
}

.round.roundRight .split-image img{
    /*border: 1px solid #fff;*/
    height: auto;  
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 60%;
    float: right;
    margin-right: 25px;
}

/* Text auf dem Bild */
.tbi_img_text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-size: 1.5rem;
    z-index: 2;
}


/* E-Mail-Kontakte auf dem Bild */
.split-image .tbi_img_wrap {
    position: relative;
    height: 100%;
}

.round .split-image .tbi_img_wrap {
    width: 60%;
    height: auto;
}

.round .split-image .tbi_img_wrap img,
.round.roundRight .split-image .tbi_img_wrap img {
    display: block;
    max-width: 100%;
    float: none;
    margin-right: 0;
}

.round.roundRight .split-image .tbi_img_wrap {
    float: right;
    margin-right: 25px;
}

.tbi_mails {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
}

.tbi_mails .tbi_mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background-color: #fff;
    color: var(--blau);
    font-size: 16px;
    line-height: 1.4em;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tbi_mails .tbi_mail:hover,
.tbi_mails .tbi_mail:focus-visible {
    background-color: var(--blau);
    color: #fff;
}


/* Zitat */
.text_bild_item.text_zitat_item .split-quote{
    background-color: #E0F0F7;
    padding:30px;
    position: relative;
    
}

.tbi_quote_mark {
    font-size: 8em;
    line-height: 1em;
    color: var(--blau);
    position: absolute;
    z-index: 1;
    height: 75px;
    
}

.tbi_quote_mark.tbi_quote_mark--open{
    left:20px;
    top: 20px;
}


.tbi_quote_mark.tbi_quote_mark--close{
    right:20px;
    bottom: 20px;
}

.tbi_quote_text{
    position: relative;
    padding: 60px 80px;
    z-index: 5;
    font-size: 33px;
    line-height: 1.4em;
  font-family: var(--h2fontFamily), sans-serif;
}


.goldpartner .text_bild_wrapper {
    max-width: 1760px!important;
}




.bxd{
    background-color: #eaeaea ;
}

.bxd .bxd_inner{
  flex: 0 0 100%;
  display: flex;
  align-items: stretch;
  padding:0px;
  overflow: hidden;
    border-radius: 18px; 
    -moz-background-clip: padding; 
    -webkit-background-clip: padding-box; 
    background-clip: padding-box;

}

.bxd .bxd_inner .split-image {
    width: calc(50% - 0px );
    position: relative;
    overflow: hidden;
    margin: 0px;
    border-radius: 0px; 
/*    top:50%;
    transform: translateY(-50%);*/
}

.bxd .bxd_inner .split-image img{
    border-radius: 0px; 
     -moz-background-clip: padding; 
    -webkit-background-clip: padding-box; 
    background-clip: padding-box;

}


.bxd .split-text{
    background-color: #fff;
}


.bxd .split-text .pl{
    max-width: 400px;
    margin: 0 auto 40px auto;
    /*display: inline-block;*/
    display: block;
    position: relative;
    
}




/* Responsive */
@media (max-width: 860px) {
    
    .text_bild_item {
        min-height: auto;
        flex-direction: column-reverse; 
    }

    .text_bild_item.flip_side {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    
    }
    .main .text_bild_wrapper .split-text,
    .split-text,
    .split-image {
        width: 100%;
    }

    .round .split-image img,
    .round.roundRight .split-image img{
    max-width: 100%;
    margin-right: 0;
}




    /* Reihenfolge erzwingen: Bild zuerst (oben), Text danach (unten) */


    .text_bild_wrapper .split-text .split-text-inner {
        padding: 60px 20px 60px 0;

    }





    .split-image {
        min-height: 40vh;
    }

    .split-text > * {
        padding: 40px 20px;
        max-width: 100%;
    }

    .bxd .bxd_inner .split-image {
        display: none;
}




}




/*###### TEst */

@media (max-width: 860px) {

    /* Stapeln: eine Spalte */
    .text_bild_wrapper .text_bild_item,
    .text_bild_wrapper .text_bild_item.flip_side {
        flex-direction: column;
        min-height: auto;
    }

    /* Reihenfolge erzwingen: Bild zuerst (oben), Text danach (unten) */
    .text_bild_wrapper .text_bild_item .split-image { order: 0; }
    .text_bild_wrapper .text_bild_item .split-text  { order: 1; }

    /* Text: volle Breite (0,3,0 schlägt die 50%-Desktopregel) + Desktop-Padding zurücksetzen */
    .text_bild_wrapper .text_bild_item .split-text {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .text_bild_wrapper .text_bild_item .split-text .split-text-inner {
        padding: 40px 0;
    }

    /* Bild: volle Breite ohne Überlauf – width:auto + stretch füllt den Container, margin bleibt als Inset */
    .text_bild_wrapper .text_bild_item .split-image {
        width: auto;
        margin: 20px;
        min-height: 40vh;
    }

    /* bxd-Variante: Bild wird bei dir mobil ausgeblendet – bleibt so */
    .bxd .bxd_inner .split-image { display: none; }

    /* E-Mail-Kontakte: Bild-Wrapper mobil auf volle Breite */
    .round .split-image .tbi_img_wrap,
    .round.roundRight .split-image .tbi_img_wrap {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}


