/* Menü links auf der Startseite (shared/js/navigation.js): Zeilen wie bisher, dazu Icon-Fenster */

.sidebar {
  overflow-y: auto;
}

.nav-header a {
  color: inherit;
  text-decoration: none;
}

.grade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  user-select: none;
  outline: none;
}

.grade:focus-visible {
  box-shadow: inset 3px 0 0 #ffd24a;
}

.grade--offen {
  background: #4d5566;
  box-shadow: inset 4px 0 0 #ffd24a;
}

.nav-anzahl {
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.nav-anzahl--neu {
  background: #ffd24a;
  color: #2f3542;
}

/* Icon-Fenster */
.nav-flyout {
  position: fixed;
  z-index: 600;
  display: none;
  padding: 14px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nav-flyout.visible {
  display: block;
  animation: navAuf 0.16s ease;
}

@keyframes navAuf {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nav-flyout__pfeil {
  position: absolute;
  left: -9px;
  width: 18px;
  height: 18px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.06);
}

.nav-flyout__kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin: 0 4px 12px 4px;
}

.nav-flyout__titel {
  font-weight: 800;
  color: #2f3542;
  white-space: nowrap;
}

.nav-flyout__alle {
  color: #4a6cf7;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-flyout__kacheln {
  display: grid;
  gap: 10px;
}

.nav-kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 10px 8px;
  border-radius: 12px;
  background: #f5f7fa;
  color: #2f3542;
  text-decoration: none;
  text-align: center;
  transition: background 0.12s ease, transform 0.12s ease;
}

.nav-kachel:hover,
.nav-kachel:focus-visible {
  background: #e3eaff;
  transform: translateY(-2px);
  outline: none;
}

.nav-kachel__bild {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-kachel__bild img {
  max-width: 100%;
  max-height: 100%;
}

.nav-kachel__titel {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav-kachel__neu {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #ffd24a;
  font-size: 0.7rem;
  font-weight: 800;
  color: #2f3542;
}
