/* nextToken – dunkel, ruhig, modern. Ein Stylesheet, keine externen Ressourcen. */

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #121214;
  --surface-2: #17171a;
  --border: #232327;
  --border-2: #34343a;
  --text: #f4f4f5;
  --text-2: #b4b4bb;
  --muted: #7c7c85;
  /* die einzige Akzentfarbe; bunt sind nur die Wort-Chips am Würfel (Farben in main.js) */
  --accent: #f2c037;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* feines Punktraster über der ganzen Seite */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-color: var(--border-2); text-underline-offset: 0.2em; transition: text-decoration-color 0.2s, color 0.2s; }
a:hover { text-decoration-color: var(--text); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { width: min(1120px, 100% - 32px); margin-inline: auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; font: 500 16px/1 var(--mono); color: var(--text); text-decoration: none; white-space: nowrap; }
.wm-bracket { color: var(--muted); }
.wm-recv { color: var(--muted); }
.wm-sel { font-weight: 700; }
.wm-cursor { display: inline-block; width: 8px; height: 17px; margin-left: 4px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 7px 12px; border-radius: 8px; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .nav-pill { margin-left: 4px; border: 1px solid var(--border-2); border-radius: 999px; font: 500 13px/1 var(--mono); padding: 7px 12px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 420px) { .wordmark { font-size: 14px; } .nav-links { gap: 0; } .nav-links a { padding: 7px 7px; font-size: 14px; } .nav-links .nav-pill { margin-left: 2px; } }

/* ---------- Lichtkegel ---------- */
.hero-glow {
  position: absolute; left: 50%; top: -220px; width: min(1200px, 140vw); height: 720px; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 40%, transparent 70%);
}
.hero-glow-small { height: 520px; top: -260px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.button-primary { background: var(--text); color: #0a0a0b; }
.button-primary:hover { transform: translateY(-1px); background: #fff; }
.button-secondary { color: var(--text); border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.02); }
.button-secondary:hover { transform: translateY(-1px); border-color: #55555d; background: rgba(255, 255, 255, 0.05); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 56px 0 72px; }
.hero-inner { width: min(1120px, 100% - 32px); margin-inline: auto; display: grid; gap: 24px; align-items: center; }
@media (min-width: 920px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: min(78vh, 720px); } }
.kicker { margin: 0 0 18px; font: 500 14px/1.4 var(--mono); color: var(--accent); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--text); }
/* Name als Link auf „Über mich“: dezent unterstrichen, damit er als Link erkennbar ist */
.author-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.25em; }
.kicker .author-link { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.author-link:hover, .kicker .author-link:hover { color: var(--text); text-decoration-color: currentColor; }
.footer-inner p a { color: inherit; text-decoration: none; }
.footer-inner p a:hover { color: var(--text); }
.article-head .kicker, .page .kicker { color: var(--muted); }
.hero-title {
  margin: 0; font: 700 clamp(56px, 9.5vw, 120px)/0.95 var(--font-display); letter-spacing: -0.055em;
  background: linear-gradient(180deg, #ffffff 30%, #8a8a93); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { margin: 22px 0 0; min-height: 2.5em; font: 500 clamp(20px, 2.5vw, 27px)/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--text); }
.hero-tagline .hl { color: var(--accent); }
.stream .tok { opacity: 0; filter: blur(4px); transition: opacity 0.25s, filter 0.35s; }
.stream .tok.on { opacity: 1; filter: none; }
.stream-cursor { display: inline-block; width: 0.48em; height: 1em; margin-left: 5px; vertical-align: -0.12em; background: var(--accent); border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
.hero-text { margin: 20px 0 0; max-width: 52ch; color: var(--text-2); font-size: clamp(16px, 1.5vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-404 .hero-inner { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* ---------- Der Würfel ---------- */
.cube-scene {
  --s: clamp(200px, 23vw, 290px); position: relative; justify-self: center; width: calc(var(--s) * 1.9); height: calc(var(--s) * 2.4);
  perspective: 1200px; display: grid; place-items: center; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.cube-scene.dragging { cursor: grabbing; }
.cube-stage { position: relative; z-index: 1; transform-style: preserve-3d; }
.cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(34deg); will-change: transform; }
.face { position: absolute; inset: 0; backface-visibility: hidden; }
.face.front  { transform: translateZ(calc(var(--s) / 2)); background: linear-gradient(155deg, #26262a 0%, #141416 42%, #0b0b0c 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.face.back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(200deg, #1c1c1f, #0a0a0b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.face.right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(160deg, #1e1e21, #09090a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.face.left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(200deg, #1b1b1e, #08080a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.face.top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: linear-gradient(135deg, #3d3d43, #222226 55%, #18181b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #070708; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.grille {
  position: absolute; left: 30%; right: 18%; top: 17%; height: 38%; border-radius: 2px;
  box-shadow: inset 0 0 0 1px #050505, 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: repeating-linear-gradient(180deg, #060607 0 3px, #222226 3px 6px);
}
.fins {
  position: absolute; inset: 0 0 0 auto; width: 52%;
  background: repeating-linear-gradient(90deg, #050505 0 6px, #2a2a2f 6px 8px, #101012 8px 13px);
}
/* Anschlussfeld auf der Rückseite */
.ports { position: absolute; left: 18%; right: 18%; bottom: 14%; height: 22%; border-radius: 3px; background: #0c0c0e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ports::before, .ports::after { content: ""; position: absolute; top: 30%; height: 40%; border-radius: 2px; background: #1d1d21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ports::before { left: 8%; width: 30%; }
.ports::after { right: 8%; width: 42%; background: repeating-linear-gradient(90deg, #1d1d21 0 5px, #0c0c0e 5px 8px); }
.cube-floor { position: absolute; left: 50%; bottom: 20%; width: calc(var(--s) * 1.5); height: calc(var(--s) * 0.32); translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.6) 45%, transparent 72%); filter: blur(10px); pointer-events: none; }
.cube-hint { position: absolute; left: 50%; bottom: 0; margin: 0; translate: -50% 0; font: 12px/1 var(--mono); color: var(--muted); opacity: 0.75; pointer-events: none; }
/* Tokens: hinter dem Würfel, damit sie oben "hineinfallen" und unten "herauskommen" */
.token-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.chip {
  position: absolute; left: 50%; top: 50%; padding: 6px 9px; border-radius: 7px; white-space: nowrap;
  font: 500 13px/1 var(--mono); color: var(--text-2); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-2);
  opacity: 0; will-change: transform, opacity;
}
/* Eingabe bunt mit Leuchten, Antwort in Grau – beide mit dunkler Schrift */
.chip-in, .chip-out { color: #0a0a0b; font-weight: 650; border-color: transparent; background: var(--chip); }
.chip-in { box-shadow: 0 0 22px color-mix(in srgb, var(--chip) 45%, transparent); }
.chip-out { font-weight: 700; box-shadow: 0 0 18px rgba(255, 255, 255, 0.12); }
@media (max-width: 919px) { .cube-scene { --s: 140px; height: 360px; } }

/* ---------- Abschnitte & Karten ---------- */
.section { padding: 40px 0 112px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.section-title { margin: 0; font: 650 clamp(26px, 3.4vw, 34px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.section-count { font-size: 13px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: border-color 0.3s, transform 0.4s var(--ease);
}
/* Lichtschein, der dem Mauszeiger folgt */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 60%);
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card-link { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.card-media { overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); }
.card-media img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; object-position: left top; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-meta { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.card-title { margin: 0 0 12px; font: 650 23px/1.25 var(--font-display); letter-spacing: -0.02em; }
.card-summary { margin: 0 0 18px; color: var(--text-2); }
.card-stats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-stats li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); }
.card-stats li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.card-stats strong { color: var(--text); font-weight: 650; }
.card-more { margin-top: auto; font-weight: 600; color: var(--text); }
.card-more span { display: inline-block; color: var(--accent); transition: transform 0.3s var(--ease); }
.card:hover .card-more span { transform: translateX(4px); }
.card-featured { grid-column: 1 / -1; }
/* Kartenbild im Hochformat: ganz zeigen statt beschneiden */
.card-media-portrait img { aspect-ratio: 4 / 5; object-position: center top; }
@media (min-width: 860px) {
  .card-featured .card-link { display: grid; grid-template-columns: 1.1fr 1fr; }
  .card-featured .card-media { border-bottom: 0; border-right: 1px solid var(--border); }
  .card-featured .card-media img { height: 100%; aspect-ratio: auto; }
  .card-featured .card-link:has(.card-media-portrait) { grid-template-columns: minmax(0, 0.85fr) 1fr; }
  .card-featured .card-body { padding: 40px; justify-content: center; }
  .card-featured .card-title { font-size: clamp(26px, 2.6vw, 34px); }
}
.empty { color: var(--muted); }

/* ---------- Artikel ---------- */
.article, .page { position: relative; isolation: isolate; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent));
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
/* Raster: links das Inhaltsverzeichnis (200px), rechts die Textspalte (max. 720px) */
.article-shell { width: min(968px, 100% - 32px); margin-inline: auto; }
@media (min-width: 1080px) { .article-shell > .article-head, .article-shell > .stats { margin-left: 248px; } }
.article-head { padding-top: 64px; }
.article-title { margin: 0; font: 700 clamp(34px, 5.6vw, 58px)/1.06 var(--font-display); letter-spacing: -0.04em; }
.article-meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.article-lead { margin: 22px 0 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 36px 0 56px; }
.stat { position: relative; padding: 20px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 18px; top: 0; width: 28px; height: 2px; background: var(--accent); }
.stat-value { display: block; font: 650 clamp(30px, 3.4vw, 38px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 112px; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: 200px minmax(0, 720px); } }
.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: 92px; align-self: start; font-size: 14px; }
  .toc-title { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
  .toc a:hover { color: var(--text-2); }
  .toc a.active { color: var(--text); border-left-color: var(--accent); }
}

/* ---------- Fließtext ---------- */
.prose { font-size: 18px; line-height: 1.78; color: var(--text-2); }
.prose > * { margin-block: 0 1.2em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2.3em 0 0.8em; font: 650 clamp(24px, 2.8vw, 30px)/1.25 var(--font-display); letter-spacing: -0.025em; color: var(--text); scroll-margin-top: 84px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.6em; font: 650 21px/1.3 var(--font-display); color: var(--text); scroll-margin-top: 84px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--muted); }
.prose blockquote { margin-inline: 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--border-2); color: var(--text-2); }
.prose img { display: block; margin: 2.2em auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: zoom-in; transition: transform 0.4s var(--ease), border-color 0.3s; }
.prose img:hover { transform: scale(1.01); border-color: var(--border-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { color: var(--text); font-weight: 600; }
.prose code { font: 0.86em var(--mono); padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.prose a { word-break: break-word; color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.page { padding: 64px 0 112px; }
.page-title { margin: 0 0 0.35em; font: 700 clamp(34px, 5vw, 50px)/1.08 var(--font-display); letter-spacing: -0.035em; }
.page .article-lead { margin: 0 0 2em; }

/* ---------- Über mich: Geschichte als Zeitleiste ---------- */
.hero-glow-color {
  background:
    radial-gradient(ellipse at 40% 45%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07), transparent 70%);
}
.page-story .page-title {
  font-size: clamp(46px, 8vw, 80px); padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--text) 20%, var(--accent) 50%, var(--text) 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: title-shift 10s ease-in-out infinite alternate;
}
@keyframes title-shift { to { background-position: 100% 0; } }
.page-story .stats { margin: 28px 0 44px; }
.page-story .stat:last-child .stat-value { color: var(--accent); }

/* Matrix: Zeichen während des Entschlüsselns */
.decoding { font-variant-numeric: tabular-nums; }
.decoding .glyph { color: var(--accent); opacity: 0.8; text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }

.page-intro {
  margin: 0 0 3.2em; padding: 24px 26px; border-radius: var(--radius); border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--border-2) 45%, var(--border)) border-box;
}
.page-intro p { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--text); }

.timeline { --c: var(--accent); position: relative; padding-left: 40px; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 7px; top: 10px; width: 2px; border-radius: 2px;
}
.timeline::before { bottom: 10px; background: var(--border); }
/* farbige Linie, die sich beim Scrollen füllt (--tl-fill setzt main.js) */
.timeline::after {
  height: calc((100% - 20px) * var(--tl-fill, 1));
  background: linear-gradient(to bottom, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--border-2)));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.tl-item { position: relative; padding-bottom: 2.8em; }
.tl-item::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--c); box-shadow: 0 0 0 5px var(--bg);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tl-item.visible::before, html:not(.js) .tl-item::before { background: var(--c); box-shadow: 0 0 0 5px var(--bg), 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); }
.tl-mark {
  display: inline-block; margin-bottom: 0.6em; padding: 3px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.prose .tl-item h2 { margin-top: 0; }
.prose .tl-item h2::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--c); }

.page-outro {
  margin-top: 0.6em; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%), var(--surface);
}
.prose .page-outro h2 { margin-top: 0; }
.page-outro p { margin: 0; }
.prose .page-outro a {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding: 6px 16px; border-radius: 999px;
  background: var(--accent); color: #0a0a0b; font-weight: 650; text-decoration: none;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.prose .page-outro a:hover { transform: translateY(-1px); box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 55%, transparent); }
.prose .page-outro a::after { content: "→"; }
@media (max-width: 520px) { .timeline { padding-left: 30px; } .tl-item::before { left: -30px; } .page-intro { padding: 20px; } }

/* ---------- Footer & Lightbox ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 28px 0 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(5, 5, 6, 0.88); backdrop-filter: blur(8px); cursor: zoom-out; animation: fade-in 0.25s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; border-radius: 12px; background: var(--surface); animation: pop-in 0.35s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { transform: scale(0.95); opacity: 0; } }

/* ---------- Einblenden beim Scrollen (nur mit JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.visible { opacity: 1; transform: none; filter: none; }

/* ---------- Weniger Bewegung, wenn gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .chip { display: none; }
}
