/*
|--------------------------------------------------------------------------
| Athletes - Team Canada Intro
|--------------------------------------------------------------------------
*/

.athletes-intro {
    position: relative;
    padding: 10vh 0;

    background-color: #161616;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        var(--athletes-background-image, none);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #fff;
    text-align: center;
}

.athletes-intro-title {
    margin: 0 0 30px;
    color: #fff;
    font-family: "Exo", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.athletes-team-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
}

.athletes-team-graphic {
    display: block;
    width: 55%;
    max-width: 700px;
    height: auto;
    margin: 40px auto 0;
    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Athletes - Fixed Background
|--------------------------------------------------------------------------
*/

.athletes-section {
    background-color: #161616;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.5)
        ),
        var(--athletes-background-image, none);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .athletes-intro,
    .athletes-section {
        background-attachment: scroll;
    }

    .athletes-intro {
        padding: 60px 0;
    }

    .athletes-team-image {
        max-height: none;
    }

    .athletes-team-graphic {
        width: 100%;
        margin-top: 30px;
    }
}


/*
|--------------------------------------------------------------------------
| Athletes - Profilkarten
|--------------------------------------------------------------------------
*/

.athletes-section .athlete-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding: 30px;

    background-color: #b5dae1;
    border: 2px solid #fff;
    border-radius: 15px;

    color: #222;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Namen
|--------------------------------------------------------------------------
*/

.athletes-section .athlete-name {
    margin: 0 0 20px;

    color: #222;
    font-family: "Exo", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

/*
|--------------------------------------------------------------------------
| Profiltexte
|--------------------------------------------------------------------------
*/

.athletes-section .athlete-profile {
    width: 100%;
    margin-bottom: 25px;

    color: #222;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.athletes-section .athlete-profile p,
.athletes-section .athlete-profile li,
.athletes-section .athlete-profile strong {
    color: #222;
}

.athletes-section .athlete-profile a {
    color: #175b68;
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Bilder
|--------------------------------------------------------------------------
*/

.athletes-section .athlete-image {
    width: 100%;
    min-width: 0;
    margin-top: auto;
    overflow: hidden;
    border-radius: 10px;
}

.athletes-section .athlete-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    transform-origin: center center;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .athletes-section .athlete-card {
        padding: 20px;
    }

    .athletes-section .athlete-name {
        font-size: 23px;
    }

    .athletes-section .athlete-profile {
        font-size: 14px;
    }
}

.athletes-section .athletes-container > h1 {
    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Athletes - Scroll Animation
|--------------------------------------------------------------------------
*/

.athlete-card {
    opacity: 1;
    transform: translateX(0);
}

.athlete-card.athlete-animate {
    opacity: 0;
    transform: translateX(-80px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: opacity, transform;
}

.athlete-card.athlete-animate.athlete-visible {
    opacity: 1;
    transform: translateX(0);
}

/*
|--------------------------------------------------------------------------
| Barrierefreiheit
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .athlete-card.athlete-animate {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}