/* ===============================
   Grundstyles
=============================== */
body {
  background: linear-gradient(135deg, #1a1a1a, #121212);
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 40px 20px 20px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  color: #ff3f3f;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

/* ===============================
   Navbar
=============================== */
nav {
  background: #1e1e1e;
  border-bottom: 3px solid #ff3f3f;
  box-shadow: 0 2px 8px #ff3f3f88;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: #ff3f3f;
  text-transform: uppercase;
  letter-spacing: 3px;
  user-select: none;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background-color: #ff3f3f;
  color: #121212;
}

/* Hamburger Menü */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #ff3f3f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background: #1e1e1e;
    height: calc(100vh - 60px);
    width: 220px;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 12px #ff3f3f88;
  }
  .nav-links.active {transform: translateX(0);}
  .nav-toggle {display: flex;}
}

/* ===============================
   Gruppenüberschrift
=============================== */
.group-title {
  text-align: center;
  font-size: 1.8rem;
  color: #ff3f3f;
  margin: 40px 0 20px;
  letter-spacing: 1px;
}

/* ===============================
   Team-Liste
=============================== */
.team-list {
  list-style-type: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Zentriert die Mitglieder */
  gap: 15px; /* Abstand zwischen Mitgliedern */
}

.team-list li.team-member {
  padding: 15px 20px;
  background: #1e1e1e;
  border: 2px solid #ff3f3f;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 1 250px; /* max 250px pro Karte */
  text-align: center; /* Inhalt zentrieren */
}

.team-list li.team-member:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px #ff3f3faa;
}

.team-list li strong {
  display: block;
  color: #ff6b6b;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* ===============================
   Profilbilder
=============================== */
.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #ff3f3f;
  margin-bottom: 10px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto; /* zentriert über dem Namen */
}

/* ===============================
   Modal
=============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(18,18,18,0.95);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 10% auto;
  padding: 30px;
  border: 2px solid #ff3f3f;
  border-radius: 12px;
  max-width: 600px;
  color: #eee;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #ff3f3f;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.modal-content h3 {
  margin-top: 0;
  color: #ff6b6b;
}

/* ===============================
   Responsive Anpassungen
=============================== */
@media (max-width: 600px) {
  body {margin: 20px 10px;}
  h2 {font-size: 2rem; margin-bottom: 30px;}
  .team-list li.team-member {padding: 12px 15px; flex: 0 1 90%;}
  .team-list li strong {font-size: 1.1rem;}
  .group-title {font-size: 1.5rem; margin: 30px 0 15px;}
}
