html {
  scroll-behavior: smooth;
}

:root {
  --bg-main: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent-purple: #a855f7;
  --accent-blue: #0ea5e9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Soft Gradients (Stripe Style) */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, rgba(99,102,241,0.2) 100%);
}

.bg-glow-2 {
  top: 400px;
  left: -200px;
  background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, rgba(224,231,255,0.3) 100%);
}

/* Header Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

.brand-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-back-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  transition: all 0.2s;
}

.nav-back-btn:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* Main Layout */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 5rem 0;
}

.hero-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Bento Grid System */
.section-container {
  margin-bottom: 5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.sub-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.3rem;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, border-color 0.2s;
}

.bento-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.card-full {
  grid-column: span 2;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Philosophie Box */
.philosophie-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.philosophie-box .sub-badge {
  color: #818cf8;
}

.philosophie-box h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.philosophie-box p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.65;
}

.philo-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #818cf8;
  display: block;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Visualization Placeholder */
.viz-placeholder-card {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.viz-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.viz-title {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.viz-body {
  padding: 4rem 2rem;
  text-align: center;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.viz-sub {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Footer */
.footer-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.footer-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.footer-card p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.copyright {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  margin-bottom: 0 !important;
}

/* Responsive Breakpoints */
@media (max-width: 850px) {
  .bento-grid, .grid-2-col, .philosophie-box {
    grid-template-columns: 1fr;
  }
  .card-full {
    grid-column: span 1;
  }
  .philo-stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* Executive Dashboard Styles */
/* Verhindert das Überlappen und Abstehen im Hoch- & Querformat */
#dashboard-section, 
#dashboard-section * {
  box-sizing: border-box;
}

#dashboard-section .chart-card {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  overflow: hidden; /* Schneidet überstehende Elemente ab */
}

#dashboard-section canvas {
  width: 100% !important;
  max-width: 100% !important;
}



.dashboard-wrapper {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0.25rem 0;
}

.kpi-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.kpi-status.positive { color: #10b981; }
.kpi-status.warning { color: #f59e0b; }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.chart-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

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

.chart-header {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.canvas-container {
  position: relative;
  height: 220px;
  min-height: 220px; /* Verhindert das Zusammenfallen beim Tab-Wechsel */
  width: 100%;
}

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