/* --- Globale Hintergrundfarbe für die gesamte Seite --- */
html, body {
  background: #000;
  color: #333333;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* --- Header --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: aqua;
  padding: 1rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Hauptcontainer --- */
.main-wrapper {
  display: flex;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* --- Linkes Menü (Desktop) --- */
.left-menu {
  width: 200px;
  background: #111;
  padding: 1rem 0;
  position: fixed;
  left: 0;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* --- Hauptmenü --- */
.main-nav {
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav li {
  margin-bottom: 0.5rem;
}
.main-nav a {
  color: #e3b448;
  text-decoration: none;
  display: block;
  padding: 0.25rem 1rem;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #3a6b35;
  outline: none;
}
.main-nav a.active {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Untermenü --- */
.sub-menu {
  padding: 0 1rem;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}
.sub-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sub-menu li {
  margin-bottom: 0.5rem;
}
.sub-menu a {
  color: #cbd18f;
  text-decoration: none;
}
.sub-menu a:hover,
.sub-menu a:focus {
  color: #3a6b35;
  outline: none;
}
.sub-menu a.active {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Rechter Inhalt (Desktop) --- */
.content-area {
  margin-left: 200px;
  padding: 1rem;
  width: calc(100% - 200px);
  background: #222;
  color: white;
  transition: margin-left 0.3s ease;
}

/* --- Footer (Desktop) --- */
.main-footer {
  background: #333;
  color: #999;
  text-align: center;
  padding: 1rem;
  margin-left: 200px;
  transition: margin-left 0.3s ease;
}

/* --- Mobile-Ansicht --- */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
    height: auto;
  }
  .left-menu.active ~ .content-area,
  .left-menu.active ~ .main-footer {
    margin-top: calc(100vh - 80px);
  }
  .left-menu {
    width: 100%;
    position: fixed;
    top: 80px;
    height: calc(100vh - 80px);
    display: none;
    z-index: 1001;
    background: #111;
  }
  .left-menu.active {
    display: flex;
  }
  .content-area {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease, margin-top 0.3s ease;
  }
  .content-area, .main-footer {
    margin-left: 0;
    width: 100%;
  }
}



