/* =============================================================
   CODINGLOBE – base.css
   Design-Tokens, Reset, Grundlayout und JS-Effekte.
   ============================================================= */

/* ---------- 01 TOKENS ---------- */
:root {
  /* Farben */
  --bg:            #000000;   /* Brand-Schwarz */
  --bg-elevated:   #0B0B0C;
  --panel:         #121214;
  --line:          #24221C;
  --line-strong:   #3B372C;

  --text:          #E6E6E6;   /* Brand-Hellgrau */
  --text-muted:    #9C978C;

  --accent:        #DBB75B;   /* Brand-Gold – Primärakzent */
  --accent-soft:   rgba(219, 183, 91, 0.12);
  --silver:        #E6E6E6;   /* Brand-Hellgrau – Sekundärakzent */
  --silver-soft:   rgba(230, 230, 230, 0.08);

  /* Typografie – ausschliesslich Systemschriften, keine externen Fonts.
     Die Hausschrift der Marke ist "Brave Eightyone". Sie ist lizenzpflichtig
     und daher nicht eingebunden. Wer sie besitzt, hinterlegt die Dateien in
     ../fonts/, aktiviert den @font-face-Block unter den Tokens und setzt
     "Brave Eightyone" an den Anfang von --font-display. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
               Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "DejaVu Sans Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* Überschriften-Schrift (Hausschrift zuerst, falls selbst gehostet) */
  --font-display: var(--font-sans);

  /* Abstände & Formen */
  --shell:        1160px;
  --gutter:       1.25rem;
  --section-pad:  4.5rem;
  --radius:       14px;
  --radius-lg:    20px;
  --header-h:     64px;

  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

/* Hausschrift selbst hosten: Dateien ablegen, Block einkommentieren und
   --font-display auf "Brave Eightyone", var(--font-sans) setzen.

@font-face {
  font-family: "Brave Eightyone";
  src: url("../fonts/brave-eightyone.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
*/

/* ---------- 02 RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;              /* Smooth Scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* Dezenter Daten-Raster + weiches Licht im Hintergrund */
  background-image:
    radial-gradient(60rem 40rem at 78% -8%, var(--silver-soft), transparent 60%),
    radial-gradient(48rem 34rem at 4% 4%, var(--accent-soft), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}

/* Raster nur ganz leicht sichtbar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .94));
  pointer-events: none;
  z-index: -1;
}

/* Scroll-Sperre, solange das Mobile-Menü offen ist */
body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--accent);
  color: #0A0A0A;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- 03 LAYOUT ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Anker-Ziele unter dem fixen Header freihalten */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Kleine Mono-Labels (Eyebrows) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* ---------- 13 JS-EFFEKTE ---------- */
/* Greift nur, wenn JS aktiv ist – ohne JS bleibt alles sichtbar */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.22, 1, .36, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- BREAKPOINTS: Grundwerte ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; --section-pad: 5.5rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; --section-pad: 7rem; }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Druckansicht */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero__actions, .site-footer, .to-top, .copy-btn { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
