.webpresso_banner_wrap {
    container-name: banner-ad;
    container-type: inline-size;
    margin-bottom: 2rem;
}

.center-element .webpresso_banner_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

.webpresso_banner {
    max-width: 800px;
    position: relative;
}

.webpresso_banner::before {
    content: 'WERBUNG';
    display: inline-block;
    color: #999;
    background: #fff;
    font-size: 12px;
    line-height: 12px;
    border: 1px solid #ccc;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.webpresso_banner .card {
    display: flex;
    flex-direction: row !important;
    position: relative;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 0.25rem;
    box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
}

.webpresso_banner .card .w_aspect-ratio {
    width: 40%;
    position: relative;
    aspect-ratio: 1/1;
}

.webpresso_banner .card .w_aspect-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.webpresso_banner .card .card-body {
    min-height: 1px;
    width: 60%;
    padding: 2rem 1rem 1rem 1.5rem;
    hyphens: auto !important;
    flex: 1 1 auto;
}

.webpresso_banner .card .card-body .card-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.webpresso_banner .card .card-body .card-text {
    margin: 0 0 1rem;
    padding: 0;
}

.webpresso_banner .card .card-body .card-button {
    padding: 0.5rem 0.75rem;
    font-weight: normal;
    border: none;
    margin-top: 0.5rem;
    position: initial !important;
}

.webpresso_banner .card .card-body .card-button::after {
    background: none;
}

@container banner-ad (width > 740px) {
  .webpresso_banner .card .w_aspect-ratio {
    width: 50%;
  }
  .webpresso_banner .card .card-body {
    width: 50%;
    padding-top: 3.5rem;
    padding-left: 3rem;
  }
}

@container banner-ad (width < 575px) {
    .webpresso_banner::before { 
        left: 15%;
    }
    .webpresso_banner .card .card-body .card-title {
        font-size: 1.25rem;
    }
    .webpresso_banner .card .w_aspect-ratio {
        width: 33.33%;
    }
    .webpresso_banner .card .card-body {
        padding-top: 1rem;
        width: 66.66%;
    }
}

@container banner-ad (width < 320px) {

    .webpresso_banner .card {
        flex-direction: column !important;
    }

    .webpresso_banner::before { 
        left: 50%;
    }
    .webpresso_banner .card .w_aspect-ratio {
        width: 100%;
    }
    .webpresso_banner .card .card-body {
        padding: 1.5rem 1.25rem 2rem 1.25rem;
        width: 100%;
    }
}

/* Spacing */

.wbox-content-footer + .webpresso_banner_wrap,
hr + .webpresso_banner_wrap,
.wbox-videopopup + .webpresso_banner_wrap,
p + .webpresso_banner_wrap {
    margin-top: 3rem;
}

/* Stretch Link */

.webpresso_banner a.stretched-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}