.team {
  position: relative;
  width: 90%;
  width: calc(100% - 100px);
  max-width: 1330px;
  margin: 0 auto;
  padding: 6rem 0;
  text-align: center;
  background-color: #fff;
}

.team-nav {
  padding: 20px 0;
}

.team-nav li {
  display: inline-block;
  padding: 5px 10px;
}

.team-nav li::before {
  content: none;
}

.team-nav a {
  color: #d2d3d4;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.team-nav a:hover {
  color: #aaa;
}

.team-nav a.is-checked, .team-nav a.is-checked:hover {
  color: rgb(76,122,114);
}

.team-carousel {
  transform: translateZ(0);
  transform-style: preserve-3d;
  visibility: hidden;
  margin: 0 -.8%;
  text-align: left;
}

.notouch .team-carousel:hover .team-slide {
  opacity: 0.5;
}

.notouch .team-carousel:hover .team-slide:hover,
.notouch .team-carousel:hover input:checked + .team-slide,
.notouch .team-carousel:hover .team-slide.expanded {
  opacity: .99999;
}

.notouch .team-carousel:hover .team-slide:hover img,
.notouch .team-carousel:hover input:checked + .team-slide img,
.notouch .team-carousel:hover .team-slide.expanded img {
  transform: scale(1.05) translateZ(0);
}

.team-carousel .infoView-toggle {
  display: none;
}

.team-carousel label {
  position: relative;
  display: block;
  cursor: pointer;
}

.team-slide {
  display: inline-block;
  vertical-align: top;
  width: 18.4%;
  visibility: visible;
  transition: opacity .7s, transform .3s, margin-bottom .0s ease-in-out .0s;
  margin: 0 .8%;
  margin-bottom: 1.6rem;
}

.team-slide.hide {
  transform: scale(0);
  opacity: 0;
}

input:checked + .team-slide,
.team-slide.expanded {
  margin-bottom: 78vh;
  margin-bottom: calc(75vh + 20px);
}

input:checked + .team-slide > label::after,
.team-slide.expanded > label::after {
  top: auto;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-bottom-color: #f5f5f5;
  border-width: 15px;
  left: 50%;
  margin: -20px 0 0 -15px;
}

.team-slide .rechtsanwalt-infoView {
  visibility: hidden;
  transition: visibility 0s ease-in-out .0s, transform .0s ease-in-out .0s;
  background-color: #f5f5f5;
  position: absolute;
  margin-top: 10px;
  padding: 3rem;
  left: .5%;
  width: 99%;
  height: 75vh;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: center top;
}

input:checked + .team-slide .rechtsanwalt-infoView,
.team-slide.expanded .rechtsanwalt-infoView {
  visibility: visible;
  transition: visibility 0s ease-in-out 0s, transform .5s ease-in-out 0s;
  transform: scaleY(1);
}

input:checked + .team-slide figcaption,
.team-slide.expanded figcaption {
  font-weight: bold;
}

.team-slide .rechtsanwalt-infoView > * {
  opacity: 0;
  transition: opacity 0s ease-in-out 0s;
}

input:checked + .team-slide .rechtsanwalt-infoView > *,
.team-slide.expanded .rechtsanwalt-infoView > *  {
  opacity: 1;
  transition: opacity 0.2s ease-in-out 0.5s;
}

.rechtsanwalt-infoView .contact-nav {
  width: 30%;
  float: left;
  padding-right: 3rem;
  margin-bottom: 2rem;
}

.rechtsanwalt-infoView .contact {
  margin-bottom: 2rem;
}

.information-tabs li::before {
  border-style: solid;
  border-width: 1px 1px 0 0;
  content: '';
  position: absolute;
  height: 9px;
  width: 9px;
  left: 0;
  top: 47%;
  transform: rotate(45deg);
  transform-origin: right top;
}

.rechtsanwalt-infoView a,
.information-tabs li a.selected {
  text-decoration: none;
  font-weight: bold;
  color: rgb(76,122,114);
}

.rechtsanwalt-infoView a:hover {
  text-decoration: underline;
}

.information-tabs li a {
  color: #d2d3d4;
  font-weight: 700;
}



.team-slide .rechtsanwalt-infoView .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4.4rem;
  height: 4.4rem;
  color: transparent;
}

.team-slide .rechtsanwalt-infoView .close::before,
.team-slide .rechtsanwalt-infoView .close::after {
  content: '';
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  height: 1px;
  background: #888;
  transform: rotate(45deg);
}

.notouch .team-slide .rechtsanwalt-infoView .close:hover::before,
.notouch .team-slide .rechtsanwalt-infoView .close:hover::after {
  background: #333;
}

.team-slide .rechtsanwalt-infoView .close::after {
  transform: rotate(-45deg);
}

.information-tabs__tab {
  display: none;
  width: 70%;
  float: left;

}

.information-tabs__tab-open, .information-tabs__tab:target,
.information-tabs__tab-open, .information-tabs__tab.expanded {
  display: block;
}


@media all and (max-width: 900px) { 
  .rechtsanwalt-infoView .contact-nav, .information-tabs__tab { width: 100%; }
}

@media all and (max-width: 1280px) { .team-slide { width: 18.4%; } }
@media all and (max-width: 1024px) { .team-slide { width: 23.4%; } }
@media all and (max-width: 600px) { .team-slide { width: 31.73%; } }
@media all and (max-width: 480px) { .team-slide { width: 48.4%; }
.team-nav li {display:block; padding:4px 10px;}
.team-nav li a {padding:0;}}

.team-carousel figure {
  transition: transform .4s;
  text-align: center;
  transform: scale(1);
}

.team-carousel.swap figure {
  transform: scale(0);
}

.previous {
  left: -45px;
}

.next {
  right: -45px;
}


@media all and (max-width: 380px) {
  .prev-next-button .arrow {
    fill: #fff;
  }

  .previous {
    left: 5px;
  }

  .next {
    right: 5px;
  }

  .team {
    width: 100%;
  }

  .team-carousel {
    margin: 0;
  }
}

.notouch .team .slick-track:hover figure,
.team .slick-track.hover figure {
  opacity: 0.5;
}

.notouch .team .slick-track:hover figure:hover,
.team .slick-track.hover figure.hover {
  opacity: 1;
}

.team-carousel figure {
  position:relative;
}

.team-carousel .team-image-wrapper {
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding-top: 100%;
  position: relative;
}

.team-carousel img {
  display: block;
  justify-content: center;
  align-items: center;

  width: 100%;
  max-width: 100%;

  font-size: 10rem;
  color: white;

  transition: transform .5s;
  transform: scale(1) translateZ(0);
  transform-origin: 50% 20%;

  position: absolute;
  top: -0.5rem;
}

.team-carousel figcaption {
  height: 3em;
}

.team .slick-dots {
  top: 100%;
}

.team .slick-dotted.slick-slider {
  margin-bottom: 50px;
}

.team .slick-dots li button:before {
  border: 1px solid black;
}

.team .slick-dots li.slick-active button:before {
  background: black;
}


