body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e1117;
  color: #fff;
  padding: 2rem;
}

/* Menü */
.centered-menu {
  margin-bottom: 2rem;
}

.menu-bar a {
  margin-right: 20px;
  color: #00d1ff;
  text-decoration: none;
}

/* Team-Container */
.team-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #00d1ff;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* Team Card */
.team-card {
  background-color: #1c1f26;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
}

/* Hover Effekte */

.team-card:hover {
  transform: translateY(-8px) scale(1.05);
  background-color: var(--hover-color, #2a2d36); /* Standardfarbe falls keine gesetzt */
  box-shadow: 0 10px 25px rgba(var(--hover-color-rgb, 0, 209, 255), 0.5); /* Box-Shadow Farbe */
}


/* Bild */
.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--border-color, #00d1ff); /* individuelle Farbe */
  transition: all 0.3s ease;
}

/* Name */
.team-card h2 {
  margin: 0.3rem 0 0.2rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

/* Rolle */
.role {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0.2rem 0;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  background: var(--role-color, #00d1ff);
  transition: all 0.3s ease;
  z-index: 1;
}

/* Info-Bereich */
.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2a2d36;
  border-radius: 0 0 1rem 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;

  z-index: 2;

  /* Dynamische Höhe */
  max-height: 50%;        /* max. Höhe der Info-Karte */
  overflow-y: auto;       /* Scroll bei langen Texten */
}

/* Hover: Info rutscht über den Namen */
.team-card:hover .team-info {
  opacity: 1;
  transform: translateY(-20px); /* leicht über dem Namen */
}

.team-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--role-color, #00d1ff); /* benutzt die Rolle-Farbe, Standard #00d1ff */
}


.team-info p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Optional: sanfter Farbwechsel beim Hover der Rolle */
.team-card:hover .role {
  filter: brightness(1.2);
}
.team-row {
  display: flex;
  justify-content: center;
  gap: 25px; /* Abstand zwischen den Karten */
  margin-bottom: 2rem;
}
