/* ===========================
   TEAM (Light / dezenter Salsa)
   ersetzt dein aktuelles Team-CSS
   =========================== */

.team-section{
  padding: 6rem 2rem;
  color: #0b1020;
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(255,59,48,.05), transparent 60%),
    radial-gradient(1100px 700px at 90% 10%, rgba(255,176,0,.05), transparent 62%),
    linear-gradient(180deg, #fbfbfd, #f6f7fb);
  background-repeat: no-repeat;
}

.team-container{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.team-container h2{
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.team-intro{
  max-width: 640px;
  margin: .6rem auto 3rem;
  color: rgba(11,16,32,.70);
}

/* Grid */
.team-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

/* Karte */
.team-card{
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;

  /* Light glass card frame */
  border: 1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.65);
  box-shadow: 0 18px 55px rgba(13,18,40,.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.team-card:hover{
  transform: translateY(-3px);
  border-color: rgba(11,16,32,.16);
  box-shadow: 0 22px 70px rgba(13,18,40,.14);
}

.team-card img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform .6s ease, filter .6s ease;
}

/* weniger aggressiv als vorher */
.team-card:hover img{
  transform: scale(1.06);
  filter: blur(1.2px) brightness(.92);
}

/* Overlay: eleganter, weniger “schwarz” */
.team-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.6rem;
  text-align:center;

  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;

  /* Light-friendly overlay */
  background:
    linear-gradient(to top,
      rgba(11,16,32,.78),
      rgba(11,16,32,.18) 55%,
      rgba(11,16,32,0) 100%);
}

.team-card:hover .team-overlay{
  opacity: 1;
}

.team-overlay h3{
  margin: 0;
  font-size: 1.25rem;
  color: rgba(255,255,255,.95);
  letter-spacing: -0.01em;
}

/* Role: Salsa-Akzent, aber nicht knallig */
.team-overlay span{
  margin-top: .35rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: rgba(255,176,0,.95); /* Mango statt knallrot */
  font-weight: 800;
}

/* Social Icons */
.team-socials{
  display:flex;
  gap: .85rem;
}

.team-socials a{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  text-decoration:none;
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);

  /* “glass chip” */
  background: rgba(255,255,255,.10);
  

  transition: transform .16s ease, background .16s ease, border-color .16s ease, filter .16s ease;
  pointer-events:auto;
}

.team-socials a:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.16);
  filter: brightness(1.03);
}

/* Optional: Wenn du den Hover stärker Salsa-mäßig willst */
.team-socials a:hover{
  background: linear-gradient(135deg, rgba(255,59,48,.35), rgba(255,176,0,.28));
  border-color: rgba(255,255,255,.26);
}

/* 🔥 Modal (hell & clean) */
.team-modal{
  position: fixed;
  inset: 0;
  background: rgba(11,16,32,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 999;
}

.team-modal.active{
  opacity:1;
  pointer-events:auto;
}

/* Modal Card: light glass */
.team-modal-content{
  position: relative;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(11,16,32,.10);
  box-shadow: 0 22px 80px rgba(13,18,40,.20);
  max-width: 560px;
  width: 92%;
  border-radius: 1.8rem;
  padding: 2rem;
  text-align:center;
  animation: pop .28s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.team-modal-content img{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 3px solid rgba(255,59,48,.12);
  box-shadow: 0 12px 30px rgba(13,18,40,.12);
}

.team-modal-content h3{
  margin: .2rem 0 .2rem;
  letter-spacing: -0.02em;
}

.team-modal-content h4{
  margin: 0 0 .9rem;
  color: rgba(11,16,32,.68);
  font-weight: 800;
}

.team-modal-content p{
  margin: 0;
  color: rgba(11,16,32,.78);
  line-height: 1.7;
}

.team-modal-close{
  position:absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  font-size: 1.6rem;
  line-height: 1;
  cursor:pointer;

  color: rgba(11,16,32,.70);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(11,16,32,.12);
  box-shadow: 0 10px 24px rgba(13,18,40,.10);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.team-modal-close:hover{
  transform: translateY(-1px);
  border-color: rgba(11,16,32,.18);
  background: rgba(255,255,255,.92);
}

@keyframes pop{
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .team-card, .team-card img, .team-overlay, .team-socials a, .team-modal, .team-modal-content{
    transition: none !important;
    animation: none !important;
  }
}

.icon{
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

#icon-youtube {
  fill: red;
}