/* Allgemeine Stile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background: #003366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.header h1 {
  margin: 0;
  font-size: 120%;
  font-weight: 600;
}

/* Seitenmenü */
.sidebar {
  background: #f4f4f4;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 400px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin: 1rem 0;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #003366;
  font-weight: normal;
}

.close-menu {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #003366;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Inhalt */
.content {
  flex: 1;
  padding: 1rem;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.content.sidebar-open {
  margin-left: 250px;
}

#content-frame {
  width: 100%;
  height: 85vh;
  border: none;
}

/* Menü Hauptstruktur */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu > li {
  font-weight: bold;
  margin: 1rem 0;
  color: #003366;
}

/* Submenu für tiefere Ebenen */
.submenu {
  list-style: none;
  padding-left: 1.5rem; /* Einrücken */
  margin: 0.5rem 0;
  display: block;
}

.submenu.open {
  display: block; /* Zeigen, wenn offen */
}

.submenu > li {
  font-weight: normal;
  color: #555;
}

.submenu .submenu {
  padding-left: 2rem; /* Weitere Einrückung für tiefere Ebenen */
}

.submenu > li:hover {
  color: #003366; /* Farbe beim Hover */
}

footer {
  text-align: center;
  padding: 10px;
  font-size: 0.8em;
  color: #666;
  background-color: #f1f1f1;
  border-top: 1px solid #ddd;
}

/* Mobilansicht */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    transform: translateY(-100%);
    top: 0;
  }

  .sidebar.open {
    transform: translateY(0);
  }

  .content.sidebar-open {
    margin-left: 0;
  }
}