/* ============================
   RAID Tactical Media — Design System
   ============================ */

/* ============================
   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);
  background-image: url('../assets/images/wallpaper-topo.png');
  background-size: 800px;
  background-repeat: repeat;
  background-attachment: fixed;
  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 {
  /* Hintergrund */
  --color-bg:            #0a0a0a;
  --color-bg-elevated:   #111111;
  --color-bg-subtle:     #1a1a1a;
  --color-surface:       #222222;

  /* Text */
  --color-text:          #f0f0f0;
  --color-text-muted:    #888888;
  --color-text-subtle:   #555555;

  /* Burgund-Rot Akzent */
  --color-accent:        #8B1A2B;
  --color-accent-hover:  #A52238;
  --color-accent-subtle: rgba(139, 26, 43, 0.15);

  /* Oliv Sekundär (sparsam) */
  --color-secondary:     #8B8B3A;

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

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

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

:root {
  /* Font families */
  --font-heading:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --font-tactical: 'Oswald', 'Impact', sans-serif;

  /* 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;
  --tracking-widest:  0.2em;

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

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);
}

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-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: left;
  max-width: none;
}

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

:root {
  --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(4rem, 10vw, 8rem);
}

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

:root {
  --container-max: 1400px;
  --container-padding: clamp(1rem, 4vw, 3rem);
  --grid-gap: var(--space-6);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: 800px;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

@media (min-width: 768px) {
  .grid--sidebar { grid-template-columns: 1fr 300px; }
  .grid--split   { grid-template-columns: 1fr 1fr; }
}

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

:root {
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   0.2s;
  --duration-normal: 0.3s;
  --duration-slow:   0.6s;
}
