.leistung-wrapper {
  padding: 80px 0;
  background-color: #e1dfdf;
}

.leistung-wrapper:nth-child(even) {
  background: #c8c8c8;
}

.leistung-wrapper:nth-child(even) .leistung-team {
  border-top: 1px solid var(--light-grey);
}

.leistung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--dark-grey);
}

.leistung-team {
  display: flex;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px;
  justify-content: center;
  flex-direction: column;
  border-top: 1px solid var(--grey);
  margin-top: 40px;
}

.leistung-headline {
  display: flex;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  justify-content: center;
}

.leistung-headline h2 {
  display: flex;
  max-width: 1140px;
  margin: 0 auto -40px auto;
  padding: 0 24px;
  justify-content: center;
  position: relative;
  font-size: 70px;
  color: var(--white);
  text-transform: uppercase;
}

.leistung-image img {
  width: 100%;
  height: auto;
}

.leistung-toggle-btn {
  background-color: var(--btn-magenta);
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin: -25px auto 0 auto;
  display: flex;
  z-index: 1111;
  position: relative;
}

.leistung-toggle-btn::after {
  content: "+";
  margin-left: 0.5em;
  font-weight: bold;
}

.leistung-toggle-btn.active::after {
  content: "−"; /* Minus Zeichen */
}

.leistung-col.tarife {
  border-left: 3px solid var(--btn-magenta);
  padding-left: 20px;
}

.leistung-content {
  display: none;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 0 24px;
  margin-top: 40px;
  border-top: 1px solid #f2f2f2;
}

.leistung-content.active {
  display: block;
}

.weitere-leistungen {
  margin-top: 60px;
}

.leistungen-loop {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.leistung-item {
  padding: 10px 15px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-member {
  display: flex;
  gap: 20px;
}

.team-name {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.team-link a {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

.team-link a:hover {
  color: var(--btn-blue);
}

.team-name h4 {
  font-weight: bold;
  margin: 0;
}
.team-position {
  font-size: 14px;
}

.team-image {
  max-width: 180px;
}
.team-image img {
  border-radius: 50% !important;
}

/* Responsive */
@media (max-width: 992px) {
  .leistung-grid {
    grid-template-columns: 1fr;
  }
  /* Reihenfolge ändern */
  .leistung-col.mitte {
    order: -1; /* mittlere Spalte zuerst */
  }

  .leistung-col.beschreibung,
  .leistung-col.tarife {
    order: 0; /* Standard */
  }
  .leistung-headline h2 {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  .leistung-headline h2 {
    font-size: 35px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
