/* =========================
   TEAM PARALLAX SECTION
========================= */

.team-parallax-section {
  position: relative;
  min-height: 50vh;
  background-image: url("/Mediathek/Startseite/lehrerbilder.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* PARALLAX */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  color: white;
}

/* dunkles Overlay */
.team-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.75)
  );
  z-index: 1;
}

/* Content Box */
.team-parallax-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: left;
}

.team-name {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.team-intro {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}

/* Awards */
.team-awards h3 {
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.team-awards ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
}

.team-awards li {
  margin: 0.4rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Social Icons */
.team-socials {
  display: flex;
  justify-content: left;
  gap: 1.6rem;
  margin-bottom: 2.8rem;
}

.team-socials a {
  font-size: 1.3rem;
  color: white;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-socials a:hover {
  transform: translateY(-4px) scale(1.1);
  opacity: 1;
  color: rgba(255,176,0,.95);
}

/* Button */
.team-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.team-btn:hover {
  background: white;
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Mobile Fix (Parallax aus) */
@media (max-width: 900px) {
  .team-parallax-section {
    background-attachment: scroll;
  }

  .team-parallax-content {
    text-align: center;
  }

  .team-socials {
    justify-content: center;
  }
}

/* FadeUp Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   TEAM FADE IN ON SCROLL
========================= */

.team-parallax-section {
  opacity: 0;
  transform: translateY(80px) scale(0.98);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.team-parallax-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Optional: Inhalte leicht verzögert, aber Button ausgenommen */
.team-parallax-content > *:not(.team-btn) {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Gestaffelte Fade-In beim Scroll */
.team-parallax-section.is-visible .team-parallax-content > *:not(.team-btn) {
  opacity: 1;
  transform: translateY(0);
}

.team-parallax-content > *:nth-child(1):not(.team-btn) { transition-delay: 0.15s; }
.team-parallax-content > *:nth-child(2):not(.team-btn) { transition-delay: 0.3s; }
.team-parallax-content > *:nth-child(3):not(.team-btn) { transition-delay: 0.45s; }
.team-parallax-content > *:nth-child(4):not(.team-btn) { transition-delay: 0.6s; }
.team-parallax-content > *:nth-child(5):not(.team-btn) { transition-delay: 0.75s; }

/* Button Hover soll sofort reagieren */
.team-btn {
  transition: all 0.3s ease; /* nur für hover */
}

