/**
 * Funfact
 */

.funfact-area {
    position: relative;

    .funfact-areashape {
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;

        img {
            width: 100%;
        }
    }
}

.tm-funfact {
    display: flex;
    justify-content: center;
    margin-top: -8px;
    margin-bottom: -8px;

    &-icon {
        margin-right: 15px;
        font-size: 50px;
        color: #ffffff;
        margin-top: 2px;
    }

    &-content {
        .odometer {
            color: #ffffff;
            margin-bottom: 5px;
            font-weight: 700;
            font-size: $fz-heading-2;
            line-height: $lh-heading-2;
        }

        h5 {
            color: #ffffff;
            margin-bottom: 0;
            font-weight: 500;
        }
    }

    @media #{$layout-notebook}{
        &-content{
            h5{
                font-size: 16px;
            }
        }
    }

    @media #{$layout-tablet} {
        .tm-funfact {
            &-content {
                .odometer {
                    font-size: $fz-heading-2 - 4;
                    line-height: $lh-heading-2 - 4;
                }
            }
        }
    }

    @media #{$layout-mobile-lg} {
        .tm-funfact {
            &-content {
                .odometer {
                    font-size: $fz-heading-2 - 6;
                    line-height: $lh-heading-2 - 6;
                }
            }
        }
    }

    @media #{$layout-mobile-sm} {
        justify-content: flex-start;
    }

    @media #{$layout-mobile-xs} {
        margin-left: 0;
    }
}
.tm-funfact2 {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    .tm-funfact-icon {
        margin: 0;
        height: 75px;
        width: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        border-radius: 50%;
        flex: none;
        padding: 10px;
    }
    .tm-funfact-content .odometer {
        color: $color-heading;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2em;
        margin-bottom: 0;
    }
    h5 {
        color: $color-body;
        margin-bottom: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.2em;
    }
}
/* Funfact 2 */
.funfact-headline {
    margin-top: -7px;

    h4 {
        color: #ffffff;
        margin-bottom: 0;
        font-weight: 400;
    }

    h2 {
        font-size: 40px;
        color: #ffffff;
        font-weight: 700;
        margin-bottom: 0;

        span {
            color: $color-theme;
        }
    }
    &.tm-type1 {
        margin-bottom: 60px;
    }
}

@media #{$layout-notebook} {
    .funfact-wrapper {
        margin-top: 0;

        .tm-funfact {
            justify-content: flex-start;
        }
    }
}

@media #{$layout-tablet} {
    .funfact-headline {
        h2 {
            font-size: 34px;
            line-height: 34px;
        }
    }

    .funfact-wrapper {
        margin-top: 0;

        .tm-funfact {
            justify-content: flex-start;
        }
    }
}

@media #{$layout-mobile-lg} {
    .funfact-headline {
        h2 {
            font-size: 30px;
            line-height: 30px;
        }
    }

    .funfact-wrapper {
        margin-top: 0;

        .tm-funfact {
            justify-content: flex-start;
        }
    }
}