/* ==========================================================
   ERROR404 // GEMEINSAME SIDEBAR
   ========================================================== */

.portal-sidebar[data-error404-shared-sidebar] {
  display:flex;
  flex-direction:column;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-bottom {
  width:100%;
  margin-top:auto;
  padding-top:12px;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-nav {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-right:0;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link {
  box-sizing:border-box;
  width:100%;
  min-height:46px;

  display:flex;
  align-items:center;
  gap:10px;

  padding:0 14px;

  border:1px solid rgba(255,255,255,.07);
  border-radius:7px;

  color:#aeb5c1;
  background:#05070a;

  font-size:11px;
  letter-spacing:1px;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-icon {
  width:22px;
  min-width:22px;
  flex:0 0 22px;

  color:inherit;
  font-size:15px;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link:hover {
  color:var(--pink) !important;
  border-color:rgba(255,92,239,.45) !important;
  background:#120813 !important;
  box-shadow:inset 3px 0 0 var(--pink) !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link:hover
.portal-side-icon {
  color:var(--pink) !important;
  text-shadow:0 0 10px var(--pink);
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link.active {
  color:var(--cyan) !important;
  border-color:rgba(25,243,255,.4) !important;
  background:#071015 !important;
  box-shadow:inset 3px 0 0 var(--cyan) !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link.active
.portal-side-icon {
  color:var(--cyan) !important;
  text-shadow:0 0 10px var(--cyan);
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin[hidden] {
  display:none !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin
.admin-link:hover {
  color:#ffd84d !important;
  border-color:rgba(255,216,77,.4) !important;
  background:#101006 !important;
  box-shadow:inset 3px 0 0 #ffd84d !important;
}


/* ==========================================================
   RUNDE BENUTZERBUTTONS
   ========================================================== */

.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions {
  position:relative;

  width:100%;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;

  min-height:0;

  margin:12px 0 0;
  padding:0;
}

.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button {
  position:relative;

  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  flex:0 0 40px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  margin:0 !important;
  padding:0 !important;

  border-radius:50% !important;

  background:#05070a !important;

  font-size:16px !important;
  line-height:1 !important;

  cursor:pointer;

  transition:
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .2s ease !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button > span {
  width:100%;
  height:100%;

  display:flex;
  align-items:center;
  justify-content:center;

  line-height:1;
  pointer-events:none;
}


/* Einstellungen */

.portal-sidebar[data-error404-shared-sidebar]
[id$="SidebarSettings"] {
  color:var(--cyan) !important;
  border:1px solid rgba(25,243,255,.72) !important;

  box-shadow:
    0 0 8px rgba(25,243,255,.13),
    inset 0 0 8px rgba(25,243,255,.025) !important;
}


/* Profil */

.portal-sidebar[data-error404-shared-sidebar]
[id$="SidebarAvatarButton"] {
  color:var(--pink) !important;
  border:2px solid var(--pink) !important;

  outline:1px solid rgba(255,92,239,.22) !important;
  outline-offset:2px !important;

  box-shadow:
    0 0 10px rgba(255,92,239,.55),
    0 0 22px rgba(255,92,239,.2),
    inset 0 0 9px rgba(255,92,239,.1) !important;

  animation:
    error404SharedSidebarProfilePulse
    3.2s ease-in-out infinite !important;
}

.portal-sidebar[data-error404-shared-sidebar]
[id$="SidebarAvatar"] {
  overflow:hidden;
  border-radius:50%;
}

.portal-sidebar[data-error404-shared-sidebar]
[id$="SidebarAvatar"] img {
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
  object-fit:cover;
}


/* Logout */

.portal-sidebar[data-error404-shared-sidebar]
[id$="SidebarLogout"] {
  color:var(--cyan) !important;
  border:1px solid rgba(25,243,255,.72) !important;

  box-shadow:
    0 0 8px rgba(25,243,255,.13),
    inset 0 0 8px rgba(25,243,255,.025) !important;
}


/* Hover aller runden Buttons */

.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button:hover {
  color:var(--pink) !important;
  border-color:var(--pink) !important;

  box-shadow:
    0 0 12px rgba(255,92,239,.52),
    0 0 24px rgba(255,92,239,.2) !important;

  transform:translateY(-2px) scale(1.06) !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button:active {
  transform:scale(.96) !important;
}

.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-footer {
  margin-top:14px;
}


@keyframes error404SharedSidebarProfilePulse {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(255,92,239,.26),
      inset 0 0 8px rgba(255,92,239,.04);
  }

  50% {
    box-shadow:
      0 0 14px rgba(255,92,239,.52),
      0 0 25px rgba(255,92,239,.16),
      inset 0 0 10px rgba(255,92,239,.07);
  }
}


/* ==========================================================
   GEMEINSAME SCROLLBAR
   ========================================================== */

html,
body,
body * {
}


@media (prefers-reduced-motion:reduce) {
  .portal-sidebar[data-error404-shared-sidebar]
  [id$="SidebarAvatarButton"] {
    animation:none !important;
  }
}


/* ==========================================================
   ERROR404 // GEMEINSAME SIDEBAR – VERBINDLICHES FINAL
   Optik exakt entsprechend der Hauptseite
   ========================================================== */

/* Gesamte Sidebar */

html body
.portal-sidebar[data-error404-shared-sidebar] {
  position:fixed !important;
  z-index:80 !important;

  top:0 !important;
  bottom:0 !important;
  left:0 !important;

  width:var(--portal-sidebar-width) !important;
  min-height:0 !important;

  padding:28px 12px 16px !important;

  display:flex !important;
  flex-direction:column !important;

  overflow:hidden !important;

  border-radius:0 12px 12px 0 !important;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.97),
      rgba(3,5,8,.96)
    ) !important;

  box-sizing:border-box !important;
}


/* ERROR 404 und Seitentitel */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-brand {
  width:100% !important;
  margin:0 !important;

  display:block !important;

  text-align:center !important;
  white-space:nowrap !important;
  line-height:normal !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-logo {
  display:block !important;

  font-size:27px !important;
  font-weight:900 !important;
  font-style:italic !important;

  letter-spacing:-2px !important;
  line-height:normal !important;

  text-align:center !important;
  white-space:nowrap !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-logo .cyan {
  color:var(--cyan) !important;
  text-shadow:0 0 14px currentColor !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-logo .pink {
  margin-left:0 !important;

  color:var(--pink) !important;
  text-shadow:0 0 14px currentColor !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-brand > small {
  width:100% !important;

  display:block !important;

  margin-top:-2px !important;
  margin-bottom:18px !important;

  color:#f1f4f8 !important;

  font-size:10px !important;
  font-weight:700 !important;
  letter-spacing:1.4px !important;

  line-height:normal !important;
  text-align:center !important;
  text-shadow:none !important;
}


/* Überschrift NAVIGATION */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-label {
  margin:0 2px 9px !important;

  color:#657482 !important;
  font-size:8px !important;
  letter-spacing:1.8px !important;
}


/* Navigation */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-nav {
  width:100% !important;
  min-height:0 !important;

  display:flex !important;
  flex-direction:column !important;

  gap:8px !important;

  padding-right:0 !important;

  overflow-y:auto !important;
  overflow-x:hidden !important;

  box-sizing:border-box !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link {
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:46px !important;

  display:flex !important;
  align-items:center !important;

  gap:10px !important;

  padding:0 14px !important;

  border:1px solid rgba(255,255,255,.07) !important;
  border-radius:7px !important;

  color:#aeb5c1 !important;
  background:#05070a !important;

  font-size:11px !important;
  letter-spacing:1px !important;

  box-sizing:border-box !important;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-icon {
  width:22px !important;
  min-width:22px !important;
  flex:0 0 22px !important;

  color:inherit !important;
  font-size:15px !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link:hover {
  color:var(--pink) !important;

  border-color:rgba(255,92,239,.45) !important;
  background:#120813 !important;

  box-shadow:
    inset 3px 0 0 var(--pink) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link:hover
.portal-side-icon {
  color:var(--pink) !important;
  text-shadow:0 0 10px var(--pink) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link.active {
  color:var(--cyan) !important;

  border-color:rgba(25,243,255,.40) !important;
  background:#071015 !important;

  box-shadow:
    inset 3px 0 0 var(--cyan) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-side-link.active
.portal-side-icon {
  color:var(--cyan) !important;
  text-shadow:0 0 10px var(--cyan) !important;
}


/* Administration */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin {
  margin-top:19px !important;
  padding-top:16px !important;

  display:flex !important;
  flex-direction:column !important;

  gap:8px !important;

  border-top:
    1px solid rgba(255,92,239,.16) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin[hidden] {
  display:none !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-admin
.admin-link:hover {
  color:#ffd84d !important;

  border-color:rgba(255,216,77,.40) !important;
  background:#101006 !important;

  box-shadow:
    inset 3px 0 0 #ffd84d !important;
}


/* Unterer Bereich */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-bottom {
  width:100% !important;

  margin-top:auto !important;
  padding-top:12px !important;

  box-sizing:border-box !important;
}


/* Runde Buttons */

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions {
  position:relative !important;

  width:100% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  gap:13px !important;

  min-height:0 !important;

  margin:12px 0 0 !important;
  padding:0 !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button {
  position:relative !important;

  width:40px !important;
  height:40px !important;

  min-width:40px !important;
  min-height:40px !important;

  max-width:40px !important;
  max-height:40px !important;

  flex:0 0 40px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  margin:0 !important;
  padding:0 !important;

  overflow:hidden !important;

  border-radius:50% !important;

  background:#05070a !important;

  font-size:16px !important;
  line-height:1 !important;

  cursor:pointer !important;

  box-sizing:border-box !important;

  transition:
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .2s ease !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions > button > span {
  width:100% !important;
  height:100% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  line-height:1 !important;
  pointer-events:none !important;
}


/* Einstellungen exakt wie Hauptseite */

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarSettings"] {
  color:var(--cyan) !important;

  border:
    1px solid rgba(25,243,255,.72) !important;

  box-shadow:
    0 0 8px rgba(25,243,255,.13),
    inset 0 0 8px rgba(25,243,255,.025) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarSettings"]:hover {
  color:#ffffff !important;
  border-color:var(--cyan) !important;

  background:
    radial-gradient(
      circle,
      rgba(25,243,255,.13),
      transparent 68%
    ) !important;

  box-shadow:
    0 0 12px rgba(25,243,255,.45),
    0 0 22px rgba(25,243,255,.13) !important;

  transform:translateY(-2px) scale(1.06) !important;
}


/* Profil exakt wie Hauptseite */

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarAvatarButton"] {
  color:var(--pink) !important;

  border:2px solid #ff5cef !important;

  background:#05070a !important;

  outline:
    1px solid rgba(255,92,239,.22) !important;

  outline-offset:2px !important;

  box-shadow:
    0 0 10px rgba(255,92,239,.55),
    0 0 22px rgba(255,92,239,.20),
    inset 0 0 9px rgba(255,92,239,.10) !important;

  animation:
    error404ProfilePulse
    3.2s ease-in-out infinite !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarAvatarButton"]:hover {
  color:#ffffff !important;

  border-color:#ff9af6 !important;
  outline-color:rgba(255,154,246,.42) !important;

  background:
    radial-gradient(
      circle,
      rgba(255,92,239,.16),
      transparent 68%
    ) !important;

  box-shadow:
    0 0 14px rgba(255,92,239,.78),
    0 0 28px rgba(255,92,239,.34),
    inset 0 0 10px rgba(255,92,239,.12) !important;

  transform:translateY(-2px) scale(1.06) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarAvatar"] {
  width:31px !important;
  height:31px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  overflow:hidden !important;

  border:0 !important;
  border-radius:50% !important;

  box-shadow:none !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarAvatar"] img {
  width:100% !important;
  height:100% !important;

  display:block !important;

  border-radius:50% !important;

  object-fit:cover !important;
  object-position:center !important;
}


/* Logout exakt wie Hauptseite */

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarLogout"] {
  color:#ff6f8f !important;

  border:
    1px solid rgba(255,82,110,.72) !important;

  box-shadow:
    0 0 8px rgba(255,82,110,.14),
    inset 0 0 8px rgba(255,82,110,.025) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarLogout"]:hover {
  color:#ffffff !important;
  border-color:#ff5276 !important;

  background:
    radial-gradient(
      circle,
      rgba(255,82,110,.15),
      transparent 68%
    ) !important;

  box-shadow:
    0 0 12px rgba(255,82,110,.48),
    0 0 22px rgba(255,82,110,.14) !important;

  transform:translateY(-2px) scale(1.06) !important;
}


/* Footer */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-footer {
  margin-top:14px !important;
  padding-top:11px !important;

  border-top:
    1px solid rgba(255,255,255,.06) !important;

  color:#52606c !important;

  font-size:7px !important;
  letter-spacing:.65px !important;
  text-align:center !important;
}


/* Scrollbar exakt wie Hauptseite */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-nav {
}


/* Mobile Darstellung */

@media(max-width:900px) {
  html body
  .portal-sidebar[data-error404-shared-sidebar] {
    position:relative !important;

    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;

    width:calc(100% - 20px) !important;
    min-height:auto !important;

    margin:10px !important;
    padding:14px !important;

    border-radius:12px !important;
  }

  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-sidebar-brand > small {
    margin-bottom:10px !important;
  }

  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-sidebar-nav {
    display:flex !important;
    flex-direction:row !important;

    gap:8px !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    padding-bottom:5px !important;
  }

  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-side-link {
    width:auto !important;
    min-width:max-content !important;
    min-height:46px !important;
  }

  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-sidebar-footer {
    display:none !important;
  }
}

@media(prefers-reduced-motion:reduce) {
  html body
  .portal-sidebar[data-error404-shared-sidebar]
  [id$="SidebarAvatarButton"] {
    animation:none !important;
  }
}


/* ==========================================================
   ERROR404 // LOGOUT FINAL AUF ALLEN SEITEN CYAN
   ========================================================== */

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarLogout"] {
  color:var(--cyan) !important;

  border:
    1px solid rgba(25,243,255,.72) !important;

  background:#05070a !important;

  box-shadow:
    0 0 8px rgba(25,243,255,.13),
    inset 0 0 8px rgba(25,243,255,.025) !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-actions
[id$="SidebarLogout"]:hover {
  color:#ffffff !important;
  border-color:var(--cyan) !important;

  background:
    radial-gradient(
      circle,
      rgba(25,243,255,.13),
      transparent 68%
    ) !important;

  box-shadow:
    0 0 12px rgba(25,243,255,.45),
    0 0 22px rgba(25,243,255,.13) !important;

  transform:
    translateY(-2px)
    scale(1.06) !important;
}

/* ==========================================================
   ERROR404 // NATIVER SIDEBAR-SCROLLBALKEN FINAL
   Scrollbereich nur innerhalb der Navigation
   ========================================================== */

html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-nav {
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;

  padding-right:3px !important;

}


/* ==========================================================
   ERROR404 // SIDEBAR-SCROLLBALKEN WIE SCREENSHOT
   ========================================================== */

/* Nativen grauen Scrollbalken verstecken */
html body
.portal-sidebar[data-error404-shared-sidebar]
.portal-sidebar-nav {
  position:relative !important;

  overflow-y:auto !important;
  overflow-x:hidden !important;

  padding-right:11px !important;

  -ms-overflow-style:none !important;
}


/* Eigene Scrollspur – nur innerhalb des Navigationsbereichs */
html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-scroll-track {
  position:absolute !important;

  right:17px !important;

  width:4px !important;

  overflow:visible !important;

  background:transparent !important;

  pointer-events:none !important;
  z-index:100 !important;
}


/* Beweglicher Balken */
html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-scroll-thumb {
  position:absolute !important;

  top:0 !important;
  right:0 !important;

  width:4px !important;
  height:48% !important;

  min-height:55px !important;
  max-height:48% !important;

  border:0 !important;
  border-radius:999px !important;

  background:
    linear-gradient(
      180deg,
      #72f7ff 0%,
      #79d9ff 25%,
      #a78cff 62%,
      #ef5ce7 100%
    ) !important;

  box-shadow:
    0 0 5px rgba(25,243,255,.36),
    0 0 7px rgba(255,92,239,.30) !important;

  transform:translateY(0);
  will-change:transform;

  pointer-events:none !important;
}

html body
.portal-sidebar[data-error404-shared-sidebar]
.error404-sidebar-scroll-track[hidden] {
  display:none !important;
}


/* ==========================================================
   ERROR404 // MOBILE SIDEBAR HORIZONTAL FINAL
   Horizontales Wischen der Navigation wiederherstellen
   ========================================================== */

@media(max-width:900px){

  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-sidebar-nav{
    width:100% !important;
    min-width:0 !important;

    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;

    gap:8px !important;

    padding:
      0
      2px
      7px !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    scroll-behavior:smooth;
    scroll-snap-type:x proximity;

    overscroll-behavior-x:contain;
    overscroll-behavior-y:none;

    -webkit-overflow-scrolling:touch !important;

    touch-action:pan-x !important;
  }


  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-side-link{
    width:auto !important;

    min-width:max-content !important;
    max-width:none !important;

    flex:
      0
      0
      auto !important;

    scroll-snap-align:start;
  }


  /*
   * Der eigene Desktop-Scrollbalken ist vertikal und wird
   * auf dem Handy nicht benötigt.
   */
  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .error404-sidebar-scroll-track{
    display:none !important;
  }


  /*
   * Unteren Bereich nicht über die Navigation legen.
   */
  html body
  .portal-sidebar[data-error404-shared-sidebar]
  .portal-sidebar-bottom{
    position:relative !important;

    width:100% !important;

    margin-top:10px !important;
    padding-top:10px !important;

    flex:
      0
      0
      auto !important;
  }
}
