.image-text-cta {
    --image-text-cta-bg: #62635b;
    --image-text-cta-text: #fff;
    --image-text-cta-muted: rgba(255, 255, 255, .88);
    --image-text-cta-border: rgba(255, 255, 255, .85);

    margin-block: 4rem;
}

.image-text-cta__inner {
    overflow: hidden;
    background: var(--image-text-cta-bg);
}


/*
 * Bildbereich
 */
.image-text-cta__media {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}


/*
 * Lightbox-Link über die komplette Bildfläche.
 *
 * Der Link ist gleichzeitig das Bezugselement für
 * das Bild und das Zoom-Overlay.
 */
.image-text-cta__media > a {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;
}


/*
 * Bild füllt den kompletten verfügbaren Bildbereich.
 */
.image-text-cta__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/*
 * Zoom-Overlay für die t3sbootstrap-Lightbox.
 *
 * Bei normalen t3sbootstrap-Bildern wird die Größe
 * des Overlays von t3sbootstrap bestimmt.
 *
 * Im Content Block soll das Overlay stattdessen
 * die komplette Bildfläche einnehmen.
 */
.image-text-cta__media .zoom-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0 !important;

    opacity: 0;

    transition:
      opacity .35s,
      transform .35s;

    pointer-events: none;
}


/*
 * Zoom-Overlay beim Überfahren des Bildes einblenden.
 *
 * Diese Regel ist notwendig, weil die entsprechende
 * t3sbootstrap-Hover-Regel bei der Struktur unseres
 * Content Blocks nicht greift.
 */
.image-text-cta__media > a:hover .zoom-overlay,
.image-text-cta__media > a:focus-visible .zoom-overlay {
    opacity: 1;
}


/*
 * t3sbootstrap positioniert die Lupe normalerweise
 * absolut über top/left 50 % und transform.
 *
 * Hier übernimmt das Flexbox-Layout des Overlays
 * bereits die Zentrierung.
 */
.image-text-cta__media .magnifying-glass-icon {
    position: static;

    top: auto;
    left: auto;

    flex: 0 0 auto;

    transform: none;
}


/*
 * Inhalt
 */
.image-text-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 3rem;

    color: var(--image-text-cta-text);
}


/*
 * Überschrift
 */
.image-text-cta__headline {
    margin: 0 0 clamp(1.25rem, 2vw, 2rem);

    color: #fff;

    font-size: clamp(2.1rem, 3.5vw, 3.35rem);
    line-height: 1.05;
}


/*
 * Text
 */
.image-text-cta__text {
    max-width: 46rem;

    color: var(--image-text-cta-muted);

    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    line-height: 1.55;
}

.image-text-cta__text > :last-child {
    margin-bottom: 0;
}

.image-text-cta__text a {
    color: inherit;
    text-decoration-color: currentColor;
}


/*
 * Buttons
 */
.image-text-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 1rem;
    margin-top: 1rem;
}

.image-text-cta__button {
    min-width: min(100%, 20rem);

    padding: 1rem 1.75rem;

    border-radius: 0;

    font-weight: 700;
    text-transform: uppercase;
}


/*
 * Outline-Button
 */
.image-text-cta__button--outline {
    color: #fff;
    background: transparent;

    border: 2px solid var(--image-text-cta-border);
}

.image-text-cta__button--outline:hover,
.image-text-cta__button--outline:focus-visible {
    color: #222;
    background: #fff;
    border-color: #fff;
}


/*
 * Tablet
 */
@media (max-width: 991.98px) {

    .image-text-cta__media {
        min-height: clamp(280px, 58vw, 500px);
    }

}


/*
 * Smartphone
 */
@media (max-width: 575.98px) {

    .image-text-cta__content {
        padding: 2rem 1.5rem 2.5rem;
    }

    .image-text-cta__actions,
    .image-text-cta__button {
        width: 100%;
    }

    .image-text-cta__button {
        min-width: 0;
    }

}