/* ============================
   DESIGN SYSTEM — Lass mal machen
   ============================ */

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   2. COLORS
   ============================ */

:root {
  /* Neutrals — Dark theme */
  --color-bg:           #0a0a0a;
  --color-bg-elevated:  #111111;
  --color-bg-subtle:    #1a1a1a;
  --color-surface:      #222222;

  --color-text:         #f0f0f0;
  --color-text-muted:   #999999;
  --color-text-subtle:  #555555;

  /* Borders */
  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  /* Brand — Lass mal machen Red/Orange */
  --color-accent:       #e63726;
  --color-accent-hover: #ff4a3a;
  --color-accent-subtle: rgba(230, 55, 38, 0.1);
  --color-accent-glow:  rgba(230, 55, 38, 0.3);

  /* Functional */
  --color-success:      #00c853;
  --color-warning:      #ffd600;
  --color-error:        #ff1744;

  /* ============================
     3. TYPOGRAPHY
     ============================ */

  --font-heading:  'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.563rem;
  --text-3xl:   1.953rem;
  --text-4xl:   2.441rem;
  --text-5xl:   3.052rem;
  --text-6xl:   3.815rem;
  --text-hero:  clamp(3rem, 8vw, 7rem);

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* Font weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;

  /* ============================
     4. SPACING
     ============================ */

  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  --section-gap: clamp(5rem, 12vw, 10rem);

  /* ============================
     5. LAYOUT
     ============================ */

  --container-max: 1400px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);
  --grid-gap: var(--space-6);

  /* ============================
     6. TRANSITIONS
     ============================ */

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 65ch;
}

small, .text-sm {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.text-lg {
  font-size: var(--text-lg);
}

.overline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: #fff;
}
