#team{
    padding-top: 150px;
    justify-content: center;
    text-align: center;
}
.team{
    display: flex;
    justify-content: center;
    text-align: center;
}

.teamdelta{
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.p_aufgaben{
    font-size: 17.5px;
    margin-left: 6px;
    margin-right: 6px;
    text-align: justify;
}

.flip-card {
    background-color: transparent;
    width:390px;
    height: 554px;
    perspective: 554px;
    font-family: sans-serif;
    margin: 20px;
}

.title{
    font-size: 1.5em;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back{
    box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 5px solid #792020;
    border-radius: 1rem;
}

#flip-card-front1{
    justify-content: end;
    background-image: url("img/Johannes.png");
    background-size: 150%;
    background-position-x: center;
    background-repeat: no-repeat;  
    background-color: white;
}

#flip-card-front2{
    justify-content: end;
    background-image: url("img/Timo.png");
    background-size: 160%;
    background-position-x: center;
    background-repeat: no-repeat;
    background-color: white;
}

#flip-card-front3{
    justify-content: end;
    background-image: url("img/Jakob.png");
    background-size: 150%;
    background-position-x: center;
    background-repeat: no-repeat;
    background-color: white;
}

#flip-card-front4{
    justify-content: end;
    background-image: url("img/Henrik.png");
    background-size: 130%;
    background-position-x: center;
    background-repeat: no-repeat;
    background-color: white; 
}

.member_data{
    background-color: #792020;
    border-radius: 50px 50px 0px 0px;
}

.member_data h2{
    color: white;
}



.flip-card-back {
    justify-content: center;
    background-color: rgb(255, 255, 255); 
    transform: rotateY(180deg);
}





@media(max-width: 1751px){
    .team{
        display: grid;
        grid-template-columns: 2fr 2fr;
        justify-content: center;
        text-align: center;   
        margin-left: 25%;
        margin-right: 25%;     
    }    
}

@media(max-width: 1201px){
    .team{
        display: grid;
        grid-template-columns: 2fr;
        justify-content: center;
        text-align: center;   
    }    
}