/* Modal für große Portraitbilder */
#image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
#image-modal.active {
  display: flex;
}
#image-modal .modal-backdrop {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}
#image-modal .modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
#image-modal img {
  max-width: 70vw;
  max-height: 70vh;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
#image-modal .modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #6a1b9a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.5em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
#image-modal .modal-close:hover {
  background: #003399;
}
/* Vorstand/Team Seite - basiert auf Card-Layout der anderen Seiten */

.team-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  padding: 32px 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.team-section h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #6a1b9a;
  letter-spacing: 0.5px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.team-card {
  background: #fafaff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 20px 16px 16px 16px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.team-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
}

.team-title {
  font-weight: bold;
  color: #003399;
  margin: 0 0 4px 0;
  font-size: 1.08em;
}

.team-name {
  margin: 0 0 8px 0;
  color: #222;
  font-size: 1em;
}

.team-group-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 0 auto 24px auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

@media (max-width: 900px) {
  .team-grid {
    gap: 16px;
  }
  .team-card {
    width: 45vw;
    min-width: 160px;
    max-width: 240px;
  }
}
@media (max-width: 600px) {
  .team-section {
    padding: 14px 2vw;
  }
  .team-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .team-group-image {
    max-width: 100%;
  }
}
