/* Stegvis – Website (Landingpage + Anleitung). Keine externen Ressourcen. */
:root {
  color-scheme: light;
  --paper: #f3f5f7; --surface: #ffffff; --ink: #18222d; --ink-2: #4a5866; --muted: #6b7885;
  --line: #d5dce3; --line-soft: #e6ebef;
  --blue: #2a52be; --blue-ink: #1d3d94; --blue-soft: #e5ecfa;
  --signal: #e9a83a; --signal-soft: #fbefd9; --green: #2e7d5b; --green-soft: #e3f1ea; --red: #b4433a;
  --serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111a23; --surface: #17222d; --ink: #e6ebf0; --ink-2: #b3bfcb; --muted: #8b98a5;
    --line: #2b3a48; --line-soft: #223040;
    --blue: #7f9ef0; --blue-ink: #aac0f5; --blue-soft: #1f2f52;
    --signal: #f0b85a; --signal-soft: #3a2f1a; --green: #6cc39b; --green-soft: #183328; --red: #e38279;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code { background: var(--line-soft); padding: .1em .35em; border-radius: 4px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: .05em .4em; border-radius: 4px; background: var(--surface); }
pre { background: var(--ink); color: #e9eef3; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; margin: 0 0 1.2em; }
@media (prefers-color-scheme: dark) { pre { background: #0b1219; border: 1px solid var(--line); } }
pre code { background: none; padding: 0; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); padding-top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .top nav a:not(.keep) { display: none; } }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0d1622; } .btn-primary:hover { color: #0d1622; } }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--blue); color: var(--ink); }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { color: var(--ink-2); }

/* ---------- Landingpage ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.name-note { font-size: .92rem; color: var(--muted); }
.name-note i { font-family: var(--serif); font-size: 1.05em; color: var(--ink-2); }
.canvas { background-color: var(--surface); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 18px 18px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.canvas svg { width: 100%; height: auto; display: block; overflow: visible; }
.canvas figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; padding: 0 4px; }

/* Prozess-Animation: ein Fall läuft einmal Schritt für Schritt durch */
.flow .edge { fill: none; stroke: var(--line); stroke-width: 2; }
.flow .edge-on { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-dasharray: 200; stroke-dashoffset: 0; }
.flow .node rect, .flow .node circle, .flow .node path.shape { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.flow .node text { font: 600 12.5px/1 var(--sans); fill: var(--ink); }
.flow .node .sub { font-weight: 400; font-size: 10.5px; fill: var(--muted); }
.flow .node .glyph { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.flow .node.done rect, .flow .node.done circle.outer, .flow .node.done path.shape { stroke: var(--blue); fill: var(--blue-soft); }
.flow .node.end.done circle.outer { stroke: var(--ink); stroke-width: 3.5; fill: var(--green-soft); }
.flow .node.skip rect { stroke-dasharray: 4 4; }
.flow .node.skip { opacity: .5; }
.flow .tag { font: 500 10.5px/1 var(--sans); fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .flow .edge-on { stroke-dashoffset: 200; animation: draw .45s ease-out forwards; animation-delay: var(--d); }
  .flow .node.done rect, .flow .node.done circle.outer, .flow .node.done path.shape { animation: light .5s ease-out both; animation-delay: var(--d); }
  .flow .node.skip { animation: fade .6s ease-out both; animation-delay: var(--d); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes light { from { stroke: var(--line); fill: var(--surface); } }
@keyframes fade { from { opacity: 1; } to { opacity: .45; } }

section.block { padding: 64px 0; }
.block-head { max-width: 40rem; margin-bottom: 36px; }
.block-head p { color: var(--ink-2); font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); font: 700 2.4rem/1 var(--serif); color: var(--blue); display: block; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(24, 34, 45, .35); }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 46rem; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
@media (max-width: 860px) { .shot-pair { grid-template-columns: minmax(0, 1fr); } }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0, 1fr); } }
.features h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.features ul { margin: 0; padding: 0; list-style: none; }
.features li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-2); }
.features li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.features li b { color: var(--ink); font-weight: 600; }
.run { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .run { grid-template-columns: minmax(0, 1fr); } }
.run p { color: var(--ink-2); }
.download { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
@media (max-width: 760px) { .download { grid-template-columns: minmax(0, 1fr); padding: 28px; } }
.download p { color: var(--ink-2); margin: 0; }
.download .meta { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- Anleitung ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
@media (max-width: 1000px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .92rem; padding-bottom: 24px; }
@media (max-width: 1000px) { .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; background: var(--surface); } }
.toc b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-left: 14px; margin: 2px 0 8px; }
.toc a { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.prose { max-width: 46rem; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose .lede { margin-bottom: 1.6em; }
.prose figure { margin: 1.6em 0 1.8em; }
.prose figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 1300px) { .prose figure.wide { margin-right: -12rem; } }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink-2); border-bottom-width: 2px; }
.prose td:first-child { white-space: nowrap; }
.note { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.2em 0 1.4em; }
.note.warn { border-color: var(--signal); background: var(--signal-soft); }
.note p:last-child { margin: 0; }
.note b:first-child { display: block; margin-bottom: 2px; }
.path { font-weight: 600; color: var(--ink); }
