/* Grundlayout */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  background-color: rgb(245, 238, 222);
  color: rgb(80, 58, 35);
  font-family: "Alan Sans", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
      font-size: 2rem; /* entspricht 32px */
    }

    h2 {
      font-size: 1.5rem; /* 24px */
    }

    h3 {
      font-size: 1.25rem; /* 20px */
    }

    p, li, a {
      font-size: 1rem; /* 16px */
    }

    nav a {
      text-decoration: none;
      margin-right: 15px;
      font-size: 1rem; /* gleiche Größe */
    }

    header img {
      max-width: 100%;
      height: auto;
    }

    main {
      padding: 20px;
    }

    footer {
      padding: 15px;
      text-align: center;
      font-size: 0.9rem;
    }



/* Kopfbereich */
header {
  text-align: center;
  padding: 20px;
}

header img {
  width: 16%;
  max-width: 200px; /* Begrenzung auf kleineren Geräten */
  height: auto;
}

/* Navigation */
nav {
  background-color: rgba(80, 58, 35, 0.1);
  padding: 10px;
  text-align: center;
  display: flex;
  flex-wrap: wrap; /* Damit Links umbrechen können */
  justify-content: center;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: rgb(80, 58, 35);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  display: inline-block;
}

nav a:hover {
  background-color: rgba(80, 58, 35, 0.2);
}

/* Aktive Seite */
nav a.active {
  background-color: rgb(80, 58, 35);
  color: rgb(245, 238, 222);
}

/* Hauptbereich */
main {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  flex: 1;
}

/* Footer */
footer {
  background-color: rgba(80, 58, 35, 0.1);
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
}

/* Bildergalerie */
.bildergalerie {
  display: flex;
  flex-wrap: wrap;     /* Bricht auf kleineren Geräten um */
  gap: 10px;
  justify-content: center;
}

.bildergalerie img {
  width: 100%;
  max-width: 300px;    /* Begrenzt Bildgröße */
  height: auto;        /* Höhe passt sich an */
  object-fit: cover;
  border-radius: 8px;
}

/* ----------------------- */
/* Responsive Anpassungen  */
/* ----------------------- */

/* Tablets und kleinere Bildschirme */
@media (max-width: 768px) {
  header img {
    width: 40%;
    max-width: 150px;
  }

  nav {
    flex-direction: column;
    gap: 5px;
  }

  main {
    margin: 15px;
    padding: 15px;
  }

  .bildergalerie img {
    max-width: 100%; /* Bilder nutzen die volle Breite */
  }
}

/* Smartphones */
@media (max-width: 480px) {
  body {
    font-size: 16px; /* Größere Schrift für bessere Lesbarkeit */
  }

  nav a {
    padding: 10px;
    font-size: 1em;
    width: 100%; /* Navigation untereinander */
    text-align: center;
  }

  header img {
    width: 60%;
    max-width: 120px;
  }
}

