/*---------------------------------------
  ABOUT SECTION (Team + Unternehmen + Standorte)
-----------------------------------------*/
.about {
  background: var(--section-bg-color);
  position: relative;
}

.about .section-title {
  margin-bottom: 24px;
}

/* Toggle Tabs */
.about-tabs {
  display: inline-flex;
  border: 2px solid var(--navbar-bg-color);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 40px;
}

.about-tab {
  width: 160px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--p-color);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  text-align: center;
}

.about-tab.active {
  background: var(--navbar-bg-color);
  color: var(--white-color);
}

.about-tab:hover:not(.active) {
  background: rgba(30, 30, 30, 0.08);
}

/* Panels */
.about-panel {
  display: none;
}

.about-panel.active {
  display: block;
}

/* ===== Team Grid ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
  text-align: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.team-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--p-color);
  margin-bottom: 1px;
}

.team-card-role {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.team-card-links {
  display: flex;
  gap: 12px;
}

.team-card-link {
  font-size: 16px;
  color: var(--p-color);
  transition: color 0.2s ease;
}

.team-card-link:hover {
  color: var(--primary-color);
}

/* ===== Unternehmen / Merger Puzzle ===== */
.merger-puzzle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}

.merger-piece {
  position: relative;
  flex: 1;
  max-width: 50%;
  aspect-ratio: 300 / 160;
  display: block;
  text-decoration: none;
}

.merger-piece svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.merger-piece-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
}

.merger-piece-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.merger-piece-title i {
  margin-right: 4px;
}

.merger-piece-title.merger-red {
  color:var(--primary-color);
}

.merger-piece-title.merger-yellow {
  color: var(--highlight-icon-color);
}

.merger-piece-sub {
  font-size: 16px;
  color: var(--p-color);
  line-height: 1.3;
}

.merger-piece-left {
  margin-right: -15px;
}

.merger-piece-right {
  margin-left: -15px;
}

/* ===== Standorte ===== */
.location-box {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 280px;
  background-size: cover;
  background-position: center;
}

.location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.location-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 8px;
}

.location-address {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .merger-piece-title {
    font-size: 18px;
  }
  .about-tab {
    width: 130px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
  }
  .team-card-img {
    width: 100px;
    height: 100px;
  }
  .merger-puzzle {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .merger-piece {
    min-width: 250px;
    max-width: 250px;
  }
  .location-box {
    height: 200px;
  }
  .location-title {
    font-size: 22px;
  }
  .about-tab {
    width: 100px;
    font-size: 13px;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .about-tab {
    flex: 1;
    width: auto;
    min-width: max-content;
    font-size: 12px;
    padding: 6px 8px;
  }
}
