/* ============================================================
   custom.css – Sidebar 02 (Colorlib) portiert auf Bootstrap 5.3
   Keine Änderungen an bootstrap.min.css nötig
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --sidebar-width: 270px;
  --sidebar-bg: #7386d5;
  --sidebar-color: #fff;
  --sidebar-link-color: rgba(255, 255, 255, 0.8);
  --sidebar-link-hover: #fff;
  --sidebar-active-bg: #6d7fcc;
  --sidebar-submenu-bg: #6d7fcc;
  --sidebar-transition: all 0.3s;
  --toggle-btn-bg: #7386d5;
  --inhalt-bg: #fafafa;
}

/* ---------- Reset / Base ---------- */
body {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--inhalt-bg);
  overflow-x: hidden;
}

/* ---------- Wrapper ---------- */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.tmp-aside {
  height: 100vh;
  width: 250px;
  position: fixed;
  top: 0px;

}

.tmp-aside .footer {
  position: absolute;
  bottom: 0px;
  padding:20px 20px 20px 0;
}

/* ---------- Sidebar ---------- */
#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-color);
  transition: var(--sidebar-transition);
  position: relative;
}

#sidebar.active {
  margin-left: calc(-1 * var(--sidebar-width));
}

/* Logo / Headline */
#sidebar .logo {
  font-size: 1.5rem;
  color: var(--sidebar-color);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ---------- Navigation links ---------- */
#sidebar ul.components {
  padding: 0;
}

#sidebar ul li a {
  padding: 10px 15px;
  display: block;
  color: var(--sidebar-link-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--sidebar-transition);
}

#sidebar ul li a:hover {
  color: var(--sidebar-link-hover);
  background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a,
#sidebar a[aria-expanded="true"] {
  color: var(--sidebar-link-hover);
  background: var(--sidebar-active-bg);
}

/* Dropdown-Toggle Pfeil */
#sidebar a[data-bs-toggle="collapse"]::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  float: right;
  margin-top: 6px;
  transition: transform 0.3s;
}

#sidebar a[data-bs-toggle="collapse"][aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 9px;
}

/* Submenü */
#sidebar ul ul {
  background: var(--sidebar-submenu-bg);
  padding-left: 0;
}

#sidebar ul ul li a {
  padding-left: 30px;
  font-size: 0.875rem;
}

/* ---------- Toggle-Button ---------- */
.custom-menu {
  position: absolute;
  top: 20px;
  right: -40px;
  z-index: 9999;
}

.custom-menu .btn-primary {
  background: var(--toggle-btn-bg);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: var(--sidebar-transition);
}

.custom-menu .btn-primary:hover,
.custom-menu .btn-primary:focus {
  background: #6d7fcc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- Newsletter-Form ---------- */
.colorlib-subscribe-form .form-control {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding-left: 40px;
}

.colorlib-subscribe-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.colorlib-subscribe-form .form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  color: #fff;
}

.colorlib-subscribe-form .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
}

.colorlib-subscribe-form .d-flex {
  position: relative;
}

/* ---------- Footer im Sidebar ---------- */
#sidebar .footer p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

#sidebar .footer a {
  color: rgba(255, 255, 255, 0.75);
}

#sidebar .footer a:hover {
  color: #fff;
}

/* ---------- Hauptinhalt ---------- */
#inhalt {
  width: 100%;
  min-height: 100vh;
  transition: var(--sidebar-transition);
  background: var(--inhalt-bg);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }

  #sidebar.active {
    margin-left: 0;
  }

  .custom-menu {
    right: -60px;
  }
}
