/* ============================================================
   base.css – CSS-Variablen, Reset, Typografie, globale Klassen
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg:       #0a0c10;
  --surface:  #111318;
  --surface2: #181b22;
  --accent:   #00d4ff;
  --accent2:  #ff6b35;
  --text:     #e8eaf0;
  --muted:    #6b7280;
  --border:   rgba(0, 212, 255, 0.15);
  --glow:     0 0 30px rgba(0, 212, 255, 0.3);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --transition-fast: 0.2s ease;
  --transition-mid:  0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Typografie --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

h3 {
  font-size: 1.2rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow var(--transition-mid), transform var(--transition-fast);
}
.btn-primary:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Section gemeinsame Styles --- */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Stats Bar --- */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
