/**
 * =====================================================
 * STELLA BIANCA - CORPORATE DESIGN SYSTEM
 * =====================================================
 * Zentrale Verwaltung aller Design-Entscheidungen
 *
 * Letzte Aktualisierung: 2025-12-11
 * Aktive Variablen: 74 (100% genutzt, optimiert)
 * =====================================================
 */

:root {
  /* ===================================================
   * FARBEN - Brand Colors
   * =================================================== */

  /* Primary (Hauptfarbe - Blau) */
  --primary: #477fba;

  /* Secondary (Sekundärfarbe - Hellblau) */
  --secondary: #8db5df;
  --secondary-lighter: #d4e5f5;

  /* Background Colors */
  --background-beige: #FCF9F2;
  --background-white: #ffffff;
  --background-gray: #e9ecef;

  /* Text Colors */
  --text-primary: #2F231D;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-muted: #6c757d;
  --text-white: #ffffff;

  /* Border Colors */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --border-dark: #adb5bd;


  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #477fba, #8db5df);
  --gradient-primary-reverse: linear-gradient(135deg, #8db5df, #477fba);


  /* ===================================================
   * TYPOGRAFIE - Schriftarten & Größen
   * =================================================== */

  /* Font Families */
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Lato', Helvetica, Arial, sans-serif;

  /* Font Sizes - Heading */
  --font-size-h1: 2.5rem;        /* 40px */
  --font-size-h2: 2rem;          /* 32px */
  --font-size-h3: 1.75rem;       /* 28px */
  --font-size-h4: 1.5rem;        /* 24px */
  --font-size-h5: 1.25rem;       /* 20px */
  --font-size-h6: 1rem;          /* 16px */

  /* Font Sizes - Body */
  --font-size-base: 1rem;        /* 16px */
  --font-size-lg: 1.125rem;      /* 18px */
  --font-size-sm: 0.875rem;      /* 14px */
  --font-size-xs: 0.75rem;       /* 12px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;


  /* ===================================================
   * TYPOGRAFIE ERWEITERUNGEN - Semantische Größen
   * =================================================== */

  /* Icon Sizes */
  --icon-size-md: 1.3rem;         /* 21px */
  --icon-size-lg: 1.5rem;         /* 24px */
  --icon-size-xl: 2rem;           /* 32px */
  --icon-size-2xl: 2.5rem;        /* 40px */

  /* Component-Specific Font Sizes */
  --font-size-card-title: 1.5rem;        /* 24px */
  --font-size-section-title: 2rem;       /* 32px */
  --font-size-subsection: 1.1rem;        /* 17px */

  /* Body Text Variations */
  --font-size-body-sm: 0.9rem;           /* 14px */
  --font-size-body-xs: 0.85rem;          /* 13px */

  /* UI Elements */
  --font-size-badge: 0.8rem;             /* 13px */
  --font-size-badge-sm: 0.75rem;         /* 12px */
  --font-size-caption: 0.875rem;         /* 14px */
  --font-size-counter: 0.875rem;         /* 14px */

  /* Button Text Sizes */
  --font-size-button: 1rem;              /* 16px */
  --font-size-button-sm: 0.875rem;       /* 14px */

  /* Overlay & Special Text */
  --font-size-overlay: 2.25rem;          /* 36px */
  --font-size-date-badge: 1.75rem;       /* 28px */

  /* Footer */
  --font-size-footer-heading: 1.1rem;    /* 17px */
  --font-size-footer-text: 0.95rem;      /* 15px */
  --font-size-footer-small: 0.85rem;     /* 13px */


  /* ===================================================
   * SPACING - Abstände & Paddings
   * =================================================== */

  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-2xl: 3rem;      /* 48px */


  /* ===================================================
   * BORDERS - Rahmen & Rundungen
   * =================================================== */

  /* Border Radius */
  --border-radius-sm: 0.125rem;    /* 2px */
  --border-radius: 0.25rem;        /* 4px */
  --border-radius-md: 0.375rem;    /* 6px */
  --border-radius-lg: 0.5rem;      /* 8px */
  --border-radius-xl: 1rem;        /* 16px */

  /* Border Widths */
  --border-width: 1px;
  --border-width-md: 2px;


  /* ===================================================
   * SHADOWS - Schatten & Tiefe
   * =================================================== */

  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 6px 16px 0 rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 24px 0 rgba(0, 0, 0, 0.15);

  /* Primary Color Shadows */
  --shadow-primary: 0 4px 15px rgba(71, 127, 186, 0.2);


  /* ===================================================
   * TRANSITIONS - Animationen & Übergänge
   * =================================================== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;


  /* ===================================================
   * Z-INDEX - Ebenen
   * =================================================== */

  --z-index-sticky: 1020;


}


/* =====================================================
 * GLOBALE ANWENDUNGEN
 * ===================================================== */

/* Body & Grundlegendes */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--background-beige);
}

/* Überschriften */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h1, .h1 {
  font-size: var(--font-size-h1);
  color: var(--primary);
}

h2, .h2 {
  font-size: var(--font-size-h2);
  color: var(--primary);
}

h3, .h3 {
  font-size: var(--font-size-h3);
  color: var(--secondary);
}

h4, .h4 {
  font-size: var(--font-size-h4);
  color: var(--primary);
}

h5, .h5 {
  font-size: var(--font-size-h5);
  color: var(--text-primary);
}

h6, .h6 {
  font-size: var(--font-size-h6);
  color: var(--text-primary);
}

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =====================================================
 * BUTTONS - Zwei fixe Button-Styles
 * ===================================================== */

/* Base Button Styles */
.btn,
.btn-filled,
.btn-outline {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: 10px 20px;
  border-radius: 10px;
  transition: all var(--transition-slow);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.3px;
  border: none;
}

/* =====================================================
 * BUTTON STYLE 1: GEFÜLLTER BUTTON (.btn-filled)
 * ===================================================== */

.btn-filled {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(71, 127, 186, 0.2);
}

/* Hover */
.btn-filled:hover {
  background: var(--gradient-primary-reverse);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(71, 127, 186, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Active/Clicked */
.btn-filled:active,
.btn-filled.active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(71, 127, 186, 0.2);
}

/* Focus */
.btn-filled:focus {
  outline: none;
}

.btn-filled:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 4px 15px rgba(71, 127, 186, 0.4);
}

/* Disabled */
.btn-filled:disabled,
.btn-filled.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(71, 127, 186, 0.1);
  pointer-events: none;
}

/* =====================================================
 * BUTTON STYLE 2: OUTLINE BUTTON (.btn-outline)
 * ===================================================== */

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Pseudo-Element für Gradient-Fill beim Hover */
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
  z-index: -1;
}

/* Hover */
.btn-outline:hover {
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(71, 127, 186, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline:hover::before {
  width: 100%;
}

/* Active/Clicked */
.btn-outline:active,
.btn-outline.active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Focus */
.btn-outline:focus {
  outline: none;
}

.btn-outline:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Disabled */
.btn-outline:disabled,
.btn-outline.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* =====================================================
 * ALIASES - Alte Button-Klassen auf neue Styles mappen
 * ===================================================== */

/* Alle Primary-Buttons nutzen .btn-filled Style */
.btn-primary,
.btn-inquiry {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(71, 127, 186, 0.2);
  border: none;
}

.btn-primary:hover,
.btn-inquiry:hover {
  background: var(--gradient-primary-reverse);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(71, 127, 186, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary:active,
.btn-inquiry:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(71, 127, 186, 0.2);
}

.btn-primary:disabled,
.btn-inquiry:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Alle Secondary/Outline-Buttons nutzen .btn-outline Style */
.btn-secondary,
.btn-outline-primary {
  background-color: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.btn-secondary::before,
.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
  z-index: -1;
}

.btn-secondary:hover,
.btn-outline-primary:hover {
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(71, 127, 186, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary:hover::before,
.btn-outline-primary:hover::before {
  width: 100%;
}

.btn-secondary:active,
.btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:disabled,
.btn-outline-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* =====================================================
 * BUTTON SIZES
 * ===================================================== */

.btn-sm,
.btn-filled.btn-sm,
.btn-outline.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
}

.btn-lg,
.btn-filled.btn-lg,
.btn-outline.btn-lg {
  padding: 14px 28px;
  font-size: var(--font-size-lg);
}

/* Button Full Width */
.btn-block,
.btn-filled.btn-block,
.btn-outline.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Cards */
.card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Inputs & Forms */
.form-control {
  border-color: var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(71, 127, 186, 0.25);
}

/* Utility Classes */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-beige { background-color: var(--background-beige) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-primary { box-shadow: var(--shadow-primary) !important; }


/* =====================================================
 * RESPONSIVE ANPASSUNGEN
 * ===================================================== */

@media (max-width: 767px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;

    /* Responsive Semantic Sizes */
    --font-size-overlay: 1.375rem;        /* 22px */
    --font-size-section-title: 1.5rem;    /* 24px */
    --font-size-card-title: 1.25rem;      /* 20px */
    --font-size-date-badge: 1.5rem;       /* 24px */
    --font-size-counter: 0.75rem;         /* 12px */
  }
}

@media (max-width: 575px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;

    /* Responsive Semantic Sizes */
    --font-size-overlay: 1.125rem;        /* 18px */
    --icon-size-xl: 2rem;                 /* 32px */
    --font-size-counter: 0.6875rem;       /* 11px */
  }
}


/* =====================================================
 * CHANGELOG
 * =====================================================
 *
 * 2025-12-11: Bugfix - font-weight-bold wieder hinzugefügt
 * - Variable wird in h1-h6 Styles verwendet (Zeile 194)
 * - War fälschlicherweise in Phase 2 entfernt worden
 *
 * 2025-12-11: Cleanup Phase 2 - 33 ungenutzte Variablen entfernt
 *
 * Strukturell (20):
 * - Breakpoints (6): xs, sm, md, lg, xl, xxl
 * - Container (5): sm, md, lg, xl, xxl
 * - Z-Index (6): dropdown, fixed, modal-backdrop, modal, popover, tooltip
 * - Timing Functions (3): ease-in, ease-out, ease-in-out
 *
 * Layout (12):
 * - Spacing (5): xs, xl, 3xl, 4xl, 5xl
 * - Section Padding (3): mobile, tablet, desktop
 * - Border (3): border-radius-none, border-radius-2xl, border-radius-full
 * - Border Width (1): border-width-lg
 *
 * Visuell (13):
 * - Overlays (3): overlay-dark, overlay-light, overlay-primary
 * - Background (2): background-light, background-dark
 * - Typography (8): font-mono, font-weight-normal, line-height-loose,
 *   icon-size-xs, icon-size-sm, font-size-card-subtitle,
 *   font-size-body-md, font-size-button-lg
 *
 * BEHALTEN (trotz ursprünglicher Planung):
 * - font-size-h4, font-size-h6 (verwendet in HTML)
 * - background-gray (verwendet in navigation/footer/styles)
 * - font-size-footer-* (3, verwendet in footer.css)
 * - font-size-badge* (2, verwendet in footer.css)
 * - font-size-body-sm/xs (2, verwendet in footer.css)
 *
 * Ergebnis: 625 → 568 Zeilen (-57 Zeilen, -9.1%)
 * Verbleibende Variablen: 75 (100% aktiv genutzt)
 *
 * 2025-12-03: Cleanup Phase 1 - 24 Variablen entfernt
 * - Primary/Secondary color variants, state colors, shadow variants
 * Ergebnis: 654 → 625 Zeilen (-29 Zeilen, -4.4%)
 */
