/**
 * CSS CUSTOM PROPERTIES / VARIABLEN
 * ==================================
 *
 * Zentrale CSS-Variablen für das gesamte Theme.
 * Die Werte werden auch aus config.php generiert (inline in header.php).
 *
 * WICHTIG: Diese Datei überschreibt Bootstrap-Defaults!
 */

:root {
  /* ============================
     FARBEN - Primär (Logo: #373b3d Anthrazit)
     ============================ */
  --color-primary: #373b3d;
  --color-primary-light: #4a4f52;
  --color-primary-dark: #252829;
  --color-primary-rgb: 55, 59, 61;

  /* Sekundär (Bronze-Gold - wärmer, komplementär zu Anthrazit) */
  --color-secondary: #b8860b;
  --color-secondary-light: #d4a84b;
  --color-secondary-dark: #8b6914;
  --color-secondary-rgb: 184, 134, 11;

  /* Akzent (Warmes Terrakotta-Orange für CTAs) */
  --color-accent: #d2691e;
  --color-accent-light: #e07c24;
  --color-accent-dark: #b5541a;
  --color-accent-rgb: 210, 105, 30;

  /* Text */
  --color-text: #2c2c2c;
  --color-text-light: #505050;
  --color-text-muted: #757575;
  --color-text-inverse: #ffffff;

  /* Hintergründe (wärmeres Off-White) */
  --color-bg: #ffffff;
  --color-bg-alt: #faf8f5;
  --color-bg-warm: #f5f0e8;
  --color-bg-dark: #373b3d;
  --color-bg-darker: #252829;

  /* Status */
  --color-success: #2d7d46;
  --color-error: #c53030;
  --color-warning: #d69e2e;
  --color-info: #3182ce;

  /* ============================
     TYPOGRAFIE
     ============================ */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Montserrat', 'Segoe UI', sans-serif;

  /* Font Sizes (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ============================
     ABSTÄNDE
     ============================ */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 2.5rem;    /* 40px */
  --space-8: 3rem;      /* 48px */
  --space-9: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-11: 6rem;     /* 96px */
  --space-12: 8rem;     /* 128px */

  /* Section Spacing */
  --section-padding-y: clamp(4rem, 3rem + 5vw, 7rem);
  --section-padding-y-sm: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);

  /* ============================
     BORDER RADIUS
     ============================ */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* ============================
     SCHATTEN
     ============================ */
  --shadow-xs: 0 1px 2px rgba(55, 59, 61, 0.05);
  --shadow-sm: 0 1px 3px rgba(55, 59, 61, 0.08);
  --shadow-md: 0 4px 12px rgba(55, 59, 61, 0.12);
  --shadow-lg: 0 10px 40px rgba(55, 59, 61, 0.15);
  --shadow-xl: 0 20px 60px rgba(55, 59, 61, 0.18);
  --shadow-2xl: 0 25px 80px rgba(55, 59, 61, 0.22);

  /* Inset Shadows */
  --shadow-inset: inset 0 2px 4px rgba(55, 59, 61, 0.06);

  /* Colored Shadows */
  --shadow-primary: 0 4px 14px rgba(55, 59, 61, 0.25);
  --shadow-accent: 0 4px 14px rgba(210, 105, 30, 0.35);
  --shadow-secondary: 0 4px 14px rgba(184, 134, 11, 0.25);

  /* ============================
     TRANSITIONS
     ============================ */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slower: 600ms ease;

  /* Easing */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ============================
     Z-INDEX
     ============================ */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ============================
     LAYOUT
     ============================ */
  --container-max: 1320px;
  --container-narrow: 960px;
  --container-prose: 720px;

  /* Header Height */
  --header-height: 80px;
  --header-height-scrolled: 70px;

  /* ============================
     BOOTSTRAP OVERRIDES
     ============================ */
  --bs-primary: var(--color-primary);
  --bs-primary-rgb: var(--color-primary-rgb);
  --bs-secondary: var(--color-secondary);
  --bs-secondary-rgb: var(--color-secondary-rgb);

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--text-base);
  --bs-body-font-weight: var(--weight-normal);
  --bs-body-line-height: var(--leading-normal);
  --bs-body-color: var(--color-text);
  --bs-body-bg: var(--color-bg);

  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--color-primary-dark);

  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);

  --bs-box-shadow-sm: var(--shadow-sm);
  --bs-box-shadow: var(--shadow-md);
  --bs-box-shadow-lg: var(--shadow-lg);
}

/* Dark Mode Support (optional, für später) */
@media (prefers-color-scheme: dark) {
  :root.auto-dark {
    --color-bg: #1a1a1a;
    --color-bg-alt: #252525;
    --color-text: #e8e8e8;
    --color-text-light: #b0b0b0;
    --color-text-muted: #808080;
  }
}
