/* Graphit (Niru 20.11.2026: „modern, matt, futuristisch“). Eigenes Theme neben Hell, Matt und Dunkel.
   Alles hier gilt nur unter html[data-theme="graphit"], die anderen Themes bleiben unberührt. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

html[data-theme="graphit"] {
  color-scheme: dark;
  --bg: #121316; --panel: #191a1e; --card: #191a1e; --field: #141518; --seg: #22242a;
  --text: #ecedf0; --ink2: #c4c6cd; --muted: #868993; --leise: #868993;
  --line: #24262c; --line-stark: #31343b;
  --accent: #8be9fd; --link: #8be9fd; --accent-soft: rgba(139, 233, 253, .07); --accent-ring: rgba(139, 233, 253, .28);
  --knopf: #ecedf0; --knopf-hover: #ffffff; --knopf-active: #cfd1d6; --on-knopf: #121316;
  --tag: #22242a; --flaeche: #1d1e23;
  --ok: #86efac; --ok-soft: rgba(134, 239, 172, .07);
  --warn: #fcd58a; --warn-soft: rgba(252, 213, 138, .08);
  --bad: #fb8a8a; --bad-soft: rgba(251, 138, 138, .08);
  --s1: #8be9fd; --s2: #c4b5fd; --s3: #86efac; --cost: #31343b; --grid: #202227; --axis: #31343b;
  --chrome: #0f1013; --chrome-text: #ecedf0; --chrome-muted: #868993; --chrome-line: #1f2126;
  --chrome-hover: #17181c; --chrome-active: #ecedf0;
  --kopf-bg: rgba(18, 19, 22, .82);
  --schatten: none; --schatten-hoch: 0 4px 16px rgba(0, 0, 0, .5);
  --radius: 12px; --radius-klein: 9px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* matter Hintergrund mit feinem Messraster */
html[data-theme="graphit"] body {
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 32px 32px,
    #121316;
}
html[data-theme="graphit"] main { background: transparent; }
/* Navigation: aktiver Punkt als Lichtleiste */
html[data-theme="graphit"] nav a.on, html[data-theme="graphit"] nav a.on:hover {
  background: rgba(139, 233, 253, .06); color: #ecedf0;
  box-shadow: inset 2px 0 0 #8be9fd;
}
html[data-theme="graphit"] nav a.on svg, html[data-theme="graphit"] nav a.on::before { color: #8be9fd; }
html[data-theme="graphit"] .nav-gruppe { font-family: var(--mono); letter-spacing: .12em; }
/* Überschriften */
html[data-theme="graphit"] h1 { font-family: var(--sans); font-weight: 400; letter-spacing: -.04em; }
html[data-theme="graphit"] h1 em { font-style: normal; color: #8be9fd; }
html[data-theme="graphit"] h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -.01em; }
html[data-theme="graphit"] h2 .nr { font: 500 11px/1 var(--mono); color: #8be9fd; letter-spacing: .1em; margin-right: 10px; vertical-align: 2px; }
html[data-theme="graphit"] .tafel-kopf .sub { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
/* Karten: matt, Eckmarken, gestrichelter Kopf */
html[data-theme="graphit"] .card, html[data-theme="graphit"] .statband {
  position: relative; border: 1px solid #24262c; background: rgba(25, 26, 30, .92); box-shadow: none;
}
html[data-theme="graphit"] .card::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  --c: rgba(139, 233, 253, .55);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat;
}
html[data-theme="graphit"] .kartenkopf { border-bottom: 1px dashed #2b2e35; }
html[data-theme="graphit"] .stat .v { letter-spacing: -.035em; }
html[data-theme="graphit"] .stat .l, html[data-theme="graphit"] .k-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px;
}
/* Zahlen in Tabellen: Mono, tabellarisch */
html[data-theme="graphit"] td.n, html[data-theme="graphit"] .n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Balken dünn mit Verlauf */
html[data-theme="graphit"] .bar, html[data-theme="graphit"] .fortschritt { height: 3px; background: #24262c; border-radius: 3px; }
html[data-theme="graphit"] .bar > *, html[data-theme="graphit"] .fortschritt > * { background: linear-gradient(90deg, #8be9fd, #c4b5fd); }
/* Knöpfe und Hinweise */
html[data-theme="graphit"] button.ghost, html[data-theme="graphit"] .ghost { background: rgba(255, 255, 255, .02); border-color: #31343b; }
html[data-theme="graphit"] .msg { background: rgba(139, 233, 253, .04); border: 1px solid rgba(139, 233, 253, .18); border-left: 2px solid #8be9fd; }
/* Lichtschein unter dem Zeiger (static/shop.js setzt --x/--y) */
html[data-theme="graphit"] .card.spot { border-color: rgba(139, 233, 253, .35); }
html[data-theme="graphit"] .card.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), rgba(139, 233, 253, .08), transparent 70%);
}
