/* NeroV Developer Hub — Website-Schicht auf dem nerov_designkit.
   Farben, Schriften und Radien kommen aus tokens.css (--nv-*).
   Das Kit misst in vh (für Game-UIs); auf einer Webseite nehmen wir rem – die Gesten
   (Accent-Bar, Pill, Gradient-Chip, Hatch, Spotlight) bleiben, die Glow-Tokens nutzen wir hier nicht:
   Zustand zeigt sich über Farbe, Kante und Fokusring, nicht über Leuchten. */

@font-face { font-family: "Agency FB"; src: url("../assets/fonts/agencyfb_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Agency FB"; src: url("../assets/fonts/agencyfb_reg.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arame"; src: url("../assets/fonts/Arame.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arame"; src: url("../assets/fonts/Arame-Thin.ttf") format("truetype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "AtomicMarker"; src: url("../assets/fonts/AtomicMarker.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0a2227;
  --nv-panel: rgba(15, 46, 51, 0.94);
  --nv-surface-1: rgba(255, 255, 255, 0.05);
  --nv-surface-2: rgba(255, 255, 255, 0.09);
  --nv-surface-3: rgba(255, 255, 255, 0.15);
  --rail-w: 15.5rem;
  --pad: clamp(1rem, 2.4vw, 2.2rem);
  --r-card: 0.55rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-ui: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Kontrast: Websiteschicht liegt auf ruhigem Grund, nicht auf Game-Footage */
  --nv-text-dim: rgba(255, 255, 255, 0.88);
  --nv-text-faint: rgba(255, 255, 255, 0.72);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
  --line: rgba(255, 255, 255, 0.09);
  --code-bg: rgba(3, 18, 22, 0.5);
  --top-h: 4.2rem; /* app.js misst die echte Höhe der Kopfleiste und der Toolbar */
  --tb-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15.5px; -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--nv-text);
  font-family: var(--font-ui); font-weight: 400; line-height: 1.5; font-size: 1rem; font-feature-settings: "tnum" 0, "cv11"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
code, pre, kbd, .code, .code *, .rec code, .symlist code, .symrow code, .pv { font-family: var(--mono); }
::selection { background: rgba(82, 246, 239, 0.28); }
:focus-visible { outline: 3px solid var(--nv-primary); outline-offset: 2px; border-radius: 0.2rem; }
* { scrollbar-width: thin; scrollbar-color: rgba(82, 246, 239, 0.25) transparent; }
h1, h2, h3 { text-wrap: balance; }
p, .md li { text-wrap: pretty; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.6rem 1rem; border-radius: 0.4rem; background: var(--nv-panel); border: 1px solid var(--nv-primary); color: var(--nv-primary); }
.skip:focus { top: 1rem; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(48rem 32rem at 78% -6%, rgba(82, 246, 239, 0.10), transparent 70%),
    radial-gradient(40rem 30rem at 8% 108%, rgba(47, 224, 217, 0.06), transparent 70%);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  mask-image: radial-gradient(70% 55% at 70% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 70% 0%, #000, transparent 75%);
}

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.2rem;
  padding: 1.3rem 1rem 1rem; background: rgba(10, 36, 41, 0.9);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.8rem; padding: 0.2rem 0.4rem; }
.brand img { width: 2.9rem; height: 2.9rem; object-fit: contain; }
.brand b { display: block; font-family: var(--nv-font-display); font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; font-weight: 700; }
.brand b i { font-style: normal; color: var(--nv-primary); }
.brand small { display: block; margin-top: 0.15rem; font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); }

.nav { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-label { margin: 0.6rem 0.7rem 0.3rem; font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); }
.nav a {
  position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.75rem; font-size: 1rem; border-radius: 0.4rem;
  color: var(--nv-text-dim); transition: background 0.2s, color 0.2s;
}
.nav a i { width: 1.2rem; text-align: center; color: var(--nv-text-faint); transition: color 0.2s; }
.nav a:hover { background: var(--nv-surface-1); color: var(--nv-text); }
.nav a:hover i { color: var(--nv-primary); }
.nav a::before { /* Accent-Bar links: Zustand, keine Deko */
  content: ""; position: absolute; left: 0; top: 50%; width: 0.2rem; height: 0; border-radius: 0 0.2rem 0.2rem 0;
  background: var(--nv-primary); transform: translateY(-50%); transition: height 0.25s var(--ease);
}
.nav a.on { background: var(--nv-primary-faint); color: var(--nv-primary); }
.nav a.on i { color: var(--nv-primary); }
.nav a.on::before { height: 1.5rem; }
.nav .count { margin-left: auto; font-size: 0.875rem; color: var(--nv-text-faint); font-variant-numeric: tabular-nums; }
.nav a.on .count { color: var(--nv-primary); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.srv { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem; background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: 0.45rem; font-size: 0.875rem; }
.srv img { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; }
.srv span { color: var(--nv-text-dim); line-height: 1.2; min-width: 0; }
.srv strong { display: block; color: var(--nv-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--nv-money); margin-left: auto; flex: none; }
.dot.off { background: var(--nv-danger); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem var(--pad);
  background: rgba(10, 34, 39, 0.94); backdrop-filter: blur(10px);
}
.menu-btn { display: none; width: 2.4rem; height: 2.4rem; border-radius: 0.4rem; background: var(--nv-surface-2); }
.crumb { font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); white-space: nowrap; }
.crumb b { color: var(--nv-primary); font-weight: 600; }
.gsearch {
  margin-left: auto; display: flex; align-items: center; gap: 0.6rem; min-width: min(22rem, 46vw); padding: 0.55rem 0.8rem;
  background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: 0.45rem; color: var(--nv-text-faint); transition: 0.2s;
}
.gsearch:hover { background: var(--nv-surface-2); border-color: var(--nv-primary-edge); color: var(--nv-text-dim); }
.gsearch kbd { margin-left: auto; font-size: 0.875rem; padding: 0.1rem 0.4rem; border-radius: 0.25rem; background: var(--nv-surface-2); color: var(--nv-text-dim); }

#view { padding: 0.2rem var(--pad) 2rem; width: 100%; max-width: 92rem; margin: 0 auto; }
#view:focus { outline: none; }
.view-in { animation: view-in 0.3s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(0.45rem); } to { opacity: 1; transform: none; } }
.rise { animation: view-in 0.35s var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 28ms); }
.still .rise, .rise.still { animation: none; }

/* ---------- Typo ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-dim); }
h1, h2, h3 { font-family: var(--nv-font-display); font-weight: 700; letter-spacing: 0.01em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); text-transform: uppercase; }
h2 { font-size: 1.55rem; text-transform: uppercase; }
h3 { font-size: 1.2rem; }
.lead { color: var(--nv-text-dim); font-size: 1.05rem; line-height: 1.5; max-width: 38rem; }
.glow { color: var(--nv-primary); }
.dim { color: var(--nv-text-dim); } .faint { color: var(--nv-text-faint); }
.sec-head { display: flex; align-items: baseline; gap: 0.9rem; margin: 1.5rem 0 0.7rem; }
.sec-head h2 { white-space: nowrap; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; align-self: center; }

/* ---------- Bausteine ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.22rem 0.6rem; border-radius: 0.2rem; background: var(--nv-primary-soft); color: var(--nv-primary); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill.mute { background: var(--nv-surface-2); color: var(--nv-text-dim); }
.pill.money { background: var(--nv-money-soft); color: var(--nv-money); }
.pill.warn { background: var(--nv-warn-soft); color: var(--nv-warn); }
.pill.danger { background: var(--nv-danger-soft); color: var(--nv-danger); }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 0.2rem; background: var(--nv-chip-grad); color: #000; font-size: 0.875rem; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.7rem 1.2rem; border-radius: 0.35rem; font-weight: 600;
  border: 1px solid var(--nv-primary-edge); background: var(--nv-primary-grad-faint); color: var(--nv-primary); font-size: 0.95rem;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s; white-space: nowrap;
}
.btn:hover { background: var(--nv-primary-grad-soft); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--nv-primary-grad); color: #04201f; border-color: var(--nv-primary); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--nv-surface-1); border-color: var(--line); color: var(--nv-text-dim); }
.btn.ghost:hover { background: var(--nv-surface-2); color: var(--nv-text); }
.btn.danger { background: var(--nv-danger-soft); border-color: rgba(255, 86, 86, 0.4); color: var(--nv-danger); }
.btn.danger:hover { background: rgba(255, 86, 86, 0.18); }
.btn.sm { padding: 0.4rem 0.7rem; font-size: 0.875rem; }
.btn[disabled], .btn.off { opacity: 0.4; pointer-events: none; }
.icon-btn { width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border-radius: 0.35rem; color: var(--nv-text-faint); transition: 0.18s; }
.icon-btn:hover { background: var(--nv-surface-2); color: var(--nv-primary); }
.icon-btn.copied { color: var(--nv-money); }

.card {
  position: relative; background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.card.link { cursor: pointer; overflow: hidden; }
.card.link::before { /* Accent-Bar oben: nur bei Hover, Fokus oder aktiv */
  content: ""; position: absolute; top: 0; left: 50%; width: 2.7rem; height: 0.24rem; transform: translateX(-50%); z-index: 2;
  border-radius: 0 0 0.35rem 0.35rem; background: var(--nv-primary); opacity: 0; transition: opacity 0.25s, width 0.3s var(--ease);
}
.card.link::after { /* Hatch-Streifen */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 0.9rem; background: url("../assets/img/item-bg.svg") center / cover; opacity: 0.3; pointer-events: none;
}
.card.link:focus-visible, .card.link.on { background: var(--nv-surface-2); border-color: var(--nv-primary-edge); }
.card.link:focus-visible::before, .card.link.on::before { opacity: 1; width: 4.4rem; }
.card.link.on { background: var(--nv-primary-faint); }
@media (hover: hover) {
  .card.link:hover { transform: translateY(-1px); background: var(--nv-surface-2); border-color: var(--nv-primary-edge); }
  .card.link:hover::before { opacity: 1; width: 4.4rem; }
}
.grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Startseite ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 1.5rem;
  margin-top: 0.3rem; padding: clamp(1rem, 2vw, 1.6rem); overflow: hidden; border-radius: 0.9rem;
  background: linear-gradient(110deg, rgba(17, 58, 63, 0.95), rgba(12, 44, 49, 0.8)); border: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 0.22rem; background: var(--nv-primary); border-radius: 0 0.3rem 0.3rem 0; }
.hero .copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.hero-meta { margin: 0; color: var(--nv-text-faint); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.hero .vid { position: relative; border-radius: 0.6rem; overflow: hidden; aspect-ratio: 520 / 184; background: #000; }
.hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .vid::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--nv-primary-edge); border-radius: inherit; pointer-events: none; }
.vid-toggle { position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 3; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(4, 22, 26, 0.75); color: var(--nv-text); font-size: 0.875rem; }
.vid-toggle:hover { color: var(--nv-primary); }

.spot { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 17rem; width: 100%; margin: 0 auto; }
.spot::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/spotlight-frame.svg") center / 100% 100% no-repeat; }
.spot::after { content: ""; position: absolute; inset: 8%; background: url("../assets/img/spotlight-grid.svg") center / cover; opacity: 0.4; mask-image: radial-gradient(circle, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 75%); }
.spot video { position: relative; z-index: 1; width: 78%; border-radius: 0.4rem; }

.feature { display: grid; grid-template-columns: 1fr minmax(0, 15rem); gap: 1rem; align-items: center; padding: 1.1rem; overflow: hidden; }
.feature::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 0.22rem; background: var(--nv-primary); border-radius: 0 0.3rem 0.3rem 0; }

/* ---------- Listen-Zeilen ---------- */
.rows { display: flex; flex-direction: column; gap: 0.4rem; }
.lrow { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.9rem; }
.lrow .ico { width: 2.3rem; height: 2.3rem; flex: none; display: grid; place-items: center; border-radius: 0.4rem; background: var(--nv-primary-soft); color: var(--nv-primary); }
.lrow .t { min-width: 0; flex: 1; }
.lrow .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .t small { color: var(--nv-text-faint); font-size: 0.875rem; }

/* ---------- Register ---------- */
.page-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0.4rem 0 0.7rem; }
.page-head p { margin: 0.35rem 0 0; color: var(--nv-text-dim); max-width: 40rem; font-size: 0.95rem; }
.toolbar { position: relative; z-index: 15; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.6rem; margin-bottom: 0.7rem; background: rgba(12, 42, 47, 0.97); border: 1px solid var(--line); border-radius: 0.6rem; }
.searchbox { display: flex; align-items: center; gap: 0.7rem; padding: 0 0.9rem; border-radius: 0.45rem; background: var(--nv-surface-1); border: 1px solid var(--line); transition: 0.2s; }
.searchbox:focus-within { border-color: var(--nv-primary); background: var(--nv-surface-2); outline: 2px solid var(--nv-primary); outline-offset: 1px; }
.searchbox i { color: var(--nv-text-faint); }
.searchbox input { flex: 1; min-width: 0; height: 2.5rem; background: none; border: 0; outline: none; font-size: 1rem; }
.searchbox input::placeholder { color: var(--nv-text-faint); }
.searchbox kbd { font-size: 0.875rem; padding: 0.1rem 0.45rem; border-radius: 0.25rem; background: var(--nv-surface-2); color: var(--nv-text-faint); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.seg { display: inline-flex; padding: 0.2rem; gap: 0.15rem; background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: 0.45rem; }
.seg button { padding: 0.5rem 0.9rem; border-radius: 0.3rem; color: var(--nv-text-dim); font-size: 0.88rem; transition: 0.2s; display: inline-flex; gap: 0.45rem; align-items: center; }
.seg a { padding: 0.5rem 0.9rem; border-radius: 0.3rem; color: var(--nv-text-dim); font-size: 0.88rem; transition: 0.2s; display: inline-flex; gap: 0.45rem; align-items: center; }
.seg a small { opacity: 0.7; font-variant-numeric: tabular-nums; }
.seg a:hover { color: var(--nv-text); }
.seg a.on { background: var(--nv-primary-soft); color: var(--nv-primary); }
.seg button:hover { color: var(--nv-text); }
.seg button.on { background: var(--nv-primary-soft); color: var(--nv-primary); }
.filters { display: flex; flex: 1; flex-wrap: wrap; gap: 0.5rem; align-items: center; min-width: 0; }
.filters .select { margin-left: auto; }
.fchip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; border-radius: 0.25rem; background: var(--nv-surface-1); border: 1px solid var(--line); color: var(--nv-text-dim); font-size: 0.875rem; transition: 0.18s; cursor: pointer; }
.fchip:hover { border-color: var(--nv-primary-edge); color: var(--nv-text); }
.fchip.on { background: var(--nv-primary-soft); border-color: var(--nv-primary-edge); color: var(--nv-primary); }
.fchip small { opacity: 0.8; font-variant-numeric: tabular-nums; }
.select { height: 2.5rem; padding: 0 0.6rem; border-radius: 0.3rem; background: var(--nv-surface-1); border: 1px solid var(--line); color: var(--nv-text-dim); font-size: 0.875rem; }
.select option { background: #0f343a; }
.fmore { position: relative; }
.fmore summary { list-style: none; }
.fmore summary::-webkit-details-marker { display: none; }
.fmore[open] summary { border-color: var(--nv-primary-edge); color: var(--nv-text); }
.fpop { position: absolute; z-index: 30; top: calc(100% + 0.4rem); left: 0; width: min(30rem, 88vw); max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem; background: var(--nv-panel); border: 1px solid var(--nv-primary-edge); border-radius: 0.6rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.5); }
.fgroup { display: flex; flex-direction: column; gap: 0.4rem; }
.fgroup > span { font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); }
.fgroup .select { align-self: flex-start; }
.fgroup .frow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.factive { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.split { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.list { display: flex; flex-direction: column; gap: 0.4rem; }
.entry { padding: 0.9rem 1rem 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.entry h3 { font-size: 1.25rem; text-transform: none; letter-spacing: 0.02em; }
.entry p { margin: 0; color: var(--nv-text-dim); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry .meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.entry .cmd { font-family: var(--mono); color: var(--nv-primary); font-size: 1.05rem; }
mark { background: rgba(82, 246, 239, 0.22); color: var(--nv-primary); border-radius: 0.15rem; padding: 0 0.08rem; }

.symrow { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.7rem 1rem; }
.symrow code { color: var(--nv-text); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.symrow .sig { display: block; color: var(--nv-text-faint); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stype { text-align: center; font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.18rem 0; border-radius: 0.2rem; background: var(--nv-surface-2); color: var(--nv-text-dim); }
.stype.export { background: var(--nv-money-soft); color: var(--nv-money); }
.stype.function { background: var(--nv-primary-soft); color: var(--nv-primary); }
.stype.command { background: var(--nv-warn-soft); color: var(--nv-warn); }


/* ---------- Register: Skript-Spalte, Liste, Detail ---------- */
.reg3 { display: grid; grid-template-columns: 15rem minmax(0, 25rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.scriptnav { position: sticky; top: calc(var(--top-h) + 0.8rem); max-height: calc(100vh - var(--top-h) - 1.6rem); overflow: auto; padding: 0.5rem; background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: var(--r-card); }
.scriptnav a span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 0.875rem; min-width: 0; }
.lhead { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0.1rem 0.6rem; }
.lhead b { font: 700 1.3rem/1 var(--nv-font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.dense.list { gap: 0.3rem; }
.dense .entry { padding: 0.5rem 0.9rem 0.5rem; gap: 0.1rem; }
.dense .card.link::after { display: none; }
.dense .entry .l1 { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.dense .entry .l1 h3 { font-size: 1.15rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dense .entry .l1 time { margin-left: auto; color: var(--nv-text-faint); font-size: 0.875rem; white-space: nowrap; }
.dense .entry .l2 { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--nv-text-faint); font-size: 0.875rem; }
.dense .entry .l2 .d { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Skript-Gliederung ---------- */
.sfilter { position: sticky; top: -0.5rem; z-index: 2; display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; padding: 0 0.6rem; border-radius: 0.4rem; background: #0e2f35; border: 1px solid var(--line); }
.sfilter:focus-within { border-color: var(--nv-primary); }
.sfilter i { color: var(--nv-text-faint); font-size: 0.875rem; }
.sfilter input { flex: 1; min-width: 0; height: 2.2rem; background: none; border: 0; outline: none; font-size: 0.9rem; }
.sfilter input::placeholder { color: var(--nv-text-faint); }
.snone { margin: 0.6rem 0.7rem; color: var(--nv-text-faint); font-size: 0.9rem; }
.sgrp { margin-top: 0.15rem; }
.sgrp > summary { list-style: none; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem; border-radius: 0.35rem; color: var(--nv-text-faint); font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.sgrp > summary::-webkit-details-marker { display: none; }
.sgrp > summary:hover { background: var(--nv-surface-1); color: var(--nv-text); }
.sgrp > summary i { width: 0.8rem; font-size: 0.75rem; transition: transform 0.2s var(--ease); }
.sgrp[open] > summary i { transform: rotate(90deg); }
.sgrp > summary .count { margin-left: auto; font-variant-numeric: tabular-nums; }
.sgrp > a { margin-left: 0.7rem; padding-left: 0.6rem; }
.grp { position: sticky; top: calc(var(--top-h) + var(--tb-h) + 0.2rem); z-index: 3; display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; padding: 0.45rem 0.8rem; border-radius: 0.4rem; background: #0e3238; border: 1px solid var(--line); border-left: 3px solid var(--nv-primary); }
.grp:first-child { margin-top: 0; }
.grp > i { color: var(--nv-primary); }
.grp b { font: 700 1.1rem/1 var(--nv-font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.grp .go { color: var(--nv-text-faint); font-size: 0.875rem; opacity: 0; transition: opacity 0.2s; }
.grp:hover .go, .grp:focus-visible .go { opacity: 1; color: var(--nv-primary); }
@media (hover: none) { .grp .go { opacity: 1; } }

/* ---------- Tools: Dateiliste, Kacheln, Leser ---------- */
.tlist { display: flex; flex-direction: column; background: var(--nv-surface-1); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.trow { border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.tmain { position: relative; display: grid; grid-template-columns: 2.1rem minmax(8rem, 15rem) minmax(0, 1fr) auto auto; gap: 0.7rem; align-items: center; width: 100%; min-height: 2.6rem; padding: 0.35rem 0.8rem; text-align: left; cursor: pointer; transition: background 0.18s; }
.tmain:hover { background: var(--nv-surface-2); }
.trow.open .tmain { background: var(--nv-primary-faint); }
.trow.open .tmain::before, .tmain:focus-visible::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 0.2rem; background: var(--nv-primary); border-radius: 0 0.2rem 0.2rem 0; }
.tmain .ico { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 0.4rem; background: var(--nv-primary-soft); color: var(--nv-primary); }
.tmain .tt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmain .tp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nv-text-faint); font-size: 0.875rem; }
.tmain .tp.code { font-family: var(--mono); font-size: 0.875rem; }
.tdetail { padding: 0.1rem 0.8rem 0.9rem 3.75rem; display: grid; gap: 0.7rem; animation: view-in 0.2s var(--ease); }
.tdetail pre { margin: 0; padding: 0.8rem 1rem; border-radius: 0.45rem; background: var(--code-bg); border: 1px solid var(--line); font-size: 0.875rem; line-height: 1.6; white-space: pre-wrap; color: var(--nv-text-dim); max-height: 18rem; overflow: auto; }

.tiles { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.tile { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.8rem; }
.tile .ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 0.5rem; background: var(--nv-primary-soft); color: var(--nv-primary); font: 700 1.4rem/1 var(--nv-font-display); text-transform: uppercase; }
.tile .tx { min-width: 0; display: grid; gap: 0.05rem; }
.tile b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile small { color: var(--nv-primary); font-family: var(--mono); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile em { font-style: normal; color: var(--nv-text-faint); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .go { color: var(--nv-text-faint); font-size: 0.875rem; transition: color 0.2s, transform 0.2s var(--ease); }
.tile:hover .go { color: var(--nv-primary); transform: translate(2px, -2px); }
.card.link.tile::after { display: none; }
.promptbox { margin-top: 1rem; border: 1px solid var(--line); border-radius: 0.5rem; overflow: hidden; background: var(--code-bg); }
.promptbox pre { margin: 0; padding: 1rem 1.1rem; white-space: pre-wrap; font-size: 0.95rem; line-height: 1.7; color: var(--nv-text); font-family: var(--font-ui); }
.reader h2 { font-size: 2rem; margin: 0.4rem 0 0; }

/* ---------- Detail ---------- */
.detail { position: sticky; top: calc(var(--top-h) + 0.8rem); max-height: calc(100vh - var(--top-h) - 1.6rem); overflow: auto; padding: 1.1rem 1.2rem 1.1rem; background: var(--nv-panel); border-radius: 0.7rem; border: 1px solid var(--nv-primary-edge); animation: view-in 0.25s var(--ease); }
.detail::before { content: ""; position: absolute; top: 0; left: 1.4rem; width: 4.4rem; height: 0.24rem; background: var(--nv-primary); border-radius: 0 0 0.35rem 0.35rem; }
.detail h2 { font-size: 1.7rem; text-transform: none; margin: 0.2rem 0 0.7rem; word-break: break-word; }
.detail .actions { margin-left: auto; display: flex; gap: 0.4rem; }
.empty-detail { display: grid; place-items: center; min-height: 18rem; text-align: center; color: var(--nv-text-faint); border: 1px dashed var(--line); border-radius: 0.7rem; padding: 2rem; }
.empty-detail i { font-size: 2rem; color: var(--nv-primary-edge); margin-bottom: 0.6rem; display: block; }
.author { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--nv-text-dim); }
.author img { width: 1.3rem; height: 1.3rem; border-radius: 50%; }
.md { color: var(--nv-text-dim); font-size: 1rem; line-height: 1.55; max-width: 68ch; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4 { color: var(--nv-text); text-transform: none; margin: 1.1rem 0 0.5rem; font-size: 1.25rem; }
.md p { margin: 0.55rem 0; } .md ul, .md ol { padding-left: 1.3rem; margin: 0.5rem 0; } .md li { margin: 0.2rem 0; }
.md a { color: var(--nv-primary); border-bottom: 1px solid var(--nv-primary-edge); }
.md code { background: var(--nv-surface-2); padding: 0.1rem 0.35rem; border-radius: 0.2rem; font-size: 0.85em; color: var(--nv-text); }
.md blockquote { margin: 0.7rem 0; padding: 0.5rem 0.9rem; border-radius: 0.35rem; background: var(--nv-surface-1); color: var(--nv-text-faint); }
.md hr { border: 0; height: 1px; background: var(--line); margin: 1rem 0; }
.md strong { color: var(--nv-text); font-weight: 600; }

.codeblock { margin: 1rem 0 0; border-radius: 0.5rem; overflow: hidden; background: var(--code-bg); border: 1px solid var(--line); }
.codehead { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.5rem 0.35rem 0.9rem; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--nv-text-faint); letter-spacing: 0.07em; text-transform: uppercase; }
.codehead .lang { color: var(--nv-primary); }
.code { margin: 0; overflow: auto; max-height: 34rem; padding: 0.7rem 0; font-size: 0.875rem; line-height: 1.6; tab-size: 2; }
.code .ln { display: flex; padding: 0 1rem 0 0; min-width: max-content; }
.code .ln:hover { background: rgba(255, 255, 255, 0.03); }
.code .ln.hit { background: var(--nv-primary-soft); box-shadow: inset 2px 0 0 var(--nv-primary); }
.code .no { flex: none; width: 2.9rem; padding-right: 0.9rem; text-align: right; color: rgba(255, 255, 255, 0.42); user-select: none; font-variant-numeric: tabular-nums; }
.code .tx { white-space: pre; }
.tk-c { color: #86a4a3; font-style: italic; } .tk-s { color: #8ff0c0; } .tk-n { color: #ffb86b; }
.tk-k { color: #52f6ef; } .tk-f { color: #9be7ff; } .tk-t { color: #d9a8ff; } .tk-p { color: #93adac; } .tk-b { color: #ff8fa3; }
.tk-a { color: #ffd479; }

.symlist { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1.1rem; }
.symlist button { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.7rem; align-items: center; text-align: left; padding: 0.4rem 0.5rem; border-radius: 0.3rem; transition: 0.15s; }
.symlist button:hover { background: var(--nv-surface-2); }
.symlist code { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Prompts / Links / Downloads ---------- */
.prompt { padding: 1rem 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 10rem; }
.prompt .pv { flex: 1; margin: 0; padding: 0.7rem 0.8rem; border-radius: 0.4rem; background: var(--code-bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.875rem; line-height: 1.55; color: var(--nv-text-dim); white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.linkc { padding: 1rem 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.linkc .host { display: flex; align-items: center; gap: 0.5rem; color: var(--nv-text-faint); font-size: 0.875rem; }
.linkc h3 { font-size: 1.25rem; text-transform: none; }
.linkc p { margin: 0; color: var(--nv-text-dim); font-size: 0.88rem; }
.filec { padding: 1rem 1rem 0.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.filec .fi { font-size: 1.6rem; color: var(--nv-primary); }
.filec h3 { font-size: 1.2rem; text-transform: none; word-break: break-all; }

/* ---------- Overlay / Palette ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(4, 22, 26, 0.78); }
.overlay.open { display: grid; animation: fade 0.2s both; }
@keyframes fade { from { opacity: 0; } }
.palette { align-self: start; justify-self: center; width: min(40rem, 94vw); margin-top: 12vh; background: var(--nv-panel); border: 1px solid var(--nv-primary-edge); border-radius: 0.8rem; box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.6); animation: pop 0.2s var(--ease); overflow: hidden; }
@keyframes pop { from { opacity: 0; transform: scale(0.98) translateY(-0.4rem); } }
.palette input { width: 100%; height: 3.4rem; padding: 0 1.1rem; background: none; border: 0; outline: none; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.palette .res { max-height: 52vh; overflow: auto; padding: 0.4rem; }
.palette .item { display: flex; align-items: center; gap: 0.8rem; width: 100%; padding: 0.6rem 0.7rem; text-align: left; border-radius: 0.4rem; }
.palette .item.on { background: var(--nv-primary-soft); }
.palette .item i { color: var(--nv-primary); width: 1.2rem; text-align: center; }
.palette .item small { margin-left: auto; color: var(--nv-text-faint); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.07em; }
.palette .none { padding: 1.4rem; text-align: center; color: var(--nv-text-faint); }
.sheet { align-self: stretch; justify-self: center; width: min(48rem, 100%); margin: 0; overflow: auto; background: var(--nv-panel); padding: 1rem; animation: pop 0.2s var(--ease); }

dialog.confirm { width: min(28rem, 92vw); padding: 1.5rem; border-radius: 0.8rem; background: var(--nv-panel); color: var(--nv-text); border: 1px solid var(--nv-primary-edge); box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.6); }
dialog.confirm::backdrop { background: rgba(4, 22, 26, 0.78); }
dialog.confirm h2 { font-size: 1.5rem; text-transform: none; margin-bottom: 0.6rem; }
dialog.confirm p { margin: 0 0 1.2rem; color: var(--nv-text-dim); }
dialog.confirm .row { justify-content: flex-end; }

#toasts { position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { padding: 0.7rem 1rem; border-radius: 0.45rem; background: var(--nv-panel); border: 1px solid var(--nv-primary-edge); box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.4); animation: view-in 0.25s var(--ease); font-size: 0.92rem; display: flex; gap: 0.6rem; align-items: center; }
.toast.err { border-color: rgba(255, 86, 86, 0.5); } .toast.err i { color: var(--nv-danger); } .toast i { color: var(--nv-money); }

/* ---------- Skeleton / leer ---------- */
.skel { height: 6rem; border-radius: var(--r-card); background: linear-gradient(100deg, var(--nv-surface-1) 30%, var(--nv-surface-2) 50%, var(--nv-surface-1) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }
.empty { display: grid; place-items: center; gap: 0.5rem; padding: 3.5rem 1rem; text-align: center; color: var(--nv-text-faint); border: 1px dashed var(--line); border-radius: 0.7rem; }
.empty i { font-size: 2.2rem; color: var(--nv-primary-edge); }
.empty b { font-family: var(--nv-font-display); font-size: 1.5rem; color: var(--nv-text-dim); font-weight: 700; text-transform: uppercase; }

/* ---------- Setup ---------- */
.gate { max-width: 28rem; margin: 6vh auto 0; padding: 2rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; text-align: center; background: var(--nv-panel); border: 1px solid var(--nv-primary-edge); border-radius: 0.8rem; position: relative; }
.gate::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 5rem; height: 0.25rem; background: var(--nv-primary); border-radius: 0 0 0.4rem 0.4rem; }
.gate .mark { font-family: var(--nv-font-mark); font-size: 3.4rem; color: var(--nv-primary); line-height: 1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.field label { font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); }
.input { height: 2.8rem; padding: 0 0.9rem; border-radius: 0.4rem; background: var(--nv-surface-1); border: 1px solid var(--line); transition: 0.2s; width: 100%; }
.input:focus { border-color: var(--nv-primary); background: var(--nv-surface-2); }
.tabs { display: flex; gap: 0.3rem; margin: 0.8rem 0 1.2rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; padding: 0.7rem 1rem; color: var(--nv-text-dim); white-space: nowrap; display: flex; gap: 0.5rem; align-items: center; }
.tabs button::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: -1px; height: 0.2rem; background: var(--nv-primary); border-radius: 0.2rem 0.2rem 0 0; transform: scaleX(0); transition: transform 0.3s var(--ease); }
.tabs button.on { color: var(--nv-primary); } .tabs button.on::after { transform: scaleX(1); }
.panel { padding: 1rem; background: var(--nv-panel); border: 1px solid var(--line); border-radius: 0.7rem; }
.panel + .panel { margin-top: 1rem; }
.steps { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; border-radius: 2rem; background: var(--nv-surface-1); color: var(--nv-text-faint); font-size: 0.875rem; }
.step b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--nv-surface-3); font-weight: 600; font-size: 0.875rem; }
.step.on { color: var(--nv-primary); background: var(--nv-primary-soft); } .step.on b { background: var(--nv-primary-grad); color: #04201f; }
.step.done { color: var(--nv-money); } .step.done b { background: var(--nv-money); color: #04201f; }
.rec { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 0.7rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: 0.45rem; background: var(--code-bg); border: 1px solid var(--line); font-size: 0.88rem; }
.rec + .rec { margin-top: 0.5rem; }
.rec .k { font-size: 0.875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--nv-text-faint); }
.rec code { overflow-wrap: anywhere; color: var(--nv-text); }
.status-line { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; padding: 0.7rem 0.9rem; border-radius: 0.45rem; background: var(--nv-surface-1); font-size: 0.9rem; }
.status-line.ok { background: var(--nv-money-soft); color: var(--nv-money); } .status-line.bad { background: var(--nv-danger-soft); color: var(--nv-danger); } .status-line.wait { background: var(--nv-warn-soft); color: var(--nv-warn); }
.spin { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.kindcard { padding: 1.2rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.kindcard .row.tag { gap: 0.4rem; }
.drop { display: grid; place-items: center; gap: 0.4rem; padding: 2.2rem 1rem; text-align: center; border: 1px dashed var(--nv-primary-edge); border-radius: 0.7rem; background: var(--nv-primary-faint); color: var(--nv-text-dim); cursor: pointer; transition: 0.2s; }
.drop:hover, .drop.over { background: var(--nv-primary-soft); border-color: var(--nv-primary); }
.drop i { font-size: 1.8rem; color: var(--nv-primary); }
.bar { height: 0.35rem; border-radius: 1rem; background: var(--nv-surface-3); overflow: hidden; } .bar > i { display: block; height: 100%; width: 0; background: var(--nv-primary-grad); transition: width 0.2s; }

/* ---------- Responsive ---------- */
@media (min-width: 1101px) {
  /* Suche und Filter bleiben beim Scrollen der langen Liste erreichbar; das Detail rutscht darunter. */
  .toolbar { position: sticky; top: var(--top-h); }
  .scriptnav { top: calc(var(--top-h) + var(--tb-h) + 1.6rem); max-height: calc(100vh - var(--top-h) - var(--tb-h) - 2.4rem); }
  .detail { top: calc(var(--top-h) + var(--tb-h) + 1.6rem); max-height: calc(100vh - var(--top-h) - var(--tb-h) - 2.4rem); }
}
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; } .reg3 { grid-template-columns: 15rem minmax(0, 1fr); } .detail { display: none; } .hero { grid-template-columns: 1fr; } .feature { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: min(19rem, 86vw); z-index: 60; transform: translateX(-102%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s; background: rgba(10, 33, 38, 0.99); }
  body.nav-open .rail { transform: none; visibility: visible; transition: transform 0.3s var(--ease); box-shadow: 0 0 4rem #000; }
  .menu-btn { display: grid; place-items: center; }
}
@media (max-width: 760px) {
  .reg3 { grid-template-columns: minmax(0, 1fr); }
  .scriptnav { position: static; max-height: none; display: flex; flex-direction: row; gap: 0.3rem; overflow-x: auto; padding: 0.4rem; }
  .scriptnav .nav-label { display: none; }
  .scriptnav a { flex: none; border: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .gsearch { min-width: 0; flex: 1; }
  .gsearch kbd, .crumb { display: none; }
  .rec { grid-template-columns: 1fr; gap: 0.3rem; }
  .symrow { grid-template-columns: 4.6rem minmax(0, 1fr); } .symrow .pill { grid-column: 2; justify-self: start; }
  .filters .select { margin-left: 0; }
}
@media (hover: none) { kbd { display: none; } }
@media (pointer: coarse) {
  .icon-btn, .menu-btn { width: 2.75rem; height: 2.75rem; }
  .fchip, .seg button, .btn.sm { min-height: 2.75rem; }
  .select { height: 2.75rem; }
  .symlist button { min-height: 2.75rem; }
  .vid-toggle { width: 2.75rem; height: 2.75rem; }
  .tabs button { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* Der Spinner ist Statusanzeige, kein Schmuck: er dreht sich langsam weiter. */
  .spin { animation-duration: 1.8s !important; animation-iteration-count: infinite !important; }
}
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .tmain { grid-template-columns: 2.1rem minmax(0, 1fr) auto; }
  .tmain .tp, .tmain .chip { display: none; }
}

/* Skript-Spalte: Namen vollständig lesbar */
.sgrp > a > i { display: none; }
.sgrp > a { gap: 0.5rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.scriptnav a span.nm { font-size: 0.875rem; }

/* ---------- Familien (oberste Gliederung) ---------- */
.nav a.fam { font-weight: 600; }
.nav a.fam .count { font-weight: 400; }
.nav a.fam.in { color: var(--nv-text); }
.nav a.fam.in i { color: var(--nv-primary); }
.fkids { margin: 0.1rem 0 0.5rem 1.05rem; padding-left: 0.4rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.1rem; }
.fkids a { padding: 0.35rem 0.6rem; }
.fkids a i { display: none; }
.fkids .sgrp > a { margin-left: 0.5rem; }
.fkids .sgrp > summary { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; color: var(--nv-text-dim); padding: 0.35rem 0.6rem; }
.nav .nav-label { margin-top: 0.8rem; }

.lhead .bc { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex-wrap: wrap; }
.lhead .bc i { font-size: 0.7rem; color: var(--nv-text-faint); }
.lhead .bc a { color: var(--nv-text-dim); font-size: 0.95rem; border-bottom: 1px solid transparent; }
.lhead .bc a:hover { color: var(--nv-primary); border-color: var(--nv-primary-edge); }
.lhead .bc b { overflow-wrap: anywhere; }

.fam-grid { display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
.fam-hint { margin: 0 0 0.2rem; color: var(--nv-text-dim); font-size: 0.95rem; }
.famcard { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; }
.famcard .ico { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 0.5rem; background: var(--nv-primary-soft); color: var(--nv-primary); font-size: 1.15rem; }
.famcard .tx { min-width: 0; display: grid; gap: 0.1rem; }
.famcard b { font: 700 1.35rem/1.1 var(--nv-font-display); letter-spacing: 0.03em; text-transform: uppercase; }
.famcard .meta { color: var(--nv-text-dim); font-size: 0.9rem; }
.famcard small { color: var(--nv-text-faint); font-family: var(--mono); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.famcard .go { color: var(--nv-text-faint); transition: color 0.2s, transform 0.2s var(--ease); }
.famcard:hover .go { color: var(--nv-primary); transform: translateX(3px); }
.card.link.famcard::after { display: none; }
.fam-all { justify-self: start; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; padding: 0.5rem 0.9rem; border-radius: 0.4rem; color: var(--nv-text-dim); font-size: 0.9rem; border: 1px dashed var(--line); }
.fam-all:hover { color: var(--nv-primary); border-color: var(--nv-primary-edge); }
