/* style.css – extrahiert und bereinigt aus dem Entwurf */
:root {
  --primary: #33764d;
  --primary-dark: #2a5f3e;
  --primary-light: #4a9a6a;
  --sidebar-bg: #1e2a24;
  --sidebar-width: 260px;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8faf9;
  --card: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #2d3d35;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}
.sidebar-header h1 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.sidebar-header small {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}

.nav-section {
  border-bottom: 1px solid #2d3d35;
}
.nav-section-header {
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #d1d5db;
  user-select: none;
  transition: background 0.2s;
}
.nav-section-header:hover { background: #2a3830; }
.nav-section-header .chevron {
  transition: transform 0.25s;
  font-size: 0.75rem;
  color: #9ca3af;
}
.nav-section.open .chevron { transform: rotate(90deg); }

.nav-items {
  display: none;
  background: #18221e;
}
.nav-section.open .nav-items { display: block; }

.nav-item {
  display: block;
  padding: 0.7rem 1.25rem 0.7rem 2.5rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: #24302b;
  color: white;
}
.nav-item.active {
  background: #24302b;
  color: white;
  border-left-color: var(--primary);
  font-weight: 500;
}

/* Main */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.content {
  padding: 1.75rem;
  flex: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
.card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}
.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.placeholder p {
  margin-bottom: 0.5rem;
}
.note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
}
