.c-button-teaser {
    position: relative;
    display: block;
    height: 100%;
    min-height: 26rem;
    color: #fff;
    transition: all $transition-time linear;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 0;
        display: block;
        height: 100%;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 100%);
        opacity: .7;
        transition: background $transition-time linear;
    }

    &.c-button-teaser--no-image {
        &::after {
            display: none;
        }
    }
}

.c-button-teaser--no-image.c-button-teaser--bordered {
    &::before {
        content: '';
        border: 4px solid white;
        position: absolute;
        width: calc(100% - 2rem);
        height: calc(100% - 2rem);
        margin: 1rem;
    }

    .c-button-teaser__caption {
        padding: 1rem;
    }
}

.c-button-teaser--gradient-50 {
    &::after {
        opacity: .5;
    }
}

.c-button-teaser--gradient-20 {
    &::after {
        opacity: .2;
    }
}

.c-button-teaser--gradient-0 {
    &::after {
        opacity: 0;
    }
}

.c-button-teaser--primary-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-primary-500) 100%);
    }
}

.c-button-teaser--secondary-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-secondary-500) 100%);
    }
}

.c-button-teaser--accent-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-accent-500) 100%);
    }
}

.c-button-teaser--cta-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-cta-500) 100%);
    }
}

.c-button-teaser--ambient-gradient {
    &::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-ambient-500) 100%);
    }
}

a.c-button-teaser {
    &:hover,
    &:focus {
        color: #fff;
    }

    &.c-button-teaser--no-image {
        &.bg-primary-500 {
            &:hover {
                background: theme('colors.primary.600');
            }
        }

        &.bg-secondary-500 {
            &:hover {
                background: theme('colors.secondary.600');
            }
        }

        &.bg-accent-500 {
            &:hover {
                background: theme('colors.accent.600');
            }
        }

        &.bg-cta-500 {
            &:hover {
                background: theme('colors.cta.600');
            }
        }

        &.bg-ambient-500 {
            &:hover {
                background: theme('colors.ambient.600');
            }
        }
    }

    .c-button--color-primary {
        border-color: theme('colors.primary.500');
        background-color: theme('colors.primary.500');
    }

    .c-button--color-secondary {
        border-color: theme('colors.secondary.500');
        background-color: theme('colors.secondary.500');
    }

    .c-button--color-cta {
        border-color: theme('colors.cta.500');
        background-color: theme('colors.cta.500');
    }

    .c-button--color-transparent {
        border: 2px solid theme('colors.primary.500');
        background-color: transparent;
    }

    &:hover,
    &:active,
    &:focus {
        .c-button--color-primary {
            border-color: theme('colors.primary.600');
            background-color: theme('colors.primary.600');
        }

        .c-button--color-secondary {
            border-color: theme('colors.secondary.600');
            background-color: theme('colors.secondary.600');
        }

        .c-button--color-cta {
            border-color: theme('colors.cta.600');
            background-color: theme('colors.cta.600');
        }

        .c-button--color-transparent {
            border-color: theme('colors.primary.500');
            background-color: theme('colors.primary.500');
        }
    }

}

.c-button-teaser__image {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    transform: scale(1);
    transition: transform $transition-time--short ease-in;

    a.c-button-teaser:hover & {
        transform: scale(1.05);
    }
}

.c-button-teaser__badge {
    right: 0;
    top: 0;
    position: absolute;
    max-width: 5rem;
    margin-right: 1rem;
    margin-top: 1rem;

    &.c-button-teaser__badge--no-spacing {
        margin-top: 0;
        max-width: auto;
        max-height: 7rem;
    }
}

.c-button-teaser__badge--left {
    right: unset;
    left: 0;
    margin-right: auto;
    margin-left: 1rem;
}

.c-button-teaser__caption {
    position: absolute;
    left: 50%;
    top: 65%;
    z-index: 5;
    text-align: center;
    transform: translate(-50%, -50%);
}

h3.c-button-teaser__headline {
    color: #fff;
    font-size: 1.875rem;
    line-height: 1.25;
    // font-family: 'BaseFontFamily', sans-serif;
    font-weight: bold;
    hyphens: auto;
}

.c-button-teaser__subline {
    width: 16rem;
}

.c-button-teaser__button {
    position: relative;
    margin-top: 4.5rem;
}

