/* ============================================================
   BASE.CSS — Reset · CSS-Variablen · Typografie · Font-Face
   everspice.de · 2026
   Design: Bold Geometric · Spicy Red · Dark
   ============================================================ */

/* ── Self-hosted Fonts (Variable, WOFF2) ──────────────── */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Basis — aufgehellt, mehr Kontrast zwischen Ebenen */
  --color-bg:           #0e0e0e;
  --color-bg-elevated:  #181818;
  --color-bg-subtle:    #222222;

  /* Rot — Primärer Akzent (direkt aus dem Logo) */
  --color-red:          #E8192C;
  --color-red-hover:    #FF2D42;
  --color-red-dark:     #B51020;
  --color-red-glow:     rgba(232, 25, 44, 0.18);
  --color-red-subtle:   rgba(232, 25, 44, 0.07);

  /* Text — mehr Kontrast */
  --color-text-primary:   #F8F8F8;
  --color-text-secondary: #9A9A9A;
  --color-text-muted:     #5C5C5C;

  /* Borders — etwas sichtbarer */
  --color-border:        rgba(255, 255, 255, 0.11);
  --color-border-subtle: rgba(255, 255, 255, 0.07);
  --color-border-hover:  rgba(232, 25, 44, 0.40);

  /* Schatten */
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.55);
  --shadow-hover:  0 8px 48px rgba(0, 0, 0, 0.70);
  --shadow-red:    0 0 32px rgba(232, 25, 44, 0.28);

  /* Utility */
  --color-error:   #E55555;
  --color-success: #4CAF7A;
  --color-overlay: rgba(8, 8, 8, 0.75);

  /* Border-Radius — scharf, nicht "bubbly" */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --radius-pill: 999px;

  /* Fonts */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-ui:      'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Fluid Typografie */
  --text-hero:   clamp(56px, 10vw, 136px);
  --text-h1:     clamp(36px, 6.5vw, 88px);
  --text-h2:     clamp(28px, 4vw, 60px);
  --text-h3:     clamp(20px, 2.5vw, 32px);
  --text-body:   clamp(14px, 1.3vw, 17px);
  --text-small:  clamp(11px, 1vw, 13px);

  /* Spacing — 8px Base */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    48px;
  --space-2xl:   80px;
  --space-3xl:   120px;
  --space-4xl:   160px;

  /* Nav */
  --nav-height: 72px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ── Typografie — Bold Geometric, kein Italic ──────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 600; }

p {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 65ch;
}

/* ── Section Label — Mono, Rot-Akzent ─────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '[';
  color: var(--color-red);
  font-size: 10px;
  opacity: 0.7;
}

.section-label::after {
  content: ']';
  color: var(--color-red);
  font-size: 10px;
  opacity: 0.7;
}

/* ── Akzent-Text ────────────────────────────────────────── */
.text-red   { color: var(--color-red); }
.text-muted { color: var(--color-text-muted); }

/* ── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  background: var(--color-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-ui);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

/* ── Screen-Reader Only ────────────────────────────────── */
.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;
}

/* ── 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;
  }
}
