/* Weiße Box */
main section {
  background-color: var(--main-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Innen- und Außenabstand */
  padding: 30px;
  margin: 30px auto;
  max-width: 1100px;
  line-height: 1.6;
}

#introduction {
  text-align: center;

  background-color: var(--main-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Innen- und Außenabstand */
  padding: 30px;
  margin: 30px auto;
  max-width: 1100px;
  line-height: 1.6;
}

/* Allgemeine Layout-Anpassungen */
h1 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  color: var(--title-color);
}

section h2,
section h3 {
  color: var(--title-color);
  /* margin-top: 15px; */
  margin-bottom: 10px;
}

/* Galerie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.gallery img {
  width: calc(33.333% - 10px);
  /* stellt sicher dass drei Bilder nebeneinander passen */
  max-width: 230px;
  height: auto;
  border-radius: 8px;
  border: 5px solid var(--background-color);
}

.page-home .gallery-link {
  display: block;
  width: fit-content;
  margin-top: 15px;
  margin-left: auto;
  background-color: var(--background-color);
}

#history h3 {
  margin-top: 0;
}

/* Liste unter "Was uns besonders macht" */
main section ul {
  padding-left: 1.25rem;
}

main section li {
  margin: 0.35rem 0;
}

/* Mitarbeiter Portraits */
.team-member {
  display: flex;
  align-items: center;
  padding: 18px;
  margin: 18px 0;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-left: 6px solid var(--accent-color);
}

.team-member img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 50%;
  border: 7px solid var(--background-color);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Social Links */
.social-links {
  list-style-type: none;
  padding: 0;
  margin-top: 15px;
}

.social-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.social-links img {
  width: 27px;
  height: 27px;
  margin-right: 0;
}

/* Links sollen nicht "lila" werden nach dem Besuch */
main a:visited {
  color: inherit;
}

main a.feature-link,
main a.feature-link:visited {
  color: var(--line-color);
}

@media (max-width: 1300px) {
  .gallery {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .gallery {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .gallery {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .gallery img {
    width: 100%;
    max-width: none;
  }

  #history .gallery-link {
    margin-bottom: 20px;
    width: auto;
    text-align: center;
  }

  .team-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .team-member img {
    margin-right: 0;
  }
}