/* WrapKI – gemeinsames Stylesheet (Startseite, Unterseiten, Dialoge).
   Gestaltung „Werkstatt trifft Tech“: kühles Werkstattgrau, Anthrazit, Signal-Orange nur für Aktion und Fortschritt.
   Wiederkehrendes Motiv: die „abgezogene Folienecke“ (Logo, ausgewählte Kacheln). Doku: docs/FRONTEND.md */

:root {
  color-scheme: light dark;

  --signal: #ff5b14;
  --signal-hover: #ff7535;
  --signal-press: #ec4c06;
  --signal-ink: #b23a06;
  --signal-soft: rgba(255, 91, 20, 0.13);
  --on-signal: #1b1f22;

  --anthracite: #23292e;
  --on-anthracite: #f4f6f7;
  --ink: #1b2024;
  --ink-2: #444f57;
  --steel: #5d6972;
  --paper: #f1f3f4;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --surface-3: #eceff1;
  --line: #d9dee2;
  --line-strong: #b6bec5;
  --focus: #1b2024;

  --ok: #17703f;
  --ok-soft: #e2f3e8;
  --warn: #8a5200;
  --warn-soft: #fff0d4;
  --err: #b42318;
  --err-soft: #fdeae7;

  --stage: #23292e;
  --stage-2: #1b2024;
  --stage-ink: #e8ecef;
  --stage-muted: #9aa6ae;
  --stage-grid: rgba(255, 255, 255, 0.05);
  --stage-grid-major: rgba(255, 255, 255, 0.095);

  --radius-xs: 6px;
  --radius-s: 9px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 26px;

  --shadow-card: 0 1px 0 rgba(18, 24, 28, 0.04), 0 18px 40px -30px rgba(18, 24, 28, 0.45);
  --shadow-pop: 0 30px 80px -24px rgba(12, 16, 19, 0.5);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs--1: 0.875rem;
  --fs-0: 1rem;
  --fs-1: 1.25rem;
  --fs-2: 1.5625rem;
  --fs-3: 1.953rem;

  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --signal-ink: #ff8f5a;
    --signal-soft: rgba(255, 91, 20, 0.18);
    --anthracite: #2d353b;
    --ink: #eaeef0;
    --ink-2: #c4ccd2;
    --steel: #98a4ad;
    --paper: #14181b;
    --surface: #1c2226;
    --surface-2: #222a2f;
    --surface-3: #2a3338;
    --line: #2f383e;
    --line-strong: #4a555d;
    --focus: #f4f6f7;

    --ok: #6ad6a0;
    --ok-soft: rgba(106, 214, 160, 0.12);
    --warn: #ffc56b;
    --warn-soft: rgba(255, 197, 107, 0.12);
    --err: #ff8a7d;
    --err-soft: rgba(255, 138, 125, 0.12);

    --stage: #0f1316;
    --stage-2: #0a0d0f;
    --stage-grid: rgba(255, 255, 255, 0.04);
    --stage-grid-major: rgba(255, 255, 255, 0.08);

    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
    --shadow-pop: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--signal); }
a:hover { color: var(--signal-ink); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--signal); color: var(--on-signal); }

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

[hidden] { display: none !important; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Native Eingabe bleibt fokussierbar, die Optik übernimmt das umgebende Label */
.opt-input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.25em;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--anthracite);
  color: var(--on-anthracite);
  border-radius: var(--radius-s);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus-visible { top: 10px; color: var(--on-anthracite); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--steel); }
.small { font-size: var(--fs--1); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.noscript {
  margin: 0;
  padding: 12px var(--gutter);
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-m);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 680;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { --btn-bd: var(--ink); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--signal);
  --btn-fg: var(--on-signal);
  --btn-bd: var(--signal);
}
.btn-primary:hover { --btn-bg: var(--signal-hover); --btn-bd: var(--signal-hover); }
.btn-primary:active { --btn-bg: var(--signal-press); }

.btn-dark {
  --btn-bg: var(--anthracite);
  --btn-fg: var(--on-anthracite);
  --btn-bd: var(--anthracite);
}
.btn-dark:hover { --btn-bg: #353e45; --btn-bd: #353e45; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-bd: transparent;
}
.btn-ghost:hover { --btn-bg: var(--surface-3); --btn-bd: transparent; }

.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.9375rem; border-radius: var(--radius-s); }
.btn-lg { min-height: 56px; padding: 14px 24px; font-size: 1.125rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.link-btn {
  display: inline;
  padding: 0;
  text-align: left;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--signal);
}
.link-btn:hover { color: var(--signal-ink); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  margin-right: auto;
  border-radius: 6px;
}
.brand img { display: block; width: 118px; height: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
}
.main-nav a:hover { background: var(--surface-3); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.9063rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.credits-badge:hover { border-color: var(--ink); color: var(--ink); }
.credits-badge .ico { color: var(--signal-ink); }
.credits-badge.is-empty .ico { color: var(--steel); }

.header-cta { display: none; }

/* Startseite: Handlungsknopf schon ab 360 px im Header (ux:F3); darunter zeigt das Badge nur Symbol bzw. Zahl */
@media (min-width: 360px) {
  .header-cta[data-start] { display: inline-flex; white-space: nowrap; }
}
@media (max-width: 419px) {
  .header-inner { gap: 8px; }
  .credits-badge { padding-inline: 9px; gap: 4px; }
  .credits-badge.is-guest .badge-label,
  .credits-badge .badge-unit {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
}
@media (max-width: 379px) {
  .brand img { width: 104px; }
  .header-cta[data-start] { padding-inline: 10px; }
}

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .brand img { width: 132px; }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .main-nav { display: block; margin-right: 8px; }
  .header-inner { gap: 16px; }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-title {
  font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}
.section-lead { color: var(--ink-2); font-size: 1.125rem; max-width: 62ch; }

/* ---------- Konfigurator (Hero) ---------- */

.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "stage" "steps";
  gap: 20px;
  padding-top: clamp(20px, 4vw, 48px);
  padding-bottom: 40px;
}
.cfg-intro { grid-area: intro; display: grid; gap: 16px; }
.cfg-stage { grid-area: stage; min-width: 0; }
.cfg-steps { grid-area: steps; min-width: 0; }

.hero-title {
  font-size: clamp(2.125rem, 1.25rem + 3.7vw, 3.625rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.0;
  text-wrap: balance;
  max-width: 15ch;
}

.hero-lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  max-width: 52ch;
}
@media (max-width: 599px) {
  .cfg-intro { gap: 12px; }
  .hero-lead { line-height: 1.5; }
  .trust-list { font-size: 0.875rem; gap: 4px 14px; }
  /* „In rund 30 Sekunden“ steht schon im Lead – mobil eine Zeile sparen */
  .trust-list li.is-desk { display: none; }
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink-2);
}
.trust-list li { display: inline-flex; align-items: center; gap: 6px; }
.trust-list .ico { color: var(--ok); width: 1.1em; height: 1.1em; }

@media (min-width: 1000px) {
  .cfg {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro stage" "steps stage";
    column-gap: clamp(32px, 4vw, 56px);
    row-gap: 28px;
    padding-top: clamp(28px, 4vw, 56px);
  }
  .cfg-stage {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
  }
  .hero-title { font-size: clamp(2.5rem, 1rem + 3.2vw, 3.625rem); }
}

/* ---------- Bühne (Live-Vorschau) ---------- */

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 14px 12px;
  border-radius: var(--radius-l);
  background-color: var(--stage);
  background-image:
    linear-gradient(var(--stage-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid-major) 1px, transparent 1px),
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: var(--stage-ink);
}
@media (min-width: 600px) {
  .stage { padding: 20px 22px 16px; border-radius: var(--radius-xl); }
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 620;
  color: var(--stage-muted);
}
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--stage-ink);
}
.stage-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 91, 20, 0.22);
}
.stage-tag { white-space: nowrap; }
.stage-view { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stage-canvas {
  position: relative;
  aspect-ratio: 1000 / 560;
  width: 100%;
  margin: 6px auto 0;
}
.stage-canvas::after {
  /* Bodenschatten */
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 3%;
  height: 9%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(4px);
}
.pv-layer { position: absolute; inset: 0; }
.pv-wrap { z-index: 1; }
.pv-bare { z-index: 0; }
.squeegee { z-index: 2; }
.pv-layer > svg { display: block; width: 100%; height: 100%; }

.pv-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--stage-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.pv-fallback .ico { width: 72px; height: 72px; color: var(--stage-ink); opacity: 0.85; }

/* Einmaliger Moment: die Folie wird aufgezogen (Rakel-Wisch) */
.pv-wrap.is-applying { animation: wrap-reveal 1.5s cubic-bezier(0.65, 0, 0.35, 1) both; }
.squeegee {
  position: absolute;
  top: -2%; bottom: -2%;
  left: 0; width: 100%;
  pointer-events: none;
  animation: squeegee-sweep 1.5s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.squeegee::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -3px;
  width: 6px;
  border-radius: 3px;
  background: var(--signal);
  box-shadow: 0 0 24px 4px rgba(255, 91, 20, 0.45);
}
@keyframes wrap-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes squeegee-sweep {
  0% { transform: translateX(0); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.reg {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 100% 1.5px no-repeat;
  opacity: 0.85;
}
.reg::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--signal);
  border-radius: 50%;
}
.reg-tl { top: 10px; left: 10px; }
.reg-tr { top: 10px; right: 10px; }
.reg-bl { bottom: 10px; left: 10px; }
.reg-br { bottom: 10px; right: 10px; }
.stage .stage-top { padding-inline: 20px; }

.stage-dim {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 4px 6% 0;
  padding-top: 10px;
  font-size: 0.8125rem;
  color: var(--stage-muted);
}
.stage-dim::before {
  /* Maßlinie mit Endstrichen */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 9px;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  opacity: 0.6;
}
.stage-dim span {
  position: relative;
  top: -14px;
  padding: 0 10px;
  background: var(--stage);
  border-radius: 4px;
  font-weight: 620;
  color: var(--stage-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: -4px;
  padding-inline: 20px;
  font-size: 0.8125rem;
  color: var(--stage-muted);
}
.stage-foot strong { color: var(--stage-ink); font-weight: 650; }
#stage-coverage { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@media (max-width: 599px) {
  .stage .stage-top, .stage-foot { padding-inline: 14px; }
  .stage-top, .stage-foot { font-size: 0.8125rem; }
  /* Mobil die Bühne verkleinern statt verschieben, damit Website-Feld und Knopf früher ins Bild kommen (ux:F3) */
  .stage { padding: 10px 10px 8px; }
  .stage .stage-top, .stage-foot { padding-inline: 22px; }
  .stage-canvas { width: 84%; margin-top: 0; }
  .stage-dim { margin-top: 0; padding-top: 8px; }
  .stage-foot { margin-top: -8px; }
  .reg-tl, .reg-tr { top: 6px; }
  .reg-tl, .reg-bl { left: 6px; }
  .reg-tr, .reg-br { right: 6px; }
  .reg-bl, .reg-br { bottom: 6px; }
}

/* Mini-Vorschau: auf schmalen Bildschirmen unter dem Header, sobald die Bühne aus dem Blick ist */
.mini-stage {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-h);
  z-index: 45;
  background: var(--stage);
  color: var(--stage-ink);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.6);
  animation: mini-in 0.22s ease both;
}
.mini-inner { display: flex; align-items: center; gap: 12px; padding-block: 6px; }
.mini-art { position: relative; flex: none; width: 128px; aspect-ratio: 1000 / 560; }
.mini-art > svg { display: block; width: 100%; height: 100%; }
.mini-text { display: grid; min-width: 0; flex: 1; font-size: 0.8125rem; line-height: 1.3; color: var(--stage-muted); }
.mini-text strong { color: var(--stage-ink); font-weight: 680; white-space: nowrap; }
.mini-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { --btn-bg: transparent; --btn-fg: var(--stage-ink); --btn-bd: rgba(255, 255, 255, 0.28); flex: none; }
.mini-btn:hover { --btn-bd: rgba(255, 255, 255, 0.6); --btn-bg: rgba(255, 255, 255, 0.06); }
.mini-btn:focus-visible { outline-color: var(--stage-ink); }
@keyframes mini-in { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1000px) {
  .mini-stage { display: none !important; }
}
@media (max-width: 380px) {
  .mini-art { width: 104px; }
}

/* ---------- Schritte ---------- */

.steps { list-style: none; display: grid; gap: 12px; }
.step-h { margin: 0; font: inherit; color: inherit; }
.stack-l { display: grid; gap: 22px; min-width: 0; }

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-card); }

.step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-l);
  background: none;
  text-align: left;
}
@media (min-width: 600px) {
  .step-head { padding: 16px 20px; }
}
.step-head:focus-visible { outline-offset: -3px; }

.step-num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.step-num .ico { display: none; width: 18px; height: 18px; }
.step.is-done .step-num { background: var(--anthracite); border-color: var(--anthracite); color: var(--on-anthracite); }
.step.is-done:not(.is-open) .step-num span { display: none; }
.step.is-done:not(.is-open) .step-num .ico { display: block; }
.step.is-open .step-num { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }

.step-text { display: grid; min-width: 0; }
.step-title { font-size: 1.125rem; font-weight: 760; letter-spacing: -0.01em; }
.step-summary {
  color: var(--steel);
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step.is-open .step-summary { display: none; }

.step-chevron { color: var(--steel); transition: transform 0.2s ease; }
.step.is-open .step-chevron { transform: rotate(180deg); }

.step-body {
  display: grid;
  gap: 20px;
  padding: 2px 16px 20px;
}
@media (min-width: 600px) {
  .step-body { padding: 2px 20px 22px 70px; }
}
.step-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.group { display: grid; gap: 10px; min-width: 0; border: 0; margin: 0; padding: 0; }
.group-title { font-weight: 720; font-size: 1rem; padding: 0; }
.group-hint { color: var(--steel); font-size: 0.9375rem; }
.slogan-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.slogan-suggest q { font-style: italic; overflow-wrap: anywhere; }

/* ---------- Formulare ---------- */

.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-weight: 650; font-size: 0.9375rem; }
.field-label .muted { font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--steel); opacity: 0.85; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.textarea { min-height: 96px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field-row { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .field-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.counter { justify-self: end; font-size: 0.8125rem; color: var(--steel); font-variant-numeric: tabular-nums; }

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.url-input-wrap { position: relative; }
.url-input-wrap .ico {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--steel);
  pointer-events: none;
}
.url-input-wrap .input { padding-left: 44px; min-height: 52px; font-size: 1.0625rem; }
.url-row .btn { min-height: 52px; }
@media (min-width: 480px) {
  .url-row { grid-template-columns: minmax(0, 1fr) auto; }
}

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.form-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--err-soft);
  color: var(--err);
  font-size: 0.9375rem;
  font-weight: 560;
}
.form-error .ico { margin-top: 2px; }
.form-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.form-note .ico { margin-top: 2px; color: var(--steel); }
.form-note.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-note.is-ok .ico { color: var(--ok); }

/* ---------- Analyse-Ladeanimation ---------- */

.scan {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.scan-text { display: flex; align-items: center; gap: 10px; font-weight: 620; }
.scan-text::before {
  content: "";
  width: 16px; height: 16px;
  border: 2.5px solid var(--signal);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}
.scan-bar {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.scan-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 40%;
  border-radius: 99px;
  background: var(--signal);
  animation: scan-move 1.4s ease-in-out infinite;
}
@keyframes scan-move { to { left: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auswahl-Kacheln (gemeinsames Muster: Label + versteckte native Eingabe) ---------- */

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.opt:hover { border-color: var(--line-strong); background: var(--surface-2); }
.opt:has(.opt-input:checked) {
  border-color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.opt:has(.opt-input:checked)::after {
  /* abgezogene Folienecke */
  content: "";
  position: absolute;
  top: -1.5px; right: -1.5px;
  width: 18px; height: 18px;
  border-top-right-radius: var(--radius-m);
  background: linear-gradient(225deg, var(--signal) 50%, transparent 50%);
}
.opt:has(.opt-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt:has(.opt-input:disabled) { opacity: 0.45; cursor: not-allowed; }

.opt-label { font-weight: 640; line-height: 1.25; min-width: 0; }
.opt-desc { display: block; color: var(--steel); font-size: 0.875rem; font-weight: 450; line-height: 1.4; margin-top: 2px; }
.opt-meta { display: block; color: var(--ink-2); font-size: 0.8125rem; font-weight: 620; margin-top: 6px; font-variant-numeric: tabular-nums; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
  gap: 8px;
}

/* Branchen */
.industry-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search-wrap { position: relative; }
.search-wrap .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.search-wrap .input { padding-left: 40px; }
.industry-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.industry-grid .opt { min-height: 50px; font-size: 0.9375rem; padding-inline: 10px; gap: 8px; }
.industry-grid .ico { width: 22px; height: 22px; color: var(--ink-2); }
.opt:has(.opt-input:checked) .ico { color: var(--ink); }
.empty-hint { padding: 10px 2px; color: var(--steel); font-size: 0.9375rem; }

/* Fahrzeugtypen */
.vtype-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.vtype {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 10px 10px;
}
.vtype-art {
  display: block;
  aspect-ratio: 1000 / 560;
  width: 100%;
  border-radius: 8px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.vtype-art > svg { display: block; width: 100%; height: 100%; }
.vtype-art > .ico {
  position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  color: var(--ink-2);
}
.vtype .opt-label { font-size: 0.9375rem; }
.vtype .opt-desc { font-size: 0.8125rem; }

/* Segment-Kacheln (Umfang, Stil, Ansicht) */
.seg-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.seg-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
.seg { align-items: flex-start; flex-direction: column; gap: 0; padding: 12px 14px; }

/* Leistungs-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .ico { display: none; width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink-2); }
.chip:has(.opt-input:checked) { background: var(--anthracite); border-color: var(--anthracite); color: var(--on-anthracite); }
.chip:has(.opt-input:checked) .ico { display: inline-block; }
.chip:has(.opt-input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:has(.opt-input:disabled) { opacity: 0.45; cursor: not-allowed; }
.chip-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* Logo-Kandidaten */
.logo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
.logo-opt { flex-direction: column; align-items: stretch; padding: 8px; gap: 6px; }
.logo-art {
  display: grid;
  place-items: center;
  height: 76px;
  padding: 8px;
  border-radius: 8px;
  background:
    conic-gradient(var(--surface-3) 25%, var(--surface) 0 50%, var(--surface-3) 0 75%, var(--surface) 0) 0 0 / 14px 14px;
}
.logo-art img { max-height: 60px; max-width: 100%; object-fit: contain; }
.logo-opt .opt-desc { text-align: center; margin: 0; }
.logo-opt.is-upload { justify-content: center; border-style: dashed; color: var(--ink-2); }
.logo-opt.is-upload .logo-art { background: none; color: var(--ink-2); }
.logo-opt.is-upload .ico { width: 28px; height: 28px; }

/* Farben */
.colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.color-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.color-field.is-target { border-color: var(--ink); }
.color-field .field-label { font-size: 0.8438rem; }
.color-swatch {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.color-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-swatch::-moz-color-swatch { border: 0; border-radius: 7px; }
.color-hex {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 34px; height: 34px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--line-strong);
}
.swatch:hover { box-shadow: 0 0 0 2px var(--ink); }

/* Fahrzeugfarben */
.dots { display: flex; flex-wrap: wrap; gap: 10px; }
.dot { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.dot-color {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.12), inset 0 4px 8px rgba(255, 255, 255, 0.35);
}
.dot:has(.opt-input:checked) .dot-color { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--ink); }
.dot:has(.opt-input:focus-visible) .dot-color { outline: 3px solid var(--focus); outline-offset: 5px; }
.dot-name { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }

/* Upload */
.upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  cursor: pointer;
  font-weight: 620;
}
.upload:hover { border-color: var(--ink-2); background: var(--surface-2); }
.upload:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload .ico { color: var(--ink-2); width: 24px; height: 24px; }
.upload small { display: block; color: var(--steel); font-weight: 450; font-size: 0.8438rem; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload.is-busy { opacity: 0.6; pointer-events: none; }
.upload.is-busy .ico { animation: spin 1s linear infinite; }

.thumb-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.thumb-row img { width: 84px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--surface-3); }

.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--steel);
  font-size: 0.875rem;
  font-weight: 600;
}
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Zusammenfassung Schritt 5 */
.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.summary-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.summary-row:first-child { border-top: 0; }
.summary-row dt { color: var(--steel); font-weight: 600; }
.summary-row dd { margin: 0; font-weight: 620; overflow-wrap: anywhere; }
.summary-row.is-missing dd { color: var(--err); }

.generate-box { display: grid; gap: 12px; }
.generate-note { color: var(--steel); font-size: 0.9063rem; }

/* ---------- Fortschritt ---------- */

.progress {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-title { font-weight: 760; font-size: 1.0625rem; }
.progress-time { color: var(--steel); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-steps { list-style: none; display: grid; gap: 8px; }
.progress-steps li { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: 0.9688rem; }
.progress-steps .pdot {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
}
.progress-steps .pdot .ico { width: 13px; height: 13px; display: none; }
.progress-steps li.is-active { color: var(--ink); font-weight: 650; }
.progress-steps li.is-active .pdot { border-color: var(--signal); background: var(--signal-soft); }
.progress-steps li.is-active .pdot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.2s ease-in-out infinite;
}
.progress-steps li.is-done { color: var(--ink-2); }
.progress-steps li.is-done .pdot { background: var(--anthracite); border-color: var(--anthracite); color: var(--on-anthracite); }
.progress-steps li.is-done .pdot .ico { display: block; }
.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.progress-bar span {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 99px;
  background: var(--signal);
  transition: width 0.9s linear;
}
.progress-msg { font-size: 0.9375rem; color: var(--ink-2); }
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.6; } }

/* ---------- Ergebnis ---------- */

.result { padding-block: 8px 56px; }
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.result-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) {
  .result-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
}

.result-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--stage);
  color: var(--stage-ink);
}
.result-figure img { display: block; width: 100%; height: auto; }
.result-figure .pv-layer { position: relative; aspect-ratio: 1000 / 560; }
.result-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  padding: 12px 18px 14px;
  font-size: 0.875rem;
  color: var(--stage-muted);
}
.result-figure figcaption strong { color: var(--stage-ink); }
.result-figure figcaption .ai-note { flex-basis: 100%; font-size: 0.8125rem; }
.demo-note {
  margin: 14px 14px 0;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: rgba(255, 91, 20, 0.16);
  color: var(--stage-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8438rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge .ico { width: 15px; height: 15px; }
.badge-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.badge-signal { background: var(--signal-soft); border-color: transparent; color: var(--signal-ink); }

.actions { display: grid; gap: 8px; align-content: start; }
.actions-title { font-weight: 760; font-size: 1rem; margin: 6px 0 2px; }
.action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-weight: 650;
}
.action:hover { border-color: var(--ink-2); color: var(--ink); }
.action[aria-expanded="true"] { border-color: var(--ink); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.action > .ico { color: var(--ink-2); width: 22px; height: 22px; }
.action small { display: block; color: var(--steel); font-weight: 450; font-size: 0.8438rem; }
.action-cost { color: var(--steel); font-size: 0.8125rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.action.is-primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.action.is-primary > .ico, .action.is-primary small, .action.is-primary .action-cost { color: var(--on-signal); }
.action.is-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.action-panel {
  display: grid;
  gap: 10px;
  margin-top: -9px;
  padding: 12px 14px 14px;
  border: 1.5px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  background: var(--surface);
}

.issues { margin: 6px 0 0 18px; color: var(--warn); font-size: 0.9375rem; }

.crosssell {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.crosssell h3 { font-size: 1.0625rem; }
.crosssell p { color: var(--ink-2); font-size: 0.9688rem; max-width: 70ch; }
.crosssell a { font-weight: 650; justify-self: start; }

/* Verlauf */
.history { margin-top: 44px; }
.history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.history-head h3 { font-size: 1.25rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; list-style: none; }
.gallery-item {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  text-align: left;
}
.gallery-item:hover { border-color: var(--ink-2); }
.gallery-item.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gallery-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--stage);
  color: var(--stage-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.gallery-art img { width: 100%; height: 100%; object-fit: cover; }
.gallery-meta { display: grid; padding: 8px 10px 10px; font-size: 0.8438rem; }
.gallery-meta strong { font-weight: 680; }
.gallery-meta span { color: var(--steel); }

/* ---------- So funktioniert's ---------- */

.how { display: grid; gap: 14px; list-style: none; }
@media (min-width: 860px) {
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
}
.how-step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-l);
}
@media (min-width: 860px) {
  .how-step { border-radius: 0; }
  .how-step + .how-step { border-left: 0; }
  .how-step:first-child { border-radius: var(--radius-l) 0 0 var(--radius-l); }
  .how-step:last-child { border-radius: 0 var(--radius-l) var(--radius-l) 0; }
}
.how-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--anthracite);
  color: var(--on-anthracite);
  font-weight: 800;
  font-size: 1.0625rem;
}
.how-step h3 { font-size: 1.1875rem; font-weight: 760; }
.how-step p { color: var(--ink-2); font-size: 0.9688rem; }

/* ---------- Beispiele ---------- */

.examples { display: grid; gap: 16px; list-style: none; }
@media (min-width: 760px) {
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
.example { display: grid; gap: 12px; margin: 0; }
.example-art {
  position: relative;
  aspect-ratio: 1000 / 600;
  padding: 4% 5% 2%;
  border-radius: var(--radius-l);
  background-color: var(--stage);
  background-image:
    linear-gradient(var(--stage-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px);
  background-size: 20px 20px;
}
.example-art .pv-layer { position: relative; inset: auto; aspect-ratio: 1000 / 560; }
.example-art .pv-fallback { position: absolute; }
.example figcaption { display: grid; gap: 2px; }
.example-name { font-weight: 760; font-size: 1.0625rem; }
.example-meta { color: var(--steel); font-size: 0.9375rem; }
.examples-note { margin-top: 18px; color: var(--steel); font-size: 0.9375rem; }

/* ---------- Preise ---------- */

.packs { display: grid; gap: 12px; list-style: none; }
@media (min-width: 640px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pack {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.pack-name { font-weight: 720; font-size: 1.0625rem; color: inherit; }
.pack-price {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pack-credits { font-weight: 650; }
.pack-per { color: var(--steel); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pack .btn { margin-top: 12px; }
.pack.is-highlight { background: var(--anthracite); border-color: var(--anthracite); color: var(--on-anthracite); }
.pack.is-highlight .pack-per { color: #b7c1c8; }
.pack-flag {
  position: absolute;
  top: -1px; right: 18px;
  padding: 4px 10px 6px;
  border-radius: 0 0 8px 8px;
  background: var(--signal);
  color: var(--on-signal);
  font-size: 0.8125rem;
  font-weight: 720;
}
.packs-loading { color: var(--steel); }

.price-facts {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 860px) {
  .price-facts { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
}
.calc {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.calc h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.calc-rows { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9688rem; }
.calc-row.is-total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 760; }
.calc-row span:last-child { flex: none; white-space: nowrap; text-align: right; }
.calc-note { color: var(--steel); font-size: 0.8438rem; text-align: right; }
.fact-list { display: grid; gap: 10px; list-style: none; align-content: start; }
.fact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 0.9688rem; }
.fact-list .ico { color: var(--ok); margin-top: 3px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0938rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--steel); transition: transform 0.2s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq summary:focus-visible { outline-offset: 0; }
.faq-body { display: grid; gap: 10px; padding: 0 2px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 44px 36px;
  background: var(--anthracite);
  color: #c9d1d6;
  font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0c0f11; }
  .stage, .example-art, .result-figure, .notfound-art { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-word { color: #ffffff; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
.footer-brand p { max-width: 42ch; }
.footer-title { color: #ffffff; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }
.footer-links { display: grid; gap: 6px; list-style: none; }
.site-footer a { color: #e8ecef; text-decoration-color: rgba(255, 91, 20, 0.7); }
.site-footer a:hover { color: #ffffff; }
.site-footer :focus-visible { outline-color: #ffffff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9aa6ae;
  font-size: 0.875rem;
}

/* ---------- Dialoge ---------- */

.dlg {
  width: min(560px, calc(100vw - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  overflow: auto;
  overscroll-behavior: contain;
}
.dlg.is-wide { width: min(880px, calc(100vw - 20px)); }
.dlg::backdrop { background: rgba(12, 16, 19, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.dlg-inner { position: relative; display: grid; gap: 18px; padding: 24px 20px 22px; }
@media (min-width: 600px) {
  .dlg-inner { padding: 30px 30px 26px; }
}
.dlg-close { position: absolute; top: 10px; right: 10px; }
.dlg-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -0.022em; padding-right: 36px; text-wrap: balance; }
.dlg-lead { color: var(--ink-2); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dlg-actions .btn-primary { flex: 1 1 220px; }
.dlg-fine { color: var(--steel); font-size: 0.8438rem; }
.dlg-fine a { color: inherit; }

.code-input {
  max-width: 300px;
  min-height: 64px;
  padding: 8px 8px 8px 0.6em;
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: 0.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.code-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9375rem; }
.dev-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.9375rem;
  font-weight: 600;
}
.dev-code strong { letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }

.verified {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 650;
}

/* Paketwahl im Kauf-Dialog */
.pack-options { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .pack-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pack-opt { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px; }
.pack-opt-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pack-opt-price { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pack-opt-flag { color: var(--signal-ink); font-size: 0.8125rem; font-weight: 720; }
.pay-methods { color: var(--steel); font-size: 0.875rem; }

/* ---------- Toast & Live-Status ---------- */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: var(--anthracite);
  color: var(--on-anthracite);
  box-shadow: var(--shadow-pop);
  font-size: 0.9688rem;
  font-weight: 560;
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}
.toast .ico { margin-top: 2px; }
.toast.is-ok .ico { color: #6ad6a0; }
.toast.is-err .ico { color: #ff9a8f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 404 & einfache Unterseiten ---------- */

.page { padding-block: clamp(40px, 7vw, 88px); }
.page-title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.prose { display: grid; gap: 14px; max-width: 70ch; color: var(--ink-2); }
.prose h2 { font-size: 1.375rem; margin-top: 18px; color: var(--ink); }
.prose h3 { font-size: 1.125rem; margin-top: 8px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 6px; }

.notfound { display: grid; gap: 22px; justify-items: start; max-width: 720px; }
.notfound-art {
  width: min(100%, 420px);
  aspect-ratio: 420 / 200;
  border-radius: var(--radius-l);
  background-color: var(--stage);
  background-image:
    linear-gradient(var(--stage-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid-major) 1px, transparent 1px);
  background-size: 28px 28px;
  display: grid;
  place-items: center;
  color: var(--stage-ink);
}
.notfound-art svg { width: 70%; height: auto; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .squeegee { display: none; }
}

@media print {
  .site-header, .site-footer, .cfg-stage, .toast-host { display: none !important; }
  body { background: #fff; color: #000; }
}
