/* =====================================================================
   PESA · UI nach Russmediatec-CI
   Basis Schwarz/Panel, Akzent Royalblau, Figtree + Mono-Kicker.
   Motion-Regeln (CI): Easing .2/.7/.2/1 · Licht nur in #3a64ff mit Weiß im Kern ·
   Dreiecke statt Punkte · keine Spinner/Maus-Glow/3D-Tilt · reduced-motion stoppt Loops.
   ===================================================================== */

@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/static/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/static/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000; --bg2: #06080c; --panel: #0d0f15; --panel2: #11141c;
  --accent: #0036fe; --accent-b: #3a64ff;
  --txt: #f3f4f6; --txt2: #c8ccd3; --mut: #767c87;
  --line: rgba(255, 255, 255, .09); --line-soft: rgba(255, 255, 255, .055);
  --good: #22c55e; --warn: #f59e0b; --bad: #ef4444; --info: #767c87;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
  interpolate-size: allow-keywords;
  color-scheme: dark;
  scrollbar-color: #2a2e36 #000;
}

/* Ampel als Variable: jedes Element mit g-* bekommt --gc */
.g-good { --gc: var(--good); } .g-warn { --gc: var(--warn); } .g-bad { --gc: var(--bad); }
.g-info { --gc: var(--info); } .g-na { --gc: #4b5058; } .g-run { --gc: var(--accent-b); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden schlägt auch display:flex/grid */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }  /* clip: kein Querscrollen durch Glow */
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(58, 100, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { overflow-wrap: anywhere; }
.mono { font-family: var(--mono); overflow-wrap: anywhere; }
.muted { color: var(--mut); }
.accent { color: var(--accent-b); }
strong { font-weight: 600; }

/* technisches Raster im Hintergrund (Linien, kein Farbverlauf als Fläche) */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%);
}
/* Glow: eigene, bildschirmbreite Ebene. Sie schneidet nur am echten Bildschirmrand ab (unsichtbar)
   und läuft oben/unten weich aus – kein harter Rand am Inhaltsbereich, kein Querscrollen auf iOS. */
.glow-wrap {
  position: absolute; z-index: -1; pointer-events: none; overflow: hidden;
  top: -120px; bottom: -160px; left: 50%; width: 100vw; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
}
.hero-glow {
  position: absolute; left: 50%; top: 46%; width: 780px; height: 540px; max-width: 160vw;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(0, 54, 254, .5), rgba(0, 54, 254, .13) 42%, transparent 64%);
  filter: blur(52px); animation: glowIn 2.4s var(--ease) both;
}
.hero-glow-sm { width: 640px; height: 360px; left: calc(50% - 22vw); top: 42%; opacity: .55; }

/* ---------- Marke ---------- */
.pesa-wordmark { display: block; height: 1em; width: auto; overflow: visible; color: #fff; }
.pesa-wordmark g { stroke-width: 6; }
.pesa-icon { display: block; overflow: visible; }
.pesa-icon .pi-bg { fill: var(--panel); stroke: rgba(255, 255, 255, .12); stroke-width: 8; }
.pesa-icon .pi-chev { stroke: var(--accent-b); stroke-width: 24; }
.rmt-mono { display: block; height: auto; color: var(--accent); }

/* Linien bauen sich auf (Signet-Glyph-Prinzip der CI) */
.draw path[pathLength], .draw .pi-chev {
  stroke-dasharray: 1 2; stroke-dashoffset: 1.01;
  animation: draw 1.3s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * .16s + .15s);
}
.draw .pi-chev { animation-delay: .1s; animation-duration: 1.1s; }

/* ---------- Kicker + Signet-Glyph ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-b);
}
.glyph {
  display: block; flex: none; width: 20px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2018'%20fill%3D'none'%20stroke%3D'%233a64ff'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'M2.5%202h19L12%2015.8z'%20opacity%3D'.18'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M2.5%202H21.5'%20pathLength%3D'1'%20stroke-dasharray%3D'1%201'%20stroke-dashoffset%3D'1'%3E%3Canimate%20attributeName%3D'stroke-dashoffset'%20values%3D'1%3B0%3B0%3B-1%3B-1'%20keyTimes%3D'0%3B0.1579%3B0.6842%3B0.8421%3B1'%20keySplines%3D'.5%200%20.2%201%3B0%200%201%201%3B.5%200%20.2%201%3B0%200%201%201'%20calcMode%3D'spline'%20dur%3D'3.8s'%20repeatCount%3D'indefinite'%2F%3E%3C%2Fpath%3E%3Cpath%20d%3D'M21.5%202L12%2015.8'%20pathLength%3D'1'%20stroke-dasharray%3D'1%201'%20stroke-dashoffset%3D'1'%3E%3Canimate%20attributeName%3D'stroke-dashoffset'%20values%3D'1%3B0%3B0%3B-1%3B-1'%20keyTimes%3D'0%3B0.1579%3B0.6842%3B0.8421%3B1'%20keySplines%3D'.5%200%20.2%201%3B0%200%201%201%3B.5%200%20.2%201%3B0%200%201%201'%20calcMode%3D'spline'%20dur%3D'3.8s'%20repeatCount%3D'indefinite'%2F%3E%3C%2Fpath%3E%3Cpath%20d%3D'M12%2015.8L2.5%202'%20pathLength%3D'1'%20stroke-dasharray%3D'1%201'%20stroke-dashoffset%3D'1'%3E%3Canimate%20attributeName%3D'stroke-dashoffset'%20values%3D'1%3B0%3B0%3B-1%3B-1'%20keyTimes%3D'0%3B0.1579%3B0.6842%3B0.8421%3B1'%20keySplines%3D'.5%200%20.2%201%3B0%200%201%201%3B.5%200%20.2%201%3B0%200%201%201'%20calcMode%3D'spline'%20dur%3D'3.8s'%20repeatCount%3D'indefinite'%2F%3E%3C%2Fpath%3E%3C%2Fsvg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(58, 100, 255, .5));
}

/* ---------- Status-LED: Dreieck statt Punkt ---------- */
.led {
  display: inline-block; flex: none; width: 11px; height: 9px;
  background: var(--gc, var(--mut)); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.led.blink { animation: blink 1.4s ease-in-out infinite; }
.led.g-bad, .finding.g-bad > .led, .count.g-bad > .led,
.cat-tile.g-bad .tile-state .led, details.cat.g-bad > summary .led { animation: ledAlarm 2.6s steps(1) infinite; }

/* Eck-Klammer-Rahmen */
.frame {
  position: relative; display: inline-flex; align-items: center; padding: 5px 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt2);
}
.frame i { position: absolute; width: 8px; height: 8px; border: 1.5px solid rgba(255, 255, 255, .35); }
.frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.frame-run { color: var(--accent-b); }
.frame-run i { border-color: var(--accent-b); animation: brk 2.2s ease-in-out infinite; }
.frame-run .tr { animation-delay: .25s; } .frame-run .br { animation-delay: .5s; } .frame-run .bl { animation-delay: .75s; }
.frame-warn { color: var(--warn); } .frame-warn i { border-color: rgba(245, 158, 11, .6); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.nav-icon { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(58, 100, 255, .3)); }
.nav-icon .pi-chev { stroke-width: 34; }
.nav-wordmark { height: 15px; }
.nav-wordmark g { stroke-width: 13; }
.nav-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--txt2);
  min-width: 0; max-width: 34vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-beam { position: relative; height: 1px; background: var(--line-soft); overflow: hidden; }
.nav-beam::after { content: ""; position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--accent-b) 35%, #fff 50%, var(--accent-b) 65%, transparent);
  animation: beam 1.8s var(--ease) .2s both; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; flex: 1; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-soft); margin-top: 72px; background: var(--bg2); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { color: var(--txt); font-weight: 500; }
.foot-mono { width: 28px; }

/* ---------- Buttons (CI: Mono, Versalien, Haarlinie) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1;
  padding: 13px 20px; border-radius: 10px; border: 1px solid var(--line);
  color: var(--txt); background: var(--panel2); cursor: pointer; white-space: nowrap;
  transition: border-color .18s, background .18s, box-shadow .3s var(--ease), translate .25s var(--ease), color .18s;
}
.btn:hover { border-color: var(--accent); background: #181c24; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #1a4dff; border-color: #1a4dff; box-shadow: 0 10px 34px -8px rgba(58, 100, 255, .75); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn-danger:hover { background: rgba(239, 68, 68, .1); border-color: var(--bad); }
.btn-sm { padding: 8px 12px; font-size: 11px; }
.btn-icon { padding: 11px 12px; }
.btn-icon svg, .icon-btn svg { width: 17px; height: 17px; display: block; }
.btn-block { display: flex; width: 100%; }
.btn .arr { transition: translate .25s var(--ease); }
.btn:hover .arr { translate: 4px 0; }
.ms-logo { width: 16px; height: 16px; flex: none; }
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--mut); border-radius: 8px; padding: 8px; cursor: pointer;
  transition: color .18s, border-color .18s, background .18s; }
.icon-btn:hover { color: var(--bad); border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { display: contents; }
/* Format-Wahlschalter (PDF Bildschirm | Druck) – gleiche Formensprache wie der Passiv/Aktiv-Schalter */
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; min-width: 232px;
  background: #07080b; border: 1px solid var(--line); border-radius: 10px;
}
.seg::before { /* Schieber */
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px;
  background: rgba(58, 100, 255, .13); border: 1px solid rgba(58, 100, 255, .5);
  box-shadow: 0 0 22px -8px rgba(58, 100, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: translate .38s var(--ease);
}
.seg::after { /* Lichtkante auf dem Schieber */
  content: ""; position: absolute; top: 3px; height: 1px; left: calc(4px + (50% - 4px) * .15); width: calc((50% - 4px) * .7);
  background: linear-gradient(90deg, transparent, var(--accent-b) 30%, #fff 50%, var(--accent-b) 70%, transparent);
  box-shadow: 0 0 8px var(--accent-b); transition: left .38s var(--ease);
}
.seg:has(label:nth-child(2) input:checked)::before { translate: 100% 0; }
.seg:has(label:nth-child(2) input:checked)::after { left: calc(50% + (50% - 4px) * .15); }
.seg > label { position: relative; z-index: 1; margin: 0 !important; cursor: pointer; font-weight: 400; }   /* !important: .stack label setzt sonst Abstand */
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 9px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
  white-space: nowrap; transition: color .3s;
}
.seg .led { background: #2b2f38; transition: background .3s; }
.seg input:checked + span { color: #fff; }
.seg input:checked + span .led { background: var(--accent-b); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-b); outline-offset: 2px; border-radius: 6px; }
.seg:hover { border-color: rgba(255, 255, 255, .16); }
/* PDF-Knopf + Format als Einheit */
.pdf-unit { display: inline-flex; align-items: stretch; gap: 8px; }
.pdf-unit .seg { min-width: 0; }
/* Mail-Formular: Format-Zeile */
.pdf-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 2px 0 18px 28px; }
.pick-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.pick-hint { font-size: 13px; color: var(--mut); }
.pick-hint .h-print, .pdf-pick:has(input[value=print]:checked) .h-dark { display: none; }
.pdf-pick:has(input[value=print]:checked) .h-print { display: inline; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--txt2); }
.stack label { margin-bottom: 14px; }
input[type=text], input[type=password], textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: #07080b; color: #fff; border: 1px solid var(--line); border-radius: 10px;
  font: 400 16px/1.4 var(--sans); caret-color: var(--accent-b);
  transition: border-color .18s, box-shadow .25s;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus {
  outline: none; border-color: rgba(58, 100, 255, .7); box-shadow: 0 0 0 4px rgba(0, 54, 254, .16);
}
textarea { resize: vertical; }
::placeholder { color: #4d525b; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; color: var(--txt2); margin: 12px 0; }
.check input { /* CI-Checkbox: Haarlinien-Quadrat, Häkchen als Linienzug */
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 4px; background: #07080b; display: grid; place-items: center;
  transition: border-color .2s, background .2s, box-shadow .25s;
}
.check input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #000; border-bottom: 2px solid #000;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.check input:hover { border-color: rgba(255, 255, 255, .5); }
.check input:checked { background: var(--accent-b); border-color: var(--accent-b); box-shadow: 0 0 14px -2px rgba(58, 100, 255, .8); }
.check input:checked::after { border-color: #fff; transform: translateY(-1px) rotate(-45deg) scale(1); }
.active-note .check input:checked { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 14px -2px rgba(245, 158, 11, .8); }
.active-note .check input:checked::after { border-color: #000; }
.check input:focus-visible { outline: 2px solid var(--accent-b); outline-offset: 2px; }

/* ---------- Hinweise ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 14px 0;
  font-size: 14px; border: 1px solid; overflow-wrap: anywhere; }
.alert .led { margin-top: 6px; }
.alert-bad { --gc: var(--bad); background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.alert-warn { --gc: var(--warn); background: rgba(245, 158, 11, .07); border-color: rgba(245, 158, 11, .32); color: #fde4b8; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 5px; border: 1px solid var(--line); color: var(--txt2); white-space: nowrap; }
.tag-active { color: var(--warn); border-color: rgba(245, 158, 11, .4); }
.chip { font-size: 12.5px; font-weight: 500; color: #aab0ba; border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; white-space: nowrap; }

/* ---------- Flächen + Abschnittsköpfe ---------- */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel), #0a0c11);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 22px; overflow-wrap: anywhere;
}
.block { margin: 44px 0 0; }
.sec-head {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.sec-head::after { /* Lichtstrahl als Sektions-Übergang (CI) */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--accent-b) 35%, #fff 50%, var(--accent-b) 65%, transparent);
  box-shadow: 0 0 14px 1px var(--accent-b); animation: beam 1.8s var(--ease) .5s both;
}
.num { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--accent-b); }
.sec-title { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.sec-count { font-family: var(--mono); font-size: 11px; color: var(--mut); border: 1px solid var(--line); border-radius: 100px; padding: 1px 9px; }
.sec-head .btn { margin-left: auto; }

/* ---------- Einstieg (Startseite) ---------- */
.intro { position: relative; isolation: isolate; padding: 56px 0 34px; }
.intro-title { margin: 16px 0 14px; font-size: clamp(34px, 6vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.intro-sub { margin: 0 0 30px; max-width: 640px; font-size: 17px; color: var(--mut); }

.scan-field {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 780px;
  background: rgba(13, 15, 21, .9); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 18px;
  transition: border-color .25s, box-shadow .35s var(--ease);
}
.scan-field:focus-within { border-color: rgba(58, 100, 255, .6);
  box-shadow: 0 0 0 4px rgba(0, 54, 254, .14), 0 24px 70px -24px rgba(0, 54, 254, .6); }
.scan-prompt { font-family: var(--mono); font-size: 18px; color: var(--accent-b); }
.scan-field input[type=text] {
  flex: 1; min-width: 0; margin: 0; padding: 12px 4px; background: transparent; border: 0; box-shadow: none;
  font: 500 18px/1.3 var(--mono); color: #fff; letter-spacing: .02em;
}
.scan-field input[type=text]:focus { box-shadow: none; }
.scan-beam {
  position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-b) 35%, #fff 50%, var(--accent-b) 65%, transparent);
  box-shadow: 0 0 14px 1px var(--accent-b); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.scan-field:focus-within .scan-beam { animation: beam 3s var(--ease) infinite; }
.coverage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 780px; }

/* Modus-Wahlschalter (CI: Eck-Klammern, Mono-Versalien, Dreieck-LEDs, Lichtkante) */
.mode-switch { position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 26px; cursor: pointer; user-select: none; }
.mode-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ms-frame {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-width: 216px; padding: 4px;
  background: #07080b; border: 1px solid var(--line); border-radius: 10px;
}
.ms-frame > i { position: absolute; width: 8px; height: 8px; border: 1.5px solid rgba(58, 100, 255, .55); transition: border-color .3s; }
.ms-frame > .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.ms-frame > .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.ms-frame > .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; }
.ms-frame > .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.ms-slider {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px;
  background: rgba(58, 100, 255, .13); border: 1px solid rgba(58, 100, 255, .5);
  box-shadow: 0 0 22px -8px rgba(58, 100, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: translate .38s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.ms-slider::before { /* Lichtkante: Akzentblau mit Weiß im Kern */
  content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-b) 30%, #fff 50%, var(--accent-b) 70%, transparent);
  box-shadow: 0 0 8px var(--accent-b); transition: background .3s, box-shadow .3s;
}
.ms-opt {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); transition: color .3s;
}
.ms-opt .led { background: #2b2f38; transition: background .3s; }
.ms-off { color: #fff; }
.ms-off .led { background: var(--accent-b); }
.mode-switch input:checked + .ms-frame .ms-slider {
  translate: 100% 0; background: rgba(245, 158, 11, .11); border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 22px -8px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mode-switch input:checked + .ms-frame .ms-slider::before {
  background: linear-gradient(90deg, transparent, var(--warn) 30%, #fff 50%, var(--warn) 70%, transparent); box-shadow: 0 0 8px var(--warn);
}
.mode-switch input:checked + .ms-frame > i { border-color: rgba(245, 158, 11, .6); }
.mode-switch input:checked + .ms-frame .ms-off { color: var(--mut); }
.mode-switch input:checked + .ms-frame .ms-off .led { background: #2b2f38; }
.mode-switch input:checked + .ms-frame .ms-on { color: #fff; }
.mode-switch input:checked + .ms-frame .ms-on .led { background: var(--warn); animation: ledAlarm 2.6s steps(1) infinite; }
.mode-switch input:focus-visible + .ms-frame { outline: 2px solid var(--accent-b); outline-offset: 6px; }
.mode-switch:hover .ms-frame { border-color: rgba(255, 255, 255, .16); }
.ms-text { display: flex; flex-direction: column; line-height: 1.35; }
.ms-text b { font-size: 14.5px; font-weight: 600; color: var(--txt); }
.ms-text span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.active-note { max-width: 780px; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 30px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.stat-k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.stat-v { font-size: 32px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat-u { font-family: var(--mono); font-size: 12px; color: var(--mut); margin-left: 6px; }
.g-text-bad { color: var(--bad); }

/* Assessment-Liste */
.scan-list { list-style: none; margin: 0; padding: 0; }
.scan-row {
  position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 13px 12px; margin: 0 -12px; border-radius: 12px; border-bottom: 1px solid var(--line-soft);
  transition: background .2s;
  animation: rise .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 15) * 35ms + .35s);
}
.scan-row:last-child { border-bottom: 0; }
.scan-row:hover { background: rgba(58, 100, 255, .06); }
.scan-link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.scan-grade {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  font-size: 22px; font-weight: 800; color: var(--gc, var(--mut));
  border: 1px solid color-mix(in srgb, var(--gc, #4b5058) 45%, transparent);
  background: color-mix(in srgb, var(--gc, #4b5058) 10%, transparent);
}
.mini-radar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: conic-gradient(from 0deg, transparent 0 70%, var(--accent-b)); animation: spin 1.6s linear infinite; }
.scan-main { min-width: 0; }
.scan-domain { display: block; font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-meta { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.scan-state { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 110px; }
.scan-score { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.scan-score b { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--txt); }
.scan-bar { display: block; width: 110px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.scan-bar span, .tile-bar span {
  display: block; height: 100%; width: var(--w); background: var(--gc, var(--mut)); box-shadow: 0 0 10px var(--gc, transparent);
  transform-origin: left; animation: barIn 1.2s var(--ease) both; animation-delay: calc(min(var(--i, 0), 15) * 35ms + .6s);
}
.state-txt { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt2); }
.scan-del { position: relative; z-index: 2; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }
.empty-icon { width: 64px; height: 64px; }

/* ---------- Login ---------- */
.page-login .foot { display: none; }
.login .glow-wrap { top: 0; bottom: 0; }
.login {
  position: relative; isolation: isolate; min-height: 100svh; padding: 48px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
}
.login-lockup { display: flex; align-items: center; gap: 28px; }
.login-icon { width: 76px; height: 76px; filter: drop-shadow(0 0 24px rgba(58, 100, 255, .45)); }
.login-icon .pi-chev { stroke-width: 20; }
.lockup-divider { width: 1.5px; height: 70px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform-origin: center; animation: growY 1s var(--ease) .3s both; }
.login-wordmark { height: 56px; }
.login-wordmark g { stroke-width: 5; }
.login .kicker { justify-content: center; margin-top: 10px; }
.login-claim { margin: 0; max-width: 560px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 300; color: var(--txt2); }
.login-card {
  width: min(400px, 100%); margin-top: 10px; padding: 24px; text-align: left;
  background: rgba(13, 15, 21, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px;
}
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-foot { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.login-foot .foot-mono { width: 24px; }

/* ---------- Report-Kopf ---------- */
.scan-head { margin: 34px 0 26px; }
.back { display: inline-flex; gap: 8px; margin-bottom: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); transition: color .18s; }
.back:hover { color: var(--txt); }
.back span { transition: translate .25s var(--ease); }
.back:hover span { translate: -3px 0; }
.scan-title { margin: 12px 0 12px; font-size: clamp(28px, 5vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.scan-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--mut); }
.sep { opacity: .35; }

/* ---------- Scan läuft ---------- */
.running { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px 46px; align-items: center; padding: 34px; }
.radar {
  position: relative; width: min(250px, 64vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle, transparent 0 32%, var(--line) 32.5% 33%, transparent 33.5% 65.5%, var(--line) 66% 66.5%, transparent 67%),
    radial-gradient(circle, rgba(58, 100, 255, .12), #0b0d13 70%);
  box-shadow: 0 0 90px -20px rgba(58, 100, 255, .6), inset 0 0 40px rgba(0, 0, 0, .6);
}
.radar::before, .radar::after { content: ""; position: absolute; background: var(--line-soft); }
.radar::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(58, 100, 255, .55) 99%, var(--accent-b) 100%);
  animation: spin 2.2s linear infinite; }
.radar i { /* Treffer als Dreiecke, nicht als Punkte */
  position: absolute; left: var(--x); top: var(--y); width: 11px; height: 9px; margin: -4.5px 0 0 -5.5px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0;
  filter: drop-shadow(0 0 6px var(--accent-b)); animation: hit 2.2s var(--t, 0s) infinite;
}
.radar-core { position: absolute; left: 50%; top: 50%; width: 27%; height: auto; translate: -50% -50%; z-index: 1; }
.radar-core .pi-chev { stroke-width: 26; animation: chevPulse 2.2s ease-in-out infinite; transform-origin: 256px 270px; }
.run-side { min-width: 0; }
.run-timer { margin: 18px 0 6px; font-size: clamp(42px, 7vw, 66px); font-weight: 500; line-height: 1; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.run-progress { margin: 0 0 8px; min-height: 1.5em; font-family: var(--mono); font-size: 13px; color: var(--accent-b); }
.pipeline { list-style: none; margin: 14px 0 0; padding: 0; }
.pipeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--mut); transition: color .35s; }
.pipeline li + li::before { content: ""; position: absolute; left: 5px; top: -8px; height: 16px; width: 1px; background: var(--line); }
.pipeline .pl-node { width: 11px; height: 9px; flex: none; background: #2b2f38; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: background .35s; }
.pipeline li.done { color: var(--txt2); }
.pipeline li.done .pl-node { background: var(--good); }
.pipeline li.done::before { background: var(--good); opacity: .6; }
.pipeline li.run { color: #fff; font-weight: 600; }
.pipeline li.run .pl-node { background: var(--accent-b); animation: blink 1.2s ease-in-out infinite; }
.pipeline li.run::before { background: repeating-linear-gradient(to bottom, var(--accent-b) 0 3px, transparent 3px 6px); animation: flowY .5s linear infinite; }
.modules { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.mod {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  transition: color .4s, border-color .4s; transition-delay: calc(var(--i, 0) * 30ms);
}
.mod .led { background: #2b2f38; transition: background .4s; transition-delay: calc(var(--i, 0) * 30ms); }
.modules.is-run .mod { color: var(--txt2); border-color: rgba(58, 100, 255, .25); }
.modules.is-run .mod .led { background: var(--accent-b); animation: blink 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -137ms); }
.modules.is-done .mod { color: var(--txt2); border-color: rgba(34, 197, 94, .28); }
.modules.is-done .mod .led { background: var(--good); }
.running.finishing { animation: fadeOut .6s var(--ease) forwards; }

/* ---------- Ergebnis: Hero mit Dreieck-Gauge ---------- */
.hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px 48px; align-items: center; padding: 34px;
  border-color: color-mix(in srgb, var(--gc) 32%, var(--line));
  background: radial-gradient(110% 130% at 0% 0%, color-mix(in srgb, var(--gc) 13%, transparent), transparent 55%),
              linear-gradient(180deg, var(--panel), #0a0c11);
}
.gauge { position: relative; width: 240px; aspect-ratio: 200 / 184; }
.g-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 7; stroke-linejoin: miter; }
.gauge-inner { fill: rgba(255, 255, 255, .015); stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.gauge-band { fill: var(--gc); }
/* Radar-Sweep vom Inkreismittelpunkt: deckt die Fortschrittsfläche im Uhrzeigersinn auf */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.g-prog {
  filter: drop-shadow(0 0 6px var(--gc));
  -webkit-mask-image: conic-gradient(from 0deg at var(--cx) var(--cy), #000 var(--sweep), transparent 0);
          mask-image: conic-gradient(from 0deg at var(--cx) var(--cy), #000 var(--sweep), transparent 0);
  animation: sweep 1.7s var(--ease) .35s both;
}
.gauge-tail {
  fill: none; stroke: #fff; stroke-opacity: .32; stroke-width: 3.5; stroke-dasharray: 9 200;
  animation: tailIn 1.7s var(--ease) .35s backwards;
}
.gauge-head {
  fill: none; stroke: #fff; stroke-width: 3.5; stroke-dasharray: 3.5 200;
  filter: drop-shadow(0 0 4px var(--accent-b)) drop-shadow(0 0 2px #fff); animation: headIn 1.7s var(--ease) .35s backwards;
}
.gauge-c { position: absolute; left: 0; right: 0; top: 36%; display: flex; flex-direction: column; align-items: center; }
.gauge-letter { font-size: 72px; font-weight: 800; line-height: .9; color: #fff;
  text-shadow: 0 0 34px color-mix(in srgb, var(--gc) 65%, transparent); animation: letterIn .9s var(--ease) .9s both; }
.gauge-score { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--mut); }
.gauge-score b { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; }
.hero-side { min-width: 0; }
.hero .kicker { color: var(--mut); }
.hero-grade { margin: 8px 0 6px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--gc); }
.hero-sub { margin: 0; color: var(--mut); font-size: 15px; }
.hero-sub .mono { color: var(--txt2); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.count { position: relative; display: flex; flex-direction: column; padding: 13px 15px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gc) 25%, var(--line)); background: rgba(0, 0, 0, .35); }
.count .led { position: absolute; top: 15px; right: 14px; }
.count b { font-size: 30px; font-weight: 700; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.count span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* ---------- Bereichs-Kacheln ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 9px; padding: 16px 16px 15px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--txt);
  transition: border-color .2s, translate .3s var(--ease), background .2s;
  animation: rise .8s var(--ease) both; animation-delay: calc(min(var(--i, 0), 20) * 40ms + .3s);
}
.cat-tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--gc, var(--mut));
  box-shadow: 0 0 12px var(--gc, transparent); transform-origin: left;
  animation: barIn 1.2s var(--ease) both; animation-delay: calc(min(var(--i, 0), 20) * 40ms + .5s); }
.cat-tile:hover { translate: 0 -2px; border-color: color-mix(in srgb, var(--gc, #fff) 45%, transparent); background: var(--panel2); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-idx { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--mut); }
.tile-state { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gc); }
.tile-name { min-height: 2.5em; font-size: 15px; font-weight: 600; line-height: 1.25; color: #fff; }
.tile-score { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.tile-score b { font-family: var(--sans); font-size: 24px; font-weight: 700; color: var(--txt); }
.tile-score em { margin-left: 8px; font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.tile-info { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 2.6; }
.tile-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }

/* ---------- Befunde ---------- */
.findings { list-style: none; margin: 0; padding: 0; }
.finding { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.finding:last-child { border-bottom: 0; }
.finding > .led { margin-top: 8px; }
.f-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.f-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.f-head strong { color: #fff; font-size: 15px; }
.f-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  border: 1px solid var(--line); border-radius: 100px; padding: 1px 9px; }
.f-detail { margin-top: 3px; font-size: 13.5px; color: var(--txt2); }
.f-reco { display: flex; gap: 8px; margin-top: 6px; font-size: 13.5px; color: #8fa6ff; }
.f-reco > span { color: var(--accent-b); }
.f-reco a { color: #8fa6ff; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.findings-top { background: linear-gradient(180deg, var(--panel), #0a0c11); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.findings-top .finding { animation: rise .7s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 40ms + .4s); }

/* ---------- Detail-Abschnitte (aufklappbar) ---------- */
details.cat { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; transition: border-color .25s; }
details.cat[open] { border-color: color-mix(in srgb, var(--gc, #fff) 30%, var(--line)); }
details.cat > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; user-select: none; transition: background .2s; }
details.cat > summary::-webkit-details-marker { display: none; }
details.cat > summary:hover { background: rgba(255, 255, 255, .02); }
.cat-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cat-name { font-size: 16px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.cat-r { display: flex; align-items: center; gap: 12px; flex: none; }
.cat-n { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.cat-score { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--txt); }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--gc, var(--mut)); padding: 4px 9px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--gc, #888) 45%, transparent); background: color-mix(in srgb, var(--gc, #888) 10%, transparent); }
.chev { width: 16px; height: 16px; color: var(--mut); transition: rotate .35s var(--ease); }
details.cat[open] .chev { rotate: 180deg; }
.cat-body { padding: 0 20px 6px; border-top: 1px solid var(--line-soft); }
.cat-err { margin: 12px 0 0; font-size: 13px; }
@supports selector(::details-content) {
  details.cat::details-content { block-size: 0; overflow: hidden;
    transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  details.cat[open]::details-content { block-size: auto; }
}

/* Scroll-Reveal nur per CSS (CI: mobil keine JS-Scroll-Effekte) */
@supports (animation-timeline: view()) {
  .sv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

/* Lade-Reveal: gleiten & skalieren */
.reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beam { 0% { transform: scaleX(0); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes barIn { from { transform: scaleX(0); } }
@keyframes gaugeIn { from { stroke-dashoffset: 100; } }
@keyframes headIn { from { stroke-dashoffset: 3.5; } }
@keyframes tailIn { from { stroke-dashoffset: 9; } }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
@keyframes letterIn { from { opacity: 0; transform: scale(.7); filter: blur(6px); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes hit { 0% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(1.35); } 35% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes ledAlarm { 0%, 82% { opacity: 1; } 86% { opacity: .3; } 90% { opacity: 1; } 94% { opacity: .3; } 98% { opacity: 1; } }
@keyframes brk { 0%, 100% { opacity: .35; } 30%, 60% { opacity: 1; } }
@keyframes chevPulse { 0%, 100% { opacity: .6; transform: scale(.94); } 45% { opacity: 1; transform: scale(1); } }
@keyframes flowY { to { background-position: 0 6px; } }
@keyframes growY { from { transform: scaleY(0); opacity: 0; } }
@keyframes glowIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; transform: scale(.985); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .running, .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 20px; }
  .run-side, .hero-side { display: flex; flex-direction: column; align-items: center; width: 100%; }
  .pipeline { text-align: left; }
  .hero .actions { justify-content: center; }
  .counts { width: 100%; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-wordmark { height: 13px; }
  .who { display: none; }
  .intro { padding: 34px 0 24px; }
  .intro-sub { font-size: 15.5px; }
  .scan-field { flex-wrap: wrap; padding: 8px; }
  .scan-prompt { padding-left: 10px; }
  .scan-field .btn { border-radius: 8px; }
  .scan-field input[type=text] { flex: 1 1 60%; font-size: 17px; }
  .scan-field .btn { flex: 1 1 100%; }
  .coverage .chip { font-size: 11.5px; padding: 5px 11px; }
  .panel { padding: 20px 16px; border-radius: 14px; }
  .scan-row { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 12px 10px; margin: 0 -10px; }
  .scan-grade { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
  .scan-state { min-width: 0; }
  .scan-bar { display: none; }
  .scan-del { display: none; }   /* Löschen mobil im Report selbst */
  .scan-head { margin-top: 24px; }
  .gauge { width: 210px; }
  .gauge-letter { font-size: 62px; }
  .counts { gap: 8px; }
  .count { padding: 11px 12px; }
  .count b { font-size: 24px; }
  .count span { font-size: 9.5px; letter-spacing: .1em; }
  .hero .actions .btn { flex: 1 1 auto; }
  .hero .actions .pdf-unit { flex: 1 1 100%; display: grid; grid-template-columns: 1fr; }
  .pdf-unit .seg label > span { padding: 9px 6px; letter-spacing: .08em; }
  .pdf-pick { margin-left: 0; }
  .pdf-pick .seg { flex: 1 1 100%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 13px 12px; }
  .tile-name { font-size: 13.5px; }
  .tile-score b { font-size: 20px; }
  .tile-score em { display: block; margin: 2px 0 0; }
  .tile-state { font-size: 9.5px; letter-spacing: .08em; }
  .findings-top { padding: 2px 14px; }
  details.cat > summary { padding: 14px 14px; flex-wrap: wrap; }
  .cat-body { padding: 0 14px 4px; }
  .cat-n { display: none; }
  .sec-head .btn { margin-left: 0; }
  .login-lockup { gap: 18px; }
  .login-icon { width: 56px; height: 56px; }
  .lockup-divider { height: 50px; }
  .login-wordmark { height: 38px; }
  .kicker { font-size: 10.5px; letter-spacing: .14em; }
  .login .kicker { flex-wrap: wrap; text-align: center; }
  .login-foot { flex-wrap: wrap; justify-content: center; text-align: center; letter-spacing: .08em; }
  .running { padding: 26px 16px; }
}
@media (max-width: 380px) {
  .cat-grid { grid-template-columns: 1fr; }
  .counts { grid-template-columns: 1fr; }
}

/* CI: prefers-reduced-motion stoppt alle Loops und Einblendungen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}
