/* ============================================================
   base.css — Gemeinsames Design-System für simonmader.com
   ------------------------------------------------------------
   Tokens & Regeln: siehe DESIGN.md (Projekt-Root).
   Gilt für ALLE Unterseiten und Blog-Artikel.
   Die Startseite (index.html) hat noch ihr eigenes Inline-CSS —
   neue Seiten nutzen IMMER diese Datei + assets/js/site.js.

   Einbinden (absolute Pfade, funktionieren in jeder Ordnertiefe):
     <link rel="stylesheet" href="/assets/fonts/fonts.css" />
     <link rel="stylesheet" href="/assets/css/base.css" />
   ============================================================ */

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

:root {
  /* Farb-Tokens */
  --bg: #0A0A0A;          /* --ink  */
  --bg-elev: #121212;     /* --ink-2 */
  --bg-card: #161616;     /* --ink-3 */
  --border: #2A2A2A;      /* --rule */
  --border-soft: #1F1F1F;
  --text: #F2EFE7;        /* --paper */
  --text-muted: #A8A39A;  /* --paper-mute */
  --text-dim: #6B6B6B;
  --accent: #D8FF3C;      /* Acid Lime — die EINE Akzentfarbe */
  --accent-deep: #B5DC2A;
  --accent-glow: rgba(216, 255, 60, 0.14);
  --accent-ink: #0A0A0A;
  /* Fonts */
  --display: 'Anton', 'Arial Black', 'Helvetica Neue', sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  /* Layout */
  --maxw: 1320px;
  --maxw-read: 760px;     /* Lesebreite für Artikel-Fließtext */
  --pad: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans); font-weight: 400;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}

/* Grain-Overlay über allem (identisch zur Startseite) */
body::after {
  content: ""; position: fixed; inset: 0;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay; pointer-events: none; z-index: 200;
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: 0.02; } }

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-read { max-width: var(--maxw-read); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }

/* ───── Eyebrow ───── */
.t-eyebrow {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.t-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); flex-shrink: 0; }
.t-eyebrow.no-rule::before { display: none; }

/* ───── Headlines ───── */
h1.t-display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 7vw, 96px); line-height: 0.95;
  letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance;
}
h2.t-headline {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.2vw, 68px); line-height: 0.95;
  letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; margin-top: 16px;
}
h1.t-display em, h2.t-headline em { font-style: normal; color: var(--accent); }

.section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }

/* ───── Nav (fixed, identisch zur Startseite) ───── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
nav.top.scrolled { border-bottom-color: var(--border); background: rgba(10,10,10,0.85); }
nav.top .inner { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); max-width: var(--maxw); margin: 0 auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 24px;
  letter-spacing: -0.02em; line-height: 1; text-transform: uppercase;
}
.brand .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
nav.top ul { list-style: none; display: flex; gap: 4px; align-items: center; }
nav.top ul a {
  padding: 8px 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); transition: color .18s ease;
}
nav.top ul a:hover, nav.top ul a.active { color: var(--accent); }
.menu-toggle {
  display: none; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--accent); transition: background .18s ease, color .18s ease;
}
.menu-toggle:hover { background: transparent; color: var(--accent); }
@media (max-width: 760px) {
  nav.top ul { display: none; }
  nav.top ul.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    padding: 16px 28px; border-bottom: 1px solid var(--border-soft);
  }
  .menu-toggle { display: inline-flex; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ───── Page-Header (Standard-Kopf für Unterseiten) ───── */
.page-hero {
  padding: clamp(120px, 16vh, 200px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -360px; left: -240px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(90px); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .lead {
  margin-top: clamp(18px, 2vw, 26px); max-width: 640px;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--text-muted);
}

/* ───── Prose / Artikel-Fließtext ───── */
.prose { font-size: 18px; line-height: 1.75; color: var(--text-muted); }
.prose > * + * { margin-top: 24px; }
.prose h2 {
  font-family: var(--display); font-weight: 400; color: var(--text);
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.015em;
  text-transform: uppercase; margin-top: 56px;
}
.prose h3 {
  font-family: var(--sans); font-weight: 700; color: var(--text);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin-top: 40px;
}
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 24px; color: var(--text-muted); }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 8px 0 8px 28px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--text);
}
.prose figure { margin: 40px 0; }
.prose img { width: 100%; border: 1px solid var(--border); }
.prose figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* ───── Footer (identisch zur Startseite) ───── */
footer.site {
  padding: clamp(48px, 6vw, 80px) 0 32px; border-top: 1px solid var(--border); background: var(--bg);
}
footer.site .inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); align-items: end; }
@media (max-width: 600px) { footer.site .inner { grid-template-columns: 1fr; gap: 24px; } }
footer.site .brand { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
footer.site .brand .dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; }
footer.site .meta { color: var(--text-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 12px; }
footer.site ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
footer.site ul a { color: var(--text-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; transition: color .18s ease; }
footer.site ul a:hover { color: var(--accent); }

/* ───── Reveal-Animation ───── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(0.2,0.8,0.2,1), transform .7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
