/* website/css/tokens.css */

:root {
  /* ── Typography ───────────────────────────────────────────────────────── */

  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: clamp(2rem, 4vw, 3.5rem);
  --font-size-hero: clamp(2.8rem, 6vw, 5.5rem);

  --line-height-tight: 1.05;
  --line-height-heading: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

  /* ── Layout ───────────────────────────────────────────────────────────── */

  --content-max-width: 1200px;
  --content-padding: clamp(1.25rem, 4vw, 2rem);

  --section-padding-y: clamp(5rem, 10vw, 9rem);
  --section-padding-y-compact: clamp(3.5rem, 7vw, 6rem);

  /* ── Spacing ──────────────────────────────────────────────────────────── */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Radius ───────────────────────────────────────────────────────────── */

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* ── Motion ───────────────────────────────────────────────────────────── */

  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 320ms ease;

  /* ── Brand ────────────────────────────────────────────────────────────── */

  --lokapp-blue: #3b82f6;
  --lokapp-blue-dark: #60a5fa;

  --lokapp-blue-soft: rgba(59, 130, 246, 0.1);
  --lokapp-blue-border: rgba(59, 130, 246, 0.28);
  --lokapp-blue-glow: rgba(59, 130, 246, 0.22);

  /* ── Light Theme — LokApp App Palette ─────────────────────────────────── */

  --bg: #f8fafc;
  --bg-elevated: #ffffff;

  --surface: #ffffff;
  --surface-low: #f8fafc;
  --surface-mid: #f1f5f9;
  --surface-high: #e2e8f0;
  --surface-highest: #cbd5e1;

  --border: #e2e8f0;
  --border-subtle: #f1f5f9;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;

  --selection-accent: #3b82f6;

  /* ── Glass ────────────────────────────────────────────────────────────── */

  --header-glass: rgba(248, 250, 252, 0.74);
  --glass-surface: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(226, 232, 240, 0.86);

  /* ── Effects ──────────────────────────────────────────────────────────── */

  --shadow-card: 0 14px 42px rgba(15, 23, 42, 0.045);
  --shadow-card-hover: 0 18px 48px rgba(15, 23, 42, 0.08);
  --shadow-button: 0 8px 22px rgba(59, 130, 246, 0.18);

  --hero-glow:
    radial-gradient(
      circle at center,
      rgba(59, 130, 246, 0.2) 0%,
      rgba(59, 130, 246, 0.06) 42%,
      transparent 72%
    );
}

[data-theme="dark"] {
  /* ── Dark Theme — LokApp App Palette ──────────────────────────────────── */

  --bg: #0f172a;
  --bg-elevated: #0b1120;

  --surface: #111827;
  --surface-low: #172033;
  --surface-mid: #1e293b;
  --surface-high: #243448;
  --surface-highest: #334155;

  --border: #334155;
  --border-subtle: #1e293b;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --selection-accent: #60a5fa;

  --lokapp-blue: #60a5fa;
  --lokapp-blue-soft: rgba(96, 165, 250, 0.11);
  --lokapp-blue-border: rgba(96, 165, 250, 0.3);
  --lokapp-blue-glow: rgba(96, 165, 250, 0.2);

  /* ── Glass ────────────────────────────────────────────────────────────── */

  --header-glass: rgba(15, 23, 42, 0.72);
  --glass-surface: rgba(17, 24, 39, 0.68);
  --glass-border: rgba(51, 65, 85, 0.78);

  /* ── Effects ──────────────────────────────────────────────────────────── */

  --shadow-card: none;
  --shadow-card-hover: 0 18px 52px rgba(0, 0, 0, 0.18);
  --shadow-button: 0 8px 26px rgba(96, 165, 250, 0.14);

  --hero-glow:
    radial-gradient(
      circle at center,
      rgba(96, 165, 250, 0.18) 0%,
      rgba(96, 165, 250, 0.05) 42%,
      transparent 72%
    );
}

/* ── Shared Component Tokens ────────────────────────────────────────────── */

:root {
  --header-height: 76px;
  --header-height-mobile: 68px;

  --button-height: 48px;
  --button-height-compact: 40px;

  --card-padding: clamp(1.25rem, 2vw, 1.75rem);
  --card-hover-translate: -4px;

  --focus-ring:
    0 0 0 3px rgba(59, 130, 246, 0.16);

  /* Bewusst dezent gehalten und nur für den gescrollten Header genutzt. */
  --backdrop-blur: blur(10px);

  --shadow-preview: 0 20px 50px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  --shadow-preview: 0 24px 60px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] {
  --focus-ring:
    0 0 0 3px rgba(96, 165, 250, 0.18);
}