/* OUR TEAM */

.team-container {
    width: 100%;
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.team-colour {
    position: absolute;

    background: linear-gradient(#101010, var(--primary-accent-colour), #101010);

    width: 100%;
}

.team-background {
    /*background: url("https://cdn.varilx.de/raw/0fZ8u8.mp4") no-repeat;*/

    background-position: center;
    background-size: cover;

    width: 100%;
    height: 100%;

    opacity: 0.85;
}

.team-background::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    display: block;
    background: linear-gradient(#101010, rgba(0, 0, 0, 0.55) 50%, #101010);

}

.team-wrapper {
    padding: 100px 20% 200px 20%;
    overflow: visible;
}

.team-title {
    color: var(--text-colour);

    font-size: 50px;

    text-align: center;


    position: relative;
    z-index: 2;
}

.team-logo {
    position: relative;

    width: 100%;
}

.team-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    z-index: 2;

    margin-top: 50px;
    margin-bottom: 50px;

    height: 100%;
}

.team-card {
    background: var(--primary-colour);

    border: 1px solid var(--secondary-colour);

    padding: 20px;

    width: 100%;

    z-index: inherit;

    transition: all .2s ease;
}

.team-card:hover {
    background-color: var(--secondary-colour);
}

.team-card:hover > .team-card-icon {
    transform: scale(1.1);
}

.team-card:nth-child(1) {
    border-radius: 20px 0 0 20px;
}

.team-card:nth-child(3) {
    border-radius: 0 20px 20px 0;
}

.team-card-icon {
    border-radius: 20px;

    background: var(--primary-accent-colour);

    padding: 5px;
    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin: 0 auto;

    font-weight: 800;

    transition: all .2s ease;
}

.team-card-icon span {
    font-size: 40px;
}

.team-card-text {
    text-align: center;

    padding: 20px 0 0 0;

    color: var(--text-colour);
}

.team-button {
    padding: 15px 25px;

    border-radius: 10px;
    border: 2px solid var(--secondary-accent-colour);

    background: var(--primary-accent-colour);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 150px;
    height: 100%;

    color: var(--text-colour);

    text-decoration: none;
    text-align: center;

    font-weight: 500;

    position: relative;
    z-index: 2;

    transition: all .2s ease;
}

.team-button:hover {

    background: #00ba3638;

    border: 2px solid #00ba3638;
}

@media screen and (max-width: 900px) {

    .team-wrapper {
        padding: 100px 10px 200px 10px;
    }

    .team-cards {
        flex-wrap: wrap;
    }

    .team-card:nth-child(1) {
        border-radius: 20px 20px 0 0;
    }

    .team-card:nth-child(3) {
        border-radius: 0 0 20px 20px;
    }

}



.team-gallery {
    height: 320px;
    background: transparent;
    counter-increment: gallery-cell;
    box-sizing: border-box;
    overflow: visible;
    padding: 0 20px;
}

.team-gallery-card {
    width: 300px;
    height: 320px;
    margin-right: 10px;
    counter-increment: team-gallery-card;

    background: var(--primary-colour);
    border: 1px solid var(--secondary-colour);

    border-radius: 20px;
    box-sizing: border-box;
}

.team-gallery-card:before {
    position: absolute;
    top: 0;
    display: block;
    text-align: center;
    /*content: counter(team-gallery-card);*/
    line-height: 200px;
    font-size: 80px;
    color: white;
    box-sizing: border-box;
}

.team-gallery-card-icon {
    width: 100%;
    height: 200px;

    border-radius: 20px 20px 0 0;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    font-weight: 800;
    transition: all .2s ease;

    overflow: hidden;
}

.team-gallery-card-icon img {
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.team-gallery-card-text {
    padding: 1px 5px;
    height: auto;
    text-align: center;
    font-size: 15px;
    color: var(--text-colour);
}

.team-gallery-card-text:nth-child(3) {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 1px;
    padding-bottom: 2px;
}

.team-gallery-card-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.team-gallery-card-button {
    width: 25px;

    padding: 5px;

    background-color: var(--secondary-colour);
    fill: var(--text-colour);

    border-radius: 5px;
    border: 1px solid var(--tertiary-colour);

    transition: fill .2s ease;
}

.team-gallery-card-button:hover {
    fill: var(--primary-accent-colour);
}

.flickity-button {
    background: #333;
}

.flickity-button:hover {
    background: var(--primary-accent-colour);
}

.flickity-prev-next-button {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

  .flickity-button-icon {
    fill: white;
}

  .flickity-prev-next-button.previous {
    left: -40px;
}
.flickity-prev-next-button.next {
    right: -40px;
}

.flickity-page-dots {
    bottom: -22px;
}

  .flickity-page-dots .dot {
    height: 7px;
    width: 30px;

    margin: 0;
    border-radius: 10px;
    margin: 0 2px;
    background: #fff;
}

.flickity-page-dots .dot.is-selected {
    background: var(--primary-accent-colour);
    border-radius: 10px !important;
}

@media screen and (max-width: 900px) {

    .flickity-page-dots .dot {
        display: none !important;
    }

}