/* ========================================== */
/* ALBO SOLUTIONS - PLATFORM STYLES v2.0 */
/* 100% Design-kompatibel mit Business Case */
/* Unified Design Tokens */
/* ========================================== */

/* ========================================== */
/* CSS VARIABLES - UNIFIED WITH styles.css */
/* ========================================== */

:root {
  /* Primary Colors - Unified */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent-blue: #3b82f6;
  
  /* Brand Colors */
  --horvath-blue: #003E7E;
  --horvath-blue-light: #1e5a9e;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --text: var(--gray-900);
  --text-light: var(--gray-600);
  --text-dark: #1a1a1a;
  --border: var(--gray-200);
  --border-color: #e2e8f0;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --hover-bg: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  
  /* Transitions */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
  
  /* Z-Index */
  --z-sticky: 1020;
  --z-modal: 1050;
}

/* ========================================== */
/* RESET & BASE STYLES */
/* ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: 1.5;
  color: var(--text);
  background: var(--background-alt);
  overflow-x: hidden;
}

/* ========================================== */
/* PLATFORM HEADER (UNIFIED MIT BUSINESS CASE) */
/* ========================================== */

.platform-header {
  /* GLEICHER GRADIENT WIE BUSINESS CASE */
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  color: white;
  
  /* GLEICHE MASSE WIE BUSINESS CASE */
  padding: 12px 40px;
  min-height: 60px;
  
  /* Styling */
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
  /* Sticky Position */
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
}

.header-left h1 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0 0 2px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.header-subtitle {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.3;
}

.header-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.stat {
  text-align: center;
  min-width: 75px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 3px;
}

.stat-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.2;
}

/* ========================================== */
/* MAIN NAVIGATION (6 TABS) */
/* ========================================== */

.main-navigation {
  background: var(--background);
  border-bottom: 2px solid var(--border);
  padding: 0 var(--spacing-xl);
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-sm);
  
  /* STICKY WIE BUSINESS CASE */
  position: sticky;
  top: 60px;
  z-index: var(--z-sticky);
}

.nav-tab {
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav-tab:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

/* ========================================== */
/* CONTENT AREA */
/* ========================================== */

.platform-content {
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

/* ========================================== */
/* LANDING PAGE */
/* ========================================== */

.landing-page {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.3s ease;
}

.landing-hero {
  margin-bottom: 3rem;
}

.landing-hero h1 {
  font-size: 48px;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.landing-hero p {
  font-size: 20px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.access-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.access-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.access-card .icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

.access-card h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.access-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================== */
/* CASES OVERVIEW v3 - Dynamic Card Design */
/* Matches Command Center & Landing Page */
/* ========================================== */

.cases-v3 {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.25rem;
  animation: fadeIn 0.3s ease;
}

/* Header - matches Command Center header style */
.cases-v3__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cases-v3__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.01em;
}

.cases-v3__subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

.cases-v3__stats {
  display: flex;
  gap: 1.5rem;
}

.cases-v3__stat {
  text-align: center;
}

.cases-v3__stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
}

.cases-v3__stat-label {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Grid - 3 columns */
.cases-v3__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Card */
.case-card-v3 {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeSlideUp 0.35s ease-out both;
}

.case-card-v3:hover {
  border-color: var(--card-accent, var(--gray-300));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--card-accent, transparent);
  transform: translateY(-3px);
}

.case-card-v3--dev {
  opacity: 0.7;
}

.case-card-v3--dev:hover {
  opacity: 1;
}

/* Locked / no access */
.case-card-v3--locked {
  opacity: 0.45;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}

.case-card-v3--locked:hover {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.case-card-v3__lock-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #94a3b8;
  z-index: 2;
}

.case-card-v3__status--locked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.case-card-v3__btn--locked {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(71, 85, 105, 0.4) !important;
  cursor: not-allowed;
}

.case-card-v3__btn--locked:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Accent top bar */
.case-card-v3__accent {
  height: 3px;
  background: var(--card-accent, var(--primary));
}

/* Card body */
.case-card-v3__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header row: category + status */
.case-card-v3__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.case-card-v3__category {
  font-size: 0.688rem;
  font-weight: 600;
  color: var(--card-accent, var(--gray-400));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Status badge */
.case-card-v3__status {
  font-size: 0.625rem;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-card-v3__status--active {
  background: #d1fae5;
  color: #065f46;
}

.case-card-v3__status--dev {
  background: #fef3c7;
  color: #92400e;
}

/* Title */
.case-card-v3__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Description */
.case-card-v3__desc {
  font-size: 0.813rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0 0 0.85rem 0;
  flex: 1;
}

/* Feature tags */
.case-card-v3__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.case-card-v3__tag {
  font-size: 0.688rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.15s ease;
}

/* Footer with button */
.case-card-v3__footer {
  margin-top: auto;
}

.case-card-v3__btn {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--gray-900);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.case-card-v3:hover .case-card-v3__btn {
  background: var(--card-accent, var(--primary));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.case-card-v3__btn:hover {
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1200px) {
  .cases-v3__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-v3 {
    padding: 0.75rem;
  }

  .cases-v3__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cases-v3__grid {
    grid-template-columns: 1fr;
  }

  .cases-v3__stats {
    gap: 1rem;
  }
}

/* ========================================== */
/* PLACEHOLDER SECTIONS */
/* ========================================== */

.section-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.3s ease;
}

.section-placeholder .icon {
  font-size: 64px;
  margin-bottom: 1rem;
}

.section-placeholder h2 {
  font-size: 32px;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-placeholder p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.section-placeholder .coming-soon {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--hover-bg);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* ========================================== */
/* ANIMATIONS */
/* ========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================== */
/* BUTTONS - UNIFIED STYLE */
/* ========================================== */

.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ========================================== */
/* UTILITIES */
/* ========================================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ========================================== */
/* RESPONSIVE DESIGN */
/* ========================================== */

@media (max-width: 1200px) {
  .header-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .platform-header {
    padding: 12px 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .header-stats {
    gap: 1rem;
  }

  .main-navigation {
    padding: 0 1rem;
    overflow-x: auto;
    gap: 0;
  }

  .nav-tab {
    padding: 0.75rem 1rem;
    font-size: 14px;
    white-space: nowrap;
  }

  .platform-content {
    padding: 1rem;
  }

  .case-types-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero h1 {
    font-size: 32px;
  }

  .landing-hero p {
    font-size: 16px;
  }

  .quick-access {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 16px;
  }

  .header-subtitle {
    font-size: 10px;
  }

  .stat {
    min-width: 60px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 8px;
  }
}

/* ========================================== */
/* DARK MODE SUPPORT (Optional) */
/* ========================================== */

@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here later */
}

/* ========================================== */
/* PRINT STYLES */
/* ========================================== */

@media print {
  .platform-header,
  .main-navigation {
    position: static;
  }
  
  .nav-tab {
    page-break-inside: avoid;
  }
}

/* ========================================== */
/* END OF FILE */
/* ========================================== */