/* ================================================
   BASE.CSS — Fundament der gesamten Website
   Hier leben: CSS-Variablen, Reset, Fonts, Basics
   ================================================ */

/* --- 1. LOKALE FONTS (DSGVO-konform) ---
   Keine Verbindung zu Google-Servern.
   Fonts liegen lokal im Ordner assets/fonts/ */
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-latin-800-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* --- 2. CSS VARIABLEN ---
   Einmal definiert, überall nutzbar.
   Änderst du hier eine Farbe, ändert sie sich ÜBERALL. */
:root {
  /* Farben */
  --color-primary:      #0EA5E9;
  --color-primary-dark: #0284C7;
  --color-accent:       #38BDF8;
  --color-dark:         #0F172A;
  --color-gray-dark:    #334155;
  --color-gray:         #64748B;
  --color-gray-light:   #CBD5E1;
  --color-bg:           #F8FAFC;
  --color-white:        #FFFFFF;
  --color-surface:      #F1F5F9;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;

  /* Border Radius */
  --radius-sm:   0.5rem;
  --radius-md:   1rem;
  --radius-lg:   1.5rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 20px rgba(14,165,233,0.35);

  --transition: 0.25s ease;
}

/* --- 3. RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- 4. BASIS-STYLES --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* NEU */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- 5. HILFSKLASSEN --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray);
  margin-top: var(--space-sm);
  max-width: 520px;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }