.title-section {
  padding-top: 80px;
  margin: 2rem auto;
}

.section-title {
  text-align: center;
  color: var(--tum-dark);
  margin-bottom: 3rem;
  font-size: 2rem;
}

/* Team grid responsive layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 2rem 1rem 0 1rem;
  box-sizing: border-box;
}

.team-member {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.linkedin-link img {
  width: 28px;
  height: 28px;
  margin-top: 0.5rem;
}

.contact-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 2rem;
  min-width: 220px;
  max-width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-info {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--tum-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: var(--tum-dark);
}

/* Responsive adjustments for mobile */
@media (max-width: 800px) {
  .team-grid {
    gap: 1rem;
    padding: 1rem 0.5rem 0 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .contact-container {
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-member {
    padding: 1rem 0.5rem;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-card {
    width: 95vw;
    min-width: unset;
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .feature-images {
    height: 250px;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .team-member {
    padding: 0.7rem 0.2rem;
  }
}

/* Social links container */
.social-links-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

/* Social link styling */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.social-link:hover {
  transform: scale(1.15);
}

.social-link:focus {
  outline: 3px solid var(--tum-blue);
  outline-offset: 3px;
}

/* Social icon SVG styling */
.social-icon {
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.social-link:hover .social-icon {
  opacity: 0.85;
}

/* Legacy LinkedIn support (for backward compatibility) */
.linkedin-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.linkedin-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.linkedin-link:hover .linkedin-icon {
  transform: scale(1.15);
}

.linkedin-link:focus {
  outline: 3px solid var(--tum-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Team member hover effect */
.team-member {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 101, 189, 0.15);
}

/* Role text styling */
.team-member .role {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Contact button improvements */
.contact-button {
  transition: all 0.3s ease;
}

.contact-button:focus {
  outline: 3px solid var(--tum-blue);
  outline-offset: 3px;
}

.contact-button:active {
  transform: scale(0.98);
}

/* Animation classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.animate-fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

.animate-fade-in:nth-child(5) {
  animation-delay: 0.5s;
}

.animate-fade-in:nth-child(6) {
  animation-delay: 0.6s;
}

.animate-fade-in:nth-child(7) {
  animation-delay: 0.7s;
}

.animate-fade-in:nth-child(8) {
  animation-delay: 0.8s;
}

.animate-fade-in:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Address element styling */
address {
  font-style: normal;
}