/* ============================================================
   BEREITSCHAFTSPFLEGE WEBSITE - DESIGN SYSTEM
   Stiftung Leuchtfeuer
   ============================================================ */

/* --- CSS RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- DESIGN SYSTEM VARIABLEN --- */
:root {
  /* Logo-Farbpalette: Gold - Orange - Pink - Violett */
  --farbe-gold: #f5b731;
  --farbe-orange: #e8742a;
  --farbe-pink: #d94f8a;
  --farbe-magenta: #c24a9a;
  --farbe-violett: #6b2fa0;
  --farbe-tiefviolett: #3a1772;

  /* Neutrale Farben */
  --farbe-weiss: #ffffff;
  --farbe-creme: #faf9f7;
  --farbe-hellgrau: #f5f5f5;
  --farbe-grau: #e5e7eb;
  --farbe-mittelgrau: #9ca3af;
  --farbe-dunkelgrau: #6b7280;
  --farbe-text-dunkel: #1a1a1a;
  --farbe-text-mittel: #333333;
  --farbe-text-hell: #666666;

  /* Bildplatzhalter-Farbverlauf */
  --gradient-platzhalter: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 50%, #9ca3af 100%);
  --gradient-platzhalter-hell: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);

  /* Logo-Gradient */
  --gradient-logo: linear-gradient(90deg, var(--farbe-gold), var(--farbe-orange), var(--farbe-pink), var(--farbe-violett));

  /* Typografie */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes (Mobile First) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */

  /* 8px Grid System */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  /* Max Width Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;
}

/* --- BASE TYPOGRAPHY --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--farbe-text-mittel);
  background: var(--farbe-creme);
  overflow-x: hidden;
}

/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--farbe-text-dunkel);
  margin-bottom: var(--space-2);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

/* Desktop Heading Sizes */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

/* --- PARAGRAPHS & TEXT --- */
p {
  margin-bottom: var(--space-2);
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--farbe-text-dunkel);
}

em {
  font-style: italic;
}

/* --- LINKS --- */
a {
  color: var(--farbe-violett);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus {
  color: var(--farbe-pink);
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.container-narrow {
  max-width: var(--container-md);
}

.container-wide {
  max-width: var(--container-2xl);
}

/* --- SECTIONS --- */
section {
  padding: var(--space-10) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-16) 0;
  }
}

/* --- GRADIENT TEXT --- */
.text-gradient {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--farbe-violett), var(--farbe-pink));
  color: var(--farbe-weiss);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--farbe-weiss);
  color: var(--farbe-violett);
  border: 2px solid var(--farbe-violett);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--farbe-violett);
  color: var(--farbe-weiss);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-lg);
}

/* --- CARD COMPONENT --- */
.card {
  background: var(--farbe-weiss);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* --- ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--farbe-gold);
  outline-offset: 2px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
