/* @decision DD-005 — Tawny Furnace Branding: Foundation Tokens für Landing Page (eigenes Token-System, getrennt von App) */
/* @decision DD-004 — Getrennte Styling-Strategien: Landing Page nutzt eigene CSS-Tokens statt shadcn/Tailwind */
/* ================================================
   MASSGEBUNG Foundation Tokens
   Tawny Furnace Design System
   ================================================ */

:root {
  /* ===== Colors ===== */
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-elevated: #1E1E1E;
  --bg-surface: #252525;
  --bg-overlay: #2C2C2C;

  --orange-primary: #CC5500;
  --orange-hover: #D96600;
  --orange-active: #B34700;
  --orange-glow: rgba(255,109,0,0.25);
  --orange-muted: rgba(204,85,0,0.08);
  --orange-border: rgba(204,85,0,0.25);
  --orange-focus: rgba(204,85,0,0.15);
  --glow-color-primary: rgba(204,85,0,0.12);     /* Layer 1: Outer Glow */
  --glow-color-secondary: var(--orange-muted);   /* Layer 2: Inner Glow */

  --text-primary: rgba(255,255,255,0.87);
  --text-secondary: rgba(255,255,255,0.60);
  --text-tertiary: rgba(255,255,255,0.38);
  --text-muted: rgba(255,255,255,0.50);
  --text-disabled: rgba(255,255,255,0.30);
  --text-on-orange: #FFFFFF;

  --error: #FF6B6B;
  --error-bg: rgba(255,107,107,0.08);
  --success: #4ADE80;
  --success-bg: rgba(74,222,128,0.08);

  --border-subtle: rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.08);
  --border-focus: var(--orange-primary);
  --border-error: var(--error);
  --border-success: var(--success);

  /* ===== Typography ===== */
  --font-primary: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ===== Spacing ===== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* ===== Border Radius ===== */
  --radius: 5px;
  --radius-sm: 3px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* ===== Transitions ===== */
  --transition-fast: 200ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 300ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 400ms cubic-bezier(0.2, 0, 0, 1);

  /* ===== Shadows ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-focus: 0 0 0 3px rgba(204, 85, 0, 0.15);

  /* ===== Z-Index ===== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* ===== Component: Live-Ticker ===== */
  --transition: 200ms cubic-bezier(0.2, 0, 0, 1);
  --border-defined: rgba(255,255,255,0.08);
  --bar-hauptfaktor: rgba(204,85,0,1.0);
  --bar-nebenfaktor: rgba(204,85,0,0.55);
  --bar-label: #E0E0E0;

  /* ===== Aliases ===== */
  --color-accent: var(--orange-primary);
  --color-success: var(--success);
  --color-accent-tint: var(--orange-muted);
  --color-success-tint: var(--success-bg);
  --color-base: var(--bg-primary);
  --orange: var(--orange-primary);
  --color-border-default: var(--border-default);
  --color-text-muted: var(--text-muted);
  --color-text-primary: var(--text-primary);
}

/* ===== Base Reset & Typography ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-primary);
}

.section--elevated {
  background-color: var(--bg-elevated);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ===== Grid Utilities ===== */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== Flex Utilities ===== */
.flex {
  display: flex;
  gap: var(--space-md);
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--col {
  flex-direction: column;
}
