
.speaker-image {
  border-radius: 50%;
  overflow: hidden;
  width: 96px;
  height: 96px;
  display: inline-block;
}

.speaker-image img {
  width: 100%;
  height: auto;
}

.speaker-name {
  font-weight: 600;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 0.25rem;
}

.speaker-title {
  color: var(--portalThemeColor10);
  margin-bottom: 0.5rem;
}

.speaker-content {
  text-align: center;
  margin-bottom: 2rem;
}
.speaker-grid > .modal {
  display: none; /* verhindert, dass sie Grid-Items sind */
}
#speakersContainer {
  width: 100%;
  margin: 0 auto;
}

.speaker-grid {
  display: grid;
  gap: 27px;
  width: 72%;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

/* Tablet */
@media (min-width: 768px) {
  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {

  .speaker-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 1 Speaker → mittig */
  .speaker-grid > .speaker-item:only-child {
    grid-column: 2;
  }

  /* 2 Speaker → links & rechts */
  .speaker-grid > .speaker-item:first-child:nth-last-child(2) {
    grid-column: 1;
  }

  .speaker-grid > .speaker-item:last-child:nth-child(2) {
    grid-column: 3;
  }
}
.speaker-item {
  width: 178px;
}

.speaker-item {
  background: #103d4b;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.speaker-image {
  width: 100%;
  padding-top: 100%; /* quadratisches Bild */
  background-size: cover;
  background-position: center;
}

.view-more-btn {
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 1rem;
  cursor: pointer;
  background: none;
  border: 1px solid var(--portalThemeColor1);
  color: var(--portalThemeColor9);
  cursor: pointer;
  width: 130px;
  height: fit-content;
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  font-weight: 500;
  padding: 10px;
}

.speaker-item.hidden {
  display: none;
}

#toggleSpeakersBtn {
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: 1rem;
  cursor: pointer;
  background: none;
  border: 1px solid var(--portalThemeColor1);
  color: var(--portalThemeColor9);
  cursor: pointer;
  width: 104px;
  height: fit-content;
  border-radius: 4px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  font-weight: 600;
  padding: 9px;
}
