.text-image-block {
    padding: 60px;
    background: var(--bg-primary-main);
}
.text-image-block:has(.text-item) {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.page-id-799 .text-image-block {
    margin: 60px 0px 120px;
}
.text-image-block:has(+.text-block),
.text-image-block:has(+.text-image-block) {
    margin-bottom: 40px;
}
.text-image-block .text-img {
    width: 30%;
    min-width: 30%;
    height: auto;
    overflow: hidden;
    max-height: 600px;
    display: flex;
    cursor: pointer;
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}
.text-image-block .text-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: 0.5s;
    float: left;
}
.text-image-block .text-img:hover img {
    transform: scale(1.05);
}
.text-image-block blockquote,
.text-image-block blockquote>* {
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
}
.text-image-block blockquote {
    padding: 75px 0px 30px;
    position: relative;
    margin: 35px 0px;
    display: flex;
    flex-direction: column;
}
.text-image-block blockquote:before {
    content: "";
    width: 45%;
    height: 1px;
    background: var(--bg-primary-stroke);
    top: 0;
    left: 0;
    position: absolute;
}
.text-image-block blockquote:after {
    content: "";
    width: 45%;
    height: 1px;
    background: var(--bg-primary-stroke);
    bottom: 0;
    right: 0;
    position: absolute;
}
.text-image-block blockquote p {
    display: flex;
    flex-direction: column;
}
.text-image-block blockquote p:nth-child(1) {
    position: relative;
}
.text-image-block blockquote p:nth-child(1):before {
    content: "";
    width: 12px;
    height: 10px;
    top: -40px;
    left: 7px;
    position: absolute;
    background-image: url(images/citate.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.text-image-block blockquote p em {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    text-align: right;
    color: var(--text-primary-second);
    font-style: normal;
    margin-left: auto;
    margin-top: 20px;
}
.text-image-block .text-holder {
    display: block;
}
.text-image-block .text-holder p, .text-image-block .text-holder li, table td {
    margin-top: 10px;
}
.text-image-block .text-holder p:first-child {
    margin-top: unset;
}

@media (max-width: 1400px) {
    .text-image-block {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .text-image-block blockquote {
        padding: 30px 0px 10px;
        font-size: 14px;
        margin: 10px 0px;
    }
    .page-id-799 .text-image-block {
        margin: 40px 0px;
    }
    .text-image-block blockquote p {
        font-size: 14px;
    }
    .text-image-block blockquote p:nth-child(1):before {
        top: -15px;
        left: 0px;
    }
    .text-image-block blockquote p em {
        margin-top: 5px;
        font-size: 12px;
    }
}

@media (max-width: 768px) { 
    .text-image-block .text-img {
        margin-bottom: 10px;
        margin-right: 10px;
    }
    .text-image-block .text-img {
        width: 100%;
        min-width: unset;
    }
}