.v4-landing-page {
    --v4-landing-intro-gap: 128px;
}

@media (max-width: 767px) {
    .v4-landing-page {
        --v4-landing-intro-gap: 96px;
    }
}

/* A text-only L8 row directly after the image and its hero heading. */
.v4-landing-page > .grid-el:has(.ueberschrift-mtvbox-zeile1):has(img)
    + .grid-el:has(.text-cell h2):has(.text-cell p):not(:has(img))
    > .container-fluid > div[class^="spacer-"]:first-child {
    height: var(--v4-landing-intro-gap);
}

.v4-landing-page > .grid-el:has(.ueberschrift-mtvbox-zeile1):has(img)
    + .grid-el:has(.text-cell h2):has(.text-cell p):not(:has(img))
    ~ .clearfix + .content-spacer {
    display: none;
}

.v4-landing-page > .grid-el:has(.ueberschrift-mtvbox-zeile1):has(img)
    + .grid-el:has(.text-cell h2):has(.text-cell p):not(:has(img))
    ~ .collection-work-list[data-collection-list-source="ids"]
    > [data-collection-layout]:first-child > .grid-el > .container-fluid > div[class^="spacer-"]:first-child {
    height: var(--v4-landing-intro-gap);
}

.v4-landing-page > .grid-el:has(.ueberschrift-mtvbox-zeile1):has(img)
    + .grid-el:has(.text-cell h2):has(.text-cell p):not(:has(img)) .text-cell h2:first-child {
    margin-top: 0;
}

.v4-landing-page > .grid-el:has(.ueberschrift-mtvbox-zeile1):has(img)
    + .grid-el:has(.text-cell h2):has(.text-cell p):not(:has(img)) .text-cell p:last-child {
    margin-bottom: 0;
}

.v4-landing-page .collection-work-list[data-collection-list-source="ids"] .prod > a {
    display: block;
    text-align: center;
}

.v4-landing-page .v4-landing-card-number,
.v4-landing-page .v4-landing-card-caption {
    display: block;
    font-size: 10px;
    line-height: 11px;
}

.v4-landing-page .v4-landing-card-number {
    padding-top: 31px;
    color: inherit;
    font-weight: 700;
}

.v4-landing-page .v4-landing-card-caption {
    min-height: 44px;
    padding-top: 11px;
    opacity: 0;
}

.v4-landing-page .v4-landing-card-caption > span {
    display: block;
    overflow-wrap: anywhere;
}

.v4-landing-page .v4-landing-card-caption > span + span {
    margin-top: 11px;
}

.v4-landing-page .collection-work-list[data-collection-list-source="ids"] .prod > a:focus-visible {
    background-color: transparent;
    color: inherit;
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.v4-landing-page .prod > a:focus-visible .v4-landing-card-caption,
.v4-landing-page .prod > a:focus-visible img.hoverimg {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .v4-landing-page .collection-work-list[data-collection-list-source="ids"] .prod > a:hover {
        background-color: transparent;
        color: inherit;
    }

    .v4-landing-page .prod > a:hover .v4-landing-card-caption {
        opacity: 1;
    }
}
