/* === SEITENSPEZIFISCH === */

.team-title {
  text-align: center;
  margin-bottom: 2rem;
}

.team-title h2 {
  color: #e63946;
}

.team-hero {
  padding: 0 1rem; /* oben/unten 0, links/rechts 1rem */
  box-sizing: border-box; /* damit Padding korrekt berechnet wird */
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.team-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-section {
  background-color: #f0f0f0;
  padding: 4rem 2rem;
}
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.team-member img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.team-member:hover img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,30,30,0.8);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  padding: 1rem;
  text-align: left;
}
.team-member:hover .team-overlay {
  opacity: 1;
}

.team-overlay h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.team-overlay ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: auto;
  margin-bottom: auto;
}
.team-overlay li {
  font-size: 0.95rem;
}

.team-contact {
  color: #e63946;
  text-decoration: none;
}

.team-contact:hover {
  text-decoration: underline;
}


