/* Grundlegende Stile */
body {
  margin: 0;
  background-color: rgb(31, 31, 31);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: wheat;
  font-family: "Saira", sans-serif;
}

header.header {
  text-align: left;
  padding: 40px 20px;
  color: #f5f5f5;
  background-color: rgb(31, 31, 31);
}

header.header h1 {
  font-size: 3em;
  margin: 0;
}

section.full-width-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-text-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
}

.image-text-section .image-container {
  flex: 2;
  position: relative;
}

.image-text-section .image-container img {
  width: 100%;
  height: auto;
  display: block;
  /* Überlagerung mit Gradient für Transparenz */
  mask-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(31, 31, 31, 0)
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(31, 31, 31, 0)
  );
}

.image-text-section.reverse .image-container img {
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
}

.image-text-section .text-container {
  flex: 1;
  padding: 20px;
}

.image-text-section .text-container h2 {
  margin-top: 0;
  font-size: 2em;
}

.image-text-section .text-container p {
  font-size: 1em;
  color: whitesmoke;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .image-text-section {
    flex-direction: column;
  }
  .image-text-section .text-container {
    order: 1;
    width: 100%;
  }
  .image-text-section .image-container {
    order: 2;
    width: 100%;
  }
  .image-text-section.reverse .image-container img {
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Angepasste Kartengröße für mobile Geräte */
  #map {
    height: 300px; /* Kleinere Höhe für mobile Geräte */
  }
}

/* Stile für die Karten-Sektion */
.map-section {
  width: 100%;

  background-color: #f9f9f9;
  text-align: center;
}

.map-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

/* Zusätzlicher Container für die Karte */
.map-container {
  width: 100%;
  margin: 0 auto;
}

/* Angepasste Stile für die Karte */
#map {
  width: 100%;
  height: 50vh;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .image-text-section {
    flex-direction: column;
  }

  .image-text-section.reverse .image-container img {
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Angepasste Kartengröße für mobile Geräte */
  #map {
    height: 300px; /* Kleinere Höhe für mobile Geräte */
  }
}
