/*************/
/* GSAP Team */
/*************/


.team-box {
  width: 50%;
  float: left;
  cursor: pointer;
  padding-right: 50px;
  padding-left: 50px;
  margin-bottom: 50px;
}

/*.team-box.active {
  width: 100%;
}*/

.team-box.active > .frame-inner {
  width: 100%;
}

.team-box.active > .frame-inner > .no-container > .row > .col-nr-1.col-12  {

}

.team-box > .frame-inner > .no-container > .row > .col-nr-1.col-12 {
  position: relative;
}

.team-box.active {
  position: relative;;
}

.team-box.active:after {
  position: absolute;
  top: 0;
  right: 30px;
  content: '×';
  color: #AFAFAF;
  font-size: 64px;
  font-family: var(--ff-sec);
  animation: flyIn 2s ease-out forwards;
}

@keyframes flyIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*.team-box:nth-child(odd) {
  padding-right: 50px;
  padding-left: 0;
}

.team-box:nth-child(even) {
  padding-right: 0;
  padding-left: 50px;
}

.team-box.active:nth-child(even) {
  padding-right: 50px;
  padding-left: 0;
}*/

.team-box .team-image {
  max-width: 100%;
  width: 560px;
}

.team-box .team-image img {
  border-radius: 25px;
  aspect-ratio: 7 / 8;
  object-fit: cover;
}

.team-box.active .team-image {
  /*width: calc(50% - 25px);*/
  /*grid-row: 1 / span 3;*/
}

.team-contact {
  width: 50%;
}

.team-contact h3 {
  /*line-height: 110%;*/
}

/*.team-box.active .team-contact {
  inline-size: min-content;
}*/

.team-member-content {
  max-width: 40%;
  display: inline-block;
}

.team-member-content p {
  /*font-size: 0.8vw;*/
  font-size: 22px;
  line-height: 1.25em;
}

.team-box a {
  color: var(--clr-default);
  text-decoration: none;
}

.team-some {
  width: 40%;
  border-top: 1px solid #fff;
  padding-top: 10px;
}

.team-some.people-some-links a:nth-of-type(1) span:before {
  width: 30.62px;
  height: 35px;
}

/*.team-contact {
  transition: all .3s;
}*/

.team-box:not(.active) .team-contact:hover h3:after,
.team-box:not(.active) .team-image:hover ~ .team-contact h3:after {
    position: absolute;
    left: calc(100% - 60px);
    /*right: 76px;*/
    content: "";
    background-image: url(/typo3conf/ext/t3master/Resources/Public/Icons/team-pfeil.svg);
    background-repeat: no-repeat;
    width: 26px;
    height: 20px;
    margin-left: auto;
    background-size: 26px 20px;
    animation: fadeInArrow .3s forwards;
}

@keyframes fadeInArrow {
  from {opacity: 0;}
  to {opacity: 1;}
}





/* Media Query - Min Width */

@media screen and (min-width: 2000px) {

  .team-box {
    padding-left: 120px;
  }

  .team-member-content p {
    /*font-size: 0.8vw;*/
    font-size: 20px;
    line-height: 1.15em;
  }

}

@media screen and (min-width: 1500px) {

  .team-contact:hover h3:after,
  .team-image:hover ~ .team-contact h3:after {
      position: absolute;
      left: calc(100% - 110px);
  }

}



/* Media Query - Max Height */

@media screen and (max-height: 960px) {


}



@media screen and (max-height: 860px) {


}



/* Media Query - Max Width */


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

  .team-box {
    padding-left: 100px;
  }

  .team-member-content p {
    /*font-size: 1.2vw;*/
    font-size: 18px;
  }

}


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

  .team-box {
    padding-left: 50px;
  }

}


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


}


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

  .team-member-content p {
    /*font-size: 1.4vw;*/
    font-size: 16px;
  }

}



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


}



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

  .team-box.active > .frame-inner,
  .team-box.active > .frame-inner > .no-container,
  .team-box.active > .frame-inner > .no-container > .row,
  .team-box.active > .frame-inner > .no-container > .row > .col-nr-1.col-12  {
    height: 100%;
  }

  .team-box {
    width: 100%;
    float: none;
    cursor: pointer;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 50px;
  }

  .team-box.active:after {
    position: absolute;
    top: 0;
    right: 30px;
    content: '×';
    color: #AFAFAF;
    font-size: 52px;
    font-family: var(--ff-sec);
  }

  .team-contact {
    width: 100%;
  }

  .team-contact h3:after,
  .team-contact:hover h3:after,
  .team-image:hover ~ .team-contact h3:after {
      position: absolute;
      right: 20px;
      content: "";
      background-image: url(/typo3conf/ext/t3master/Resources/Public/Icons/team-pfeil.svg);
      background-repeat: no-repeat;
      width: 26px;
      height: 20px;
      margin-left: auto;
      background-size: 26px 20px;
      animation: unset;
      animation: fadeInArrowMobile 1s forwards;
  }

  .team-box.active .team-contact h3:after {
      opacity: 0;
      display: none;
      animation: fadeOutArrowMobile .6s forwards;
  }

  @keyframes fadeInArrowMobile {
    0% {opacity: 0;}
    75% {opacity: 0;}
    100% {opacity: 1;}
  }

  @keyframes fadeOutArrowMobile {
    0% {opacity: 1;}
    100% {opacity: 0;}
  }

  .team-box .team-image {
    max-width: 100%;
    width: 100%;
  }

  .team-member-content {
    max-width: 100%;
  }

  .team-member-content p {
    /*font-size: 3.4vw;*/
    font-size: 17px;
    max-width: 95%;
  }

  .team-some {
    width: 100%;
    border-top: 1px solid #fff;
    padding-top: 10px;
  }

}



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

}



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


}