/* Grundlayout */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 1rem;
  background-image: url('img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Header & H1 */
header {
  position: relative;
  padding: 1rem 0 2rem;
}

header h1 {
  text-align: center;
  font-weight: 500;
  font-size: 2.5rem;
  margin: 0;
}

/* Navigation - standardmäßig versteckt */
nav#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: none;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  padding-top: 4rem; /* Platz für Header-Button */
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

nav#mobile-nav.active {
  transform: translateX(0);
  box-shadow: 2px 0 12px rgba(0,0,0,0.7);
}

nav#mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav#mobile-nav li a {
  display: block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.3s ease;
}

nav#mobile-nav li a:last-child {
  border-bottom: none;
}

nav#mobile-nav li a:hover,
nav#mobile-nav li a:focus {
  background-color: rgba(0, 123, 255, 0.7);
  outline: none;
}

/* Overlay hinter Menü */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1050;
  cursor: pointer;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Button bleibt oben rechts */
#menu-toggle {
  font-size: 2.5rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1150; /* höher als Menü */
  transition: color 0.3s ease;
}


#menu-toggle:hover,
#menu-toggle:focus {
  color: #5a8d24;
  outline: none;
}

header {
  padding: 3rem 1rem 2rem;
  position: relative;
  z-index: 100;
}

/* Menü von links einfahren (bleibt gleich) */
nav#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: none; /* Kein Schatten, wenn zugeklappt */
  transform: translateX(-100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1100; /* Unter dem Button */
  padding-top: 4rem; /* Platz für Button */
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Menü aktiv */
nav#mobile-nav.active {
  transform: translateX(0);
  box-shadow: 2px 0 12px rgba(0,0,0,0.7); /* Schatten nur wenn offen */
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

#page-content.hidden {
  opacity: 0;
  pointer-events: none;
}

#page-content {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

nav#mobile-nav li a.external-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

nav#mobile-nav li a.external-link .external-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
  top: -5px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

#page-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#page-content main {
  flex: 1;
}

#page-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
