.elementor-widget-dp-wastl-teaser-links {
    min-height: 100%;
}

.dp-wastl-teaser-links {
    display: grid;
    grid-template-columns: auto 400px;
    grid-template-rows: auto;
    grid-template-areas: "images links";
    min-height: 100%;
    min-width: 100%;
}

.layout-bottom .dp-wastl-teaser-links {
    grid-template-columns: auto;
    grid-template-rows: minmax(50svh, 1fr) auto;
    grid-template-areas:
            "images"
            "links";
}

/* IMAGES */

.dp-wastl-teaser-images-wrapper {
    grid-area: images;
    position: relative;
    overflow: hidden;
}

.dp-wastl-teaser-images-wrapper .dp-wastl-teaser-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.dp-wastl-teaser-images-wrapper .dp-wastl-teaser-image.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.dp-wastl-teaser-images-wrapper .dp-wastl-teaser-image > img.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LINKS */

.dp-wastl-teaser-links-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    grid-area: links;
    background-color: var(----e-global-color-text, #666666);
    padding: 120px 30px 120px 0;
}

.layout-bottom .dp-wastl-teaser-links-wrapper {
    flex-flow: row wrap;
    padding: 0 30px 25px;
}

/*.dp-wastl-teaser-links-wrapper .decoration-wastl-herzerl {
    z-index: -1;
    position: absolute;
    top: 0;
    left: calc(50% - 100vw);
    height: 100%;
    width: 200vw;
    background-image: url("../../assets/images/wastl-herzerl-grau.svg");
    background-size: 25px auto;
    background-position: top center;
    background-repeat: repeat;
    opacity: 0.3;
}*/

.dp-wastl-teaser-links-wrapper .dp-wastl-teaser-links-item {
    width: 100%;
    transform: translateX(-35px);
}

.layout-bottom .dp-wastl-teaser-links-wrapper .dp-wastl-teaser-links-item {
    display: flex;
    justify-content: center;
    width: calc((100% - 80px) / 3); /* 80px = 2 x 40px gap @ .dp-wastl-teaser-links-wrapper */
    transform: translateY(-35px);
}

a.dp-wastl-teaser-link {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    font-family: var(--e-global-typography-b6ba40d-font-family), Sans-serif;
    font-size: var(--e-global-typography-b6ba40d-font-size);
    font-weight: var(--e-global-typography-b6ba40d-font-weight);
    line-height: var(--e-global-typography-b6ba40d-line-height);
    letter-spacing: var(--e-global-typography-b6ba40d-letter-spacing);
    color: #fff!important;
    border-style: none;
    border-radius: 0 0 0 0;
    transform: scale(1);
    transition: transform 0.3s ease, color 0.3s ease;
}

.layout-bottom a.dp-wastl-teaser-link {
    flex-flow: column nowrap;
}

a.dp-wastl-teaser-link svg {
    display: block;
    width: 70px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

a.dp-wastl-teaser-link .eicon,
a.dp-wastl-teaser-link i {
    font-size: 0 !important; /* unterdrückt "em"-Einfluss */
    line-height: 0;
}

.dp-wastl-teaser-link span {
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.layout-bottom a.dp-wastl-teaser-link span {
    text-align: center;
}

@media (max-width: 767px) {

    .layout-right .dp-wastl-teaser-links {
        grid-template-columns: 1fr;
        grid-template-rows: 60vw auto;
        grid-template-areas:
                "images"
                "links";
    }

    .layout-bottom .dp-wastl-teaser-links {
        grid-template-rows: 60vw auto;
        grid-template-areas:
                "images"
                "links";
    }

    .layout-right .dp-wastl-teaser-links-wrapper {
        gap: 20px;
        padding: 60px 20px 30px 0;
        margin-left: 70px;
    }

    .layout-bottom .dp-wastl-teaser-links-wrapper {
        justify-content: space-between;
        gap: 10px;
        padding: 0 20px 25px;
    }

    .layout-bottom .dp-wastl-teaser-links-wrapper .dp-wastl-teaser-links-item {
        width: calc((100% - 20px) / 3); /* 20 = 2 x 10px gap @ .dp-wastl-teaser-links-wrapper */
    }

}

@media (hover: hover) {

    a.dp-wastl-teaser-link:hover,
    a.dp-wastl-teaser-link:focus,
    a.dp-wastl-teaser-link:active {
        color: var(--e-global-color-primary, #A61008)!important;
    }

    a.dp-wastl-teaser-link:hover svg,
    a.dp-wastl-teaser-link:focus svg,
    a.dp-wastl-teaser-link:active svg {
        transform: scale(1.25);
    }

}