/* ── DELFI-Thek teaser (content block adesso/delfithekteaser) ─────────────────
   Background illustration with the counter ("Theke") over the seam, text below.
   Lives in vrr_kit (not in the content block assets): the asset symlinks of content blocks
   are not reliably published on deployments. Images: Resources/Public/Images/DelfiThekTeaser. */

.delfithek-teaser {
    --delfithek-theke-width: 280px;
    --delfithek-theke-overlap: 70px;
    --delfithek-content-bg: #eef2f4;
    position: relative;
}

/* ── Own centered wrapper, independent of the site's .container behaviour ── */
.delfithek-teaser__inner {
    position: relative;
    max-width: 73%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* ── Visual: background illustration ── */
.delfithek-teaser__visual {
    position: relative;
    aspect-ratio: 2000 / 508;
    background-image: var(--delfithek-bg-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: visible;
}

.delfithek-teaser__visual .delfithek-teaser__inner {
    height: 100%;
}

/* ── Theke: floats over the seam between visual and content ── */
.delfithek-teaser__theke {
    position: absolute;
    left: 50%; /* centred via translateX(-50%) */
    bottom: calc(var(--delfithek-theke-overlap) * -1);
    transform: translateX(-50%);
    width: var(--delfithek-theke-width);
    height: auto;
    z-index: 2;
}

/* ── Content ── */
.delfithek-teaser__content {
    background: var(--delfithek-content-bg);
    padding-top: calc(var(--delfithek-theke-overlap) + 2rem);
    padding-bottom: 2.5rem;
}

.delfithek-teaser__eyebrow {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: .02em;
    margin-bottom: .4rem;
}

.delfithek-teaser__headline {
    color: #1a1a1a;
    font-weight: 800;
    /* Scales with the viewport: ~32px on phones, 48px from ~1000px width */
    font-size: clamp(1.75rem, 1.2rem + 2.8vw, 3rem);
    line-height: 1.2;
    text-wrap: balance;
    max-width: 640px;
    margin-bottom: .6rem;
}

.delfithek-teaser__text {
    color: #4a4a4a;
    font-size: .9rem;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 0;
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .delfithek-teaser {
        --delfithek-theke-width: 280px;
        --delfithek-theke-overlap: 90px;
    }

    .delfithek-teaser__text {
        font-size: 1rem;
    }
}
