/* Enterprise Knowledge Guard project page in the RepoCity corporate design.
 * Colours and fonts come from tokens.css (RepoCity site kit); this file only composes them. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("fonts/syncopate-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --chart-gold: #ba8a36;
  --chart-blue: #5683cc;
  --gold-solid: linear-gradient(135deg, #fbe3a4 0%, #ecc46a 55%, #c99a45 100%);
  --dock-h: 64px;
  --dock-gap: 12px;
  --dock-space: calc(var(--dock-h) + var(--dock-gap) * 2 + env(safe-area-inset-bottom, 0px));
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-space);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 52% at 50% -8%, #163a7a 0%, #0b1d3e 46%, transparent 78%),
    radial-gradient(ellipse 50% 40% at 50% 112%, rgba(19, 41, 74, 0.7), transparent 70%),
    var(--night);
}
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
a { color: var(--gold-light); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-strong); }
img, svg { display: block; }
code, pre { font-family: var(--mono); }
code { font-size: 0.88em; color: var(--ink-2); }
b, strong { color: var(--ink); font-weight: 650; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
html { scrollbar-color: rgba(201, 169, 110, 0.4) transparent; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--gold-solid); color: var(--night); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

html[lang="de"] .en, html[lang="en"] .de { display: none !important; }

/* ---------- Tabs: panels ---------- */
.js .panel { display: none; }
.js[data-tab="projekt"] #projekt,
.js[data-tab="organigramm"] #organigramm,
.js[data-tab="benchmarks"] #benchmarks,
.js[data-tab="praesentation"] #praesentation { display: block; animation: panel-in 0.32s var(--ease-out) both; }
.panel:focus { outline: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.panel__intro { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 8px; }
.panel__title { font-size: clamp(1.75rem, 4.2vw, 2.9rem); max-width: 22ch; margin-bottom: 0.7rem; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 34px; height: 34px; filter: drop-shadow(1px 2px 1.5px rgba(0, 0, 0, 0.6)); }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.24em; color: var(--gold-light); }
.brand__tag { font-family: var(--font-display); font-weight: 700; font-size: 0.5rem; letter-spacing: 0.3em; color: var(--muted); margin-top: 5px; }
.topbar__project { color: #fff; font-weight: 600; font-size: 0.92rem; padding-left: 14px; border-left: 1px solid var(--line-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lang { margin-left: auto; display: flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-gold); flex: none; }
.lang button {
  font: 700 0.74rem/1 var(--font); letter-spacing: 0.06em; color: #fff;
  background: none; border: 0; border-radius: 999px; padding: 8px 11px; min-width: 40px; min-height: 32px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold-solid); color: var(--night); }
@media (max-width: 560px) {
  .brand__words { display: none; }
  .topbar__project { font-size: 0.86rem; }
}

/* ---------- Hero (tab 1) ---------- */
.hero {
  position: relative;
  color: var(--ink);
  background-image:
    linear-gradient(98deg, rgba(5, 15, 34, 0.97) 0%, rgba(5, 15, 34, 0.86) 38%, rgba(11, 29, 62, 0.5) 70%, rgba(11, 29, 62, 0.3) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 32%),
    image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 50%;
  margin: 0 auto;
  max-width: 1400px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(5, 15, 34, 0.78) 0%, rgba(5, 15, 34, 0.9) 60%, var(--night) 100%),
      image-set(url("images/hero-1200.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
    border-radius: 0;
  }
}
.hero .wrap { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(36px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 1.2rem; }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 58ch; color: var(--ink-2); margin-bottom: 1.8rem; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, background-color 0.2s;
}
.button--gold { background: var(--gold-solid); color: var(--night); box-shadow: 0 10px 26px rgba(201, 154, 69, 0.28), 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.button--gold:hover { color: var(--night); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(201, 154, 69, 0.36), 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.button--ghost { color: #fff; border: 1px solid var(--line-gold); background: rgba(5, 15, 34, 0.4); }
.button--ghost:hover { color: var(--gold-strong); border-color: var(--gold); }
.button:active { transform: translateY(1px); }

.facts { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid var(--line-gold); }
.facts a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 4px 0; text-decoration: none; color: var(--text); }
.facts li + li a { padding-left: 18px; border-left: 1px solid var(--line); }
.facts b { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--gold-light); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.facts span { font-size: 0.86rem; color: var(--muted); line-height: 1.35; }
.facts a:hover b { color: var(--gold-strong); }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts a, .facts li + li a { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts b { flex: none; }
}

/* ---------- Jump links (tab 1) ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; padding-bottom: 16px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-gold); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; background: rgba(11, 26, 51, 0.5); }
.jump a:hover { border-color: var(--gold); color: var(--gold-strong); }

/* ---------- Content blocks (tab 1) ---------- */
.block { padding: clamp(44px, 7vw, 80px) 0; }
.block + .block, .de + .block, .block + .de, .en + .block, .block + .en { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); max-width: 26ch; margin-bottom: 1rem; }
.subhead { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 2.4rem 0 0.8rem; }
.lead { font-size: 1.04rem; color: var(--text); max-width: 64ch; margin: 0 0 2rem; }
.caption { font-size: 0.88rem; color: var(--muted); max-width: 70ch; margin: 0 0 2rem; }
.caption--after { margin-top: 1rem; }
.note { font-size: 0.9rem; color: var(--muted); max-width: 72ch; margin: 0 0 1rem; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.card__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 999px; flex: none; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--navy-2); border: 1px solid var(--line-gold); }
.avatar--gold { background: var(--gold-solid); color: var(--night); border: 0; }
.person { font-weight: 650; color: var(--ink); }
.role { font-size: 0.82rem; color: var(--muted); }
.answer { margin: 0; padding: 20px 22px; flex: 1; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.62; color: var(--ink-2); white-space: pre-line; }
.verdict { display: flex; gap: 10px; margin: 0 22px 14px; padding: 12px 14px; border-radius: 12px; font-size: 0.9rem; }
.verdict svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.verdict--blocked { background: var(--bad-soft); color: #f6c6bd; }
.verdict--blocked svg { color: var(--bad); }
.verdict--clear { background: var(--good-soft); color: #c3ecd3; }
.verdict--clear svg { color: var(--good); }
.verdict b { color: inherit; }
.asked { font-size: 0.78rem; color: var(--muted); padding: 0 22px 18px; }

pre {
  background: rgba(2, 6, 15, 0.62); color: #dbe3ef; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; max-width: 100%; font-size: 0.84rem; line-height: 1.65; margin: 0 0 1rem;
}
pre .kw { color: var(--gold-light); }
pre .cm { color: var(--muted); }
pre .hl { color: var(--gold-strong); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201, 169, 110, 0.6); text-underline-offset: 4px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 2rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tile p { font-size: 0.92rem; }
.stat { display: block; font-size: 2.3rem; font-weight: 750; line-height: 1; color: var(--gold-light); margin-bottom: 0.45rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Tool table: rows become stacked label/value pairs on narrow screens. */
table { border-collapse: collapse; width: 100%; }
.tools { background: var(--surface-flat); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.tools th { text-align: left; font-size: 0.78rem; font-weight: 650; color: var(--muted); padding: 12px 16px; background: rgba(2, 6, 15, 0.35); }
.tools td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tools td:nth-child(2) { white-space: nowrap; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .tools thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tools, .tools tbody, .tools tr, .tools td { display: block; }
  .tools tr { padding: 12px 16px; border-top: 1px solid var(--line); }
  .tools tr:first-child { border-top: 0; }
  .tools td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px; }
  .tools td::before { content: attr(data-label); font-size: 0.78rem; color: var(--muted); padding-top: 2px; }
  .tools td:nth-child(2) { white-space: normal; }
  .tools code { overflow-wrap: anywhere; }
}

/* ---------- Recorded live run (tab 1) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.matrix { font-size: 0.82rem; background: var(--surface-flat); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; table-layout: fixed; }
.matrix th, .matrix td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.matrix th { font-size: 0.74rem; font-weight: 650; color: var(--muted); background: rgba(2, 6, 15, 0.35); }
.matrix th:first-child, .matrix td.who { width: 9.5rem; }
.matrix td.who { font-weight: 650; color: var(--ink); }
.matrix td.who span { display: block; font-weight: 400; color: var(--muted); font-size: 0.76rem; }
.cell b { display: block; font-weight: 600; color: var(--ink-2); }
.cell em { font-style: normal; font-size: 0.74rem; color: var(--bad); }
.cell.open b { color: var(--gold-light); }
@media (max-width: 900px) {
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; width: auto; }
  .matrix { background: none; border: 0; }
  .matrix tr { background: var(--surface-flat); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .matrix td { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; padding: 9px 14px; }
  .matrix td:last-child { border-bottom: 0; }
  .matrix td::before { content: attr(data-label); color: var(--muted); font-size: 0.78rem; }
  .matrix td.who { display: block; width: auto; background: rgba(2, 6, 15, 0.35); font-size: 0.95rem; }
  .matrix td.who::before { content: none; }
}

.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: var(--gold-light); border: 1px solid var(--line-gold); }
.flow code { overflow-wrap: anywhere; }
.status { font: 700 0.74rem var(--mono); padding: 2px 7px; border-radius: 6px; margin-left: 2px; white-space: nowrap; }
.status.ok { background: var(--good-soft); color: var(--good); }
.status.no { background: var(--bad-soft); color: var(--bad); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > div { min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.plain { font-size: 0.86rem; }
.plain td, .plain th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plain th { font-size: 0.76rem; font-weight: 650; color: var(--muted); }
.plain td.num, .plain th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plain code { overflow-wrap: anywhere; }

/* ---------- Guide (tab 1) ---------- */
.guide { background: linear-gradient(180deg, rgba(19, 41, 74, 0.35), transparent 70%); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: var(--gold-light); border: 1.5px solid var(--gold); }
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { margin-top: 0.35rem; font-size: 0.95rem; }
.step pre { margin-top: 0.7rem; }
.result { margin-top: 0.8rem !important; padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 0.88rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer__links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--gold-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 640px) { .footer__links { margin-left: 0; } }

/* ---------- Dock: tab bar at the bottom ---------- */
.dock {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 2 * var(--dock-gap)));
}
.dock__tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; height: var(--dock-h); padding: 6px;
  border-radius: 22px; border: 1px solid var(--line-gold);
  background: rgba(6, 16, 34, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 40px rgba(0, 3, 10, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.dock__tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 16px; color: #fff; text-decoration: none; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.01em;
  min-width: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: background-color 0.2s, color 0.2s;
}
.dock__tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__tab svg { width: 22px; height: 22px; }
.dock__tab:hover { color: var(--gold-strong); }
.dock__tab[aria-selected="true"] { background: var(--gold-solid); color: var(--night); text-shadow: none; animation: gold-pulse 6s ease-in-out infinite; }
.dock__tab:focus-visible { outline-offset: -2px; }
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 196, 106, 0.0), 0 4px 14px rgba(201, 154, 69, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(236, 196, 106, 0.16), 0 4px 18px rgba(201, 154, 69, 0.45); }
}
@media (min-width: 720px) { .dock__tab { font-size: 0.78rem; } }

/* ---------- Tab 2: Organigramm ---------- */
.org-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; font-size: 0.86rem; color: var(--muted); }
.org-legend li { display: flex; align-items: center; gap: 8px; }
.lkey { display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--gold); }
.lkey--side { border-top: 1px dashed var(--spot); }
.lkey--auto { border-top: 2px dotted var(--good); }

.org { position: relative; padding-top: 28px; padding-bottom: 24px; }
.org-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 36px; align-items: center; position: relative; }
.org-row + .org-row { margin-top: 44px; }
.station { grid-column: 2; grid-row: 1; position: relative; z-index: 1; }
.branch--left { grid-column: 1; grid-row: 1; }
.branch--right { grid-column: 3; grid-row: 1; }

.station {
  background: var(--surface); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.station__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.station__head svg { width: 28px; height: 28px; color: var(--gold-light); grid-row: span 2; }
.station__head h3 { font-size: 1.1rem; }
.station__head code { font-size: 0.74rem; color: var(--muted); }
.station p { font-size: 0.92rem; }
.station.is-live { border-color: var(--gold); box-shadow: var(--shadow), 0 0 0 1px rgba(236, 196, 106, 0.35), 0 0 34px rgba(201, 154, 69, 0.2); }
.station--core { border-width: 1.5px; }

.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.skills li { font-size: 0.76rem; font-weight: 600; color: var(--gold-light); padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); border: 1px solid rgba(201, 169, 110, 0.22); }

.branch { position: relative; background: rgba(8, 18, 38, 0.7); border: 1px dashed rgba(94, 128, 176, 0.5); border-radius: 14px; padding: 14px 16px; font-size: 0.88rem; }
.branch h4 { font-size: 0.95rem; margin-bottom: 6px; color: #fff; }
.branch--auto { border: 1px dotted rgba(111, 207, 151, 0.6); }
.branch--auto h4::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 999px; background: var(--good); vertical-align: middle; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.branch .skills { margin-top: 10px; }

/* Spine: a flowing gold line between stations; branches connect sideways. */
.org-row + .org-row .station::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 46px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.15), rgba(201, 169, 110, 0.15)), repeating-linear-gradient(180deg, var(--gold-light) 0 8px, transparent 8px 22px);
  background-size: 2px 100%, 2px 44px;
  animation: flow-down 1.4s linear infinite;
}
@keyframes flow-down { to { background-position: 0 0, 0 44px; } }
.branch::after {
  content: ""; position: absolute; top: 50%; width: 36px; height: 0; border-top: 1px dashed rgba(94, 128, 176, 0.7);
}
.branch--left::after { left: 100%; }
.branch--right::after { right: 100%; }
.branch--auto::after { border-top: 2px dotted rgba(111, 207, 151, 0.7); }

.roles__list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.roles__list li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 1.2rem; align-items: center; gap: 8px; font-size: 0.82rem; }
.roles__bar { height: 8px; border-radius: 0 4px 4px 0; background: var(--chart-gold); transform-origin: left; }
.roles__bar[data-tools="3"] { width: calc(3 / 7 * 100%); }
.roles__bar[data-tools="5"] { width: calc(5 / 7 * 100%); }
.roles__bar[data-tools="6"] { width: calc(6 / 7 * 100%); }
.roles__bar[data-tools="7"] { width: 100%; }
.roles__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.gate__roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.gate__roles button { font: 600 0.8rem var(--font); color: #fff; background: rgba(2, 6, 15, 0.4); border: 1px solid var(--line-gold); border-radius: 999px; padding: 7px 12px; min-height: 36px; cursor: pointer; }
.gate__roles button[aria-pressed="true"] { background: var(--gold-solid); color: var(--night); border-color: transparent; }
.gate__hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.gate__hits li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 0.8rem; padding: 5px 8px; border-radius: 8px; background: rgba(201, 169, 110, 0.1); color: var(--ink-2); animation: hit-in 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.gate__hits li svg { width: 16px; height: 16px; }
.gate__hits li.is-blocked { background: var(--bad-soft); color: #f6c6bd; animation-name: hit-stop; }
.gate__hits li.is-blocked svg { color: var(--bad); }
.gate__hits li:not(.is-blocked) svg { color: var(--gold-light); }
@keyframes hit-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes hit-stop { 0% { opacity: 0; transform: translateY(-10px); } 60% { opacity: 1; transform: translateY(2px); } 100% { transform: none; } }
.gate__note { margin-top: 10px; font-size: 0.84rem; color: var(--ink-2); }
.source { margin-top: 8px; font-size: 0.74rem; color: var(--muted); }

.org-ops { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.org-ops h3 { font-size: 1.05rem; margin-bottom: 14px; }
.org-ops ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.org-ops li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 18, 38, 0.55); font-size: 0.88rem; }
.org-ops b { color: #fff; }

@media (max-width: 980px) {
  .org-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 0; }
  .station, .branch--left, .branch--right { grid-column: 1; grid-row: auto; }
  .branch { margin: 12px 0 0 28px; }
  .branch::after { left: -20px !important; right: auto !important; top: -12px; width: 0; height: calc(50% + 12px); border-top: 0; border-left: 1px dashed rgba(94, 128, 176, 0.7); }
  .branch::before { content: ""; position: absolute; left: -20px; top: 50%; width: 20px; border-top: 1px dashed rgba(94, 128, 176, 0.7); }
  .branch--auto::after { border-left: 2px dotted rgba(111, 207, 151, 0.7); }
  .branch--auto::before { border-top: 2px dotted rgba(111, 207, 151, 0.7); }
  .org-row + .org-row { margin-top: 36px; }
  .org-row + .org-row .station::before { left: 28px; height: 38px; }
  .org-ops ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tab 3: Benchmarks ---------- */
.bench { display: grid; gap: 22px; padding-top: 24px; padding-bottom: 24px; }
.bench__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 900px) { .bench__grid { grid-template-columns: minmax(0, 1fr); } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.chart h3 { font-size: clamp(1.08rem, 1.8vw, 1.3rem); margin-bottom: 6px; max-width: 34ch; }
.chart__sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; max-width: 64ch; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; font-size: 0.8rem; color: var(--text); }
.legend li { display: flex; align-items: center; gap: 7px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 14px; align-items: center; position: relative; border-radius: 8px; outline-offset: 4px; }
.bar__label { font-size: 0.86rem; color: var(--ink-2); line-height: 1.3; }
.bar__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar__fill { height: 20px; border-radius: 0 4px 4px 0; min-width: 3px; flex: none; width: calc(var(--w, 0) * (100% - 8.5rem) / 100); transform-origin: left; animation: grow 0.9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.bar__value { font-size: 0.84rem; font-weight: 650; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.25; min-width: 0; }
.bar__value small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; white-space: normal; }
@keyframes grow { from { transform: scaleX(0); } }
.bar:hover .bar__fill, .bar:focus-visible .bar__fill { filter: brightness(1.18); }
.bar__group { font-size: 0.8rem; font-weight: 650; color: var(--muted); margin: 10px 0 -4px; }
@media (max-width: 560px) {
  .bar { grid-template-columns: minmax(0, 1fr); }
}
.axis { display: flex; justify-content: space-between; margin: 8px 0 0 calc(11rem + 14px); font-size: 0.72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .axis { margin-left: 0; } }
.chart__source { margin-top: 16px; font-size: 0.78rem; color: var(--muted); }
.chart details { margin-top: 12px; font-size: 0.84rem; }
.chart summary { cursor: pointer; color: var(--gold-light); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.chart details table { margin-top: 8px; }
.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 260px; padding: 10px 12px; border-radius: 10px;
  background: #0f2242; border: 1px solid var(--line-gold); color: var(--ink); font-size: 0.8rem; line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 3, 10, 0.55); opacity: 0; transition: opacity 0.12s;
}
.tip.is-on { opacity: 1; }
.rejects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rejects li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(2, 6, 15, 0.35); font-size: 0.9rem; }
.bench__error { padding: 18px; border-radius: 14px; background: var(--bad-soft); color: #f6c6bd; }
.conditions { font-size: 0.86rem; color: var(--muted); max-width: 80ch; }

/* ---------- Tab 4: Präsentation ---------- */
.film { padding-top: 12px; padding-bottom: 24px; }
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-gold); box-shadow: var(--shadow);
  background:
    radial-gradient(ellipse 60% 70% at 50% 18%, rgba(22, 58, 122, 0.85), rgba(11, 29, 62, 0.6) 45%, transparent 75%),
    var(--paper);
}
@media (max-width: 720px) { .stage { aspect-ratio: 4 / 5; } }
.scene { position: absolute; inset: 0 0 64px; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-out); }
.caption-line {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px 20px; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 650; color: var(--ink);
  background: linear-gradient(0deg, rgba(2, 6, 15, 0.85), rgba(2, 6, 15, 0));
}
.stage.is-paused .scene * { animation-play-state: paused !important; }

/* Scene 1 and 2: two people, one question. */
.actor { position: absolute; top: 18%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.actor--tom { left: 12%; }
.actor--sarah { right: 12%; }
.actor__face { width: clamp(56px, 9vw, 92px); height: clamp(56px, 9vw, 92px); border-radius: 999px; display: grid; place-items: center; font-weight: 750; font-size: clamp(1rem, 2vw, 1.5rem); color: #fff; background: var(--navy-2); border: 1.5px solid var(--line-gold); }
.actor--sarah .actor__face { background: var(--gold-solid); color: var(--night); border: 0; }
.actor__name { font-size: clamp(0.78rem, 1.4vw, 0.95rem); color: var(--ink-2); }
.bubble {
  position: absolute; top: 52%; max-width: 38%; padding: 12px 16px; border-radius: 16px; font-size: clamp(0.85rem, 1.8vw, 1.15rem); font-weight: 600; color: var(--ink);
  background: rgba(19, 41, 74, 0.9); border: 1px solid var(--line-gold); display: flex; gap: 8px; align-items: center;
}
.bubble svg { width: 20px; height: 20px; flex: none; color: var(--bad); }
.bubble--tom { left: 8%; }
.bubble--sarah { right: 8%; }
.bubble--gold { background: var(--gold-solid); color: var(--night); border: 0; }
.bubble--locked { background: var(--bad-soft); color: #f6c6bd; border-color: rgba(239, 138, 122, 0.4); }
.scene.is-active .actor { animation: rise 0.8s var(--ease-out) both; }
.scene.is-active .actor--sarah { animation-delay: 0.15s; }
.scene--ask.is-active .bubble--tom { animation: rise 0.7s var(--ease-out) 0.9s both; }
.scene--ask.is-active .bubble--sarah { animation: rise 0.7s var(--ease-out) 1.4s both; }
.scene--answer.is-active .bubble--tom { animation: rise 0.7s var(--ease-out) 0.6s both; }
.scene--answer.is-active .bubble--sarah { animation: rise 0.7s var(--ease-out) 1.6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 720px) {
  .actor { top: 9%; }
  .actor--tom { left: 10%; } .actor--sarah { right: 10%; }
  .bubble { max-width: 70%; }
  .bubble--tom { top: 42%; left: 6%; }
  .bubble--sarah { top: 62%; right: 6%; }
}

/* Scene 3: rows enter the database, the locked ones stay inside. */
.db { position: relative; width: min(70%, 520px); height: 58%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4%; }
.db__rows, .db__out { display: grid; gap: 7px; }
.row, .db__out span { display: block; height: 12px; border-radius: 4px; background: var(--gold-light); opacity: 0.85; }
.row--lock { background: var(--bad); }
.db__body svg { width: clamp(80px, 14vw, 150px); height: auto; color: var(--gold-light); }
.scene--db.is-active .row { animation: into-db 1.6s var(--ease-out) both; animation-delay: calc(0.3s + var(--n, 0) * 0.12s); }
.scene--db.is-active .row--lock { animation-name: into-db-stop; }
.scene--db.is-active .db__out span { animation: out-db 0.9s var(--ease-out) both; animation-delay: calc(2s + var(--n, 0) * 0.12s); }
@keyframes into-db { 0% { opacity: 0; transform: translateX(-40%); } 50% { opacity: 1; transform: none; } 100% { opacity: 0.25; transform: translateX(60%); } }
@keyframes into-db-stop { 0% { opacity: 0; transform: translateX(-40%); } 50% { opacity: 1; transform: none; } 100% { opacity: 1; transform: translateX(20%); } }
@keyframes out-db { from { opacity: 0; transform: translateX(-60%); } }
.chips { list-style: none; position: absolute; left: 0; right: 0; bottom: 8%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0 16px; }
.chips li { font-size: clamp(0.74rem, 1.4vw, 0.9rem); font-weight: 650; color: var(--gold-light); padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--line-gold); }
.scene.is-active .chips li { animation: rise 0.6s var(--ease-out) both; animation-delay: calc(2.6s + var(--n, 0) * 0.14s); }

/* Scene 4: the query types itself, the rights line lights up. */
.sql { font-size: clamp(0.7rem, 2vw, 1.3rem); line-height: 1.9; padding: 22px 26px; max-width: 90%; background: rgba(2, 6, 15, 0.7); white-space: pre; }
.sql .l { display: inline-block; }
.scene--sql.is-active .l { animation: type 0.9s steps(28, end) both; }
.scene--sql.is-active .l2 { animation-delay: 0.9s; }
.scene--sql.is-active .l3 { animation-delay: 1.8s; }
.scene--sql.is-active .l4 { animation-delay: 2.7s; }
.scene--sql.is-active .hl { animation: type 0.9s steps(28, end) 1.8s both, glow 1.6s ease-in-out 3.6s 2 alternate; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes glow { to { text-shadow: 0 0 18px rgba(236, 196, 106, 0.8); } }

/* Scene 5: two layers; the upper one fails, the lower one still holds. */
.scene--layers { place-items: center; }
.layer { position: absolute; left: 14%; right: 14%; height: 15%; display: grid; place-items: center; border-radius: 14px; font-weight: 650; font-size: clamp(0.8rem, 1.8vw, 1.1rem); }
.layer--app { top: 26%; border: 1.5px dashed var(--line-gold); color: var(--ink-2); background: rgba(19, 41, 74, 0.6); }
.layer--rls { top: 54%; background: var(--gold-solid); color: var(--night); }
.probe { position: absolute; left: 50%; top: calc(54% - 22px); width: 16px; height: 16px; margin-left: -8px; border-radius: 999px; background: var(--bad); box-shadow: 0 0 18px rgba(239, 138, 122, 0.7); }
.scene--layers.is-active .layer--app { animation: fail 1.2s ease-in 1.2s both; }
.scene--layers.is-active .probe { animation: drop 2.4s var(--ease-out) 0.6s both; }
@keyframes fail { 0%, 30% { opacity: 1; } 40% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.12; transform: translateY(8px) scale(0.98); } }
@keyframes drop { 0% { top: 4%; opacity: 0; } 10% { opacity: 1; } 100% { top: calc(54% - 22px); } }

/* Scene 6: the planted instruction reaches a model with nothing to give. */
.note-card { position: absolute; left: 8%; top: 22%; width: 36%; padding: 14px 16px; border-radius: 10px; background: #efe6d2; color: #2a2116; font-family: var(--font-serif); font-size: clamp(0.78rem, 1.6vw, 1.05rem); transform: rotate(-3deg); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.model { position: absolute; right: 10%; top: 26%; width: 34%; padding: 22px 16px; border-radius: 18px; border: 1.5px solid var(--line-gold); background: rgba(19, 41, 74, 0.75); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 650; color: var(--ink); font-size: clamp(0.8rem, 1.6vw, 1.05rem); }
.model svg { width: 40px; height: 40px; color: var(--gold-light); }
.scene--attack.is-active .note-card { animation: drift 3.2s var(--ease-out) 0.4s both; }
.scene--attack.is-active .model { animation: rise 0.7s var(--ease-out) both; }
@keyframes drift { 0% { opacity: 0; transform: translateX(-20px) rotate(-3deg); } 20% { opacity: 1; } 70% { opacity: 1; transform: translateX(60%) rotate(2deg) scale(0.92); } 100% { opacity: 0; transform: translateX(80%) rotate(4deg) scale(0.6); filter: blur(4px); } }
@media (max-width: 720px) {
  .note-card { left: 8%; top: 10%; width: 70%; }
  .model { right: auto; left: 15%; top: 48%; width: 70%; }
  .scene--attack.is-active .note-card { animation-name: drift-down; }
  @keyframes drift-down { 0% { opacity: 0; transform: translateY(-16px) rotate(-3deg); } 20% { opacity: 1; } 70% { opacity: 1; transform: translateY(70%) scale(0.9); } 100% { opacity: 0; transform: translateY(95%) scale(0.6); filter: blur(4px); } }
}

/* Scene 7: tools per role. */
.toolset { list-style: none; margin: 0; padding: 0 6%; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.toolset li { font: 600 clamp(0.74rem, 1.6vw, 0.98rem) var(--mono); padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(152, 164, 184, 0.35); color: var(--muted); }
.toolset li.on { border-color: transparent; background: var(--gold-solid); color: var(--night); }
.toolset li.key { border-color: rgba(239, 138, 122, 0.5); color: var(--bad); text-decoration: line-through; }
.toolset__who { position: absolute; top: 14%; left: 0; right: 0; text-align: center; font-weight: 650; color: var(--ink-2); font-size: clamp(0.9rem, 1.8vw, 1.1rem); }
.scene--tools.is-active .toolset li { animation: rise 0.5s var(--ease-out) both; animation-delay: calc(0.2s + var(--n, 0) * 0.12s); }
.scene--tools.is-active .toolset li.on { animation: rise 0.5s var(--ease-out) calc(0.2s + var(--n, 0) * 0.12s) both, lit 0.6s ease-out 1.6s both; }
.scene--tools.is-active .toolset li.key { animation: rise 0.5s var(--ease-out) 0.9s both, shake 0.5s ease-in-out 2.6s both; }
@keyframes lit { from { background: transparent; color: var(--muted); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Scene 8: time-limited access. */
.grant { list-style: none; margin: 0; padding: 0 4%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(10px, 3vw, 28px); }
.grant li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 96px; padding: 16px 14px; border-radius: 16px; border: 1px solid var(--line-gold); background: rgba(19, 41, 74, 0.6); font-weight: 650; color: var(--ink); font-size: clamp(0.8rem, 1.6vw, 1rem); }
.grant svg { width: 44px; height: 44px; }
.grant circle { fill: none; stroke: rgba(201, 169, 110, 0.25); stroke-width: 4; }
.grant .ring { stroke: var(--gold-light); stroke-dasharray: 113.1; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 22px 22px; }
.grant__closed svg { color: var(--bad); }
.scene--grant.is-active .grant li { animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 0.7s); }
.scene--grant.is-active .ring { animation: deplete 2.6s linear 2.2s both; }
@keyframes deplete { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 113.1; } }
.scene--grant.is-active .grant li.grant__closed { animation-delay: 4.8s; }

/* Scene 9: skills montage. */
.scene--end { align-content: center; gap: 22px; padding: 0 6%; }
.end__mark { width: clamp(56px, 8vw, 84px); height: auto; justify-self: center; }
.chips--end { position: static; max-width: 720px; }
.scene--end.is-active .end__mark { animation: rise 0.8s var(--ease-out) both; }
.scene--end.is-active .chips--end li { animation-delay: calc(0.4s + var(--n, 0) * 0.1s); }
.end__links { justify-content: center; }
.scene--end.is-active .end__links { animation: rise 0.7s var(--ease-out) 1.6s both; }
@media (max-width: 720px) { .end__links .button { min-height: 44px; font-size: 0.9rem; } }

.film__controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 16px; }
.film__play { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: 700 0.95rem var(--font); background: var(--gold-solid); color: var(--night); }
.film__play svg { width: 18px; height: 18px; }
.film__play .icon-pause, .film__play[aria-pressed="true"] .icon-play { display: none; }
.film__play[aria-pressed="true"] .icon-pause { display: block; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chapters button {
  position: relative; width: 100%; min-height: 44px; text-align: left; padding: 8px 12px 10px; border-radius: 12px; cursor: pointer; overflow: hidden;
  font: 600 0.8rem/1.3 var(--font); color: #fff; background: rgba(8, 18, 38, 0.7); border: 1px solid var(--line);
}
.chapters button[aria-current="step"] { border-color: var(--gold); color: var(--gold-strong); }
.chapters .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold-solid); transform: scaleX(0); transform-origin: left; }
@media (max-width: 720px) {
  .film__controls { grid-template-columns: minmax(0, 1fr); }
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapters button { font-size: 0.74rem; padding: 6px 8px 8px; }
}

/* ---------- Reduced motion: final states, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .scene--layers .layer--app { opacity: 0.35; }
  .scene--attack .note-card { opacity: 0.5; }
}
.bar__fill--blue, .swatch--blue { background: var(--chart-blue); }
.bar__fill--gold, .swatch--gold { background: var(--chart-gold); }
@media (min-width: 721px) {
  .stage { aspect-ratio: auto; height: clamp(360px, calc(100svh - 330px), 620px); }
  #praesentation .panel__intro { padding-top: 24px; }
  #praesentation .panel__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
}
@media (max-width: 720px) {
  .sql { padding: 14px 14px; font-size: 0.7rem; max-width: 94%; }
  .scene--end { gap: 12px; }
  .end__mark { width: 44px; }
  .chips--end li { font-size: 0.72rem; padding: 4px 10px; }
  .end__links { flex-wrap: nowrap; gap: 8px; }
  .end__links .button { min-height: 40px; padding: 0 12px; font-size: 0.78rem; white-space: nowrap; }
}
@media (max-width: 560px) {
  .jump { gap: 6px; }
  .jump a { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
}
@media (max-height: 820px) and (min-width: 641px) {
  .hero .wrap { padding-top: 36px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 0.9rem; }
  .hero__text { margin-bottom: 1.4rem; }
  .facts { margin-top: 1.6rem; }
}
