/* layer7 Design Tokens — Demo A "Evolution" (Grün) */

:root {
  /* Primary — Modernisiertes Grün */
  --brand-primary: #22c55e;
  --brand-primary-light: #4ade80;
  --brand-primary-dark: #16a34a;
  /* highlight color used for headline accents, stats, badges — matches the hero green */
  --brand-primary-deeper: #22c55e;
  --brand-primary-subtle: #f0fdf4;
  --brand-primary-rgb: 34, 197, 94;

  /* Secondary — Tiefes Dunkelgrün-Schwarz */
  --brand-secondary: #0a1a0f;
  --brand-secondary-light: #1a2e22;

  /* Accent — Smaragd */
  --brand-accent: #10b981;
  --brand-accent-light: #34d399;

  /* Warm regional accent (Hochrhein / Südbaden warmth) */
  --brand-warm: #d4a574;   /* gedämpftes Terrakotta-Sand */
  --brand-warm-subtle: #faf6f0;

  /* Text */
  --brand-text-primary: #111827;
  --brand-text-secondary: #4b5563;
  --brand-text-muted: #9ca3af;
  --brand-text-on-dark: #f9fafb;

  /* Backgrounds */
  --brand-bg-primary: #ffffff;
  --brand-bg-secondary: #f9fafb;
  --brand-bg-tertiary: #f3f4f6;
  --brand-bg-warm: #fbfaf7; /* subtil warmer Papier-Ton */

  /* Borders */
  --brand-border: #e5e7eb;
  --brand-border-hover: #d1d5db;
  --brand-border-strong: #9ca3af;

  /* Status */
  --brand-success: #22c55e;
  --brand-warning: #f59e0b;
  --brand-error: #ef4444;

  /* Shadows */
  --brand-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --brand-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --brand-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --brand-shadow-xl: 0 20px 35px -10px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.03);
  --brand-shadow-card: 0 0 0 1px rgb(0 0 0 / 0.03), 0 2px 4px rgb(0 0 0 / 0.04), 0 12px 24px rgb(0 0 0 / 0.04);
  --brand-shadow-green: 0 10px 30px -10px rgba(34, 197, 94, 0.3);

  /* Radius */
  --brand-radius-sm: 0.375rem;
  --brand-radius-md: 0.5rem;
  --brand-radius-lg: 0.75rem;
  --brand-radius-xl: 1rem;
  --brand-radius-2xl: 1.5rem;
  --brand-radius-full: 9999px;

  /* Fonts */
  --brand-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand-font-display: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  --brand-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --brand-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --brand-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --brand-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --brand-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --brand-primary: #4ade80;
  --brand-primary-light: #86efac;
  --brand-primary-dark: #22c55e;
  --brand-primary-deeper: #16a34a;
  --brand-primary-subtle: rgba(34, 197, 94, 0.08);

  --brand-secondary: #05100a;
  --brand-secondary-light: #0f1e14;

  --brand-accent: #34d399;
  --brand-accent-light: #6ee7b7;

  --brand-warm: #c9a57d;
  --brand-warm-subtle: rgba(212, 165, 116, 0.08);

  --brand-text-primary: #f9fafb;
  --brand-text-secondary: #d1d5db;
  --brand-text-muted: #6b7280;
  --brand-text-on-dark: #f9fafb;

  --brand-bg-primary: #0a0d0b;
  --brand-bg-secondary: #111714;
  --brand-bg-tertiary: #1a211c;
  --brand-bg-warm: #0f1410;

  --brand-border: #242b27;
  --brand-border-hover: #323a35;
  --brand-border-strong: #4a534c;

  --brand-shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 2px 4px rgba(0,0,0,0.3);
  --brand-shadow-lg: 0 10px 30px -10px rgba(0,0,0,0.5);
  --brand-shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--brand-font-primary);
  background: var(--brand-bg-primary);
  color: var(--brand-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 300ms ease, color 300ms ease;
}

body {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.003em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brand-text-primary);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--brand-primary); color: #0a1a0f; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--brand-border-hover); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-border-strong); }

/* Utility classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-narrow { max-width: 768px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Keyframes */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes heroCellIn {
  from { opacity: 0; }
  to { opacity: var(--heroCellOp, 0.08); }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes scanline {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50% { transform: scaleY(0.3); transform-origin: bottom; opacity: 1; }
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.4,0,0.2,1), transform 700ms cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
