/* =============================================================
   base.css – Reset & Typografie
   WHY: Normalisiert Browser-Unterschiede und setzt
   die typografische Grundlage für alle Seiten.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Background Texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,230,118,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(64,196,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typografie-Hierarchie --- */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.4rem); }

p { color: var(--color-text-secondary); }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-dim); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--color-surface); }
::-webkit-scrollbar-thumb  { background: var(--color-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

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

.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-mono     { font-family: var(--font-mono); }
.font-display  { font-family: var(--font-display); }
