/* ================================================
   team.css
   Wird eingebunden in:
     - index.html        → .team-teaser Sektion
     - pages/team.html   → vollständige Team-Seite
================================================ */


/* -----------------------------------------------
   1. TEAM TEASER — index.html
----------------------------------------------- */

.team-teaser {
  background: var(--bg-secondary);
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.team-teaser-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-teaser-header {
  margin-bottom: 2.2rem;
}

.team-teaser-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

.team-teaser-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.team-teaser-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.team-teaser-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 220px;
}

.team-teaser-card:hover {
  border-color: rgba(0, 188, 212, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 188, 212, 0.1);
}

.teaser-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 188, 212, 0.25);
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}

.team-teaser-card:hover .teaser-avatar,
.team-teaser-card:hover .teaser-avatar-placeholder {
  border-color: var(--accent);
}

.teaser-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0, 188, 212, 0.25);
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1f27, #1e2a38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  transition: border-color 0.3s ease;
}

.teaser-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.teaser-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  color: var(--text-main);
}

.teaser-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* -----------------------------------------------
   2. TEAM PAGE — pages/team.html
----------------------------------------------- */

.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  opacity: 0.5;
}

.team-hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.team-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.15;
  text-align: center;
}

.team-hero h1 span {
  color: var(--accent);
}

.team-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.8rem auto 0;
  box-shadow: 0 0 12px var(--shadow-accent);
}

.team-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(36px);
}

.team-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-card:nth-child(2).visible {
  transition-delay: 0.15s;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 188, 212, 0.35);
  box-shadow: 0 8px 40px rgba(0, 188, 212, 0.12);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 188, 212, 0.3);
  margin-bottom: 1.2rem;
  display: block;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary), #1e2a38);
  border: 2px solid rgba(0, 188, 212, 0.3);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-avatar,
.team-card:hover .team-avatar-placeholder {
  border-color: var(--accent);
  transform: scale(1.04);
}

.team-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  color: var(--text-main);
}

.team-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 188, 212, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 188, 212, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.team-fact {
  background: rgba(0, 188, 212, 0.06);
  border-left: 3px solid var(--accent);
  padding: 0.7rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.team-fact strong {
  color: var(--accent);
  font-weight: 500;
}

.team-divider {
  text-align: center;
  padding: 0 1.5rem 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.team-divider p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.team-divider a {
  color: var(--accent);
  text-decoration: none;
}

.team-divider a:hover {
  text-decoration: underline;
}


/* -----------------------------------------------
   3. RESPONSIVE
----------------------------------------------- */

@media (max-width: 600px) {
  .team-hero h1 {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 4rem;
  }

  .team-teaser-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-teaser-card {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}