/* CheckButler Werkstatt-CI: Prüfplaketten-Gelb als Akzent, warmes Papier,
   Barlow (OFL) lokal eingebettet. Farben entsprechen apps/web/src/style.css. */
@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  color-scheme: light;
  --canvas: #f3f1ec;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #4f4b44;
  --border: #8a8478;
  --line: #d9d4ca;
  --soft: #e9e5dc;
  --accent: #f2b705;
  --accent-hover: #dca600;
  --accent-ink: #1b1a17;
  --bar: #1b1a17;
  --bar-ink: #f3f1ec;
  --bar-muted: #c9c3b6;
  --bar-line: #4a4740;
  --ok: #17613f;
  --ok-bg: #e4f3e9;
  --warn: #805300;
  --warn-bg: #fff1cc;
  --danger: #ac2b22;
  --danger-bg: #fce9e6;
  --info: #195d9b;
  --info-bg: #e6f0fc;
  --green-tint: #e8f4ec;
  --blue-tint: #eaf2fb;
  --blue-line: #c9dcf1;
  --radius: 0.375rem;
  --gap: clamp(4rem, 8vw, 6.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #141311;
    --surface: #1f1d1a;
    --ink: #f3f1ec;
    --muted: #c9c3b6;
    --border: #8f887b;
    --line: #3a3731;
    --soft: #2a2824;
    --bar: #0d0c0b;
    --ok: #8bdeb2;
    --ok-bg: #173b2a;
    --warn: #ffd477;
    --warn-bg: #493710;
    --danger: #ffaba0;
    --danger-bg: #4a211e;
    --info: #99c9ff;
    --info-bg: #142e49;
    --green-tint: #142c20;
    --blue-tint: #13263a;
    --blue-line: #23405e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  overflow-wrap: break-word;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex-shrink: 0;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0.5rem;
}
.eyebrow {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

/* Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: var(--radius);
  background: var(--accent);
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-cta {
  min-height: 2.75rem !important;
}

/* Schaltflächen */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.button:hover {
  background: var(--soft);
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.05em;
}
.lead {
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.65;
  max-width: 36rem;
}
.hero-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Illustration: Inventarkarte, drei Beteiligte, Prüfplakette */
.visual {
  position: relative;
  min-width: 0;
  padding: 1.5rem 0 6rem 1.5rem;
}
.visual::before {
  content: "";
  position: absolute;
  inset: 0 2rem 3rem 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px;
  opacity: 0.55;
  z-index: -1;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px -24px rgb(27 26 23 / 0.45);
}
.inventory {
  padding: 1.25rem;
  margin-right: 3.5rem;
}
.inventory header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}
.inventory header strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
}
.inventory header span {
  color: var(--muted);
  font-size: 0.875rem;
}
.inventory ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inventory li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.inventory li:last-child {
  border-bottom: 0;
}
.inventory li .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
}
.inventory small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status.ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.status.warn {
  color: var(--warn);
  background: var(--warn-bg);
}
.status.danger {
  color: var(--danger);
  background: var(--danger-bg);
}
.status.info {
  color: var(--info);
  background: var(--info-bg);
}
.parties {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.parties span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.parties .icon {
  width: 1rem;
  height: 1rem;
}
.plakette {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9.5rem;
  padding: 0.875rem;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.75rem;
  transform: rotate(4deg);
  box-shadow: 0 18px 40px -20px rgb(27 26 23 / 0.6);
}
.plakette svg {
  width: 2.5rem;
  height: 2.5rem;
}
.plakette strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.1;
}
.plakette small {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Vorteilsleiste */
.proof {
  background: var(--bar);
  color: var(--bar-ink);
}
.proof .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.proof span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.proof .icon {
  color: var(--accent);
}

/* Abschnitte */
section.block {
  padding: var(--gap) 0 0;
}
.heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: 2.75rem;
}
.heading h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
}
.heading > p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
}

/* Verbundenes Inventar */
.connected {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.party {
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.party .badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--soft);
  margin-bottom: 1.25rem;
}
.party.center {
  background: var(--bar);
  color: var(--bar-ink);
  border-color: var(--bar);
}
.party.center .badge {
  background: var(--accent);
  color: var(--accent-ink);
}
.party.center p {
  color: var(--bar-muted);
}
.party h3 {
  font-size: 1.625rem;
  margin-bottom: 0.625rem;
}
.party p {
  color: var(--muted);
}
.party ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
}
.party li::before {
  content: "✓";
  font-weight: 700;
  margin-right: 0.5rem;
  color: var(--accent-hover);
}
.party.center li::before {
  color: var(--accent);
}
.link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  color: var(--border);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Prüfarten */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.panel {
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.panel > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.panel.fire {
  background: var(--soft);
}
.kinds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.kinds li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
}
.panel.fire .kinds li {
  background: var(--surface);
}
.kinds small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8125rem;
  text-align: right;
}
.footnote {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 1.25rem;
}

/* Nachweisfest */
.trust {
  background: var(--bar);
  color: var(--bar-ink);
  border-radius: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.trust h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  margin-bottom: 1rem;
}
.trust .eyebrow,
.trust > div > p {
  color: var(--bar-muted);
}
.trust ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  counter-reset: t;
}
.trust li {
  counter-increment: t;
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}
.trust li::before {
  content: "0" counter(t);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}
.trust li strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.trust li span {
  color: var(--bar-muted);
  font-size: 0.9375rem;
}

/* Funktionen */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 1.75rem;
}
.feature .badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 1.125rem;
}
.feature h3 {
  font-size: 1.4375rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--muted);
  font-size: 1rem;
}

/* Ablauf */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.steps li {
  padding: 1.75rem;
  border-top: 4px solid var(--ink);
  background: var(--surface);
  border-radius: 0 0 0.75rem 0.75rem;
}
.steps span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1;
}
.steps h3 {
  font-size: 1.625rem;
  margin: 0.75rem 0 0.5rem;
}
.steps p {
  color: var(--muted);
}

/* Preise */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.plan.fachbetriebe {
  border-top: 6px solid var(--accent);
}
.plan.eigen {
  border-top: 6px solid var(--info);
  background:
    linear-gradient(var(--blue-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--blue-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--blue-tint);
}
.plan.unternehmen {
  border-top: 6px solid var(--ok);
  background: var(--green-tint);
}
.plan h3 {
  font-size: 1.75rem;
  margin-bottom: 0.375rem;
}
.plan .who {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.price {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
}
.price-unit {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.375rem 0 1.25rem;
}
.tiers {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tiers div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--blue-line);
}
.tiers b {
  font-family: var(--font-display);
  font-size: 1.375rem;
}
.tiers small {
  color: var(--muted);
}
.plan ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.plan li::before {
  content: "✓";
  font-weight: 700;
  margin-right: 0.5rem;
}
.plan .button {
  margin-top: auto;
}

/* FAQ */
.faq {
  max-width: 52rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--muted);
  padding: 0 0 1.25rem;
  max-width: 46rem;
}

/* Abschluss */
.cta {
  margin-top: var(--gap);
  background: var(--accent);
  color: var(--accent-ink);
}
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.cta h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  margin-bottom: 0.75rem;
}
.cta p {
  max-width: 38rem;
  font-size: 1.125rem;
}
.cta .button {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  flex-shrink: 0;
}
.cta .button:hover {
  background: #000;
}
@media (prefers-color-scheme: dark) {
  .cta .button {
    background: #1b1a17;
    color: #f3f1ec;
    border-color: #1b1a17;
  }
}

/* Fußzeile */
.site-footer {
  background: var(--bar);
  color: var(--bar-ink);
  padding: 3rem 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.site-footer strong span {
  color: var(--accent);
}
.site-footer p {
  color: var(--bar-muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
}
.site-footer nav a {
  text-decoration: none;
  font-weight: 600;
}
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Rechtstexte */
.legal {
  max-width: 48rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 var(--gap);
}
.legal h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}
.legal h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p + p {
  margin-top: 0.75rem;
}
.placeholder {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0 0.3em;
  border-radius: 0.2em;
  font-weight: 600;
}
.notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Responsiv */
@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .hero,
  .heading,
  .split,
  .trust {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 3rem;
  }
  .connected {
    grid-template-columns: 1fr;
  }
  .link {
    width: auto;
    height: 2.25rem;
    transform: rotate(90deg);
  }
  .features,
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .proof .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .features,
  .plans,
  .steps,
  .trust ol,
  .proof .wrap {
    grid-template-columns: 1fr;
  }
  .header-cta {
    padding: 0.5rem 0.875rem !important;
    gap: 0.5rem !important;
  }
  .inventory {
    margin-right: 0;
  }
  .visual {
    padding-left: 0.75rem;
    padding-bottom: 8.5rem;
  }
  .visual::before {
    bottom: 5rem;
  }
  .plakette {
    width: 8.5rem;
    right: 0.5rem;
  }
  .cta .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-color-scheme: dark) {
  .party.center {
    border-color: var(--accent);
  }
  .trust {
    border: 1px solid var(--line);
  }
}
.sprite {
  position: absolute;
}
.faq-title {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  margin-bottom: 1.5rem;
}

/* Vorregistrierung */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.prereg {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--gap);
}
.prereg-intro {
  position: sticky;
  top: 6.5rem;
}
.prereg-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
}
.prereg-steps {
  list-style: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.prereg-steps li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.45rem 0;
  color: var(--muted);
  font-weight: 600;
}
.prereg-steps li::before {
  content: attr(data-step-label);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-size: 1rem;
  flex-shrink: 0;
}
.prereg-steps li.active {
  color: var(--ink);
}
.prereg-steps li.active::before {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.prereg-steps li.done::before {
  content: "✓";
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}
.prereg-note {
  color: var(--muted);
  font-size: 0.9375rem;
}
.prereg-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
}
.progress {
  height: 6px;
  margin: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 1.75rem;
  background: var(--soft);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s;
}
.step-count {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.step legend {
  padding: 0;
  margin-bottom: 1.5rem;
}
.step legend span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  outline: none;
}
.field {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  margin-bottom: 1.125rem;
}
.field small,
.group-hint {
  color: var(--muted);
  font-weight: 500;
}
.group-hint {
  font-size: 0.9375rem;
  margin: -0.25rem 0 1rem;
}
.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  min-height: 3.25rem;
  width: 100%;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: var(--ink);
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.group {
  margin-bottom: 1.25rem;
}
.group-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.choices.stacked,
.choices.cards {
  display: grid;
}
.choices.cards {
  grid-template-columns: 1fr 1fr;
}
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  cursor: pointer;
  font-weight: 500;
  min-height: 3rem;
  transition: background 0.15s, border-color 0.15s;
}
.choice:hover {
  background: var(--soft);
}
.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.choice:has(input:checked) {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.choice-card span {
  display: grid;
  gap: 0.125rem;
}
.choice-card small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.consent {
  font-size: 0.9375rem;
  margin-top: 1.5rem;
}
.field-error,
.form-error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9375rem;
  margin: -0.5rem 0 1rem;
}
.form-error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--danger-bg);
  border-radius: var(--radius);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.step-actions .button-primary {
  margin-left: auto;
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.summary {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary div {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.summary div:last-child {
  border-bottom: 0;
}
.summary dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9375rem;
}
.summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.link-button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.done,
.prereg-confirm {
  text-align: left;
  outline: none;
}
.done h2,
.prereg-confirm h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}
.done p + p {
  margin-top: 1rem;
}
.done .muted {
  color: var(--muted);
  font-size: 0.9375rem;
}
.done-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 1.5rem;
}
.done-mark svg {
  width: 2rem;
  height: 2rem;
}
.prereg-confirm {
  max-width: 40rem;
  margin: clamp(2.5rem, 8vw, 6rem) auto var(--gap);
  padding: clamp(1.5rem, 5vw, 3rem);
}
.prereg-confirm > div {
  outline: none;
}
.prereg-confirm .lead {
  margin-bottom: 2rem;
}
@media (max-width: 960px) {
  .prereg {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .prereg-intro {
    position: static;
  }
  .prereg-steps {
    display: none;
  }
}
@media (max-width: 640px) {
  .field-row,
  .choices.cards {
    grid-template-columns: 1fr;
  }
  .summary div {
    grid-template-columns: 1fr auto;
  }
  .summary dd {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
[hidden] {
  display: none !important;
}
button.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 960px) {
  .prereg-note {
    margin-top: 1rem;
  }
}

/* Gerätesymbole der Anwendung (Strich-Icons, apps/web/src/floorplan/icons.ts)
   und moderne Feinheiten: weichere Radien, Schatten, Icon-Kacheln. */
:root {
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgb(27 26 23 / 0.06), 0 2px 8px -2px rgb(27 26 23 / 0.08);
  --shadow-md: 0 2px 4px rgb(27 26 23 / 0.05), 0 16px 36px -18px rgb(27 26 23 / 0.35);
  --accent-tint: color-mix(in srgb, var(--accent) 18%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  :root {
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 18px 40px -20px rgb(0 0 0 / 0.7);
    --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--surface));
  }
}
.dicon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.dicon.tile {
  box-sizing: content-box;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: var(--accent-tint);
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.site-header {
  backdrop-filter: saturate(1.4) blur(10px);
}
.button {
  border-radius: var(--radius);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.button-primary {
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.button-primary:hover {
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .feature:hover,
  .choice-card:hover {
    transform: none;
  }
}
.card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Startseite */
.inventory li {
  padding: 0.6rem 0;
}
.inventory li .dicon.tile {
  width: 1.125rem;
  height: 1.125rem;
}
.kinds li {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kinds li:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.kinds li > span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.kinds li .dicon.tile {
  width: 1.25rem;
  height: 1.25rem;
}
.panel.fire .dicon.tile {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
}
.features {
  gap: 1rem;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.feature .badge {
  border-radius: 0.75rem;
}
.steps li {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

/* Vorregistrierung */
.legend-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 0.875rem;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
.progress {
  height: 8px;
  margin: 0 0 1.75rem;
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-hover), var(--accent));
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prereg-steps {
  gap: 0;
}
.prereg-steps li {
  position: relative;
  padding: 0.55rem 0;
}
.prereg-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: calc(50% + 1.1rem);
  height: calc(100% - 2.2rem);
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.prereg-steps li.done:not(:last-child)::after {
  background: var(--ink);
}
.prereg-steps li.active::before {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent);
}
.choice {
  border-color: var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.choice:hover {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choices:not(.stacked):not(.cards) .choice {
  border-radius: 999px;
  padding-inline: 1rem 1.25rem;
}
.choice-card {
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}
.choice-card:hover {
  transform: translateY(-1px);
}
.choice-card input {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  margin: 0;
}
.choice-card span {
  padding-right: 1.5rem;
}
.choice-card:has(input:checked) .dicon.tile {
  background: var(--ink);
  color: var(--accent);
}
.choice-pill {
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 1.125rem 0.5rem 0.875rem;
  min-height: 2.75rem;
}
.choice-pill input {
  margin: 0;
}
.choice-pill .dicon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Prüfarten als Chips (Zusammenfassung, Verwaltung) */
.kind-chips {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.kind-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.kind-chip .dicon {
  width: 1.125rem;
  height: 1.125rem;
}
.kind-icons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.kind-icons .dicon {
  box-sizing: content-box;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background: var(--accent-tint);
}
.check .dicon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
}
