.msi-notification-stack {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 65;
  display: grid;
  gap: 12px;
  width: min(400px, calc(100vw - 40px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s var(--easeOut), transform .45s var(--easeOut);
}
.msi-notification-stack[hidden],
.msi-notification[hidden] { display: none !important; }
.msi-notification-stack--left { left: max(24px, env(safe-area-inset-left)); }
.msi-notification-stack--right { right: max(24px, env(safe-area-inset-right)); }
.msi-notification-stack.is-visible { opacity: 1; transform: translateY(0); }
.msi-notification {
  position: relative;
  overflow: hidden;
  padding: 22px 56px 19px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: linear-gradient(145deg, #002b65 0%, var(--msi-blue) 58%, #071a3c 100%);
  box-shadow: 0 18px 55px rgba(0,24,58,.28), 0 4px 14px rgba(0,24,58,.16);
  color: #fff;
  pointer-events: auto;
  transform-origin: bottom right;
  animation: msi-notification-in .52s var(--easeOut) both;
}
.msi-notification-stack--left .msi-notification { transform-origin: bottom left; }
.msi-notification:nth-child(2) { animation-delay: .08s; }
.msi-notification:nth-child(3) { animation-delay: .16s; }
.msi-notification.is-closing { animation: msi-notification-out .25s ease-in both; }
.msi-notification::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(225deg, var(--msi-yellow) 0 49%, transparent 50%);
  pointer-events: none;
}
.msi-notification-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--msi-blue) 0 24%, var(--msi-red) 24% 49%, var(--msi-yellow) 49% 74%, var(--msi-green) 74%);
}
.msi-notification-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(0,17,46,.3);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.msi-notification-close:hover,
.msi-notification-close:focus-visible { border-color: #fff; background: rgba(255,255,255,.14); transform: rotate(6deg); }
.msi-notification-close:focus-visible,
.msi-notification a:focus-visible { outline: 3px solid var(--msi-yellow); outline-offset: 3px; }
.msi-notification-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: rgba(255,255,255,.7); font-size: .67rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.msi-notification-meta > span + span::before { content: "·"; margin-right: 8px; color: var(--msi-yellow); }
.msi-notification-type { color: var(--msi-yellow); }
.msi-notification-type--galerie { color: #9bd7ff; }
.msi-notification-type--aktuelles { color: #fff; }
.msi-notification h2 {
  max-width: 300px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.22rem, 2vw, 1.52rem);
  line-height: 1.14;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.msi-notification h2 a { transition: color .2s ease; }
.msi-notification h2 a:hover { color: var(--msi-yellow); }
.msi-notification-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: rgba(255,255,255,.72); font-size: .72rem; }
.msi-notification-bottom > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msi-notification-bottom a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #fff; font-weight: 650; }
.msi-notification-bottom a b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.msi-notification-bottom a:hover b { background: var(--msi-yellow); color: var(--msi-blue); }
.msi-notification-stack.has-multiple { width: min(365px, calc(100vw - 40px)); gap: 9px; }
.msi-notification-stack.has-multiple .msi-notification { padding: 17px 49px 15px 18px; border-radius: 14px; }
.msi-notification-stack.has-multiple .msi-notification::after { width: 34px; height: 34px; }
.msi-notification-stack.has-multiple .msi-notification-close { top: 10px; right: 10px; width: 27px; height: 27px; }
.msi-notification-stack.has-multiple .msi-notification-meta { margin-bottom: 7px; font-size: .61rem; }
.msi-notification-stack.has-multiple h2 { margin-bottom: 10px; font-size: 1.08rem; }
.msi-notification-stack.has-multiple .msi-notification-bottom { font-size: .66rem; }
body.menu-open .msi-notification-stack { display: none !important; }
@keyframes msi-notification-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes msi-notification-out { to { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (max-width: 600px) {
  .msi-notification-stack,
  .msi-notification-stack.has-multiple {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-height: min(60vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .msi-notification,
  .msi-notification-stack.has-multiple .msi-notification { padding: 16px 48px 14px 17px; }
  .msi-notification h2,
  .msi-notification-stack.has-multiple h2 { max-width: none; font-size: 1.02rem; }
  .msi-notification-bottom { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .msi-notification-stack,
  .msi-notification,
  .msi-notification.is-closing { transition: none; animation: none; }
}
