/* Die obere Kopfzeile mit Blau-Grün-Verlauf */
/* Die obere Kopfzeile - Dezent & Hochmodern */
/* Die obere Kopfzeile - Moderne, matte Pastellfarben */
/* Die obere Kopfzeile - Seidene, ausdrucksstarke Farben */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  
  /* Deutlich kräftiger und frischer, aber edel abgestimmt */
  background: linear-gradient(90deg, #64b5f6 0%, #81c784 100%);
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 99;
  
  /* Hochwertiger, plastischer Schatten */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Platzhalter für Ihr Logo */
.custom-logo {
  height: 40px;
  display: flex;
  align-items: center;
  color: white;
  font-weight: bold;
}
/* Styling für den Webseiten-Titel oben links */
.custom-logo {
  height: 40px;
  display: flex;
  align-items: center;
  color: #ffffff !important; /* Strahlendes Weiß */
  font-weight: 600;
  font-size: 1.25rem; /* Perfekte Größe auf dem PC */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap; /* Verhindert ungewollten Zeilenumbruch */
}

/* Schiebt das gesamte Layout unter die 60px-Kopfzeile */
body {
  padding-top: 60px !important;
}
.sidebar {
  top: 60px !important;
  height: calc(100% - 60px) !important;
  z-index: 101 !important;
  background-color: #ffffff !important; /* Erzwingt eine saubere Hintergrundfarbe */
}
.content {
  padding-top: 20px !important;
}

/* Modernes Design für die Suchleiste im Menü */
.sidebar .search {
  padding: 15px 15px 5px 15px !important;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}
.sidebar .search input {
  border: 1px solid #ddd !important;
  background-color: #f8f9fa !important;
  border-radius: 6px !important;
  padding: 8px 10px 8px 30px !important;
}
.sidebar .search input:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 5px rgba(0,123,255,0.2);
}

/* BEHEBT DEN FEHLER: Sichtbarkeit und Lesbarkeit aller Menüpunkte garantieren */
.sidebar ul li a {
  color: #333333 !important; /* Dunkelgraue Schrift für Hauptpunkte */
  font-weight: 500;
}
.sidebar ul li ul li a {
  color: #555555 !important; /* Etwas helleres Dunkelgrau für die Klassenstufen */
  font-weight: normal !important;
  padding-left: 25px !important; /* Schick eingerückt */
}
/* Farbe des aktiven/ausgewählten Menüpunkts */
.sidebar ul li.active > a {
  color: #007bff !important; /* Blau für das aktive Thema */
  font-weight: bold !important;
}

/* Anpassung für mobile Geräte (Ganz unten in Ihrer style.css) */
@media screen and (max-width: 768px) {
  /* ERGÄNZT: Macht den Titel auf Handys automatisch etwas kleiner, damit er perfekt passt */
  .custom-logo {
    font-size: 1.05rem !important; 
    padding-left: 35px !important; /* Schafft Platz, damit das Burger-Menü den Text nicht verdeckt */
  }
  
  .sidebar-toggle {
    top: 65px !important;
    left: 0 !important;
    width: 45px !important;
    height: 40px !important;
    padding: 10px !important;
    z-index: 102 !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  }

  .sidebar .search {
    padding-top: 45px !important; 
  }
  
  .close .sidebar {
    transform: translateX(-300px) !important;
  }  
  /* Vergrößert die Klickflächen im Menü für Touch-Eingaben auf dem Smartphone */
  .sidebar li a {
    padding: 12px 15px !important;
    display: block !important;
  }
}
