/* card-layout */

.team-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
}

.team-member-box {
  display: flex;
  flex-direction: column;
  width: 32%;
  padding: 60px 35px;
  background-color: #f9edf1;
  box-shadow: 0px 3px 6px #00000029;
  margin-bottom: 2%;
  justify-content: space-between;
  margin-right: 2%;
}
.team-member-box:nth-child(3n) {
  margin-right: 0;
}

/* Nachjustieren der Schriftgröße, da die Standard-H3 zu groß ist an dieser Stelle, also kleiner machen */
#main .team-container .team-member-box h3, #main .contact-box h3 {
  font-size: 1.5rem !important;
  line-height: 2.2rem !important;
  font-weight: 700;
}

/* special case for 2/3 columns */
.av_two_third .team-member-box:nth-child(1) {
  width: 49%;
  margin-right: 2%;
}
.av_two_third .team-member-box:nth-child(2) {
  width: 49%;
  margin-right: 0;
}
/* special case for 1/3 columns */
.av_one_third .team-member-box {
  width: 99%;
  margin-right: 0;
  margin-left: 1%;
}

.team-member-box .tmb__image-and-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member-box img {
  width: 310px;
  height: auto;
  border-radius: 50%;
  max-width: 100%;
}

.team-member-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #910048;
  text-align: center;
  margin: 30px 0 15px 0;
}

.team-member-box .tmb__contact {
  border-top: 1px solid #910048 !important;
}

.team-member-box p {
  font-size: 1rem;
  padding: 15px 0;
  margin: 0;
  color: #3c3c3b;
  text-align: center;
}

.team-member-box p.tmb__position {
  font-size: 1.1rem;
  color: #910048;
}

.team-member-box .tmb__mail,
.team-member-box .tmb__tel {
  border-bottom: 1px solid #910048 !important;
}

.team-member-box p a {
  color: #3c3c3b !important;
}
.team-member-box p a:hover {
  color: #a283de !important;
  text-decoration: underline !important;
}

@media only screen and (max-width: 989px) {
  .team-text-affix-box,
  .team-box {
    width: 100% !important;
    margin: 0 !important;
  }

  .av_two_third .team-member-box:nth-child(1),
  .av_two_third .team-member-box:nth-child(2),
  .av_one_third .team-member-box,
  .team-member-box {
    width: 49% !important;
    margin-right: 2%;
  }
  .team-member-box:nth-child(2n) {
    margin-right: 0 !important;
  }
  .team-member-box:nth-child(3n) {
    margin-right: 2% !important;
  }
}

@media only screen and (max-width: 989px) {
  .av_two_third .team-member-box:nth-child(1),
  .av_two_third .team-member-box:nth-child(2),
  .av_one_third .team-member-box,
  .team-member-box {
    width: 49% !important;
    margin-right: 2%;
  }
}

@media only screen and (max-width: 767px) {
  .team-member-box {
    width: 100% !important;
    margin: 0 0 30px 0 !important;
  }
  .av_two_third .team-member-box:nth-child(1),
  .av_two_third .team-member-box:nth-child(2),
  .av_one_third .team-member-box,
  .team-member-box {
    width: 100% !important;
    margin-right: 0;
  }
}

/* enfold tab-reiter overwrite */
.av-tab-section-container {
  padding: 50px 0 40px 0;
}

.av-tab-section-container .av-tab-section-tab-title-container {
  background: transparent;
  max-width: 100%;
  width: 1310px;
  padding: 0 50px;
  margin: 0 auto;
  text-align: left;
  top: 0;
  z-index: 101;
  overflow: hidden;
}

.av-tab-section-container .av-tab-section-tab-title-container a {
  background: #f0ebfa;
  padding: 0 !important;
  margin-right: 15px;
}

.av-tab-section-container
  .av-tab-section-tab-title-container
  a.av-active-tab-title {
  background: #fff;
  box-shadow: 0px 3px 6px #00000029;
}

.av-tab-section-container
  .av-tab-section-tab-title-container
  a
  .av-outer-tab-title {
  display: block;
  width: 100%;
  height: 100%;
  padding: 30px 15px;
  top: 0;
}

.av-tab-section-container
  .av-tab-section-tab-title-container
  a
  .av-inner-tab-title {
  margin: 0 !important;
  color: #3c3c3b;
  width: auto;
  text-transform: none !important;
}

#main
  .av-tab-section-container
  .av-tab-section-tab-title-container
  a.av-active-tab-title
  .av-inner-tab-title {
  font-weight: 700 !important;
}

.av-tab-section-container
  .av-tab-section-tab-title-container
  a
  .av-tab-arrow-container {
  display: none;
}

.av-tab-section-inner-container .av-layout-tab-inner {
  max-width: 1308px;
  padding: 0 50px 10px 50px;
  margin: 0 auto;
}

.av-tab-section-inner-container .av-layout-tab-inner .container {
  background: #fff;
  box-shadow: 0px 3px 6px #00000029;
}

/* tab-layout */

.team-member-tab-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.tmtb__one-third-column {
  width: 33%;
  padding: 50px 50px 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tmtb__one-third-column img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

#main .tmtb__one-third-column h3 {
  font-size: 1.125rem !important;
  margin: 30px 0 0 0 !important;
}

.tmtb__two-third-column {
  width: 66%;
  padding: 50px 0 50px 50px;
}

#main .tmtb__two-third-column h3 {
  font-size: 2rem !important;
  margin-bottom: 45px !important;
}

#main .tmtb__two-third-column p {
  font-size: 1.125rem !important;
  padding: 20px 30px !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-top: 1px solid #910048;
}
#main .tmtb__two-third-column a {
  font-size: 1.125rem !important;
  line-height: 1 !important;
}

.tmtb__two-third-column p:last-child {
  border-bottom: 1px solid #910048;
}

@media only screen and (max-width: 989px) {
  .av-tab-section-container .av-tab-section-tab-title-container {
    display: flex;
    flex-direction: column;
    padding: 0 50px;
    min-width: auto !important;
    left: 0 !important;
  }

  .av-tab-section-container .av-tab-section-tab-title-container a {
    margin-bottom: 10px;
    box-shadow: 0px 3px 6px #00000029;
  }

  .team-member-tab-box {
    flex-direction: column;
  }
  .tmtb__one-third-column {
    width: 100%;
    padding: 30px 30px 0 30px;
  }
  .tmtb__two-third-column {
    width: 100%;
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .tmtb__one-third-column img {
    max-width: 250px;
    height: auto;
  }
  #main .tmtb__two-third-column p,
  #main .tmtb__two-third-column h3 {
    text-align: center !important;
    width: 100%;
    word-break: break-word;
  }

  .av-tab-section-container .flex_column_table {
    display: flex !important;
    flex-direction: column;
  }

  .av-tab-section-container .flex_column {
    width: 100% !important;
  }
}

@media only screen and (max-width: 767px) {
  .av-tab-section-container .av-tab-section-tab-title-container {
    width: calc(85% + 10px);
    max-width: calc(85% + 10px);
    padding: 0 5px;
  }

  .av-tab-section-container .av-tab-section-tab-title-container a {
    margin-right: 0;
  }

  .av-tab-section-inner-container .av-layout-tab-inner {
    padding: 0 0 10px 0 !important;
  }
}

.background-light-orange {
  background-color: #fff5e9 !important;
}
