/**
 * Pattern: Image Overlay with Card
 *
 * Vollflächiges Bild mit halbtransparenter Inhaltskarte.
 */


/* --------------------------------------------------------------
   Section
-------------------------------------------------------------- */

.ls-image-overlay-with-card {
    position: relative;
    min-height: clamp(540px, 65vw, 760px);
    overflow: hidden;
}


/* --------------------------------------------------------------
   Hintergrundbild
-------------------------------------------------------------- */

.ls-image-overlay-with-card
.wp-block-cover__image-background {
    object-fit: cover;
    object-position: center;
}


/* --------------------------------------------------------------
   Innerer Bereich
-------------------------------------------------------------- */

.ls-image-overlay-with-card-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: calc(100% - 3rem);
    max-width: 1280px !important;
    min-height: clamp(540px, 65vw, 760px);

    margin-right: auto;
    margin-left: auto;

    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}


/* --------------------------------------------------------------
   Transparente Inhaltskarte
-------------------------------------------------------------- */

.ls-image-overlay-with-card-content {
    width: min(100%, 540px);
    padding:
            clamp(2rem, 4vw, 3.5rem)
            clamp(1.75rem, 4vw, 3.5rem);

    background: rgba(255, 255, 255, .46);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 1.25rem;
    color: #07111b;
    box-shadow:
            0 24px 70px rgba(0, 0, 0, .28),
            inset 0 1px 0 rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}


/* --------------------------------------------------------------
   Typografie
-------------------------------------------------------------- */

.ls-image-overlay-with-card-content
> :first-child {
    margin-top: 0;
}

.ls-image-overlay-with-card-content
> :last-child {
    margin-bottom: 0;
}

.ls-image-overlay-with-card-content h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #07111b;
}

.ls-image-overlay-with-card-content p:not(.ls-eyebrow) {
    margin-top: 0;
    margin-bottom: 1.75rem;
    line-height: 1.65;
    color: #07111b;
}


/* --------------------------------------------------------------
   Buttons
-------------------------------------------------------------- */

.ls-image-overlay-with-card-buttons {
    margin-top: 2rem;
}


/* --------------------------------------------------------------
   Mobile Basis
-------------------------------------------------------------- */

@media (max-width: 782px) {

    .ls-image-overlay-with-card,
    .ls-image-overlay-with-card-inner {
        min-height: 620px;
    }

    .ls-image-overlay-with-card-inner {
        align-items: flex-end;

        width: calc(100% - 2rem);

        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .ls-image-overlay-with-card-content {
        width: 100%;
        padding: 2rem 1.5rem;
    }

}