/*
================================================
  SNAIL PACE RACING – Globales Stylesheet
================================================

  FARBEN ANPASSEN:
  Alle Farben sind als CSS-Variablen definiert.
  Einfach den Wert ändern – gilt sofort überall.

  --green       → Hauptakzentfarbe (SPR-Grün)
  --dark        → Seitenhintergrund
  --dark-2      → Karten / Boxen
  --dark-3      → Hover-Zustände
  --text        → Haupttextfarbe
  --text-dim    → Grauer Hilfstext

  SCHRIFTEN ANPASSEN:
  Aktuell: "Barlow Condensed" (Headlines) + "DM Sans" (Fließtext)
  Zum Ändern: Google Fonts Link in jeder HTML-Datei tauschen
  und --font-display / --font-body hier anpassen.

================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  /* ── Farben ── */
  --green:        #00CC7D;
  --green-dark:   #009959;
  --green-glow:   rgba(0, 204, 125, 0.15);
  --dark:         #090c10;
  --dark-2:       #0f1318;
  --dark-3:       #161c24;
  --dark-4:       #1c242f;
  --border:       rgba(255, 255, 255, 0.07);
  --border-green: rgba(0, 204, 125, 0.2);
  --text:         #e8edf3;
  --text-dim:     #7a8694;
  --red:          #e05252;

  /* ── Schriften ── */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* ── Layout ── */
  --nav-h:        66px;
  --radius:       10px;
  --radius-lg:    16px;
  --max-w:        1140px;
  --section-gap:  100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Grain-Textur (subtil) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Trennlinie diagonal ── */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: .35;
  margin: 0;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Section ── */
section {
  padding: var(--section-gap) 0;
}

/* ── Überschriften ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: .01em;
  font-weight: 800;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  font-weight: 300;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .93rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: #050709;
}
.btn-primary:hover {
  background: #00e68a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,204,125,.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--dark-3);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-2px);
}
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-green);
}
.btn-outline-green:hover {
  background: var(--green-glow);
}

/* ── Karten ── */
.card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover {
  border-color: var(--border-green);
  transform: translateY(-3px);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.badge-green {
  background: rgba(0,204,125,.1);
  color: var(--green);
  border: 1px solid var(--border-green);
}
.badge-gray {
  background: var(--dark-3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── Page-Header (für Unterseiten) ── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at top, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.page-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 12px;
  font-weight: 300;
}

/* ── Platzhalter-Box (für noch nicht fertige Seiten) ── */
.placeholder-box {
  background: var(--dark-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--text-dim);
  margin-top: 48px;
}
.placeholder-box .icon { font-size: 3rem; margin-bottom: 16px; }
.placeholder-box h3 { font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: var(--section-gap);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.footer-logo span { color: var(--green); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-dim);
  font-size: .875rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--text-dim);
  font-size: .8rem;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ── Animationen ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .15s ease both; }
.fade-up-3 { animation: fadeUp .6s .3s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
