/* Schriften selbst gehostet (SIL Open Font License), nur latin-Subset. IBM Plex Sans ist eine variable Schrift. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/ibm-plex-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: Schaltschrank-Ästhetik. Anthrazitgrund (RAL 7016), helle Schrift,
   Reinorange (RAL 2004) nur für Warnung und Handlung. Linke Klemmleisten-Beschriftung als Abschnittsmarke. */
:root {
  /* Nur dunkles Schema: RAL 7016 Anthrazit als Grund, RAL 2004 Reinorange als Akzent */
  --bg: #1c2023;
  --panel: #252a2e;
  --ink: #e4e8e7;
  --muted: #9ea8ab;
  --line: #3a4247;
  --accent: #ff6b3d;
  --accent-ink: #1c2023;
  --warn-bg: #4a2519;
  --unk: #e3c55a;
  --unk-bg: #3c3418;
  --ok: #7fc596;
  --ok-bg: #1f3a29;
  --grid: rgba(228,232,231,.05);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  padding-inline: 16px;
}
.wrap { max-width: 1120px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: .82rem; }
.lede { font-size: 1.15rem; max-width: 58ch; color: var(--ink); }
.muted { color: var(--muted); }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border: 3px solid var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px; background: var(--accent); }
.status-chip { font-family: var(--font-mono); font-size: .78rem; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); padding: 6px 10px; }
.status-chip .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--warn-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--font-body); padding: 15px 22px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.hero h1 em { font-style: normal; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts div { padding: 12px 12px 0 0; display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts span { font-size: .85rem; color: var(--muted); line-height: 1.35; }

/* Abgleich-Panel */
.console { background: var(--panel); border: 2px solid var(--ink); min-width: 0; }
.console-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.console-head strong { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.advisory { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; background: var(--warn-bg); }
.advisory .mono { color: var(--muted); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.summary div { padding: 12px 16px; border-right: 1px solid var(--line); }
.summary div:last-child { border-right: 0; }
.summary b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.summary span { font-size: .8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.mono { font-size: .8rem; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: .72rem; padding: 3px 8px; font-weight: 500; }
.pill-hit { background: var(--warn-bg); color: var(--accent); }
.pill-unk { background: var(--unk-bg); color: var(--unk); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.console-foot { padding: 10px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }

/* Abschnitte mit Klemmleisten-Marke */
section.block { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; padding-block: 64px; border-top: 2px solid var(--ink); }
.tag { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.tag b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 700; line-height: 1; }
.block-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.block-body > header { display: flex; flex-direction: column; gap: 14px; max-width: 70ch; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cols3 article { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cols3 article p { color: var(--muted); }
.src { font-size: .82rem; color: var(--muted); }
.src a { color: var(--muted); }

/* Meldekette */
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--panel); }
.chain li { list-style: none; padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.chain li:last-child { border-right: 0; }
.chain ol, ol.chain { margin: 0; padding: 0; }
.chain .when { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 700; color: var(--accent); }
.chain p { font-size: .92rem; color: var(--muted); }

/* Angebot */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); border: 2px solid var(--ink); background: var(--panel); }
.offer > div { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.offer > div:last-child { border-right: 0; }
.offer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.offer li { padding-left: 22px; position: relative; font-size: .95rem; }
.offer li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--ink); }
.offer .out li::before { background: var(--accent); border-color: var(--accent); }
.label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price { background: var(--ink); color: var(--bg); }
.price .label { color: var(--bg); opacity: .7; }
.price b { font-family: var(--font-display); font-size: 3.6rem; line-height: .9; font-weight: 700; font-variant-numeric: tabular-nums; }
.price p { font-size: .9rem; opacity: .85; }
.price .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); justify-content: center; }
.price .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* Zeitleiste */
.timeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.timeline > div { padding: 24px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.timeline .after { border: 2px solid var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; font-size: .95rem; }
.steps time { font-family: var(--font-mono); font-size: .85rem; font-weight: 500; padding-top: 2px; }
.before .steps time { color: var(--muted); }
.after .steps time { color: var(--accent); }

/* Zielgruppe */
.fit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
dl.spec { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
dl.spec dt, dl.spec dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.spec dt { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-right: 24px; padding-top: 13px; }
.notfit { padding: 20px; border: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.notfit p { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 70ch; }

/* Formular */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; background: var(--panel); border: 2px solid var(--ink); padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-bottom: 2px solid var(--ink); padding: 11px 12px; border-radius: 0; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.error { color: var(--accent); font-size: .9rem; }
.result { border: 2px solid var(--accent); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.result pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .82rem; background: var(--bg); padding: 14px; border: 1px solid var(--line); max-height: 280px; overflow: auto; }
.addr { font-family: var(--font-mono); font-weight: 500; user-select: all; }

footer { border-top: 2px solid var(--ink); padding-block: 28px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 24px 48px; }
  section.block { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; }
  .tag { flex-direction: row; align-items: baseline; gap: 12px; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .offer > div:last-child { border-bottom: 0; }
  .fit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .cols3, .chain, .timeline { grid-template-columns: minmax(0, 1fr); }
  .chain li { border-right: 0; border-bottom: 1px solid var(--line); }
  .chain li:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 0 0; }
  .summary b { font-size: 1.6rem; }
  dl.spec { grid-template-columns: minmax(0, 1fr); }
  dl.spec dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--warn-bg); } }
}
.figure-reset { margin: 0; }
.c-accent { color: var(--accent); }
.c-unk { color: var(--unk); }
