/*
 * Styles for record based teasers
 */
.teaser-rc {
    position: relative;
    border: 1px solid #ced4da;
}

.teaser-image_link_bottom {
    @media (min-width: 768px) {
        margin-bottom: 0;
    }

    a {
        display: block;
    }

    .headline {
        position: absolute;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        padding: 10px 0;
        text-align: center;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.9);

        @media (max-width: 767px) {
            white-space: nowrap;
        }
    }

    .image {
        overflow: hidden;
    }

    img {
        transition: transform 100ms ease-in-out;
        width: 100%;
    }

    & > a:hover img {
        transform: scale(1.05);
    }
}

.teaser-text_button {
    height: 0;
    padding-bottom: 80%;

    @media (min-width: 540px) {
        padding-bottom: 68.6%;
    }

    .content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        background-color: var(--abc-red);

        @media (min-width: 768px) {
            background-color: #fff;
            padding: 20px;
        }

        &:hover {
            text-decoration: none;
        }
    }

    .text {
        margin-bottom: 10px;
        color: #fff;
        font-size: 1rem;
        text-align: center;

        @media (min-width: 540px) {
            font-size: 1.25rem;
        }

        @media (min-width: 768px) {
            margin-bottom: 20px;
            color: var(--abc-red);
        }

        @media (min-width: 992px) {
            font-size: 1.5rem;
        }
    }

    .button {
        display: none;

        @media (min-width: 768px) {
            display: block;
        }
    }

    .button span {
        display: block;

        &::after {
            font-family: Consolas, monospace;
            content: '\203A';
            margin-left: 10px;
            font-size: 1.125rem;
            line-height: 1.25rem;
        }
    }

    a:hover .button span {
        background-color: #971326;
        border-color: #8a1123;
    }
}

.teaser-image_red {
    position: relative;
    overflow: hidden;

    .overlay {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(183, 23, 46, 0.7);
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    span {
        display: block;
    }

    img {
        transition: transform 100ms ease-in-out;
        width: 100%;
    }

    & > a:hover img {
        transform: scale(1.05);
    }
}

.teaser-white_box {
    border: 0;
    background-color: #fff;

    @media (min-width: 768px) {
        height: 0;
        padding-bottom: 68.6%;
    }

    .content {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        border: 1px solid #e9ecef;

        @media (min-width: 768px) {
            padding-top: 15%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        @media (min-width: 992px) {
            padding-top: 10%;
        }

        @media (min-width: 1330px) {
            padding-top: 20%;
        }

        &:hover {
            box-shadow: 0 0 10px 0 #ced4da;
        }
    }

    .icon {
        margin-bottom: 20px;
    }

    .text {
        max-width: 80%;
        text-align: center;

        @media (min-width: 1330px) {
            max-width: 70%;
        }
    }
}

.teaser-list-fluid {
    @media (max-width: 539px) {
        .teaser-white_box .content {
            padding-top: 30px;
            padding-bottom: 30px;
        }
    }
}

/*
 in a fixed layout the boxes have a fixed height in every width
 */
.teaser-list-fixed {
    @media (max-width: 767px) {
        .teaser-white_box {
            padding-bottom: 80%;
            height: 0;

            .content {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                display: flex;
                justify-content: center;
            }

            .icon {
                display: none;
            }

            .text {
                max-width: none;
            }
        }
    }

    @media (min-width: 768px) and (max-width: 991px) {
        .teaser-white_box {
            .content {
                padding-top: 10px;
                justify-content: center;
            }

            .icon {
                display: none;
            }
        }
    }

    @media (min-width: 540px) and (max-width: 767px) {
        .teaser-white_box {
            padding-bottom: 68.6%;
        }
    }
}
