/* ============================================
   contribYOUte — Team Page Styles
   Depends on: style-v3.css (base styles, variables, nav, footer)
   ============================================ */


/* ============================================
   Team Hero / Page Header
   ============================================ */

.team-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 36, 32, 0.65) 0%,
    rgba(0, 85, 80, 0.75) 100%
  );
}

.team-hero-content {
  position: relative;
  z-index: 2;
}

.team-hero-headline {
  font-family: var(--v3-font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--v3-white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.team-hero-subline {
  font-family: var(--v3-font-sans);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
}


/* ============================================
   Team Section
   ============================================ */

.team-section {
  background: var(--v3-bg-creme);
  padding: var(--v3-section-py) 0;
}


/* ============================================
   Group Labels (Abteilungs-Gruppierung)
   ============================================ */

.team-group {
  margin-bottom: 32px;
  margin-top: 64px;
}

.team-group:first-of-type {
  margin-top: 0;
}

.team-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-group-line {
  width: 40px;
  height: 2px;
  background: var(--v3-secondary);
  flex-shrink: 0;
}

.team-group-text {
  font-family: var(--v3-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--v3-secondary);
}


/* ============================================
   Team Grid
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}


/* ============================================
   Team Card
   ============================================ */

.team-card {
  background: var(--v3-white);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.4s var(--v3-ease-expo),
    box-shadow 0.4s var(--v3-ease-expo);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: default;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 85, 80, 0.12);
}

.team-card:focus-visible {
  outline: 3px solid var(--v3-secondary);
  outline-offset: 2px;
}


/* Photo */

.team-card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.team-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--v3-ease-expo);
}

.team-card:hover .team-card-photo {
  transform: scale(1.04);
}


/* Body */

.team-card-body {
  padding: 24px 20px 20px;
}

.team-card-name {
  font-family: var(--v3-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--v3-primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.team-card-position {
  font-family: var(--v3-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v3-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.team-card-bio {
  font-family: var(--v3-font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--v3-text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Social Links */

.team-card-social {
  display: flex;
  gap: 10px;
}

.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--v3-secondary);
  color: var(--v3-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    background 0.25s var(--v3-ease-expo),
    color 0.25s var(--v3-ease-expo),
    border-color 0.25s var(--v3-ease-expo);
}

.team-social-link:hover,
.team-social-link:focus-visible {
  background: var(--v3-primary);
  border-color: var(--v3-primary);
  color: var(--v3-white);
}


/* ============================================
   CTA Band
   ============================================ */

.team-cta {
  background: var(--v3-primary);
  padding: 80px 0;
}

.team-cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.team-cta-headline {
  font-family: var(--v3-font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--v3-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.team-cta-body {
  font-family: var(--v3-font-sans);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.team-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--v3-secondary);
  color: var(--v3-white);
  font-family: var(--v3-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s var(--v3-ease-expo),
    transform 0.3s var(--v3-ease-expo);
}

.team-cta-btn:hover {
  background: var(--v3-secondary-dim);
  transform: translateY(-2px);
}

.team-cta-btn:focus-visible {
  outline: 3px solid var(--v3-white);
  outline-offset: 3px;
}


/* ============================================
   Mobile active link highlight
   ============================================ */

.v3-mobile-active {
  color: var(--v3-secondary) !important;
  font-weight: 600;
}


/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet: narrower gaps */
@media (max-width: 1199px) {
  .team-grid {
    gap: 28px;
  }
}

/* Small Tablet: 2 columns */
@media (max-width: 767px) {
  .team-hero {
    min-height: 340px;
    padding: 100px 0 48px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 340px));
    gap: 20px;
  }

  .team-card-body {
    padding: 18px 16px 16px;
  }

  .team-card-name {
    font-size: 1.15rem;
  }

  .team-card-bio {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

  .team-group {
    margin-top: 48px;
    margin-bottom: 24px;
  }

  .team-cta {
    padding: 60px 0;
  }
}

/* Mobile: 1 column */
@media (max-width: 479px) {
  .team-hero {
    min-height: 280px;
    padding: 90px 0 36px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
    gap: 20px;
  }

  .team-card-bio {
    -webkit-line-clamp: 4;
  }

  .team-cta-headline {
    font-size: 1.6rem;
  }
}

/* Desktop wide: ensure proper sizing */
@media (min-width: 1200px) {
  .team-grid {
    gap: 32px;
  }
}
