/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   OIT Team Grid â Modern Design
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

/* ââ Grid Container ââ */
.oit-team:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.oit-team__grid:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ââ Card ââ */
.oit-team__card:where(:not(#oit-home-host *),[slot],[slot] *){
  position: relative;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.oit-team__card:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  border-color: rgba(255,119,0,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,119,0,0.08);
}

/* ââ Image ââ */
.oit-team__img-wrap:where(:not(#oit-home-host *),[slot],[slot] *){
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0a0a;
}

.oit-team__img:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.oit-team__img img:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.oit-team__card:hover .oit-team__img:where(:not(#oit-home-host *),[slot],[slot] *){
  transform: scale(1.06);
}

.oit-team__img-placeholder:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  color: #333;
}

.oit-team__img-placeholder svg:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 48px;
  height: 48px;
}

/* ââ Hover Overlay ââ */
.oit-team__overlay:where(:not(#oit-home-host *),[slot],[slot] *){
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.oit-team__card:hover .oit-team__overlay:where(:not(#oit-home-host *),[slot],[slot] *){
  opacity: 1;
}

.oit-team__cta:where(:not(#oit-home-host *),[slot],[slot] *){
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FF7700;
  letter-spacing: 0.5px;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.oit-team__card:hover .oit-team__cta:where(:not(#oit-home-host *),[slot],[slot] *){
  transform: translateY(0);
}

.oit-team__cta svg:where(:not(#oit-home-host *),[slot],[slot] *){
  transition: transform 0.2s ease;
}

.oit-team__card:hover .oit-team__cta svg:where(:not(#oit-home-host *),[slot],[slot] *){
  transform: translateX(3px);
}

/* ââ Info ââ */
.oit-team__info:where(:not(#oit-home-host *),[slot],[slot] *){
  padding: 16px 18px 20px;
  text-align: center;
}

.oit-team__name:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f1;
  margin: 0 0 4px;
  line-height: 1.3;
  transition: color 0.2s;
}

.oit-team__card:hover .oit-team__name:where(:not(#oit-home-host *),[slot],[slot] *){
  color: #FF7700;
}

.oit-team__role:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   Responsive
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

@media (max-width: 1200px) {
  .oit-team__grid:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .oit-team__grid:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .oit-team__info:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 12px 14px 16px;
  }

  .oit-team__name:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 0.9rem;
  }

  .oit-team__role:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 0.75rem;
  }

  .oit-team__card:where(:not(#oit-home-host *),[slot],[slot] *){
    border-radius: 12px;
  }

  .oit-team__overlay:where(:not(#oit-home-host *),[slot],[slot] *){
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  }
}

@media (max-width: 480px) {
  .oit-team__grid:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .oit-team__info:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 10px 10px 14px;
  }

  .oit-team__name:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 0.82rem;
  }

  .oit-team__role:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 0.7rem;
  }
}

/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   Einzelseite (bestehendes Design beibehalten)
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.kiboteam-member-page:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 900px;
  margin: 0 auto;
}

.kiboteam-member:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.kiboteam-image-img:where(:not(#oit-home-host *),[slot],[slot] *){
  border-radius: 16px;
  width: 280px;
  height: auto;
}

.team-links:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.team-box-avatar-bar:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-team-link:where(:not(#oit-home-host *),[slot],[slot] *){
  display: none;
}

/* Skill Chart */
.team-skill-chart-wrapper:where(:not(#oit-home-host *),[slot],[slot] *){
  margin: 32px auto 0;
  max-width: 500px;
}

#teamOverviewRadar:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .kiboteam-member:where(:not(#oit-home-host *),[slot],[slot] *){
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .kiboteam-image-img:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 200px;
  }

  .mobile-team-link:where(:not(#oit-home-host *),[slot],[slot] *){
    display: block;
  }
}

/* ââ Legacy classes (Einzelseite / andere Shortcodes) ââ */
.team-name:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 1.4rem;
  font-weight: 700;
  color: #f0f0f1;
  margin: 0 0 4px;
}

.team-position:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 12px;
}
