Styles.css

/**
 * CFO Dashboard - FIXED Stylesheet
 * Design improvements: Compact header, visible content, fixed chart heights
 * Version: 2.0 - October 2025
 */

/* ========================================== */
/* CSS VARIABLES & DESIGN TOKENS */
/* ========================================== */

:root {
  /* Colors - Primary */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  
  /* Horváth Brand Colors */
  --horvath-blue: #003E7E;
  --horvath-blue-light: #1e5a9e;
  
  /* Colors - Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Colors - Neutral */
  --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);
  --border: var(--gray-200);
  --background: #ffffff;
  --background-alt: var(--gray-50);
  
  /* 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;
  --font-size-3xl: 30px;
  
  /* Transitions */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.3s ease;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

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

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;
}

/* ========================================== */
/* ✅ FIX 1: COMPACT HEADER (60px statt 100px) */
/* ========================================== */

.dashboard-header {
  background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
  border-bottom: none;
  padding: 12px 40px; /* ✅ REDUZIERT von 20px auf 12px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 60px; /* ✅ FIXIERT auf 60px */
}

.header-left h1 {
  font-size: 20px; /* ✅ REDUZIERT von 22px */
  font-weight: 600;
  color: white;
  margin: 0 0 2px 0; /* ✅ REDUZIERT von 4px auf 2px */
  letter-spacing: -0.5px;
  line-height: 1.2; /* ✅ NEU */
}

.header-subtitle {
  font-size: 11px; /* ✅ REDUZIERT von 12px */
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0;
  font-weight: 400;
  line-height: 1.3; /* ✅ NEU */
}

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

.header-stats {
  display: flex;
  gap: 28px; /* ✅ REDUZIERT von 32px */
  align-items: center;
}

.stat {
  text-align: center;
  min-width: 75px; /* ✅ REDUZIERT von 80px */
}

.stat-value {
  font-size: 22px !important; /* ✅ REDUZIERT von 24px */
  font-weight: 700;
  color: white !important;
  line-height: 1.1; /* ✅ NEU */
  margin-bottom: 3px; /* ✅ REDUZIERT von 4px */
}

.stat-label {
  font-size: 9px !important; /* ✅ REDUZIERT von 10px */
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.2; /* ✅ NEU */
}

.header-right {
  display: flex;
  gap: var(--spacing);
}

.btn-settings,
.btn-user {
  width: 36px; /* ✅ REDUZIERT von 40px */
  height: 36px; /* ✅ REDUZIERT von 40px */
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 16px; /* ✅ REDUZIERT von 18px */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-settings:hover,
.btn-user:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================== */
/* NAVIGATION */
/* ========================================== */

.main-navigation {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;  /* ✅ Explizit statt var */
  display: flex;
  gap: 4px;  /* ✅ Kleiner Gap */
  position: sticky;
  top: 60px;
  z-index: 1020;
  margin-bottom: 0;  /* ✅ NEU: Kein Abstand nach unten */
}

.tab-btn {
  padding: 12px 20px;  /* ✅ Kompakter */
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 13px;  /* ✅ Kleiner */
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--gray-50);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ========================================== */
/* MAIN CONTENT WRAPPER */
/* ========================================== */

.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  max-width: 100%;
  min-height: calc(100vh - 120px); /* ✅ ANGEPASST von 160px auf 120px */
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-main {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px 16px 32px;  /* ✅ KEIN padding-top! */
  background: var(--background-alt);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ========================================== */
/* UEBERSICHT TAB - Dashboard Grid v2.0      */
/* ========================================== */

/* Haupt-Container — minimal override, let JS styles handle the rest */
#projekt-tab-uebersicht {
  background: #F5F7FA !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Standard Charts in other tabs (not Uebersicht) */
.chart-container {
  height: 250px !important;
  max-height: 250px !important;
  position: relative;
}

.chart-container canvas {
  max-height: 250px !important;
  width: 100% !important;
  height: 100% !important;
}

/* ========================================== */
/* PORTFOLIO OVERVIEW HEADER */
/* ========================================== */

.portfolio-overview-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 3px solid #1e40af;
}

.portfolio-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: auto;
}

.portfolio-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.portfolio-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.portfolio-stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
}

.portfolio-stat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.portfolio-stat.portfolio-stat-success .portfolio-stat-value {
  color: #059669;
}

.portfolio-stat.portfolio-stat-warning .portfolio-stat-value {
  color: #d97706;
}

.portfolio-stat.portfolio-stat-neutral .portfolio-stat-value {
  color: #64748b;
}

/* ========================================== */
/* SECTION HEADER WITH VIEW SWITCHER */
/* ========================================== */

.section-header-with-views {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--spacing);
}

.section-icon {
  font-size: 28px;
}

.section-title h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.view-switcher {
  display: flex;
  gap: 4px;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-btn:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

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

.view-icon {
  font-size: 14px;
}

/* ========================================== */
/* CENTERED ACTION BUTTON */
/* ========================================== */

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size);
}

/* ========================================== */
/* CONTROL PANEL (Sliders) */
/* ========================================== */

.control-panel {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow);
}

.control-panel h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.control-description {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-lg);
}

.sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.slider-header label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text);
}

.slider-value {
  font-weight: 700;
  color: var(--primary);
  font-size: var(--font-size);
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius);
  background: var(--gray-200);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-top: var(--spacing-sm);
}

/* ========================================== */
/* METRICS GRID */
/* ========================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.metric-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  display: flex;
  gap: var(--spacing-md);
  transition: var(--transition);
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.metric-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.metric-change {
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.metric-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.metric-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.metric-change.neutral {
  background: var(--gray-100);
  color: var(--text-light);
}

/* ========================================== */
/* CHARTS GRID */
/* ========================================== */

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.chart-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.chart-card.chart-wide {
  grid-column: span 2;
}

.chart-header {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

.chart-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  display: block;
  margin-top: 4px;
}

/* ========================================== */
/* SECTION HEADERS */
/* ========================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  margin-top: 0;
}

.section-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.section-header p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.header-actions {
  display: flex;
  gap: var(--spacing);
}

/* ========================================== */
/* TABLE CONTROLS */
/* ========================================== */

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing);
  margin-bottom: var(--spacing-lg);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: var(--spacing);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-box input {
  width: 100%;
  padding: var(--spacing) var(--spacing) var(--spacing) 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-group {
  display: flex;
  gap: var(--spacing);
}

.filter-group select {
  padding: var(--spacing) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  background: var(--background);
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:hover {
  border-color: var(--gray-300);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ========================================== */
/* DATA TABLE */
/* ========================================== */

.table-container {
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.data-table th[onclick] {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.data-table th[onclick]:hover {
  background-color: #e2e8f0;
  color: #1e40af;
}

.sort-arrow {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 4px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.data-table th[onclick]:hover .sort-arrow {
  opacity: 1;
  color: #1e40af;
}

.data-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  background: white;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 16px;
  font-size: 14px;
  color: #1e293b;
  vertical-align: middle;
  background: transparent;
}

.data-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.data-table td > div[onclick] {
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: color 0.15s ease;
}

.data-table td > div[onclick]:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* ========================================== */
/* KARTEN VIEW - PROFESSIONAL PROJECT CARDS */
/* ========================================== */

.projekt-karten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 4px;
}

.projekt-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.projekt-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.projekt-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.projekt-card-icon {
  font-size: 20px;
}

.projekt-card-checkbox {
  flex-shrink: 0;
}

.projekt-card-body {
  padding: 16px;
  cursor: pointer;
}

.projekt-card-body:hover .projekt-card-title {
  color: #1e40af;
}

.projekt-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.projekt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.projekt-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projekt-card-meta-label {
  font-weight: 600;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.projekt-card-meta-value {
  font-weight: 500;
  color: #475569;
}

.projekt-card-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.projekt-card-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.projekt-card-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.projekt-card-btn.btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ========================================== */
/* KOMPAKT VIEW - MINIMAL SCANNABLE LIST */
/* ========================================== */

.projekt-kompakt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projekt-kompakt-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.projekt-kompakt-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateX(2px);
}

.projekt-kompakt-checkbox {
  flex-shrink: 0;
}

.projekt-kompakt-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.projekt-kompakt-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.projekt-kompakt-main:hover .projekt-kompakt-name {
  color: #1e40af;
}

.projekt-kompakt-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projekt-kompakt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.projekt-kompakt-separator {
  color: #cbd5e1;
}

.projekt-kompakt-status {
  flex-shrink: 0;
}

.projekt-kompakt-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ========================================== */
/* STATUS BADGES */
/* ========================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-badge.status-aktiv,
.status-badge.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-planung {
  background: rgba(59, 130, 246, 0.12);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.status-on-hold {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-abgeschlossen {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.status-konzept {
  background: rgba(139, 92, 246, 0.12);
  color: #5b21b6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ========================================== */
/* ACTION BUTTONS */
/* ========================================== */

.action-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-icon.btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* ========================================== */
/* BUTTONS */
/* ========================================== */

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

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--background);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

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

.btn-danger:hover {
  background: #dc2626;
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* ========================================== */
/* BULK ACTIONS BAR */
/* ========================================== */

.bulk-actions-bar {
  display: none;
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  align-items: center;
  gap: var(--spacing-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.bulk-actions-info {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.bulk-actions-buttons {
  display: flex;
  gap: var(--spacing);
}

.bulk-actions-bar select {
  padding: var(--spacing-sm) var(--spacing);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

/* ========================================== */
/* BREADCRUMB */
/* ========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;  /* ✅ VON 8px auf 4px */
  margin-top: 0;  /* ✅ NEU */
  padding: 0;  /* ✅ KEIN Padding */
  font-size: 12px;
}

.breadcrumb-link {
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  transition: var(--transition);
  border-radius: 4px;
}

.breadcrumb-link:hover {
  background: var(--gray-100);
  text-decoration: none; /* ✅ Kein Underline mehr */
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 11px;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
  padding: 2px 0;
  font-size: 12px;
}

/* ========================================== */
/* LOADING INDICATOR */
/* ========================================== */

.loading-indicator {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  gap: var(--spacing);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* ========================================== */
/* FORMS */
/* ========================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.form-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.form-section-full {
  grid-column: span 2;
}

.form-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="month"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing);
}

/* ========================================== */
/* PROJEKT STICKY HEADER SYSTEM              */
/* Ersetzt den alten DETAIL TABS Abschnitt   */
/* ========================================== */

/* ==========================================
   STICKY HEADER WRAPPER
   Enthält: Breadcrumb + Tabs + Section Header + Progress
   ========================================== */

.projekt-sticky-header {
  position: sticky;
  top: 0;  /* ✅ GEÄNDERT: War 104px - jetzt 0 */
  z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 -32px;
  padding: 0 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Scroll-Shadow Effekt */
.projekt-sticky-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}

/* ==========================================
   BREADCRUMB (Im Sticky Header)
   ========================================== */

.projekt-sticky-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  margin: 0;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.projekt-sticky-header .breadcrumb-link {
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.projekt-sticky-header .breadcrumb-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.projekt-sticky-header .breadcrumb-separator {
  color: #9ca3af;
  font-size: 10px;
}

.projekt-sticky-header .breadcrumb-current {
  color: #111827;
  font-weight: 600;
  font-size: 12px;
}

/* ==========================================
   DETAIL TABS (Im Sticky Header)
   ========================================== */

.projekt-sticky-header .detail-tabs,
.detail-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.projekt-sticky-header .detail-tab,
.detail-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.projekt-sticky-header .detail-tab:hover,
.detail-tab:hover {
  color: #111827;
  background: #f9fafb;
}

.projekt-sticky-header .detail-tab.active,
.detail-tab.active {
  color: #2563eb;
  font-weight: 600;
  border-bottom-color: #2563eb;
  background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.04));
}

/* ==========================================
   SECTION HEADER COMPACT (Im Sticky Header)
   ========================================== */

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-group .section-icon {
  font-size: 22px;
}

.section-title-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.section-title-text p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.section-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================
   PROGRESS BAR COMPACT (Im Sticky Header)
   ========================================== */

.progress-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}

.progress-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.progress-bar-wrapper {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-value {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  min-width: 36px;
  text-align: right;
}

/* ==========================================
   LEGACY SUPPORT (Alte Detail-Tabs außerhalb Sticky)
   Falls irgendwo noch .detail-tabs ohne Wrapper verwendet wird
   ========================================== */

#projekt-detail-view > .detail-tabs {
  position: sticky;
  top: 104px;
  z-index: 100;
  background: white;
  border-bottom: 2px solid #e5e7eb;
  margin: 0 -32px;
  padding: 0 32px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ==========================================
   TAB CONTENT STYLES
   ========================================== */

.detail-tab-content,
.projekt-tab-content,
.artikel-tab-content {
  display: none;
}

.detail-tab-content.active,
.projekt-tab-content.active,
.artikel-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ==========================================
   RESPONSIVE ANPASSUNGEN
   ========================================== */

@media (max-width: 1024px) {
  .projekt-sticky-header {
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .projekt-sticky-header .detail-tab,
  .detail-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .section-header-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .section-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .projekt-sticky-header {
    top: 52px; /* Nur Header, Navigation wird ausgeblendet */
  }
  
  .projekt-sticky-header .detail-tabs,
  .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .projekt-sticky-header .detail-tabs::-webkit-scrollbar,
  .detail-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .projekt-sticky-header .detail-tab,
  .detail-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .section-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .section-title-text h3 {
    font-size: 14px;
  }
  
  .section-title-text p {
    font-size: 11px;
  }
}

/* ==========================================
   SMOOTH SCROLLING
   ========================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 220px; /* Höhe des gesamten Sticky-Bereichs */
}

/* ========================================== */
/* PLACEHOLDER STATES */
/* ========================================== */

.insights-container {
  padding: var(--spacing-2xl);
}

.insights-placeholder {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.placeholder-icon {
  font-size: 64px;
  opacity: 0.3;
  margin-bottom: var(--spacing-lg);
}

.insights-placeholder h3,
.insights-placeholder h4 {
  color: var(--text);
  margin-bottom: var(--spacing);
}

.insights-placeholder p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

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

@media (max-width: 1400px) {
  /* Sidebar removed */
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-card.chart-wide {
    grid-column: span 1;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-section-full {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: var(--spacing);
    padding: 10px 20px; /* ✅ Noch kompakter auf Mobile */
  }
  
  .header-stats {
    gap: 16px;
  }
  
  .stat {
    min-width: 60px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .table-controls {
    flex-direction: column;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .sliders-grid {
    grid-template-columns: 1fr;
  }
  
  .bulk-actions-bar {
    flex-direction: column;
    left: var(--spacing);
    right: var(--spacing);
    transform: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .portfolio-stats {
    flex-wrap: wrap;
    gap: var(--spacing-lg);
  }
}

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

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

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================== */
/* SCROLLBAR STYLING */
/* ========================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

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

@media print {
  .dashboard-header,
  .main-navigation,
  .btn,
  .action-buttons,
  .bulk-actions-bar {
    display: none !important;
  }
  
  .dashboard-main {
    padding: 0;
  }
  
  .chart-card,
  .metric-card {
    break-inside: avoid;
  }
  
  #projekt-tab-uebersicht {
    background: white !important;
  }

  /* ==========================================
   MODAL STYLES
   ========================================== */

.modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #f1f5f9;
    border-radius: 4px;
    color: #1e3a8a;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
}

/* ==========================================
   GESCHÄFTSMODELL STYLES V2
   Inline Badges, Section Validation, Custom Streams
   ========================================== */

.geschaeftsmodell-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-header-small {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.section-header-small h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-small small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  line-height: 1.5;
}

.gm-section {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.gm-section:hover {
  box-shadow: var(--shadow-md);
}

/* Feature Items */
.feature-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.feature-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  transition: border-color 0.2s ease;
}

.feature-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Custom Stream Items */
.custom-stream-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.custom-stream-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  transition: border-color 0.2s ease;
}

.custom-stream-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==========================================
   INLINE BADGES (KI-Feedback)
   ========================================== */

.inline-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid;
  animation: slideInFromLeft 0.3s ease;
  margin-top: 16px;
}

.inline-badge > span {
  font-size: 24px;
  flex-shrink: 0;
}

.inline-badge strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
  color: var(--text);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
  color: var(--text);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--danger);
  color: var(--text);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--info);
  color: var(--text);
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Progress Bar Styles */
#gm-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s ease;
}

/* Form Sections Spacing */
.gm-section + .gm-section {
  margin-top: 24px;
}

/* Radio and Checkbox Labels - Better UX */
.gm-section label[style*="cursor: pointer"] {
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.gm-section label[style*="cursor: pointer"]:hover {
  background-color: var(--gray-50);
}

/* Checkbox and Radio Styling */
.gm-section input[type="checkbox"],
.gm-section input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Section Completion Button */
.gm-section .btn-primary {
  position: relative;
  overflow: hidden;
}

.gm-section .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.gm-section .btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Icon Buttons */
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--gray-100);
  transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Form Group Improvements */
.gm-section .form-group label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.gm-section .form-group small {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.4;
}

/* Grid Layouts for Metrics */
.gm-section input[type="number"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family);
  transition: border-color 0.2s ease;
}

.gm-section input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Revenue Stream Checkboxes - Special Styling */
.gm-section input[name="revenue_streams"] + span {
  font-weight: 500;
}

.gm-section input[name="revenue_streams"]:checked + span {
  color: var(--primary);
}

/* Hover Effects on Section */
.gm-section[data-section] {
  scroll-margin-top: 100px; /* For smooth scrolling with fixed header */
}

/* Tooltips for Tips */
.form-group small::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .geschaeftsmodell-container {
    padding: 0 8px;
  }
  
  .gm-section {
    padding: 16px;
  }
  
  .feature-item,
  .custom-stream-item {
    flex-direction: column;
  }
  
  .feature-input,
  .custom-stream-input {
    width: 100%;
  }

  .inline-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-badge > span {
    font-size: 20px;
  }
}

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

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

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

/* Success Toast Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ========================================== */
/* GESCHÄFTSMODELL - MODAL & COMPONENTS */
/* ========================================== */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

/* Button Icons */
.btn-icon {
  padding: 4px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #f5f5f5;
}

.btn-danger {
  color: #dc3545;
}

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

/* Section Items */
.competitor-item,
.assumption-item,
.risk-item {
  background: #f9f9f9;
  transition: background 0.2s;
}

.competitor-item:hover,
.assumption-item:hover,
.risk-item:hover {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 20px;
    max-height: 85vh;
  }
}

/* Sortable Table Headers */
.data-table th {
    position: relative;
    user-select: none;
}

.data-table th[onclick] {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.data-table th[onclick]:hover {
    background-color: #f1f5f9;
}

.sort-arrow {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 4px;
    opacity: 0.5;
}

.data-table th[onclick]:hover .sort-arrow {
    opacity: 1;
    color: #1e40af;
}

/* ========================================== */
/* PROJEKT-DETAIL KOMPAKT-OPTIMIERUNG */
/* ========================================== */

#projekt-detail-view {
  padding-top: 0;  /* ✅ KEIN Padding */
  margin-top: 0;  /* ✅ KEIN Margin */
}

/* Tab Content: Minimaler Top-Padding */
.projekt-tab-content {
  padding-top: 8px;
}

.projekt-tab-content:not(.active) {
  display: none;
}

/* Alle Überschriften in Projekt-Detail kompakter */
#projekt-detail-view h2,
#projekt-detail-view h3,
#projekt-detail-view h4 {
  margin-top: 0;
  line-height: 1.2;
}

#projekt-detail-view h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

#projekt-detail-view h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

#projekt-detail-view h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Paragraphen kompakter */
#projekt-detail-view p {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Info-Boxen kompakter */
#projekt-detail-view [style*="background:"],
#projekt-detail-view [style*="background-color:"],
#projekt-detail-view [style*="border-left:"] {
  padding: 10px 14px !important;
  margin-bottom: 10px !important;
}

/* Grids kompakter */
#projekt-detail-view [style*="grid-template-columns"] {
  gap: 10px !important;
}

/* Wirtschaftlichkeit: Extra-kompakt */
#projekt-tab-wirtschaftlichkeit > *:first-child {
  margin-top: 0 !important;
}

#projekt-tab-wirtschaftlichkeit > div {
  margin-bottom: 12px !important;
}

/* Header Actions kompakter */
.header-actions {
  gap: 8px;
}

.header-actions .btn {
  padding: 6px 14px;
  font-size: 13px;
}

/* Buttons generell kompakter im Detail */
#projekt-detail-view .btn {
  padding: 6px 14px;
  font-size: 13px;
}

#projekt-detail-view .btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ========================================== */
/* ZURÜCK-BUTTON IM HEADER */
/* ========================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-to-platform {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-back-to-platform:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-2px);
}

.btn-back-to-platform:active {
  transform: translateX(-4px);
}

/* ========================================== */
/* ✅ FONT FIX - FORCE INTER EVERYWHERE */
/* ========================================== */

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

* {
  font-family: inherit;
}

input, select, textarea, button {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ========================================== */
/* ✅ STICKY HEADER FIX - ACTIVE             */
/* ========================================== */

/* Tab Contents: Abstand NACH dem Sticky Header */
#projekt-tab-uebersicht,
#projekt-tab-geschaeftsmodell,
#projekt-tab-artikel,
#projekt-tab-revenue-model,
#projekt-tab-projektkosten,
#projekt-tab-wirtschaftlichkeit,
#projekt-tab-dashboard,
#projekt-tab-business-case {
  padding-top: 16px;
}

/* ========================================== */
/* END STICKY HEADER FIX */
/* ========================================== */

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

