/* ========== Sidebar Ad-hoc Mitteilung ========== */
aside.sidebar .sidebar-alert {
  background-color: #FFD700 !important;      /* leuchtendes Gelb */
  border: 3px solid #000 !important;
  color: #FF0000 !important;                 /* knalliges Rot */
  font-weight: 700;
  text-align: center;
  padding: 12px 10px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulseBorder 1.5s infinite;
  z-index: 100;
}

aside.sidebar .sidebar-alert p {
  margin: 0;
  color: #FF0000 !important;
  line-height: 1.3;
  font-size: 1rem;
}

aside.sidebar .sidebar-alert .blink {
  color: #FF0000 !important;
  font-size: 1.4rem;
  font-weight: 900;
  animation: blink 0.9s infinite alternate;
}

/* Blinken der Ausrufezeichen */
@keyframes blink {
  from { opacity: 1; transform: scale(1.9); }
  to   { opacity: 0.3; transform: scale(1.7); }
}

/* Pulsierender Rahmen (leichtes Glühen) */
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
  50%      { box-shadow: 0 0 20px rgba(255, 0, 0, 0.7); }
}

/* Wenn Alert vorhanden ist: nav-spacer zusammenziehen */
aside.sidebar .sidebar-alert {
  margin: 22px 0;              /* oben + unten 22px (wie gewünscht) */
}

/* Der nav-spacer direkt nach dem Alert: keinen zusätzlichen Top-Abstand */
aside.sidebar .sidebar-alert + .nav-spacer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 8px !important;      /* optional: minimaler Platzhalter (8px) */
  opacity: 1;
}
