/* AllanVista: Seiten-CSS auf dem Design System (design/, Brignoli Web).
   Farben, Schriften, Abstaende, Radien und Schatten kommen nur aus brand.css (tools/brand.mjs aus design/tokens.json).
   Schrift nur in den 8 Stilen: display-xl, h2, h3, lead, body, small, button, label.
   Ausnahme: der Block "Illustration" unten (Ampel-Lampen, Beispielseiten im Browser, Pixel-Icons) sind Bildfarben, keine UI-Farben.
   Statisch, keine externen Requests, kein Inline-Style (CSP style-src 'self'). */

/* ---------- Illustration: Bildfarben (bleiben in hell und dunkel gleich) ---------- */
:root {
  --lamp-ok: #2fbf71; --lamp-mid: #f2b632; --lamp-no: #e5533d; --lamp-off: #2a343a;
  --sky: #7dd3fc;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background: var(--ground);
  font: var(--fw-body) var(--fs-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: var(--fs-display-xl); line-height: var(--lh-display-xl); font-weight: var(--fw-display-xl); letter-spacing: var(--ls-display-xl); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none; border-radius: var(--radius-md); }
.skip:focus { top: .75rem; }
.offen { background: var(--accent); color: var(--accent-ink); padding: 0 .25em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 22px; height: 22px; flex: none; }
.ico--lg { width: 28px; height: 28px; }

/* Stile als Klassen */
.label, .eyebrow { font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; }
.eyebrow { color: var(--brand); margin: 0 0 var(--space-3); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-dim); max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-faint); }

/* ---------- Kopf: ruhige Leiste, eine Linie, weicher Schatten ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@supports not (color-mix(in srgb, red, red)) { .top { background: var(--ground); } }
.top__bar { max-width: var(--wrap); margin-inline: auto; padding: var(--space-3) var(--gut); display: flex; align-items: center; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-2); font: 800 var(--fs-h3)/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.brand__lens { width: 10px; height: 10px; background: var(--accent); box-shadow: 2px 2px 0 var(--ink); }
.top__nav { display: flex; gap: var(--space-1); }
.top__nav a { padding: var(--space-2) var(--space-3); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); color: var(--ink-dim); text-decoration: none; white-space: nowrap; border-radius: var(--radius-md); }
.top__nav a:hover { color: var(--ink); background: var(--brand-soft); }
@media (max-width: 58rem) { .top__nav { display: none; } }
/* Kopf-Knopf bleibt bis 320 px sichtbar, unter 30rem mit kurzer Beschriftung; Sprachen wandern dann ins Menue */
.top__cta-s { display: none; }
@media (max-width: 30rem) {
  .top__bar { gap: var(--space-2); }
  .top__bar > .langs { display: none; }
  .top__cta-l { display: none; }
  .top__cta-s { display: inline; }
}

/* Menue fuer kleine Bildschirme: details/summary, Panel unter der Kopfleiste */
.menu { display: none; }
@media (max-width: 58rem) { .menu { display: block; } }
.menu__btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: var(--space-2) var(--space-3); list-style: none; cursor: pointer;
  font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn:hover { background: var(--brand-soft); }
.menu__ico { position: relative; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menu[open] .menu__ico { box-shadow: none; transform: rotate(45deg); }
.menu[open] .menu__ico::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(90deg); }
@media (max-width: 30rem) { .menu__btn > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .menu__btn { padding-inline: var(--space-3); } }
.menu:not([open]) .menu__panel { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: var(--space-1); padding: var(--space-3) var(--gut) var(--space-6);
  background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: var(--shade); }
.menu__panel > a:not(.btn) { padding: var(--space-3) var(--space-2); font: var(--fw-button) 1.05rem/var(--lh-button) var(--font-body); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu__panel > a:not(.btn):hover { background: var(--brand-soft); }
.menu__panel > .btn { justify-content: center; margin-top: var(--space-4); }
.menu__langs { justify-self: start; margin-top: var(--space-4); }
.menu__langs a { padding: var(--space-2) var(--space-3); }
.langs { display: flex; list-style: none; margin: 0; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.langs a { display: block; padding: var(--space-1) var(--space-2); font: var(--fw-label) var(--fs-label)/1.2 var(--font-mono); text-decoration: none; color: var(--ink-dim); border-radius: var(--radius-pill); }
.langs a:hover { background: var(--brand-soft); color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--ground); }

/* ---------- Knoepfe (Komponente Button): Fuellung brand, harter Versatz nur am Primaer-Knopf ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-6);
  font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); text-decoration: none; cursor: pointer; overflow-wrap: anywhere;
  background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: var(--radius-md); box-shadow: var(--pixel);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }
.btn--small { padding: var(--space-2) var(--space-4); box-shadow: none; }
.btn--small:hover, .btn--small:active { transform: none; box-shadow: none; filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--brand-soft); transform: none; box-shadow: none; }
.btn--ghost:active { transform: none; box-shadow: none; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-12); }
@media (min-width: 48rem) { .section { padding-block: calc(var(--space-16) + var(--space-4)); } }
.section--band { background: var(--band); }
.section__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-dim); max-width: var(--measure); margin-top: var(--space-3); }
.note { margin-top: var(--space-6); font-size: var(--fs-small); color: var(--ink-faint); }

/* Karte (Komponente Card): raise, eine Linie, Radius der Marke */
.card, .prob, .level, .tiercard, .faq__item, .ticks, .contact {
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md);
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-12) var(--space-12); }
@media (min-width: 60rem) { .hero { padding-block: calc(var(--space-16) + var(--space-4)) var(--space-16); } }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-12); } }
.tag { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-6); padding: var(--space-1) var(--space-3);
  font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { max-width: 14em; margin-bottom: var(--space-6); }
.hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-8); }
.hero__go .btn:hover .ico { transform: translateX(3px); }
.hero__note { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); font-size: var(--fs-small); color: var(--ink-faint); }
.hero__note .ico { width: 18px; height: 18px; color: var(--ok); }

.hero__note { display: block; }
.trust { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-dim); }
.trust li { display: inline-flex; align-items: center; gap: var(--space-2); }
.trust .ico { width: 18px; height: 18px; color: var(--ok); }

/* Bericht-Beispiel im Hero (.demo): HTML statt Film, Farbe immer mit Wort */
.demo { margin: 0; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shade); overflow: hidden; }
.demo__bar { display: flex; gap: 6px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); background: var(--band); }
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo__head { padding: var(--space-6) var(--space-6) var(--space-4); display: grid; gap: var(--space-1); }
.demo__title { font: var(--fw-h3) var(--fs-h3)/var(--lh-h3) var(--font-display); }
.demo__meta { font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); letter-spacing: var(--ls-label); color: var(--ink-faint); text-transform: uppercase; }
.demo__rows { list-style: none; margin: 0; padding: 0 var(--space-6); display: grid; gap: var(--space-2); }
.demo__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); font-size: var(--fs-small); line-height: var(--lh-small); }
.demo__row--ok { border-left-color: var(--lamp-ok); } .demo__row--mid { border-left-color: var(--lamp-mid); } .demo__row--no { border-left-color: var(--lamp-no); background: color-mix(in srgb, var(--lamp-no) 7%, transparent); }
.demo__lang { font: var(--fw-label) var(--fs-label)/1 var(--font-mono); padding: var(--space-1) var(--space-2); background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-sm); }
.demo__txt { color: var(--ink); overflow-wrap: anywhere; }
.demo__tier { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; white-space: nowrap; }
.demo__tier i { width: 10px; height: 10px; border-radius: 50%; }
.demo__row--ok .demo__tier { color: var(--ok); } .demo__row--ok .demo__tier i { background: var(--lamp-ok); }
.demo__row--mid .demo__tier { color: var(--mid); } .demo__row--mid .demo__tier i { background: var(--lamp-mid); }
.demo__row--no .demo__tier { color: var(--no); } .demo__row--no .demo__tier i { background: var(--lamp-no); }
.demo__foot { padding: var(--space-4) var(--space-6) var(--space-6); font-size: var(--fs-small); color: var(--ink-faint); }
@media (max-width: 30rem) {
  .demo__row { grid-template-columns: auto minmax(0, 1fr); }
  .demo__tier { grid-column: 2; white-space: normal; }
  .demo__head, .demo__foot { padding-inline: var(--space-4); }
  .demo__rows { padding-inline: var(--space-4); }
}

/* Kopf: Anmelden (nur wenn die App laeuft) */
.top__login { font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); color: var(--ink-dim); text-decoration: none; white-space: nowrap; }
.top__login:hover { color: var(--ink); }
@media (max-width: 58rem) { .top__login { display: none; } } /* darunter steht Anmelden im Menue */

/* ---------- Funktionen: sechs Karten ---------- */
.feats { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--space-4); }
@media (min-width: 860px) { .feats { gap: var(--space-6); } }
.feat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); }
.feat p { color: var(--ink-dim); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- Preise: vier Tarife, Basic hervorgehoben ---------- */
.plans { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-4); align-items: stretch; }
@media (min-width: 860px) { .plans { gap: var(--space-6); } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); }
.plan--top { border: 2px solid var(--brand); box-shadow: var(--shade); }
.plan__badge { position: absolute; top: calc(-1 * var(--space-3)); left: var(--space-6); padding: var(--space-1) var(--space-3); font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-pill); }
.plan__d { color: var(--ink-dim); font-size: var(--fs-small); line-height: var(--lh-small); min-height: 2lh; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1); }
.plan__price b { font: var(--fw-h2) var(--fs-h2)/1.1 var(--font-display); letter-spacing: var(--ls-h2); }
.plan__price span { flex-basis: 100%; min-height: 1lh; font-size: var(--fs-small); color: var(--ink-faint); }
.plan__items { list-style: none; margin: var(--space-2) 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.plan__items li { display: flex; align-items: flex-start; gap: var(--space-2); }
.plan__items .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.plan .btn { margin-top: auto; }
/* Welcher Tarif passt? Eine Zeile je Tarif */
.fit { margin-top: var(--space-8); }
.fit h3 { font-size: var(--fs-lead); }
.fit ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 48rem) { .fit ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-8); } }
.fit li { color: var(--ink-dim); }
.fit b { color: var(--ink); margin-right: var(--space-2); }
.collab__go { margin-top: var(--space-8); display: flex; justify-content: center; }

/* ---------- Das Problem: vier Karten, nummeriert ---------- */
.probs { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 30rem) { .probs { grid-template-columns: 1fr; } }
@media (min-width: 860px) { .probs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.prob { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6); }
.prob__n { font: var(--fw-label) var(--fs-label)/1 var(--font-mono); color: var(--ink-faint); margin-bottom: var(--space-2); }
.prob p { color: var(--ink-dim); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- Ablauf: vier Schritte ---------- */
.levels { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); counter-reset: lv; }
@media (max-width: 24rem) { .levels { grid-template-columns: 1fr; } }
@media (min-width: 860px) { .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.level { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); counter-increment: lv; }
.level::before { content: "0" counter(lv); position: absolute; top: var(--space-6); right: var(--space-6); font: var(--fw-label) var(--fs-label)/1 var(--font-mono); color: var(--ink-faint); }
.level__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-2); background: var(--brand-soft); color: var(--brand); border-radius: var(--radius-md); }
.level:last-child .level__icon { background: var(--brand); color: var(--brand-ink); }
.level p { color: var(--ink-dim); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- Urteil: drei Karten mit Ampel (Komponente Status: Farbe immer mit Wort) ---------- */
.tiers { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 62rem) { .tiers { grid-template-columns: 1fr; } }
.tiercard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-6); box-shadow: var(--shade); }
.tiercard__body { display: grid; gap: var(--space-2); }
.tiercard h3 { display: flex; align-items: center; gap: var(--space-2); }
.tiercard--ok h3 { color: var(--ok); } .tiercard--mid h3 { color: var(--mid); } .tiercard--no h3 { color: var(--no); }
.tiercard p { color: var(--ink-dim); }
.tiercard__ex { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-faint) !important; }
.ampel { display: grid; gap: 4px; padding: 5px; width: 36px; background: #0d171d; border-radius: var(--radius-sm); }
.ampel i { display: block; height: 24px; border-radius: 2px; background: var(--lamp-off); }
.ampel--no i:nth-child(1) { background: var(--lamp-no); }
.ampel--mid i:nth-child(2) { background: var(--lamp-mid); }
.ampel--ok i:nth-child(3) { background: var(--lamp-ok); }

/* Ampel-Stufen (Fall-Seiten) */
.tier { display: inline-flex; align-items: center; gap: var(--space-2); width: fit-content; padding: 2px var(--space-2); border: 1px solid currentColor; border-radius: var(--radius-pill);
  font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; color: var(--tier-text); }
.tier--ok { --tier-text: var(--ok); --tier-lamp: var(--lamp-ok); }
.tier--mid { --tier-text: var(--mid); --tier-lamp: var(--lamp-mid); }
.tier--no { --tier-text: var(--no); --tier-lamp: var(--lamp-no); }
.lamp { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tier-lamp, var(--lamp-off)); }
.lamp--ok { --tier-lamp: var(--lamp-ok); } .lamp--mid { --tier-lamp: var(--lamp-mid); } .lamp--no { --tier-lamp: var(--lamp-no); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Fall-Karten: Startseite, Auswahl-Fenster, Ende der Fall-Seiten ---------- */
.cases { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.cases--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.cases--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 52rem) { .cases--row, .cases--two { grid-template-columns: 1fr; } }
.cases > li { display: grid; }
.case { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4); text-decoration: none; color: var(--ink);
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.case:hover, a.case:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--pixel); border-color: var(--ink); }
.case__icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--brand-soft); border-radius: var(--radius-md); }
.case__icon .px { width: 36px; }
.case__txt { display: grid; gap: var(--space-1); }
.case__txt strong { font: var(--fw-h3) var(--fs-h3)/var(--lh-h3) var(--font-display); letter-spacing: -.01em; }
.case__txt span { color: var(--ink-dim); font-size: var(--fs-small); line-height: var(--lh-small); }
.case__go { display: grid; place-items: center; width: 36px; height: 36px; color: var(--brand); border: 1px solid var(--line); border-radius: 50%; }
a.case:hover .case__go { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.case__go .ico { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { a.case:hover .case__icon .px { animation: hop .36s steps(3); } }
@media (min-width: 52rem) {
  .cases--row .case { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: end; padding: var(--space-6); min-height: 14rem; }
  .cases--row .case__icon { grid-column: 1 / -1; align-self: start; width: 72px; height: 72px; }
  .cases--row .case__icon .px { width: 48px; }
}

/* ---------- FAQ (Komponente FAQ): Linien statt Kaesten ---------- */
.faq { margin-top: var(--space-8); max-width: 52rem; border-top: 1px solid var(--line); }
.faq__item { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; cursor: pointer; list-style: none;
  font: var(--fw-h3) var(--fs-h3)/var(--lh-h3) var(--font-display); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__item summary i { flex: none; font: 500 var(--fs-h3)/1 var(--font-mono); font-style: normal; color: var(--brand); }
.faq__item summary i::before { content: "+"; }
.faq__item[open] summary i::before { content: "–"; }
.faq__item p { padding: 0 0 var(--space-6); color: var(--ink-dim); max-width: var(--measure); }
.faq__mehr { margin-top: var(--space-6); color: var(--ink-dim); }
.faq__mehr a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
    .faq__item[open]::details-content { block-size: auto; }
  }
}

/* ---------- Kontakt ---------- */
.contact { padding: var(--space-12) var(--space-6); text-align: center; box-shadow: var(--shade); }
@media (min-width: 48rem) { .contact { padding: var(--space-16); } }
.contact p { color: var(--ink-dim); margin: var(--space-3) auto 0; max-width: var(--measure); }
.contact .contact__where { font-size: var(--fs-lead); line-height: var(--lh-lead); margin-top: var(--space-4); }
.contact__go { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); }
.contact__link--open { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Fuss (Komponente Footer) ---------- */
.foot { background: var(--band); border-top: 1px solid var(--line); padding-block: var(--space-12); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-dim); }
.foot__in { display: grid; gap: var(--space-8); }
.foot__brand { display: grid; gap: var(--space-2); justify-items: start; }
.foot__brand .brand { margin: 0; }
.foot__sites { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.foot__sites a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2); row-gap: 2px; text-decoration: none; color: var(--ink); }
.foot__sites a i { width: 8px; height: 8px; margin-top: .45em; background: var(--brand); }
.foot__sites b { font-weight: 600; }
.foot__sites span { grid-column: 2; color: var(--ink-dim); }
.foot__sites a:hover b { color: var(--brand); text-decoration: underline; }
.foot__legal { padding-top: var(--space-6); border-top: 1px solid var(--line); }
.foot__legal a { color: var(--ink-dim); }
.foot__legal a:hover { color: var(--brand); }
.foot__small { font-size: var(--fs-small); }

/* ---------- Rechtstexte und Personenseite ---------- */
.legal { max-width: 46rem; padding-block: var(--space-12) var(--space-16); }
.legal h1 { margin-bottom: var(--space-4); }
.legal h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: var(--space-8) 0 var(--space-3); }
.legal p, .legal li { color: var(--ink-dim); margin-bottom: var(--space-3); }
.legal .legal__note { color: var(--ink); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: var(--space-6); }
.legal table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0 var(--space-4); }
.legal td, .legal th { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--line); }
.legal td:first-child { font-weight: 600; color: var(--ink); width: 9rem; }
.legal thead { display: none; }
/* AGB (/agb/): Teil A/B als h2, Abschnitte A1..B3 als h3, Inhaltsverzeichnis oben */
.agb h3 { font-size: var(--fs-lead); line-height: var(--lh-h3); margin: var(--space-6) 0 var(--space-2); }
.agb ul, .agb ol { padding-left: 1.3rem; margin: 0 0 var(--space-4); }
.agb hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
.agb a { text-underline-offset: 2px; }
.agb-inhalt { margin: var(--space-6) 0 var(--space-8); padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); }
.agb-inhalt h2 { margin-top: 0; }
.agb-inhalt ol { margin-bottom: 0; }
.agb-inhalt ol ol { list-style: none; padding-left: var(--space-4); margin-top: var(--space-2); }
.agb-inhalt li { margin-bottom: var(--space-2); }
.agb-inhalt a { color: var(--ink); }
.agb-inhalt a:hover { color: var(--brand); }

/* Druck (Rechtstexte, v. a. AGB): nur der Text, schwarz auf weiss, ohne Kopf, Fuss, Banner und Navigation */
@media print {
  .skip, .progress, .top, .foot, .chooser, .menu, .a11y, .bw-banner { display: none !important; }
  html, body { background: #ffffff !important; color: #000000 !important; }
  main, .legal, .legal * { color: #000000 !important; background: transparent !important; box-shadow: none !important; }
  .legal { max-width: none; padding: 0; }
  .legal a { text-decoration: underline; }
  .legal h1, .legal h2, .legal h3 { break-after: avoid; page-break-after: avoid; }
  .legal p, .legal li { orphans: 3; widows: 3; }
  .agb-inhalt, .legal .legal__note, .agb hr { border-color: #000000; }
}
.profil .eyebrow { margin-bottom: var(--space-2); }

/* Erklaerseite (/visueller-regressionstest/) */
.antwort .eyebrow { color: var(--ink-dim); margin-bottom: var(--space-2); }
.antwort .eyebrow a { color: inherit; }
.antwort h3 { margin: var(--space-6) 0 var(--space-2); }
.antwort ol, .antwort ul { padding-left: 1.3rem; margin-bottom: var(--space-4); }

/* 404 */
.nf { padding-block: var(--space-16); display: grid; gap: var(--space-6); justify-items: start; }
.nf__code { font: var(--fw-display-xl) var(--fs-display-xl)/1 var(--font-display); color: var(--brand); letter-spacing: var(--ls-display-xl); }
.nf__lang { display: grid; gap: var(--space-2); justify-items: start; }
.nf h1, .nf__h { font: var(--fw-h2) var(--fs-h2)/var(--lh-h2) var(--font-display); letter-spacing: var(--ls-h2); }

/* ---------- Bewegung: eine Einblendung pro Seite, immer mit prefers-reduced-motion ---------- */
/* Nur Bewegung, keine Deckkraft: laeuft die Animation nicht (alter Browser, Screenshot, langsames Geraet), bleibt der Titel lesbar */
@keyframes wIn { from { transform: translateY(.35em); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hop { 50% { transform: translateY(-4px); } }
@keyframes cue { 50% { transform: translateY(5px) rotate(45deg); } }
@keyframes rv { from { transform: translateY(16px); } to { transform: none; } } /* ohne Deckkraft: Inhalt bleibt sichtbar, auch beim Drucken und in Ganzseiten-Bildern */
@keyframes grow { to { transform: scaleX(1); } }
@keyframes glitch { 0% { filter: none; transform: none; } 25% { filter: invert(1); transform: translateX(-3px); } 50% { filter: none; transform: translateX(3px); } 75% { filter: hue-rotate(90deg); transform: none; } 100% { filter: none; } }
@keyframes scan { from { top: 0; } to { top: calc(100% - 3px); } }
@keyframes outlinePulse { 50% { outline-color: transparent; } }
@keyframes dockIn { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }

/* Titel Wort fuer Wort (Filter "words" in eleventy.config.js) */
.split .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .split .w { animation: wIn .45s cubic-bezier(.2, .8, .2, 1) backwards; }
  .split .w2 { animation-delay: .05s; } .split .w3 { animation-delay: .1s; } .split .w4 { animation-delay: .15s; }
  .split .w5 { animation-delay: .2s; } .split .w6 { animation-delay: .25s; } .split .w7 { animation-delay: .3s; }
  .split .w8 { animation-delay: .35s; } .split .w9 { animation-delay: .4s; } .split .w10 { animation-delay: .45s; }
  .split .w11 { animation-delay: .5s; } .split .w12 { animation-delay: .55s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}

/* Lesefortschritt oben auf den Fall-Seiten */
.progress { display: none; position: fixed; inset: 0 0 auto 0; z-index: 80; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .is-case .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); }
}

/* Seitenwechsel: Startseite <-> Fall-Seite als View Transition, das Pixel-Icon fliegt mit */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.chero__icon .px { view-transition-name: case-icon; }
::view-transition-group(case-icon) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: .2s ease both vtOut; }
::view-transition-new(root) { animation: .28s ease both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* Pixel-Icons (src/_includes/pixel.njk): Bildfarben */
.px { display: block; height: auto; image-rendering: pixelated; }
.px-i { fill: var(--ink); } .px-b { fill: var(--px-b, var(--brand)); } .px-g { fill: var(--sky); } .px-y { fill: var(--accent); } .px-w { fill: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --px-b: #2b8aa3; } }
:root[data-theme="dark"] { --px-b: #2b8aa3; }

/* Meldung (Fall-Seiten): Stufe + Befund */
.toast { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink);
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shade); }
.toast b { display: block; font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; color: var(--tt); }
.toast .lamp { margin-top: .35rem; }
.toast--ok { --tt: var(--ok); } .toast--mid { --tt: var(--mid); } .toast--no { --tt: var(--no); }

/* Auswahl-Fenster */
.chooser { width: min(34rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; color: var(--ink); background: var(--raise);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shade);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
.chooser[open] { opacity: 1; transform: none; }
@starting-style { .chooser[open] { opacity: 0; transform: translateY(12px); } }
.chooser::backdrop { background: rgba(6, 10, 24, .55); opacity: 0; transition: opacity .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
.chooser[open]::backdrop { opacity: 1; }
@starting-style { .chooser[open]::backdrop { opacity: 0; } }
html:has(.chooser[open]) { overflow: hidden; }
.chooser__in { position: relative; padding: var(--space-8) var(--space-6); }
.chooser h2 { padding-right: 3rem; }
.chooser__lead { margin-top: var(--space-2); color: var(--ink-dim); }
.chooser__x { position: absolute; top: var(--space-4); right: var(--space-4); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer; color: var(--ink);
  background: var(--raise); border: 1px solid var(--line); border-radius: 50%; }
.chooser__x:hover { background: var(--brand-soft); }
@media (prefers-reduced-motion: no-preference) {
  .chooser[open] .cases li { animation: toastIn .3s ease both; }
  .chooser[open] .cases li:nth-child(1) { animation-delay: .08s; }
  .chooser[open] .cases li:nth-child(2) { animation-delay: .16s; }
  .chooser[open] .cases li:nth-child(3) { animation-delay: .24s; }
}

/* ---------- Fall-Seiten ---------- */
.chero { padding-block: var(--space-8) var(--space-2); }
.chero__back a, .dock a { display: inline-flex; align-items: center; gap: var(--space-2); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); text-decoration: none; }
.chero__back a { padding: var(--space-1) var(--space-3); color: var(--ink-dim); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.chero__back a:hover { color: var(--ink); border-color: var(--ink); }
.ico--back { width: 18px; height: 18px; transform: rotate(180deg); }
.chero__icon { display: grid; place-items: center; width: 80px; height: 80px; margin: var(--space-6) 0 var(--space-4); background: var(--brand-soft); border-radius: var(--radius-md); }
.chero__icon .px { width: 52px; }
.chero h1 { max-width: 19em; margin-bottom: var(--space-4); }
.chero__cue { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); font-size: var(--fs-small); font-weight: 600; color: var(--ink-faint); }
.chero__cue i { width: 12px; height: 12px; border-right: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .chero__cue i { animation: cue 1.1s ease infinite; } }

.story { display: grid; padding-block: var(--space-4) var(--space-12); }
.stage { position: sticky; top: 4.2rem; z-index: 5; padding-block: var(--space-2) var(--space-3); background: var(--ground); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; padding-block: var(--space-4) var(--space-8); display: grid; align-content: start; gap: var(--space-2); }
.step:last-child { min-height: 50vh; }
.step p { max-width: 32ch; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-dim); }
.step .step__n { display: flex; align-items: center; gap: var(--space-2); font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; color: var(--brand); }
.step__n span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--brand-ink); background: var(--brand); border-radius: 50%; }
.story:has(.stage.is-live) .step { transition: opacity .25s ease; }
.story:has(.stage.is-live) .step:not(.on) { opacity: .32; }
@media (min-width: 60rem) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-16); }
  .stage { grid-column: 2; grid-row: 1; align-self: start; top: 6rem; padding: 0; background: none; }
  .steps { grid-column: 1; grid-row: 1; padding-top: 6vh; }
  .step { min-height: 78vh; align-content: center; padding-block: 0; }
  .step:last-child { min-height: 70vh; }
}

/* Buehne: Browser mit Beispielseite. Die Beispielseite ist Illustration und bleibt hell, egal welches Theme. */
.browser { position: relative; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shade); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: var(--space-2) var(--space-3); font: var(--fw-label) var(--fs-label)/1 var(--font-mono); background: var(--band); border-bottom: 1px solid var(--line); }
.browser__bar > i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--lamp-no); }
.browser__bar > i:nth-child(2) { background: var(--lamp-mid); }
.browser__bar > i:nth-child(3) { background: var(--lamp-ok); }
.browser__url { flex: 1; min-width: 0; margin-left: var(--space-1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-dim); text-transform: none; }
.browser__stage b { display: none; padding: 2px var(--space-2); font: var(--fw-label) var(--fs-label)/1.2 var(--font-mono); text-transform: uppercase; color: var(--ground); background: var(--ink); border-radius: var(--radius-pill); }
.browser__stage b.on { display: inline-block; animation: pop .3s ease both; }
.browser__view { position: relative; overflow: hidden; color: #14181a; background: #f4f7f6; }
.browser__view::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background-image: linear-gradient(rgba(10,132,193,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(10,132,193,.22) 1px, transparent 1px); background-size: 24px 24px; transition: opacity .3s ease; }
.stage.is-2:not(.is-3) .browser__view::before { opacity: 1; }
.scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 3px; opacity: 0; pointer-events: none; background: var(--sky); box-shadow: 0 0 0 1px #0b0d10, 0 0 18px 5px rgba(125,211,252,.65); }
.stage.is-2:not(.is-3) .scan { opacity: 1; animation: scan 1.6s steps(28) infinite; }
@media (prefers-reduced-motion: no-preference) {
  .stage.is-live.is-1:not(.is-2) .browser__view { animation: glitch .45s steps(4) 1; }
}

/* Markierte Bereiche: gestrichelt beim Vergleich, in Ampelfarbe beim Urteil */
.hl { outline: 2px dashed transparent; outline-offset: 3px; }
.stage.is-3 .hl { outline-color: #0a84c1; }
.stage.is-3:not(.is-4) .hl { animation: outlinePulse .5s steps(2) 3; }
.stage.is-4 .hl { outline-width: 3px; outline-style: solid; }
.stage.is-4 .hl[data-l="ok"] { outline-color: var(--lamp-ok); }
.stage.is-4 .hl[data-l="mid"] { outline-color: #e0a21c; }
.stage.is-4 .hl[data-l="no"] { outline-color: var(--lamp-no); }

/* Vorher / Nachher: .was gilt vor dem Deploy, .now danach; .chg kommt mit dem Deploy dazu */
.now { display: none; }
.stage.is-1 .was { display: none; }
.stage.is-1 .now { display: inline; }
.stage:not(.is-1) .chg { visibility: hidden; }

/* Beispielseiten (Illustration, feste helle Farben) */
.m { padding: var(--space-3); font: 400 var(--fs-label)/1.35 var(--font-body); }
.m p { margin: 0; }
.m .px-i { fill: #0b0d10; } .m .px-b { fill: #135e70; } .m .px-g { fill: #7dd3fc; }
.m__bar { display: flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-2); background: #fff; border: 2px solid #d5dde0; }
.m__logo { width: 12px; height: 12px; flex: none; background: #135e70; }
.m__search { flex: 1; height: 10px; background: #e6ecea; }
.m__cart { width: 18px; }
.m__crumb { margin: var(--space-2) 0 !important; color: #4e5658; }
.m__prod { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.m__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #dfe8eb 0 6px, #eef3f4 6px 12px); border: 1.5px solid #dfe4e6; }
.stage.is-1 .m__img { background: repeating-linear-gradient(45deg, #dae5e8 0 6px, #eef3f4 6px 12px); }
.m__bike { width: 82%; }
.m__badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; font-weight: 800; background: #fde047; border: 2px solid #0b0d10; }
.m__name { font: 800 var(--fs-body)/1.15 var(--font-display); }
.m__price { width: fit-content; min-width: 6.5em; min-height: 1.5em; margin: 6px 0 !important; font: 700 var(--fs-small) var(--font-mono); }
.m__sizes { color: #4e5658; }
.m__sizes span { display: inline-block; margin-left: 3px; padding: 0 5px; border: 1.5px solid #c9d1d4; color: #14181a; }
.m__buy { display: block; margin-top: var(--space-2); padding: 6px; font-weight: 600; text-align: center; color: #fff; background: #135e70; }

.m--saas { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-3); }
.m__side { padding: var(--space-2); color: #e8f2f6; background: #0e1a20; }
.m__side b { display: block; margin-bottom: var(--space-2); font-family: var(--font-display); }
.m__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.m__side li { padding: var(--space-1) 6px; }
.m__side li.on { background: #135e70; }
.m__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.m__head b { font: 800 var(--fs-body) var(--font-display); }
.m__export { display: inline-block; min-width: 6.4em; }
.m__export > span { display: block; padding: var(--space-1) var(--space-2); font-weight: 600; text-align: center; color: #fff; background: #135e70; }
.stage.is-1 .m__export > span { visibility: hidden; }
.m__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: var(--space-3) 0; }
.m__kpis p { padding: 6px var(--space-2); background: #fff; border: 1.5px solid #dfe4e6; }
.m__kpis small { display: block; color: #4e5658; font-size: 1em; }
.m__kpis b { font: 800 var(--fs-h3) var(--font-display); }
.m__chart { display: flex; align-items: flex-end; gap: 5px; height: 5.6rem; padding: 6px; background: #fff; border: 1.5px solid #dfe4e6; }
.m__chart i { flex: 1; background: #135e70; }
.stage.is-1 .m__chart i { background: #1f7489; }
.m__chart .h3 { height: 30%; } .m__chart .h4 { height: 40%; } .m__chart .h5 { height: 50%; } .m__chart .h6 { height: 60%; }
.m__chart .h7 { height: 70%; } .m__chart .h8 { height: 80%; } .m__chart .h9 { height: 90%; }

.m--web { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.m__pane { position: relative; display: grid; gap: 6px; min-width: 0; padding: 6px; background: #fff; border: 1.5px solid #dfe4e6; }
.m__lang { position: absolute; top: 4px; right: 4px; z-index: 1; padding: 1px 4px; font-weight: 700; color: #fff; background: #0e1a20; }
.m__photo { aspect-ratio: 16 / 7; background: repeating-linear-gradient(45deg, #dfe8eb 0 6px, #eef3f4 6px 12px); }
.stage.is-1 .m__photo { background: linear-gradient(#7dd3fc 0 58%, #2fbf71 58% 78%, #17703f 78%); }
.m__h { min-height: 2.35em; font: 800 var(--fs-label)/1.15 var(--font-display); }
.m__btn { display: block; width: fit-content; padding: 2px 6px; font-weight: 600; white-space: nowrap; color: #fff; background: #135e70; }

/* Bericht am Ende */
.sum { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 4; width: min(15rem, calc(100% - 1.4rem)); padding: var(--space-3); color: var(--ink); background: var(--raise);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shade);
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.stage.is-5 .sum { opacity: 1; transform: none; }
.sum__h { margin-bottom: var(--space-2) !important; font: var(--fw-label) var(--fs-label)/var(--lh-label) var(--font-mono); text-transform: uppercase; color: var(--ink-dim); }
.sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.sum .tier { width: 100%; border: 0; padding: 0; color: var(--ink); }
.sum .tier b { margin-left: auto; }

/* Meldungen neben der Buehne */
.toasts { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.toasts .toast { opacity: 0; transform: translateX(16px); transition: opacity .3s ease, transform .3s ease; }
.stage.is-4 .toast { opacity: 1; transform: none; }
.stage.is-4 .toast:nth-child(2) { transition-delay: .2s; }
.stage.is-4 .toast:nth-child(3) { transition-delay: .4s; }
@media (min-width: 60rem) {
  .toasts { width: min(20rem, 72%); margin: var(--space-4) 0 0 auto; }
  .toasts .toast:nth-child(2) { margin-right: 1.2rem; }
  .toasts .toast:nth-child(3) { margin-right: 2.4rem; }
}
/* Handy: Buehne kompakt halten, damit unter ihr Platz fuer den Text des Schritts bleibt */
@media (max-width: 59.99rem) {
  .browser__view .m { padding: var(--space-2); }
  .toasts { gap: var(--space-1); margin-top: var(--space-2); }
  .toasts .toast { padding: var(--space-1) var(--space-2); font-size: var(--fs-label); }
  .toasts .toast b { display: inline; }
  .toasts .toast b::after { content: " · "; color: var(--ink-faint); }
  .toasts .toast .lamp { width: 8px; height: 8px; margin-top: .3rem; }
  .step { min-height: 58vh; }
}

/* Ende der Fall-Seite */
.caseend__grid { display: grid; gap: var(--space-6); }
@media (min-width: 52rem) { .caseend__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ticks { padding: var(--space-8) var(--space-6); }
.ticks ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { display: flex; align-items: flex-start; gap: var(--space-3); }
.ticks li .ico { margin-top: 2px; color: var(--ok); }
.contact--case { padding: var(--space-8) var(--space-6); }
.caseend .disclaimer { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--ink-faint); }
.caseend__h { margin-top: var(--space-12); }

/* Leiste unten auf Fall-Seiten: zurueck / anderer Fall */
.dock { position: fixed; left: 50%; bottom: max(.9rem, env(safe-area-inset-bottom)); z-index: 55; display: flex; transform: translateX(-50%); overflow: hidden;
  background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shade); }
.dock a { padding: var(--space-3) var(--space-4); white-space: nowrap; }
.dock a + a { color: var(--brand-ink); background: var(--brand); }
.dock a:hover { background: var(--brand-soft); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .dock { animation: dockIn .4s ease .6s both; } }
@media (min-width: 60rem) {
  .dock { left: max(1rem, calc((100% - var(--wrap)) / 2 + var(--gut))); transform: none; }
  @media (prefers-reduced-motion: no-preference) { .dock { animation-name: dockInL; } }
}
@keyframes dockInL { from { transform: translateY(140%); } to { transform: none; } }
.is-case .foot { padding-bottom: 6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .case { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .scan { display: none; }
}

/* ---------- Ansicht und Barrierefreiheit (Knopf in der Kopfzeile, src/assets/js/ansicht.js; Vorlage ai-risk.ch, Optik mit den Rollen-Tokens der Seite) ---------- */
.a11y { position: relative; flex: none; }
.a11y[hidden], .a11y-panel[hidden] { display: none; }
.a11y-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.25rem; padding: var(--space-1) var(--space-3); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); color: var(--ink-dim); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { color: var(--ink); background: var(--brand-soft); }
.a11y-panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 60; width: min(20rem, calc(100vw - 2rem)); display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--raise); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shade); }
.a11y-h { margin: 0; font: 700 var(--fs-body)/1.3 var(--font-display); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font: var(--fs-small)/var(--lh-small) var(--font-body); cursor: pointer; }
.a11y-row input[type="checkbox"] { width: 1.35rem; height: 1.35rem; flex: none; margin: 0; accent-color: var(--brand); cursor: pointer; }
.a11y-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; flex: none; }
.a11y-seg button { min-width: 2.5rem; height: 2.4rem; border: 0; background: var(--raise); color: var(--ink); font-family: var(--font-body); font-weight: 650; cursor: pointer; }
.a11y-seg button + button { border-left: 1px solid var(--line); }
.a11y-seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.a11y-s0 { font-size: .9rem; } .a11y-s1 { font-size: 1.1rem; } .a11y-s2 { font-size: 1.3rem; }
.a11y-actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
.a11y-act { min-height: 2.4rem; padding: var(--space-2) var(--space-4); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-body); color: var(--brand-ink); background: var(--brand); border: 1px solid var(--brand); border-radius: var(--radius-md); cursor: pointer; }
.a11y-act-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
@media (max-width: 40rem) {
  .a11y-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .a11y-btn { padding-inline: var(--space-2); }
  .a11y-panel { position: fixed; left: 1rem; right: 1rem; top: 4.25rem; width: auto; max-height: calc(100vh - 5.5rem); overflow: auto; }
}

/* Einstellungen (data-Attribute auf <html>) */
:root[data-size="1"] { font-size: 112.5%; }
:root[data-size="2"] { font-size: 125%; }
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-read="1"] body { line-height: 1.85; letter-spacing: .015em; word-spacing: .06em; }
:root[data-read="1"] p, :root[data-read="1"] li, :root[data-read="1"] dd { max-width: 68ch; }
:root[data-links="1"] a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
:root[data-contrast="high"], :root[data-contrast="high"]:not([data-theme="light"]) {
  --ground: #ffffff; --raise: #ffffff; --band: #ffffff; --ink: #000000; --ink-dim: #000000; --ink-faint: #000000; --line: #000000;
  --brand: #0b3d91; --brand-soft: #e6eefc; --brand-ink: #ffffff; --focus: #000000;
}
:root[data-contrast="high"] .scheme-dark {
  --ground: #000000; --raise: #000000; --band: #000000; --ink: #ffffff; --ink-dim: #ffffff; --ink-faint: #ffffff; --line: #ffffff;
  --brand: #ffffff; --brand-soft: #1a1a1a; --brand-ink: #000000; --focus: #ffffff;
}
:root[data-contrast="high"] .top { background: #000000; backdrop-filter: none; }
:root[data-contrast="high"] :focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 3px; }
