/* === TEAM PAGE === */

.team-page {
  background: #0f141b;
  color: #e7ecf3;
  min-height: 100vh;
}

/* HERO */
.team-hero-simple {
  padding: 8.5rem 1.5rem 3.5rem;
  background:
    linear-gradient(180deg, rgba(11, 17, 24, 0.94), rgba(15, 20, 27, 0.98)),
    radial-gradient(circle at top, rgba(230, 57, 70, 0.12), transparent 40%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.team-hero-simple__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.team-hero-simple__inner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  color: #ffffff;
}

.team-hero-simple__inner p {
  margin: 0 auto;
  max-width: 760px;
  color: #aeb8c6;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* GRUPPEN */
.team-group {
  padding: 4rem 1.5rem;
}

.team-group--highlight {
  padding-top: 4.5rem;
}

.team-group-head {
  max-width: 1100px;
  text-align: center;
  margin: 0 auto 1.75rem;
}

.team-group-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #e63946;
}

.team-group-head p {
  margin-left: auto;
  margin-right: auto;
  color: #aeb8c6;
  line-height: 1.7;
  max-width: 760px;
}

/* GRID */
.team-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-container--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* CARD */
.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #131a22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 440px;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  border-color: rgba(230, 57, 70, 0.25);
}

.team-member img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.team-member:hover img {
  transform: scale(1.04);
  filter: brightness(0.72);
}

/* FEATURED / LEAD */
.team-member--featured,
.team-member--lead {
  min-height: 520px;
}

.team-member--featured img,
.team-member--lead img {
  min-height: 520px;
}

.team-member--lead {
  border-color: rgba(230, 57, 70, 0.22);
}

/* OVERLAY */
.team-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 18, 0.12) 0%, rgba(9, 13, 18, 0.82) 48%, rgba(9, 13, 18, 0.94) 100%);
  color: #eef2f7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.3rem;
  text-align: left;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.25s ease;
}

.team-member:hover .team-overlay {
  background:
    linear-gradient(180deg, rgba(9, 13, 18, 0.08) 0%, rgba(9, 13, 18, 0.78) 42%, rgba(9, 13, 18, 0.95) 100%);
}

.team-overlay h4 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.team-role {
  margin: 0 0 0.8rem;
  color: #e63946;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
}

.team-overlay ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

.team-overlay li {
  font-size: 0.95rem;
  color: #dbe3ee;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

/* LINKS */
.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.25rem;
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e63946;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.2s ease;
}

.team-contact:hover {
  color: #ff6b75;
  text-decoration: none;
  transform: translateY(-1px);
}

/* OPTIONAL: ALTE KLASSEN KOMPATIBEL LASSEN */
.team-title {
  text-align: center;
  margin-bottom: 2rem;
}

.team-title h2 {
  color: #e63946;
}

.team-hero {
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #0f141b;
}

.team-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.82);
}

.team-section {
  background: #0f141b;
  padding: 4rem 2rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .team-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-container--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .team-hero-simple {
    padding: 7.5rem 1rem 3rem;
  }

  .team-group {
    padding: 3rem 1rem;
  }

  .team-container {
    grid-template-columns: 1fr;
  }

  .team-member,
  .team-member img,
  .team-member--featured,
  .team-member--featured img,
  .team-member--lead,
  .team-member--lead img {
    min-height: 420px;
  }

  .team-overlay {
    padding: 1rem;
  }

  .team-overlay h4 {
    font-size: 1.15rem;
  }

  .team-role,
  .team-overlay li,
  .team-contact {
    font-size: 0.92rem;
  }
}