body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e1117;
  color: #fff;
  padding: 2rem;
  display: block;
}

/* Menü */
.centered-menu {
  margin-bottom: 2rem;
}

.menu-bar a {
  margin-right: 20px;
  color: #00d1ff;
  text-decoration: none;
}

/* Team-Container */
.team-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #00d1ff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

/* Team Card */
.team-card {
  height: 300px;
  background-color: #1c1f26;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 250px; /* Ausgangshöhe */
}

/* Hover Effekte */
.team-card:hover {
  transform: scale(1.05);
  background-color: #2a2d36;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.6);
  height: 500px; /* Höhe bleibt gleich */
}


/* Bild */
.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Name */
.team-card h2 {
  margin: 0.5rem 0 0.3rem;
}

/* Rolle */
.role {
  color: #00d1ff;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0;
}

.team-info {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 0.5s ease, max-height 0.5s ease;
position: absolute;
bottom: 1; /* Der Info-Bereich bleibt am unteren Rand */
width: 100%;
height: 150px; /* Feste Höhe für den Info-Bereich */
background-color: #2a2d36;
border-radius: 0 0 1rem 1rem;
padding-top: 1rem;
box-sizing: border-box;
z-index: 1;

  /* NEU: für zentrierte Anordnung */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertikal zentrieren */
  align-items: center;     /* Horizontal zentrieren */
  text-align: center;      /* Text in der Mitte */
  
  padding-left: -100px;
  padding-right: 50px;
  padding-bottom: 10px;
  padding-top: -10px;

}

/* Beim Hover wird Info sichtbar */
.team-card:hover .team-info {
  opacity: 1;
  margin-top: 1rem;
  max-height: 200px;
}

/* Optional schönerer Info Text */
.team-info h3 {
  margin-top: 0;
  color: #00d1ff;
}

.team-info p {
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
}

