/* ============================================
   TOP-BAR
============================================ */
#top-bar {
  background-color: #343a40;
  color: white;
  padding: 0.5rem 1rem;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

/* ============================================
   RECHTE SIDEBAR (Desktop + Mobile)
============================================ */
#sidebar_right {
  background-color: #2c2f33;
  color: #fff;
  padding: 1.5rem 1rem;
  border-left: 1px solid #dee2e6;
  min-height: auto; /* FIX */
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
}

/* Sidebar-Module */
#sidebar_right .sidebar-box {
  background: #1f2225;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

#sidebar_right h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

#sidebar_right a {
  color: #ccc;
  text-decoration: none;
}

#sidebar_right a:hover {
  color: #fff;
}

/* ============================================
   TABLET (bis 992px)
============================================ */
@media (max-width: 991.98px) {

  #sidebar_right {
    width: 100%;
    border-left: none;
    border-top: 1px solid #dee2e6;
    padding: 1.25rem 1rem;
    order: 2;
  }

  #sidebar_right .sidebar-box {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
}


/* ============================================
   LARGE SMARTPHONES + SMALL TABLETS (bis 991px)
============================================ */
@media (max-width: 991px) {

  #sidebar_right {
    width: 100%;
    border-left: none;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    order: 2;
  }

  #sidebar_right .sidebar-box {
    padding: 0.9rem;
    margin-bottom: 1rem;
  }
}


/* ============================================
   SMARTPHONE (bis 600px)
============================================ */
@media (max-width: 600px) {

  #sidebar_right {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid #444;
    order: 2;
  }

  #sidebar_right .sidebar-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  #sidebar_right h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
  }

  #sidebar_right a {
    font-size: 0.9rem;
  }

  #top-bar {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}


/* ============================================
   DESKTOP (ab 992px)
============================================ */
@media (min-width: 992px) {
  #sidebar_right {
    order: 0;
  }
}


