/* Grundstruktur */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #12121a;
  font-family: sans-serif;
  color: #eee;
}

h1, h2, h3, h4, h5 {
  margin: 0;
}

/* Sidebar-Container */
.layout-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Menübutton */
.menu-fix {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  background: none;
  border: none;
  color: #00ccff;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #1c1c2a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width 0.3s ease;
  border-right: 2px solid rgba(0,255,255,0.1);
  box-shadow: 0 0 10px #00ccff;
  position: relative;
}

.sidebar.collapsed {
  width: 72px;
}

/* Sidebar oben */
.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3.5rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  width: 100%;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.2s ease;
  font-weight: bold;
}

.nav-links a:hover {
  background: #202233;
  color: #00ccff;
}

.sidebar.collapsed .nav-links span {
  display: none;
}

/* Sidebar Logo */
.sidebar-logo {
  padding: 1rem;
  text-align: center;
}

.sidebar-logo img {
  max-width: 100%;
  max-height: 100%;
  transition: all 0.3s ease;
}

/* Hauptinhalt */
.main-content {
  flex: 1;
  overflow-y: auto;
  background: #12121a;
  padding: 1rem;
  height: 100%;
}

/* Responsive (Mobilgeräte) */
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar.collapsed {
    width: 100%;
  }

  .nav-links {
    flex-direction: row;
    gap: 1rem;
    margin: 0;
  }

  .nav-links a {
    padding: 0.6rem;
    justify-content: center;
  }

  .nav-links span {
    display: none !important;
  }

  .sidebar-logo {
    display: none;
  }
}
