/* Global Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Layout */
.page-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 60px 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Kompakteres Layout für Unterseiten */
main.compact {
  max-width: none;
  margin: 40px 20px 20px;
  padding-top: 20px;
}

/* Navigation */
nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 30px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #387A4C;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #501817;
}

/* Headline & Text */
main h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 10px;
}

main p {
  font-size: 1.1em;
  font-weight: 400;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  color: #666;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 600px) {
  main:not(.compact) {
    padding: 40px 16px;
  }

  main.compact {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    margin-top: 20px;
  }

  main h1 {
    font-size: 1.8em;
  }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  width: 150px;
  height: auto;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox-Stil */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
