/** 2 col flexible **/
.ty-2-col-flexible {
    margin: 0 auto 0 40px;
    max-width: calc(100% - 40px);
    padding: 56px 0;
}

.ty-2-col-flexible-cols {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
}

.ty-2-col-flexible-col {
    width: calc(50% - 16px);
}

/* img-text: current default styling */
.ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-col--text {
    padding: 24px 0;
}

.ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-col--img {
    padding: 0;
}

.ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background-repeat: no-repeat;
}

/* txt-txt: no text-column padding */
.ty-2-col-flexible-cols.txt-txt-cols .ty-2-col-flexible-col--text {
    padding: 0;
}

/* img-img: both images follow left-column aspect-ratio */
.ty-2-col-flexible-cols.img-img-cols .ty-2-col-flexible-col--img {
    padding: 0;
    aspect-ratio: var(--ty-2-col-flexible-img-ratio, 1 / 0.8);
}

.ty-2-col-flexible-cols.img-img-cols .ty-2-col-flexible-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    background-repeat: no-repeat;
}

.ty-2-col-flexible-subject {
    color: #da261b;
    font-family: 'Abril Fatface', cursive;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 8px;
}

.ty-2-col-flexible-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 32px;
}

.ty-2-col-flexible-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    margin: 0 0 32px;
}

/* Buttons — same as ty-2-col-image-text / work.css */
.ty-2-col-flexible .btn {
    position: relative;
    display: inline-block;
    padding: 12px 41px 12px 22px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 37px;
    transition: all 250ms ease-in-out;
}

.ty-2-col-flexible .btn-right.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 22px;
    width: 6px;
    height: 10px;
    transform: translateY(-6px);
}

.ty-2-col-flexible .btn-right.btn-white:after,
.ty-2-col-flexible .btn-right.btn-grey:after,
.ty-2-col-flexible .btn-right.btn-green:after {
    background-image: url('/wp-content/themes/kappersakademie/assets/images/angle-right.png');
}

.ty-2-col-flexible .btn-right.btn-black:after,
.ty-2-col-flexible .btn-right.btn-red:after {
    background-image: url('/wp-content/themes/kappersakademie/assets/images/angle-right-white.png');
}

.ty-2-col-flexible .btn-white {
    background-color: #FFFFFF;
}

.ty-2-col-flexible .btn-white:hover {
    background-color: #f4f4f4;
}

.ty-2-col-flexible .btn-black {
    background-color: #30353e;
    color: #FFFFFF;
}

.ty-2-col-flexible .btn-black:hover {
    background-color: #3a404a;
}

.ty-2-col-flexible .btn-grey {
    background-color: #e9e7e1;
}

.ty-2-col-flexible .btn-grey:hover {
    background-color: #eeece8;
}

.ty-2-col-flexible .btn-green {
    background-color: #a5c8c4;
}

.ty-2-col-flexible .btn-green:hover {
    background-color: #d6e6e4;
}

.ty-2-col-flexible .btn-red {
    background-color: #ca1d15;
    color: #FFFFFF;
}

.ty-2-col-flexible .btn-red:hover {
    background-color: #da261b;
}

@media only screen and (max-width: 991px) {
    .ty-2-col-flexible-cols {
        flex-direction: column;
        gap: 0;
    }

    .ty-2-col-flexible-col {
        width: 100%;
    }

    .ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-col--img {
        aspect-ratio: 1 / 0.8;
        padding: 0;
    }

    .ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-img {
        min-height: 0;
    }

    .ty-2-col-flexible-cols.img-img-cols .ty-2-col-flexible-col--img {
        aspect-ratio: var(--ty-2-col-flexible-img-ratio, 1 / 0.8);
    }
}

@media only screen and (max-width: 736px) {
    .ty-2-col-flexible {
        margin-left: 20px;
        max-width: calc(100% - 20px);
    }

    .ty-2-col-flexible-cols.img-text-cols .ty-2-col-flexible-col--text {
        padding: 50px 0;
    }

    .ty-2-col-flexible-cols.txt-txt-cols .ty-2-col-flexible-col--text {
        padding: 0;
    }

    .ty-2-col-flexible-subject {
        font-size: 14px;
    }

    .ty-2-col-flexible-title {
        font-size: 20px;
    }

    .ty-2-col-flexible-text {
        font-size: 14px;
    }

    .ty-2-col-flexible .btn {
        width: 100%;
        font-size: 15px;
    }
}
