/* Grundlegende Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 0; /* Kein zusätzlicher Padding außerhalb */
  text-align: justify; /* Text auf Blocksatz setzen */
}

/* Header und Navigation */
header {
  background-color: #4caf50; /* Grün, freundlich und vertrauenswürdig */
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0; /* Sicherstellen, dass es am linken Rand beginnt */
  width: 100%; /* Über die gesamte Breite */
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Leichter Schatten für modernes Design */
}

nav {
  display: flex;
  justify-content: center; /* Menü zentrieren auf Desktop */
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

.nav-list li {
  margin: 0 15px;
  white-space: nowrap;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #ffeb3b; /* Gelb für einen freundlichen Hover-Effekt */
}

/* Mobile Menü */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  align-self: flex-start; /* Hier wird das Symbol linksbündig ausgerichtet */
}

.menu-toggle .bar {
  background-color: white;
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: 0.3s;
}

/* Dropdown-Menü für mobile Geräte */
.nav-list.active {
  display: block;
  position: absolute;
  top: 60px;
  left: 0;
  background-color: #4caf50;
  width: 100%;
  text-align: left; /* Menü linksbündig auf mobile */
  padding: 20px 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border-top: 1px solid white;
}

.nav-list li {
  margin: 10px 0;
}

.nav-overlay {
  display: none;
}

.nav-overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Anpassung nach Ausrichtung */
@media (orientation: portrait) {
  .nav-list {
    display: none;
    flex-direction: column;
  }

  .nav-list.active {
    text-align: left; /* Links ausrichten */
    padding: 10px 20px;
  }

  h1 {
    font-size: 1.2em; /* Noch kleiner auf mobilen Geräten */
    text-align: left; /* Links ausrichten auf mobilen Geräten */
    line-height: 1.3; /* Lesbarkeit auch bei kleineren Größen */
    margin-top: 10px; /* Abstand nach oben */
  }
}

@media (orientation: landscape) {
  .menu-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
  }

  .nav-list li {
    margin: 0 10px;
  }

  h1 {
    color: #4caf50;
    margin-bottom: 20px;
    font-size: 2.5em; /* Standardgröße für Desktop */
    text-align: center;
    line-height: 1.2; /* Etwas kompakterer Zeilenabstand */
  }
}

/* Hauptinhalt */
main {
  max-width: 1200px;
  margin: 80px auto 0; /* Abstand für fixen Header */
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
  margin-bottom: 40px;
}

h2,
h3 {
  color: #4caf50;
  margin-bottom: 20px;
}

h2 {
  font-size: 2em;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Bilder */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* Button-Stil */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

/* Kontaktformular */
#kontakt {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 10px 20px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  background-color: #4caf50;
  color: #fff;
  border-radius: 8px;
}

footer a {
  color: #ffeb3b;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
}

footer a:hover {
  text-decoration: underline;
}

ul {
  list-style: disc inside;
  margin-bottom: 15px;
  text-align: left; /* Stellt sicher, dass Bulletpoints nicht im Blocksatz sind */
}

ul li {
  margin-bottom: 10px;
}
