/* Biocapture – biocapture.ms-sw.at. Keine externen Ressourcen (CSP). */
:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --card: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --fg: #e8eefc;
  --muted: #93a0bb;
  --c1: #5b8cff;
  --c2: #37e2c4;
  --ok: #37e2c4;
  --bad: #ff6b81;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --r: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --bg2: #eef2f9;
    --card: #ffffff;
    --line: rgba(10, 20, 50, .1);
    --fg: #0d1526;
    --muted: #55627d;
    --c1: #2f62e6;
    --c2: #0aa88d;
    --ok: #0a9c83;
    --bad: #d63150;
    --shadow: 0 30px 70px -35px rgba(20, 40, 90, .35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sym { position: absolute; }
.grad {
  background: linear-gradient(100deg, var(--c1), var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hintergrund: feines Raster mit Lichtkegel */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 75% -10%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%),
    radial-gradient(40rem 30rem at 0% 30%, color-mix(in srgb, var(--c2) 12%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 40%, transparent 90%);
  opacity: .7;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.3em; border-radius: 999px; border: 0;
  background: linear-gradient(100deg, var(--c1), var(--c2));
  color: #04101c; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--c1) 70%, transparent);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--c2) 70%, transparent); }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--c1); box-shadow: none; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1.2rem; font-weight: 500; }
.brand b { font-weight: 800; }
.brand-mark { width: 28px; height: 28px; color: var(--c2); }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--fg); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 5px 0; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 1rem; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 2rem; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .85rem; background: var(--card);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: clamp(1.2rem, 4vw, 2.8rem); flex-wrap: wrap; }
.stats b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .85rem; }
.footnote { color: var(--muted); font-size: .78rem; margin-top: 1.5rem; }

/* Hero: animierter Ablauf (SVG aus gen_flow.py). app.js setzt data-step, die
   Klassen s0..sN (kumulativ) und m2 (2nd-Person-Scan). Ohne JS und bei
   reduzierter Bewegung steht der Endzustand. */
.hero-visual { position: relative; }
.flow { margin: 0; width: 100%; max-width: 600px; margin-inline: auto; }
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--mono); }
.flow-svg text { font-family: var(--mono); }

/* Telefon und Kamerabild (bleibt in beiden Farbschemata dunkel) */
.ph-body { fill: #0b111d; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
.ph-notch { fill: #000; opacity: .7; }
.cam1 { stop-color: #1a2232; }
.cam2 { stop-color: #2e2723; }
.bokeh circle:nth-child(odd) { fill: #46557a; opacity: .55; }
.bokeh circle:nth-child(even) { fill: #6d5444; opacity: .5; }
.sk1 { stop-color: #d8967c; }
.sk2 { stop-color: #f4cbb6; }
.tl1 { stop-color: rgba(255, 248, 225, .6); }
.tl2 { stop-color: rgba(255, 248, 225, 0); }
.knuckle { fill: none; stroke: rgba(120, 55, 35, .35); stroke-width: 1.2; stroke-linecap: round; }

/* Modus: eigene Hand (von rechts) oder 2nd-Person (von links) */
.sc-s, .tpl-s, .h0s { display: none; }
.flow.m2 .sc-o, .flow.m2 .tpl-o, .flow.m2 .h0o { display: none; }
.flow.m2 .sc-s, .flow.m2 .tpl-s { display: inline; }
.flow.m2 .h0s { display: inline; }

.tpl rect { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; stroke-dasharray: 5 5; animation: tplpulse 1.6s ease-in-out infinite; }
.s1 .tpl { opacity: .12; transition: opacity .5s; }
@keyframes tplpulse { 50% { stroke-opacity: .2; } }

.hand { transform: translateX(300px); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.s0 .hand { transform: none; transition-delay: .35s; }
.fg { transform-box: fill-box; transform-origin: 100% 50%; }
.flow[data-step="3"] .f1 { animation: wig1 .9s ease-in-out infinite; }
.flow[data-step="3"] .f2 { animation: wig2 1.1s ease-in-out infinite; }
.flow[data-step="3"] .f3 { animation: wig1 1s ease-in-out infinite reverse; }
.flow[data-step="3"] .f4 { animation: wig2 .8s ease-in-out infinite; }
@keyframes wig1 { 50% { transform: translate(-5px, -2px) rotate(2.5deg); } }
@keyframes wig2 { 50% { transform: translate(3px, 2px) rotate(-2deg); } }

/* Fokus-Sweep: Hand fern -> nah -> fern (zweimal), Anzeige läuft mit */
.zoom { transform-box: view-box; transform-origin: 135px 210px; }
.flow[data-step="2"] .zoom { animation: sweep 1.7s ease-in-out 2; }
@keyframes sweep { 0%, 100% { transform: none; } 30% { transform: scale(.78); } 75% { transform: scale(1.14); } }
.gauge { opacity: 0; transition: opacity .3s; }
.flow[data-step="2"] .gauge { opacity: 1; }
.g-bg { fill: rgba(5, 10, 20, .7); stroke: rgba(255, 255, 255, .15); }
.g-ok { fill: rgba(55, 226, 196, .25); stroke: #37e2c4; stroke-width: 1; }
.g-t { fill: rgba(232, 238, 252, .7); font-size: 8px; font-weight: 600; }
.g-r { text-anchor: end; }
.g-dot { fill: #fff; transform-box: view-box; }
.flow[data-step="2"] .g-dot { animation: gdot 1.7s ease-in-out 2; }
@keyframes gdot { 0%, 100% { transform: none; } 30% { transform: translateX(-75px); } 75% { transform: translateX(70px); } }

.tip-fp { opacity: .2; transition: opacity .6s; }
.s4 .tip-fp { opacity: .75; transition-delay: .3s; }

/* Erkennung */
.det { opacity: 0; transform: scale(1.3); transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.s1 .det { opacity: 1; transform: none; }
.s1 .d2 { transition-delay: .15s; }
.s1 .d3 { transition-delay: .3s; }
.s1 .d4 { transition-delay: .45s; }
.brk { fill: none; stroke: #37e2c4; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(55, 226, 196, .7)); }
.conf-bg { fill: rgba(5, 10, 20, .75); }
.conf { fill: #37e2c4; font-size: 8px; font-weight: 700; text-anchor: middle; }
.q-bg { fill: rgba(5, 10, 20, .55); }
.q-bar { fill: #37e2c4; transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; transition: transform 2.6s ease-in-out; }
.s2 .q-bar { transform: none; }
.s2 .d2 .q-bar { transition-delay: .15s; }
.s2 .d3 .q-bar { transition-delay: .3s; }
.s2 .d4 .q-bar { transition-delay: .45s; }

.torch-light { opacity: 0; transition: opacity .4s; }
.s2 .torch-light { opacity: .5; }
.torch-ico path { fill: rgba(255, 255, 255, .35); transition: fill .3s; }
.s2 .torch-ico path { fill: #ffd75e; }

.live { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.s3 .live { opacity: 1; transform: none; }
.live rect { fill: rgba(5, 10, 20, .75); stroke: #37e2c4; }
.live text { fill: #37e2c4; font-size: 10px; font-weight: 700; text-anchor: middle; }

.flash { fill: #fff; opacity: 0; pointer-events: none; }
.s4 .flash { animation: flash .7s ease-out; }
@keyframes flash { 15% { opacity: .85; } 100% { opacity: 0; } }

.hud-bar { fill: rgba(5, 10, 20, .55); }
.hud-t { fill: #e8eefc; font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .3s; }
.flow[data-step="0"] .h0, .flow[data-step="1"] .h1, .flow[data-step="2"] .h2,
.flow[data-step="3"] .h3, .flow[data-step="4"] .h4, .flow[data-step="5"] .h5 { opacity: 1; }

/* Ausgabe: Kacheln, Datensatz, AFIS */
.wire { fill: none; stroke: var(--c2); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .18; transition: opacity .4s; }
.s4 .w1, .s5 .w2, .s5 .w3 { opacity: 1; animation: dash .8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.cap-note { fill: var(--muted); font-size: 9.5px; opacity: .55; transition: opacity .4s; }
.s4 .cap-note { opacity: 1; }
.cap-min { opacity: 0; font-size: 8.5px; }
.s5 .cap-min { opacity: 1; transition-delay: 1s; }
.tile-slot rect { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-dasharray: 4 4; }
.tile { opacity: 0; transform: translate(-150px, 70px) scale(.35); transform-box: fill-box; transform-origin: center; transition: opacity .5s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.s4 .tile { opacity: 1; transform: none; }
.s4 .t1 { transition-delay: .25s; }
.s4 .t2 { transition-delay: .4s; }
.s4 .t3 { transition-delay: .55s; }
.s4 .t4 { transition-delay: .7s; }
.tile-bg { fill: #fff; }
/* Rohbild unscharf und flau, nach dem Verbessern klar */
.tile-img { filter: blur(1.4px) contrast(.45) brightness(1.15); transition: filter .8s; }
.s4 .tile-img { filter: none; transition-delay: 1.3s; }
.tile-l, .tile-m { fill: var(--muted); font-size: 9px; font-weight: 700; text-anchor: middle; transition: opacity .4s; }
.tile-l { opacity: .4; }
.s4 .tile-l { opacity: 1; }
.tile-m { opacity: 0; fill: var(--fg); }
.s5 .tile-l { opacity: 0; }
.s5 .tile-m { opacity: 1; transition-delay: .9s; }

/* Minutien: Kreis = Endung, Quadrat = Gabelung, Strich = Richtung */
.mn g { opacity: 0; transform: scale(2.5); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.s5 .mn g { opacity: 1; transform: none; }
.s5 .mn2 g { transition-delay: .15s; }
.s5 .mn3 g { transition-delay: .3s; }
.s5 .mn4 g { transition-delay: .45s; }
.mn circle, .mn rect, .mn path { fill: none; stroke-width: .9; }
.mn-e circle, .mn-e path { stroke: #e5304f; }
.mn-b rect, .mn-b path { stroke: #1f6fff; }

.box { fill: var(--card); stroke: var(--line); stroke-width: 1.2; transition: stroke .4s; }
.rec, .afis { opacity: .35; transition: opacity .6s; }
.s5 .rec { opacity: 1; }
.s5 .afis { opacity: 1; transition-delay: .5s; }
.s5 .rec .box, .s5 .afis .box { stroke: color-mix(in srgb, var(--c1) 55%, transparent); }
.box-k { fill: var(--c2); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.box-s { fill: var(--muted); font-size: 8.5px; }
.box-t { fill: var(--fg); font-size: 12.5px; font-weight: 600; }
.chip { fill: color-mix(in srgb, var(--c1) 10%, transparent); stroke: color-mix(in srgb, var(--c1) 40%, transparent); }
.chip-t { fill: var(--fg); font-size: 10px; font-weight: 600; text-anchor: middle; }
.db ellipse, .db path { fill: none; stroke: var(--c2); stroke-width: 1.8; }
.out rect { fill: none; stroke: var(--line); stroke-width: 1.2; transition: stroke .4s, fill .4s; }
.out text { fill: var(--fg); font-size: 11.5px; font-weight: 600; }
.out .ok { fill: var(--ok); opacity: 0; transition: opacity .4s; }
.s5 .out rect { stroke: color-mix(in srgb, var(--ok) 60%, transparent); fill: color-mix(in srgb, var(--ok) 8%, transparent); }
.s5 .out .ok { opacity: 1; }
.s5 .o1 rect, .s5 .o1 .ok { transition-delay: 1.4s; }
.s5 .o2 rect, .s5 .o2 .ok { transition-delay: 1.9s; }

/* Modus-Umschalter */
.flow-modes { display: inline-flex; gap: 4px; margin-top: 1rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.flow-modes button {
  padding: .4rem .9rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .82rem/1.2 inherit; font-family: inherit; color: var(--muted); transition: background .3s, color .3s;
}
.flow-modes button span { font-weight: 400; opacity: .8; }
.flow-modes button[aria-pressed="true"] { background: linear-gradient(100deg, var(--c1), var(--c2)); color: #04101c; }

/* Schrittliste unter der Animation */
.flow-steps { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.flow-steps button {
  width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center;
  padding: .55rem .7rem; text-align: left; font: inherit; color: var(--muted); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, color .3s, background .3s;
}
.flow-steps .n {
  grid-row: span 2; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 .75rem/1 var(--mono); border: 1px solid var(--line); transition: background .3s, color .3s;
}
.flow-steps b { color: var(--fg); font-size: .86rem; line-height: 1.2; }
.flow-steps .d { font-size: .74rem; line-height: 1.3; }
.flow-steps button:hover { border-color: color-mix(in srgb, var(--c1) 50%, transparent); }
.flow-steps .done .n { background: color-mix(in srgb, var(--c2) 20%, transparent); color: var(--c2); border-color: transparent; }
.flow-steps button[aria-current="step"] { border-color: var(--c2); background: color-mix(in srgb, var(--c2) 8%, var(--card)); }
.flow-steps button[aria-current="step"] .n { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #04101c; border-color: transparent; }
.flow-prog { height: 3px; margin-top: .7rem; border-radius: 3px; background: var(--line); overflow: hidden; }
.flow-prog span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); transform-origin: 0 50%; transition: transform .5s; }
@media (max-width: 520px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
}

/* Vertrauensleiste */
.strip { border-block: 1px solid var(--line); background: var(--card); margin-top: 2.5rem; }
.strip-in { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .8rem 1.6rem; padding: 1.1rem 0; color: var(--muted); font-size: .92rem; text-align: center; }
.strip b { color: var(--fg); font-weight: 600; }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }

/* Abschnitte */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg2) 80%, transparent) 15%, color-mix(in srgb, var(--bg2) 80%, transparent) 85%, transparent); }
.sec-head { max-width: 680px; margin-bottom: 3rem; }
.sec-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker { font: 700 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c2); margin-bottom: 1rem; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.step p { color: var(--muted); margin: 0; }
.step-n { position: absolute; top: 1.2rem; right: 1.4rem; font: 800 2.4rem/1 var(--mono); color: var(--line); }
.step-ico, .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 22%, transparent), color-mix(in srgb, var(--c2) 18%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent);
}
.step-ico svg, .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--c2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -1.25rem; width: 1.25rem; height: 2px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
  }
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); overflow: hidden; transition: transform .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(18rem 18rem at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c1) 16%, transparent), transparent 70%);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Sicherheit */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--muted); }
.checks li b { color: var(--fg); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}
.pad-viz { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.pad-viz svg { width: 100%; height: auto; font: 600 12px var(--mono); }
.pad-viz text { fill: var(--muted); }
.pad-viz text.ok { fill: var(--ok); }
.pad-viz text.bad { fill: var(--bad); }
.pad-viz .s1 { stop-color: var(--c1); }
.pad-viz .s2 { stop-color: var(--c2); }
.pad-real rect { fill: url(#pg); opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; }
.pad-real .f1 { animation: w1 3s ease-in-out infinite; }
.pad-real .f2 { animation: w2 3.4s ease-in-out infinite; }
.pad-real .f3 { animation: w1 2.8s ease-in-out infinite reverse; }
.pad-real .f4 { animation: w2 3.1s ease-in-out infinite; }
@keyframes w1 { 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes w2 { 50% { transform: translateY(4px) rotate(3deg); } }
.pad-fake .plane { transform-box: fill-box; transform-origin: center; animation: slab 3s ease-in-out infinite; }
.pad-fake .plane rect { fill: var(--muted); opacity: .5; }
.pad-fake .plane .paper { fill: none; stroke: var(--bad); stroke-dasharray: 4 4; opacity: 1; }
@keyframes slab { 50% { transform: translate(-6px, -5px) rotate(-3deg); } }
.verdict { fill: color-mix(in srgb, var(--bad) 12%, transparent); stroke: color-mix(in srgb, var(--bad) 50%, transparent); }
.pad-viz text.verdict-t { fill: var(--bad); font-size: 13px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Standards */
.formats { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 1rem; }
.fcol { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.fcol h3 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .85rem; border-radius: 10px; font: 600 .88rem/1.2 var(--mono);
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent);
  background: color-mix(in srgb, var(--c1) 9%, transparent);
}
.dpi { display: flex; align-items: baseline; gap: .4rem; }
.dpi b { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.dpi span { color: var(--muted); }
.dpi-hi b { background: linear-gradient(100deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }

/* Einsatzbereiche */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.use { padding: 2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.use h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; }
.tag { font: 700 .7rem/1 var(--mono); letter-spacing: .08em; padding: .4em .65em; border-radius: 6px; color: var(--c2); border: 1px solid color-mix(in srgb, var(--c2) 40%, transparent); }
.use ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.use li { padding: .7rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.use li::before { content: "→"; color: var(--c1); margin-right: .6rem; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }

/* Plattformen */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plat { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.plat-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.plat-head svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; fill: none; stroke: var(--c2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--c2) 12%, transparent); }
.plat-head h3 { margin: 0; }
.ver { font: 600 .75rem var(--mono); color: var(--muted); }
.plat dl { margin: 0 0 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .92rem; }
.plat dt { color: var(--muted); }
.plat dd { margin: 0; }
.plat p { color: var(--muted); font-size: .95rem; }
.plat p b { color: var(--fg); }
.plat-links { margin-top: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .92rem; }
.plat-links a { color: var(--c2); text-decoration: none; font-weight: 600; }
.plat-links a:hover { text-decoration: underline; }
.mini { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.mini li { padding: .35rem 0; }
.mini li::before { content: "✓"; color: var(--ok); margin-right: .55rem; }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr; } }

/* Download */
.dl {
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent);
  background:
    radial-gradient(30rem 20rem at 100% 0%, color-mix(in srgb, var(--c2) 18%, transparent), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, color-mix(in srgb, var(--c1) 18%, transparent), transparent 70%),
    var(--card);
}
.dl-copy { max-width: 40em; }
.dl-copy p { color: var(--muted); }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.app { display: grid; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.app-head { display: flex; align-items: center; gap: .8rem; justify-self: start; text-align: left; }
.app-head svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; fill: none; stroke: var(--c2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--c2) 12%, transparent); }
.app-head h3 { margin: 0; }
.app-head span { font: 600 .75rem var(--mono); color: var(--muted); }
.app p { margin: 0; }
.qr { display: block; }
.qr img { width: 160px; height: 160px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); image-rendering: pixelated; transition: transform .25s; }
.qr:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .apps { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { text-align: center; padding-top: 2rem; }
.contact-in p { color: var(--muted); font-size: 1.1rem; }
.contact .btn { margin-top: 1rem; }

/* Fusszeile */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; }
.foot-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-in p { max-width: 30em; margin-top: .8rem; }
.foot-in p a { color: var(--fg); }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: var(--fg); }
.copy { margin-top: 1.5rem; }

/* Einblenden beim Scrollen (nur mit JS; ohne JS bleibt alles sichtbar) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
