body {
  margin: 0;
  font-family: Arial, sans-serif;
}

nav {
  position: sticky;
  top: 0;
  background-color: #AAF49C;
  padding: 1em;
  display: flex;
  justify-content: center;
  gap: 2em;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.hero {
  background-image: url("Hintergrund.jpeg");
  background-size: cover;
  background-position: center;
  height: 400px;
position: relative;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 3em;
  margin: 0.2em;
}

.hero-text p {
  font-size: 1.5em;
  margin: 0;
}

.welcome {
  background-color: #AAF49C;
  padding: 3em 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
}

.welcome h2 {
  width: 100%;
  text-align: center;
  margin-left: 8em; /* weiter rechts – ggf. anpassen */
  color: #006400;
  font-size: 2em;
}

.welcome h3 {
  width: 100%;
  text-align: center;
  color: #006400;
  font-size: 30px;
}

.welcome img {
  max-width: 300px;
  border-radius: 15px;
}

.welcome .text {
  max-width: 600px;
  text-align: center;
    font-size: 1.5em;
}

.welcome a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

.zwischen {
  background-color: #AAF49C;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;

}

.zwischen h3 {
  width: 100%;
  text-align: center;
  color: #006400;
  font-size: 30px;
}

.zwischen p {
  text-align: left;
  font-size: 25px;
    margin: 0em 2em 2em 1em;
}
.zwischen ul {
  font-size: 25px;
    margin: 0em 2em;
}

.welcome2 {
  background-color: #AAF49C;
  padding: 3em 1em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.welcome2 h2 {
  width: 100%;
  text-align: center;
  color: #006400;
  font-size: 2em;
}

.welcome2 img {
  max-width: 300px;
  border-radius: 15px;
}

.welcome2 .text {
  max-width: 500px;
}

.angebot-boxen {
  display: flex;
  flex-wrap: wrap; /* Ermöglicht das Umfließen der Boxen */
  justify-content: space-between; /* Sorgt dafür, dass die Boxen gleichmäßig verteilt sind */
  gap: 1em; /* Abstand zwischen den Boxen */
  padding: 1em;
  background-color: #AAF49C;
}

.angebot-box {
  flex: 1 1 30%; /* Jede Box nimmt mindestens 30% der Breite ein */
  max-width: 33.33%; /* Maximal 33.33% der Breite, sodass 3 Boxen nebeneinander passen */
  background-color: #6CBF5D;
  border: 2px solid #6CBF5D;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Verhindert, dass Padding die Gesamtbreite der Boxen überschreitet */
}

.angebot-box h3 {
  color: white;
  font-size: 1.5em;
  margin-bottom: 0.8em;
  text-align: center;
}

.angebot-box ul {
  list-style-type: none;
  padding-left: 0;
}

.angebot-box li {
  margin: 0.5em 0;
  padding-left: 1em;
  position: relative;
  font-size: 1.05em;
}

.angebot-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #AAF49C;
  font-weight: bold;
}

.angebot-liste {
  list-style-type: none;
  padding-left: 0;
  font-size: 1.2em;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.angebot-liste li::before {
  content: "✓ ";
  color: #006400;
  font-weight: bold;
}

.cta {
  background-color: #6CBF5D; /* dezenter Hintergrund */
  /*padding: 3rem 1.5rem;*/
  text-align: center;
  border-top: 2px solid #ccc;
}

.cta h2 {
  font-size: 1.3rem;
  color: #AAF49C;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  background-color: #6CBF5D;
}

.cta-button {
  margin-top: 1.5rem;
  background-color: #336699;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem; /*rand nach oben und zur Seite*/
  border-radius: 5px; /*macht die Buttons runder*/
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #25496b;
}

.footer {
  background-color: #6CBF5D;
  color: white;
  padding: 2em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.footer a {
  color: white;
  text-decoration: underline;
}

main {
  padding: 2em;
}

/* Für Bildschirme mit maximal 768px Breite (typisch für Smartphones) */
@media (max-width: 700px) {
  .hero-text h1 {
  font-size: 2em;
}

  .hero-text p {
    font-size: 1em;
  }

    .welcome h2 {
    text-align: left !important;
    padding-left: 1em;
    font-size: 1.8em;
    margin-left: 0;
  }
  .angebot-box {
    flex: 1 1 100%; /* Auf kleinen Bildschirmen die Boxen untereinander anzeigen */
    max-width: 100%;
  }
}
}
