/* ============================================
   DESIGN SYSTEM - Finanzberatung CRM
   A premium, trust-focused aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  /* ========== TYPOGRAPHY ========== */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* ========== PRIMARY - Forest Green ========== */
  /* A deep, confident green that speaks to financial growth */
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-subtle: #dcfce7;
  --primary-muted: #bbf7d0;

  /* ========== SECONDARY - Slate ========== */
  /* Professional, neutral grounding */
  --secondary: #475569;
  --secondary-light: #64748b;
  --secondary-dark: #334155;

  /* ========== ACCENT - Emerald ========== */
  /* For highlights and special moments */
  --accent: #10b981;
  --accent-dark: #059669;

  /* ========== STATUS COLORS ========== */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --success-border: #86efac;
  --success-subtle: #dcfce7;
  --success-muted: #86efac;

  --warning: #eab308;
  --warning-bg: #fefce8;
  --warning-border: #fde047;
  --warning-subtle: #fef9c3;
  --warning-muted: #fde047;

  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --danger-subtle: #fee2e2;
  --danger-muted: #fca5a5;

  --info: #0ea5e9;
  --info-bg: #f0f9ff;
  --info-border: #7dd3fc;

  /* ========== BACKGROUNDS ========== */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  /* ========== TEXT COLORS ========== */
  --text: #0f172a;
  --text-secondary: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* ========== BORDERS & DIVIDERS ========== */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: var(--primary);

  /* ========== SHADOWS ========== */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  --shadow-focus: 0 0 0 3px rgba(22, 163, 74, 0.15);

  /* ========== SPACING & SIZING ========== */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ========== TRANSITIONS ========== */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;

  /* ========== STAGE COLORS (Funnel) ========== */
  --stage-new: #64748b;
  --stage-new-bg: #f1f5f9;
  --stage-ttv: #8b5cf6;
  --stage-ttv-bg: #f5f3ff;
  --stage-gb: #0ea5e9;
  --stage-gb-bg: #f0f9ff;
  --stage-ft: #6366f1;
  --stage-ft-bg: #eef2ff;
  --stage-at: #f59e0b;
  --stage-at-bg: #fffbeb;
  --stage-concept: #14b8a6;
  --stage-concept-bg: #f0fdfa;
  --stage-client: #22c55e;
  --stage-client-bg: #f0fdf4;
  --stage-not-responsive: #e07040;
  --stage-not-responsive-bg: #fef3ed;
  --stage-contacted: #7c8db0;
  --stage-contacted-bg: #f0f2f7;
  --stage-lost: #ef4444;
  --stage-lost-bg: #fef2f2;
}

/* ========== GLOBAL REFINEMENTS ========== */
::selection {
  background: var(--primary-muted);
  color: var(--primary-dark);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-light);
}
