/* ───────────────────────── Finanzen leicht erklärt · Design-System ───────────────────────── */
:root {
  color-scheme: dark;
  --bg:        #0c0d10;
  --surface:   #111317;
  --surface-2: #16181d;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.13);
  --text:      #eceae6;
  --text-2:    #b3b4b8;
  --muted:     #7c7f86;
  --accent:    #3987e5;
  --pos:       #2fbf71;
  --neg:       #e66767;

  /* Datenreihen – validierte Kategorie-Palette (dunkel) */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --side-w: 264px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(57, 135, 229, .35); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 20%, transparent 75%);
  opacity: .55;
}

/* ───────── Sidebar ───────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px 20px; border-right: 1px solid var(--line);
  background: rgba(12, 13, 16, .86); backdrop-filter: blur(14px);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; position: relative; flex: none;
  background: linear-gradient(135deg, #1b1e24, #0f1114); border: 1px solid var(--line-2);
}
.brand-mark::after {
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  right: 4px; top: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.brand-text { font-weight: 600; font-size: 14.5px; letter-spacing: -0.02em; }
.slash { color: var(--muted); margin: 0 1px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  margin: 14px 10px 6px; font: 500 10.5px/1 var(--mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  text-decoration: none; color: var(--text-2); font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
}
.nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav a.active { background: rgba(255,255,255,.06); color: var(--text); }
.nav a.active::before {
  content: ""; position: absolute; left: -18px; top: 9px; bottom: 9px; width: 2px;
  border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.nav-no { font: 11px var(--mono); color: var(--muted); width: 18px; }
.nav a.active .nav-no { color: var(--accent); }

.level { margin-top: auto; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.seg button {
  border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--muted); transition: all .2s var(--ease); white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.08); color: var(--text); }
.level-hint { margin: 8px 10px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

.side-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.status { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--muted); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
.legal { display: flex; gap: 14px; font-size: 12px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--text); }

.topbar { display: none; }
.scrim { display: none; }

/* ───────── Main ───────── */
main {
  position: relative; z-index: 1; margin-left: var(--side-w);
  padding: 56px clamp(20px, 5vw, 72px) 96px; max-width: calc(var(--side-w) + 1180px);
  outline: none;
}
.page { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 500; }
h1 {
  margin: 0 0 16px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 58px);
}
h1 .dim { color: var(--muted); }
h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lead { max-width: 680px; margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.intro-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 44px; padding: 10px 14px 10px 10px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
  font-size: 13px; color: var(--text-2); text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.intro-strip:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #2a2e36, #15171c); border: 1px solid var(--line-2);
  font: 600 11px var(--mono); color: var(--text);
}
.intro-strip { flex-wrap: nowrap; border-radius: 18px; }
.intro-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.intro-strip .arrow { color: var(--muted); font-family: var(--mono); flex: none; }

section.block { margin-top: 64px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.block-head p { margin: 0; color: var(--muted); max-width: 560px; }

/* ───────── Panels / Controls ───────── */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(22,24,29,.75), rgba(17,19,23,.75));
  position: relative;
}
.panel-pad { padding: 22px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 13px; color: var(--text);
  transition: all .2s var(--ease);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); transition: all .2s var(--ease); }
.chip .meta { font: 11.5px var(--mono); color: var(--muted); }
.chip:hover { border-color: rgba(255,255,255,.25); }
.chip[aria-pressed="false"] { color: var(--muted); border-color: var(--line); }
.chip[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 13px;
  transition: all .2s var(--ease);
}
.btn:hover { background: rgba(255,255,255,.08); }
.btn.primary { background: var(--text); color: #0c0d10; border-color: var(--text); font-weight: 500; }
.btn.primary:hover { background: #fff; }
.btn svg { width: 12px; height: 12px; }

.chart-wrap { position: relative; padding: 8px 8px 4px; }
.chart { width: 100%; height: clamp(320px, 46vh, 480px); display: block; touch-action: pan-y; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.chart .grid line { stroke: var(--line); shape-rendering: crispEdges; }
.chart .zero { stroke: rgba(255,255,255,.28); stroke-dasharray: 3 4; }
.chart .series path.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: opacity .25s var(--ease); }
.chart .series path.area { stroke: none; transition: opacity .25s var(--ease); }
.chart .series.dim path { opacity: .15; }
.chart .series .end-label { font-family: var(--sans); font-size: 12px; fill: var(--text); font-weight: 500; }
.chart .series .end-val { fill: var(--text-2); }
.chart .marker { stroke: var(--bg); stroke-width: 2; }
.chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .cursor-line { stroke: var(--accent); stroke-width: 1; }
.chart .cursor-tag rect { fill: var(--accent); }
.chart .cursor-tag text { fill: #fff; font-size: 10.5px; }
.chart .hover-dot { stroke: var(--bg); stroke-width: 2; }
.chart .annot text { fill: var(--text-2); font-family: var(--sans); font-size: 11.5px; }
.chart .annot line { stroke: rgba(255,255,255,.25); }
.chart .bar { transition: opacity .2s var(--ease); }
.chart .bar.hot { opacity: 1; }

.playbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.playbar .readout { font: 12px var(--mono); color: var(--muted); min-width: 120px; text-align: right; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 22px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line-2) var(--p, 0%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 3px solid var(--bg); }

.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.live-cell { padding: 14px 18px; border-right: 1px solid var(--line); }
.live-cell:last-child { border-right: 0; }
.live-cell .k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.live-cell .k i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.live-cell .v { font: 500 22px/1.3 var(--mono); letter-spacing: -0.03em; margin-top: 2px; }
.live-cell.off { opacity: .35; }

/* ───────── Stat cards ───────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(17,19,23,.7);
  transition: border-color .25s var(--ease), transform .25s var(--ease); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-2); }
.card.clickable { cursor: pointer; }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card .tag { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.card .bar-c { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--c); opacity: .9; }
.card .big { font: 500 34px/1.1 var(--mono); letter-spacing: -0.04em; margin: 2px 0 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; }

/* ───────── Story tabs ───────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: 12px 16px; cursor: pointer; color: var(--muted); font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.tabs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 28px 4px 4px; }
.story h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 12px; }
.story .facts { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .k { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.timeline li span { font: 12px var(--mono); color: var(--muted); padding-top: 2px; }

.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lesson { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.lesson .n { font: 12px var(--mono); color: var(--accent); margin-bottom: 18px; display: block; }
.lesson p { color: var(--text-2); font-size: 14px; margin: 0; }

.disclaimer { margin-top: 40px; font-size: 12.5px; color: var(--muted); max-width: 760px; }

[data-level-only="basic"], [data-level-only="pro"] { display: none; }
body[data-level="basic"] [data-level-only="basic"] { display: revert; }
body[data-level="pro"] [data-level-only="pro"] { display: revert; }

/* ───────── Was wäre wenn ───────── */
.calc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 22px; }
.field label, .field .label { display: block; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 9px; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); transition: border-color .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57,135,229,.18); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px; font: 500 20px var(--mono); outline: none; letter-spacing: -0.03em; }
.input-wrap .unit { padding: 0 14px; color: var(--muted); font-family: var(--mono); }
.presets { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.presets button { border: 1px solid var(--line); background: none; border-radius: 7px; padding: 4px 9px; font: 12px var(--mono); color: var(--text-2); cursor: pointer; }
.presets button:hover { border-color: var(--line-2); color: var(--text); }
.year-display { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.year-display .num { font-size: 26px; font-weight: 500; }
.asset-list { display: flex; flex-direction: column; gap: 6px; }
.asset {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; text-align: left;
  transition: all .2s var(--ease);
}
.asset .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.asset .since { font: 11px var(--mono); color: var(--muted); }
.asset[aria-pressed="false"] { opacity: .5; }
.asset[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.asset:hover { border-color: var(--line-2); opacity: 1; }

.hero-result { padding: 26px 26px 6px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.hero-result .label { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-result .value { font: 500 clamp(40px, 5.4vw, 64px)/1.05 var(--mono); letter-spacing: -0.05em; margin: 8px 0 6px; }
.hero-result .sub { color: var(--text-2); font-size: 14px; }
.delta { font-family: var(--mono); }
.delta.up { color: var(--pos); } .delta.down { color: var(--neg); }

table.results { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.results th { text-align: right; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); }
table.results th:first-child, table.results td:first-child { text-align: left; }
table.results td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--mono); }
table.results td:first-child { font-family: var(--sans); }
table.results tr:last-child td { border-bottom: 0; }
table.results tr { transition: background .15s; }
table.results tbody tr:hover { background: rgba(255,255,255,.025); }
.name-cell { display: flex; align-items: center; gap: 10px; }
.name-cell i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.rank { color: var(--muted); font: 11px var(--mono); width: 18px; display: inline-block; }

/* ───────── Inflation ───────── */
.machine { display: grid; grid-template-columns: 1fr 1fr; }
.machine > div { padding: 30px; }
.machine > div + div { border-left: 1px solid var(--line); }
.sentence { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -0.025em; font-weight: 500; }
.sentence .inline-input { display: inline-flex; align-items: baseline; border-bottom: 1px dashed var(--line-2); }
.sentence input { width: 4.2ch; border: 0; background: none; font: inherit; font-family: var(--mono); text-align: right; outline: none; color: var(--text); padding: 0; }
.sentence input:focus { color: var(--accent); }
.sentence .yr { font-family: var(--mono); color: var(--accent); }
.big-out { font: 500 clamp(48px, 6vw, 76px)/1 var(--mono); letter-spacing: -0.05em; margin: 18px 0 10px; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 16px 0 8px; }
.meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--s4), var(--neg)); border-radius: 6px; transition: width .7s var(--ease); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.price { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,19,23,.7); }
.price .icon { font-size: 22px; line-height: 1; margin-bottom: 14px; display: block; filter: grayscale(.2); }
.price .what { font-size: 13px; color: var(--muted); }
.price .p { font: 500 30px/1.15 var(--mono); letter-spacing: -0.04em; margin: 10px 0 4px; }
.price .vs { font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.price .na { color: var(--muted); font-size: 18px; }

/* ───────── Text pages ───────── */
.prose { max-width: 720px; }
.prose h2 { margin-top: 36px; font-size: 18px; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.src-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.src-list li { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.src-list li span:first-child { color: var(--text); }
.placeholder { color: var(--s4); font-family: var(--mono); font-size: 13px; }

.about-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.about-hero .avatar { width: 88px; height: 88px; font-size: 26px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skills span { padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 12px var(--mono); color: var(--text-2); }

/* ───────── Tooltip ───────── */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; min-width: 180px;
  background: rgba(20,22,27,.96); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 12.5px; backdrop-filter: blur(8px);
}
.tooltip.show { opacity: 1; transform: none; }
.tooltip .t-head { font: 11px var(--mono); color: var(--muted); margin-bottom: 7px; }
.tooltip .t-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
.tooltip .t-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tooltip .t-row b { font: 500 12.5px var(--mono); }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .calc-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story .facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .machine { grid-template-columns: 1fr; }
  .machine > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    padding: 14px 18px; background: rgba(12,13,16,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .menu-btn { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
  body.nav-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); background: #0c0d10; }
  .sidebar > .brand { display: none; }
  body.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  main { margin-left: 0; padding-top: 32px; }
  .hero-result { grid-template-columns: 1fr; }
  .src-list li { grid-template-columns: 1fr; gap: 4px; }
  .about-hero { grid-template-columns: 1fr; }
  table.results th:nth-child(5), table.results td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
