body {
  font-family: system-ui, sans-serif;
  margin: 2rem;
  background: #eef0f6;
}

#sidebar-toggle {
  position: absolute;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #888;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
}

.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 17rem;
  background: #12141c;
  box-shadow: 0.5rem 0 2.5rem rgba(0, 0, 0, 0.35);
  transform: translateX(-100%);
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  box-sizing: border-box;
}

#sidebar-toggle:checked ~ .sidebar {
  display: flex;
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c3c7d4;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.close-btn:hover {
  background: #1c1f2a;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
}

.logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #7c6df2, #4f8bf9);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.group-label {
  color: #666d80;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.1rem 0.5rem 0.4rem;
}

.group-label:first-child {
  margin-top: 0;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #c3c7d4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
}

.sidebar a svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sidebar a.active {
  background: #fff;
  color: #12141c;
}

.footer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1c1f2a;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 1rem;
}

.logo.small {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: #263047;
  font-size: 1.1rem;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-sub {
  color: #8b93a7;
  font-size: 0.78rem;
}

/* @starting-style + "display .3s allow-discrete": dieselbe Technik wie im
   starting-style-toast Pattern, hier mit transform statt opacity als
   sichtbarer Effekt — eine große Slide-Bewegung liest sich auf Video/Screen
   deutlich klarer als ein reines Opacity-Fade. */
@media (prefers-reduced-motion: no-preference) {
  .sidebar {
    transition: transform 0.3s ease, display 0.3s allow-discrete;
  }

  #sidebar-toggle:checked ~ .sidebar {
    @starting-style {
      transform: translateX(-100%);
    }
  }
}
