/* =====================================================
   dashboard.css – Startseite mit Sidebar-Navigation
   ===================================================== */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. LAYOUT: Sidebar + Hauptbereich
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.dashboard-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;  /* Sidebar 240px, Rest flexibel */
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);   /* genug Höhe für volle Seite */
}

/* Sidebar links: Navigation + Logo */
.dashboard-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;          /* bleibt beim Scrollen oben */
  top: 140px;                /* unterhalb des Headers */
  align-self: start;         /* nimmt nur benötigte Höhe */
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

/* Logo oben in Sidebar */
.sidebar-logo {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
}

/* Sidebar-Titel */
.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  text-align: center;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-blue);
}

/* Navigation in Sidebar */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--bg-blue);
  border-color: var(--brand-light);
  color: var(--brand);
}

/* Icon vor jedem Link (Emoji) */
.sidebar-nav a::before {
  content: attr(data-icon);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HAUPTBEREICH: Content rechts
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Willkommens-Bereich oben */
.welcome-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.welcome-hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.welcome-hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. HÄUFIG GENUTZT: 5 Card-Kacheln (wie Schnellzugriff)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-haeufig {
  background: var(--bg-yellow);
  border: 2px solid var(--yellow-500);
  border-left: 4px solid var(--yellow-500);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}

.section-haeufig h2 {
  margin: 0 0 1.25rem 0;
  font-size: 1.15rem;
  color: var(--gray-800);
}

.haeufig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.haeufig-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-800);
  background: white;
  transition: all 0.15s ease;
  min-height: 120px;
}

.haeufig-card:hover {
  border-color: var(--yellow-500);
  background: var(--bg-yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.haeufig-card-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.haeufig-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.haeufig-card-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0.25rem 0;
}

.haeufig-card-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.3;
}

/* Wenn keine Daten: Hinweis */
.haeufig-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-style: italic;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. SCHNELLZUGRIFF: 3 große Cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-schnell {
  background: var(--bg-red);
  border: 2px solid var(--brand-red);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}

.section-schnell h2 {
  margin: 0 0 1.25rem 0;
  font-size: 1.15rem;
  color: var(--brand-red);
}

.schnell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.schnell-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-800);
  background: white;
  transition: all 0.15s ease;
  min-height: 130px;
}

.schnell-card:hover {
  border-color: var(--brand);
  background: var(--bg-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.schnell-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.schnell-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--brand-red);
}

.schnell-card-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. WEITERE FEATURES: Kompakte Liste
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-mehr {
  background: var(--bg-blue);
  border: 1px solid var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.section-mehr h2 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  color: var(--brand);
}

.mehr-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mehr-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--gray-800);
  transition: all 0.15s ease;
}

.mehr-item:hover {
  background: var(--bg-blue);
  border-color: var(--brand-light);
}

.mehr-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.mehr-item-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.mehr-item-text {
  font-weight: 500;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. RESPONSIVE: Mobile & Tablet
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Tablet: Sidebar oben, Cards 2-spaltig */
@media (max-width: 1000px) {
  .dashboard-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dashboard-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar-logo {
    order: -1;
    max-width: 100px;
  }

  .sidebar-title {
    width: 100%;
    border-bottom: none;
    margin-bottom: 0.5rem;
  }

  .sidebar-nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .schnell-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .haeufig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1-spaltig */
@media (max-width: 600px) {
  .dashboard-wrapper {
    padding: 1rem 0.75rem;
  }

  .welcome-hero {
    padding: 1.5rem 1.25rem;
  }

  .welcome-hero h1 {
    font-size: 1.5rem;
  }

  .schnell-grid {
    grid-template-columns: 1fr;
  }

  .haeufig-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    flex-direction: column;
  }
}
