/* ============================================================
   GLOBAL
   ============================================================*/

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f9;
}

/* Einheitliche Logo-Größen */
.moses-logo,
.erp-logo,
.landing-logo {
  height: 32px;
  width: auto;
}

@media (max-width: 767px) {
  .moses-logo,
  .erp-logo,
  .landing-logo {
    height: 24px;
  }
}

/* ============================================================
   ERP LAYOUT – SIDEBAR + MAIN
   ============================================================*/

.erp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #111827;
  color: #e5e7eb;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.erp-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.erp-product-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.erp-nav {
  flex: 1;
  overflow-y: auto;
}

.erp-nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 1rem 0 0.25rem;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
}

.erp-nav-item .icon {
  width: 1.5rem;
}

.erp-nav-item:hover {
  background: #1f2937;
}

.erp-nav-item.active {
  background: #2563eb;
  color: #f9fafb;
}

.erp-sidebar-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

/* MAIN CONTENT */

.erp-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.erp-topbar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-page-title {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.erp-content {
  padding: 1.5rem;
}

/* ============================================================
   ERP – RESPONSIVE LAYOUT (MOBILE)
   ============================================================*/

@media (max-width: 767.98px) {

  /* Sidebar NICHT mehr umbrechen – Desktop-Layout beibehalten */
  .erp-sidebar {
    width: 220px;
  }

  .erp-main {
    margin-left: 220px;
  }

  .erp-page-title {
    font-size: 1.1rem;
  }

  .erp-content {
    padding: 1rem;
  }
}

/* ============================================================
   ERP DASHBOARD – KPI CARDS / SECTIONS
   ============================================================*/

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

.kpi-card {
  background: #f4f7ff;
  border: 1px solid #d5e0ff;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #4b5563;
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
}

.kpi-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 1199.98px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-value {
    font-size: 1.5rem;
  }
}

/* ============================================================
   LANDINGPAGE (SaaS-Style)
   ============================================================*/

.landing-page {
  background-color: #f5f7fb;
  color: #1f2933;
}

/* Navbar */
.landing-navbar {
  background: #050914;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top left, #2543b3 0%, #141b4f 40%, #050914 100%);
  color: #fff;
  border-bottom: 4px solid #f5b400;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Cards */
.landing-page .module-card,
.landing-page .feature-card,
.landing-page .testimonial-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
  transition: 0.25s ease;
}

.landing-page .module-card:hover,
.landing-page .feature-card:hover,
.landing-page .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

/* Testimonials */
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Footer */
.landing-page footer {
  background: #050914;
  color: #9ca3af;
}

/* ============================================================
   Landingpage – Mobile Layout Optimierungen
   ============================================================*/

@media (max-width: 991.98px) {
  .landing-page .hero-section {
    text-align: center;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {

  /* LOGO: kompakt + sauber */
  .landing-logo {
    width: 5px !important;
    height: auto !important;
  }

  .landing-brand-subtitle {
    font-size: 0.55rem !important;
    line-height: 1.1;
  }

  .navbar-brand {
    gap: 0.35rem;
  }

  .hero-section .btn {
    width: 100%;
  }

  .hero-section .hero-info-card {
    margin-top: 1.5rem;
  }
}

/* END CSS */
