@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --card: #fbfaf6;
  --ink: #17150f;
  --ink-2: #3b372e;
  --muted: #6c665a;
  --rule: #d8d1c1;
  --rule-strong: #b9b09c;
  --brand: #ff6100;
  --red: #d42a3c;
  --amber: #e8a100;
  --green: #1d9a57;
  --grey: #8f897c;
  --red-bg: #fbe7e6;
  --amber-bg: #fdf1d6;
  --green-bg: #e2f3e8;
  --grey-bg: #ece9e1;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1120px;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e;
    --paper-2: #191813;
    --card: #1c1a15;
    --ink: #f1ede3;
    --ink-2: #d4cfc2;
    --muted: #9b9586;
    --rule: #2f2c25;
    --rule-strong: #4a463c;
    --red: #f0505f;
    --green: #2fbf72;
    --red-bg: #3a1a1c;
    --amber-bg: #392c10;
    --green-bg: #13301f;
    --grey-bg: #25231d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
kbd { font: 500 11px/1 var(--mono); padding: 3px 6px 2px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--card); color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1 var(--mono); letter-spacing: .02em; }
.wordmark__dots { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px 3px; background: #1a1916; border-radius: 5px; }
.wordmark__dots i { width: 6px; height: 6px; border-radius: 50%; background: #e0424f; }
.wordmark__dots i:nth-child(2) { background: #f2b316; }
.wordmark__dots i:nth-child(3) { background: #2bbb6b; }
.by { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.by img { height: 22px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 150px; position: relative; min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; }
.hero > .wrap { width: 100%; }
.hero__alt {
  position: absolute; left: 50%; bottom: 28px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--muted);
  transform: translateX(-50%);
  transition: opacity .35s ease, transform .35s ease;
  animation: fadeUp .8s .6s cubic-bezier(.2,.7,.2,1) both;
}
.hero__alt-q { font-size: 14px; }
.hero__alt-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink);
  font: 600 15px var(--sans); white-space: nowrap;
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.5);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hero__alt-pill svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ink); fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.hero__alt:hover .hero__alt-pill { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 34px -20px rgba(0,0,0,.55); }
.has-result .hero { padding-bottom: 48px; min-height: 0; }
.has-result .hero__alt { display: none; }
.hero__alt.is-hidden { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 82% 35%, #000 0%, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: center; }
h1 { font: 400 clamp(46px, 7.2vw, 88px)/0.97 var(--serif); letter-spacing: -.015em; margin: 0 0 24px; }
h1 em { font-style: italic; color: var(--red); }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 36em; margin: 0 0 36px; }

/* ---------- Eingabefeld ---------- */
.check { max-width: 660px; }
.check__label { display: block; margin: 0 0 10px 4px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field {
  --accent: var(--green);
  position: relative;
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 7px;
  box-shadow: 0 2px 0 var(--ink), 0 24px 48px -28px rgba(0,0,0,.45);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.field[data-proto="http"] { --accent: var(--amber); }
.field:focus-within { box-shadow: 0 2px 0 var(--ink), 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent), 0 24px 48px -28px rgba(0,0,0,.45); }
.field.is-shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.field__proto {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font: 500 15px var(--mono);
  transition: background .2s ease, color .2s ease, transform .15s ease;
  flex: none;
}
.field__proto:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.field__proto:active { transform: scale(.97); }
.field__lock { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.field__lock rect { fill: currentColor; stroke: none; }
.field__shackle { transition: transform .25s cubic-bezier(.3,1.6,.5,1); transform-origin: 15.5px 10.5px; }
.field[data-proto="http"] .field__shackle { transform: translate(0, -2px) rotate(28deg); }
.field__scheme { letter-spacing: -.01em; }
.field__proto.is-flash { animation: flash .7s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

.field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; color: var(--ink);
  font: 500 19px var(--mono);
  letter-spacing: -.01em;
  padding: 12px 2px;
}
.field input:focus { outline: none; }
.field input::placeholder { color: var(--muted); opacity: .7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 600 16px var(--sans);
  padding: 14px 22px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--brand); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.field__submit { padding: 15px 22px; flex: none; }

.field__hint { margin: 12px 4px 0; font: 400 13.5px/1.5 var(--mono); color: var(--muted); min-height: 1.5em; }
.field__hint b { color: var(--ink); font-weight: 500; }
.field__hint .warn { color: var(--amber); }
.field__hint .bad { color: var(--red); }
.check__error { margin: 10px 4px 0; color: var(--red); font-weight: 500; }
.check__error:empty { display: none; }

/* ---------- Ampel ---------- */
.signal { justify-self: center; display: flex; flex-direction: column; align-items: center; }
.signal__head {
  padding: 12px;
  border-radius: 34px;
  background: #0d0c0a;
  border: 3px solid #ece7db;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 40px 70px -35px rgba(0,0,0,.7);
}
.signal__housing {
  display: grid; gap: 14px;
  padding: 16px 14px;
  border-radius: 24px;
  background: linear-gradient(90deg, #161512 0%, #2b2924 38%, #24221e 62%, #141311 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 4px rgba(0,0,0,.6);
}
.signal__light {
  --c: #888; --c-hi: #fff; --c-lo: #333; --c-off: #2a2723; --c-off-2: #151311;
  position: relative;
  width: 112px; height: 112px;
  border-radius: 50%;
  padding: 9px;
  background: radial-gradient(circle at 50% 35%, #34312b, #0f0e0c 72%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.07), inset 0 -3px 4px rgba(0,0,0,.7);
}
.signal__light--red { --c: #ff3b47; --c-hi: #ffd3d0; --c-lo: #8a0d18; --c-off: #4b1518; --c-off-2: #1f0708; }
.signal__light--amber { --c: #ffb21a; --c-hi: #fff1c4; --c-lo: #8f5a00; --c-off: #4a3409; --c-off-2: #1e1503; }
.signal__light--green { --c: #22d27a; --c-hi: #ccffe3; --c-lo: #05592f; --c-off: #0f3a25; --c-off-2: #05170e; }
/* Schute (Blendschutz) über jeder Leuchte */
.signal__light::before {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 9px solid transparent;
  border-top-color: #2d2a25;
  border-left-color: #1f1d19;
  border-right-color: #1f1d19;
  -webkit-mask: linear-gradient(#000 0 52%, transparent 52%);
          mask: linear-gradient(#000 0 52%, transparent 52%);
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.7));
  z-index: 2;
  pointer-events: none;
}
.signal__lens {
  position: relative; display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--c-off), var(--c-off-2) 78%);
  box-shadow: inset 0 16px 18px -6px rgba(0,0,0,.85), inset 0 -4px 10px rgba(0,0,0,.4);
  overflow: hidden;
}
/* Fresnel-Rillen + Glanzlicht */
.signal__lens::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 1px, transparent 1.5px 6px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}
.signal__lens::after {
  content: '';
  position: absolute; left: 18%; top: 14%; width: 44%; height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.28), transparent 70%);
  transform: rotate(-18deg);
}
/* Leuchtendes Licht + Glow liegen auf einer gemeinsamen Ebene, die nur über die Deckkraft
   ein- und ausgeblendet wird. So laufen Lampe und Schein immer exakt synchron. */
.signal__light { --pad: 9px; }
.signal__light::after {
  content: '';
  position: absolute; inset: var(--pad);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 22% 13% at 40% 27%, rgba(255,255,255,.45), transparent 70%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, transparent 1.5px 6px),
    radial-gradient(circle at 50% 45%, var(--c-hi) 0%, var(--c) 38%, var(--c-lo) 92%);
  box-shadow: inset 0 14px 16px -8px rgba(0,0,0,.55), 0 0 26px 4px color-mix(in srgb, var(--c) 70%, transparent), 0 0 70px 22px color-mix(in srgb, var(--c) 38%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 1;
  pointer-events: none;
}
.signal[data-state="red"] .signal__light--red::after,
.signal[data-state="yellow"] .signal__light--amber::after,
.signal[data-state="green"] .signal__light--green::after,
.signal[data-state="scan-0"] .signal__light--red::after,
.signal[data-state="scan-1"] .signal__light--amber::after,
.signal[data-state="scan-2"] .signal__light--green::after { opacity: 1; }
.signal[data-state^="scan"] .signal__light::after { transition-duration: .1s; }
/* Ruhezustand: Gelb blinkt langsam, wie eine Ampel nachts */
.signal[data-state="idle"] .signal__light--amber::after { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink {
  0%, 55%, 100% { opacity: 0; }
  15%, 40% { opacity: 1; }
}
.signal__pole { width: 24px; height: 80px; background: linear-gradient(90deg, #8e887a, #d9d3c5 35%, #b2ab9b 60%, #7d7769); box-shadow: inset 0 8px 8px -6px rgba(0,0,0,.5); }

/* ---------- Ergebnis ---------- */
.result { padding: 0 0 80px; scroll-margin-top: 20px; }
.result[hidden] { display: none; }
.report {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  animation: rise .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.report__head { padding: 24px 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; border-bottom: 1.5px solid var(--ink); }
.report[data-status="red"] .report__head { background: var(--red-bg); }
.report[data-status="yellow"] .report__head { background: var(--amber-bg); }
.report[data-status="green"] .report__head { background: var(--green-bg); }
.report[data-status="grey"] .report__head { background: var(--grey-bg); }
.report__kicker { margin: 0 0 6px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.report .report__title { margin: 0 0 8px; font: 400 clamp(28px, 4vw, 44px)/1.05 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); }
.report__title:focus { outline: none; }
.report__text { margin: 0; color: var(--ink-2); max-width: 46em; }
.report__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.report__col { padding: 26px 32px 30px; }
.report__col + .report__col { border-left: 1px solid var(--rule); }
.report h3 { margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; padding-right: 18px; }
.facts dd { font: 500 15px var(--mono); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.facts .chip { display: inline-flex; align-items: center; gap: 7px; }
.facts .logo { width: 18px; height: 18px; }
.evidence { margin: 22px 0 0; padding: 14px 16px; background: var(--paper); border-radius: 10px; font: 400 13px/1.6 var(--mono); color: var(--ink-2); overflow-x: auto; }
.evidence summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.evidence ul { list-style: none; margin: 10px 0 0; padding: 0; }
.evidence li { white-space: pre-wrap; overflow-wrap: anywhere; padding: 3px 0; }
.evidence li b { color: var(--ink); font-weight: 500; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 13px var(--mono); }
.report__foot { padding: 16px 32px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.msgbox { margin-top: 12px; }
.msgbox[hidden] { display: none; }
.msg { width: 100%; resize: vertical; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 13.5px/1.55 var(--mono); padding: 14px; }
.msgbox__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Sektionen ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 780px; margin-bottom: 40px; }
h2 { font: 400 clamp(36px, 4.8vw, 58px)/1.02 var(--serif); margin: 0 0 14px; letter-spacing: -.01em; }
h2 em { font-style: italic; }
.section__intro { color: var(--ink-2); max-width: 40em; margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.howto { list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--sans); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card p .logo { display: inline-block; margin-right: 2px; }
.card__k { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }

.logowall { margin: 0 0 28px; }
.logowall__label { display: block; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.logowall ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.logowall li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; font: 500 15px var(--sans); }
.logowall .logo { width: 20px; height: 20px; }

.versions { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 15px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.versions th, .versions td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.versions th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.versions td.mono { font-weight: 500; }
.versions tr:last-child td { border-bottom: 0; }
.versions__distro { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: -3px; }
.tag { display: inline-block; font: 500 12px var(--mono); padding: 3px 8px; border-radius: 6px; margin: 2px 4px 2px 0; background: var(--grey-bg); color: var(--ink-2); }
.tag--red { background: var(--red-bg); color: var(--red); }
.tag--green { background: var(--green-bg); color: var(--green); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 11px 0 11px 32px; border-bottom: 1px dashed var(--rule); position: relative; }
.list li:last-child { border-bottom: 0; }
.list--yes li::before, .list--no li::before { position: absolute; left: 0; top: 10px; font: 600 15px var(--mono); }
.list--yes li::before { content: '✓'; color: var(--green); }
.list--no li::before { content: '✕'; color: var(--red); }
.callout { margin-top: 18px; padding: 20px 22px; border-left: 4px solid var(--amber); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* ---------- Selbsttest ---------- */
.wizard { background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; }
.wizard__step { border: 0; margin: 0; padding: 30px 32px 8px; min-width: 0; }
.wizard__step[hidden] { display: none; }
.wizard__q { font: 400 clamp(28px, 3.4vw, 38px)/1.1 var(--serif); margin: 0 0 8px; padding: 0; }
.wizard__hint { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option {
  text-align: left; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: 14px;
  padding: 16px 18px; font: inherit;
  transition: border-color .15s ease, transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.option:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(0,0,0,.4); }
.option[aria-pressed="true"] { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); }
.option b { display: block; font-weight: 600; margin-bottom: 2px; }
.option small { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.option__logos { display: flex; gap: 8px; margin-bottom: 12px; min-height: 22px; align-items: center; }
.option__logos .logo { width: 22px; height: 22px; }
.option__logos--q { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--rule-strong); justify-content: center; font: 500 13px var(--mono); color: var(--muted); }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 32px 24px; gap: 12px; color: var(--muted); font-size: 13px; }
.wizard__result[hidden] { display: none; }
.wizard__result .report { border: 0; border-radius: 0; border-bottom: 1px solid var(--rule); animation: none; }
.wizard__result .msgbox { padding: 0 32px 8px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 500 18px/1.4 var(--sans); display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 26px var(--mono); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__logos { display: inline-flex; gap: 6px; flex: none; }
.faq__logos .logo { width: 20px; height: 20px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq details > div p { margin: 0 0 10px; }

/* ---------- Footer ---------- */
.site-footer { --f-bg: #12110e; --f-ink: #f1ede3; --f-muted: #9b9586; --f-rule: #2c2a24; background: var(--f-bg); color: var(--f-ink); padding: 80px 0 32px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #e0424f 0 33.33%, #f2b316 33.33% 66.66%, #2bbb6b 66.66%); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer__mark { display: inline-flex; align-items: center; gap: 10px; font: 500 15px var(--mono); }
.footer__lights { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px 3px; background: #000; border: 1px solid #3a3730; border-radius: 5px; }
.footer__lights i { width: 6px; height: 6px; border-radius: 50%; background: #e0424f; box-shadow: 0 0 6px #e0424f; }
.footer__lights i:nth-child(2) { background: #f2b316; box-shadow: 0 0 6px #f2b316; }
.footer__lights i:nth-child(3) { background: #2bbb6b; box-shadow: 0 0 6px #2bbb6b; }
.footer__claim { font: 400 clamp(40px, 5vw, 60px)/1 var(--serif); margin: 26px 0 26px; letter-spacing: -.01em; }
.footer__claim em { color: #2bbb6b; }
.footer__text { color: var(--f-muted); font-size: 15px; max-width: 30em; margin: 0 0 22px; }
.footer__cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--f-ink); border-radius: 12px; font-weight: 600; font-size: 15px; transition: background .15s ease, color .15s ease; }
.site-footer .footer__cta:hover { background: var(--f-ink); color: var(--f-bg); text-decoration: none; }
.footer__h { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--f-muted); margin: 6px 0 18px; }
.footer__facts { margin: 0; display: grid; gap: 4px 0; }
.footer__facts dt { font-size: 12px; color: var(--f-muted); margin-top: 10px; }
.footer__facts dt:first-child { margin-top: 0; }
.footer__facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__links--ext a::after { content: ' ↗'; color: var(--f-muted); font-size: 12px; }
.footer__principles { list-style: none; margin: 56px 0 0; padding: 22px 0; border-top: 1px solid var(--f-rule); border-bottom: 1px solid var(--f-rule); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--f-ink); }
.footer__principles li::before { content: '✓'; color: #2bbb6b; margin-right: 8px; font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--f-rule); font-size: 13px; color: var(--f-muted); }
.footer__by { display: inline-flex; align-items: center; gap: 10px; }
.footer__by img { height: 20px; width: auto; }
.footer__fine { margin: 0; }
.footer__legal { display: flex; gap: 20px; }

.field__removed { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { --f-bg: #0a0908; } }
.site-footer--slim { padding: 28px 0; }
.site-footer--slim .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Einzelnes Ampellicht im Ergebnis ---------- */
.lamp {
  --c: #8f897c; --c-hi: #e9e5dc; --c-lo: #4d4940;
  position: relative; display: block;
  width: 62px; height: 62px; padding: 6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #34312b, #0f0e0c 72%);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.08), inset 0 -3px 4px rgba(0,0,0,.7), 0 0 0 2.5px #ece7db, 0 10px 22px -10px rgba(0,0,0,.6), 0 0 34px 6px color-mix(in srgb, var(--c) 40%, transparent);
  animation: dotIn .6s cubic-bezier(.3,1.6,.5,1) both;
}
[data-status="red"] .lamp { --c: #ff3b47; --c-hi: #ffd3d0; --c-lo: #8a0d18; }
[data-status="yellow"] .lamp { --c: #ffb21a; --c-hi: #fff1c4; --c-lo: #8f5a00; }
[data-status="green"] .lamp { --c: #22d27a; --c-hi: #ccffe3; --c-lo: #05592f; }
[data-status="grey"] .lamp { --c: transparent; }
.lamp__lens {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, var(--c-hi) 0%, var(--c) 40%, var(--c-lo) 95%);
  box-shadow: inset 0 9px 10px -6px rgba(0,0,0,.55);
}
[data-status="grey"] .lamp__lens { background: radial-gradient(circle at 50% 42%, #3a3731, #161512 80%); box-shadow: inset 0 9px 10px -4px rgba(0,0,0,.85); }
.lamp__lens::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, transparent 1.5px 4px); mix-blend-mode: overlay; }
.lamp__lens::after { content: ''; position: absolute; left: 18%; top: 13%; width: 44%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.35), transparent 70%); transform: rotate(-18deg); }

/* ---------- Button-Zustände ---------- */
.field__submit { position: relative; min-width: 128px; transition: transform .15s ease, background .2s ease, color .2s ease, opacity .2s ease; }
.field:not([data-valid="ok"]) .field__submit:not([disabled]) { opacity: .55; }
.btn__check { display: inline-grid; place-items: center; width: 0; height: 20px; margin-right: -10px; overflow: hidden; border-radius: 50%; background: var(--green); transform: scale(0); transition: width .25s ease, margin .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.btn__check svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.field[data-valid="ok"] .btn__check { width: 20px; margin-right: 0; transform: scale(1); }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field.is-loading .btn__spinner { display: inline-block; }
.field.is-loading .btn__check, .field.is-loading .btn__arrow { display: none; }
.field__progress { position: absolute; left: 14px; right: 14px; bottom: -1.5px; height: 3px; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.field__progress::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 3px; background: linear-gradient(90deg, #e0424f, #f2b316, #2bbb6b); animation: sweep 1.1s ease-in-out infinite; }
@keyframes sweep { from { left: -35%; } to { left: 100%; } }
.field.is-loading .field__progress { opacity: 1; }

/* ---------- Scan-Protokoll beim Prüfen ---------- */
.scanlog { list-style: none; margin: 16px 4px 0; padding: 0; display: grid; gap: 8px; font: 400 14px var(--mono); color: var(--muted); }
.scanlog[hidden] { display: none; }
.scanlog li { display: flex; align-items: center; gap: 10px; opacity: .45; transition: opacity .25s ease, color .25s ease; }
.scanlog li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-strong); flex: none; box-sizing: border-box; }
.scanlog li.is-active { opacity: 1; color: var(--ink); }
.scanlog li.is-active::before { border-color: var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.scanlog li.is-done { opacity: 1; color: var(--ink-2); }
.scanlog li.is-done::before { border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); } }

/* ---------- Teilen ---------- */
.sharebtn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.sharebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sharebtn:hover { background: var(--ink); color: var(--paper); }
.sharebtn:active { transform: scale(.97); }
.sharebtn.is-done { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- kleine Buttons ---------- */
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; gap: 8px; }
.btn svg { display: inline-block; flex: none; }
.btn--sm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.report__cta-wizard { margin-top: 8px; }

/* ---------- Stepper ---------- */
.stepper { list-style: none; margin: 0; padding: 22px 32px 0; display: flex; align-items: center; gap: 0; counter-reset: none; }
.stepper li { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); font: 500 13px var(--sans); }
.stepper li:not(:last-child)::after { content: ''; flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 var(--fill, 0%), var(--rule) var(--fill, 0%)); transition: --fill .4s ease; }
.stepper li.done:not(:last-child)::after { --fill: 100%; }
.stepper__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule-strong); font: 500 13px var(--mono); flex: none; transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s cubic-bezier(.3,1.6,.5,1); }
.stepper li[aria-current="step"] { color: var(--ink); }
.stepper li[aria-current="step"] .stepper__num { border-color: var(--ink); background: var(--ink); color: var(--paper); transform: scale(1.08); }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .stepper__num { border-color: var(--green); background: var(--green); color: transparent; position: relative; }
.stepper li.done .stepper__num::after { content: ''; position: absolute; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 6px; }
.stat__num { font: 400 clamp(44px, 5vw, 60px)/1 var(--serif); letter-spacing: -.01em; }
.stat__num small { font-size: .45em; color: var(--muted); margin-left: 2px; }
.stat__label { color: var(--ink-2); font-size: 15px; }

/* ---------- Animationen ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero h1, .hero .lede, .hero .check, .hero .signal { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lede { animation-delay: .08s; }
.hero .check { animation-delay: .16s; }
.hero .signal { animation-delay: .24s; }
.reveal-pending { opacity: 0; transform: translateY(22px); }
.is-revealed { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.report .facts dt, .report .facts dd, .report .steps li, .report .msgbox { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.report .facts > :nth-child(n+3) { animation-delay: .08s; }
.report .facts > :nth-child(n+5) { animation-delay: .16s; }
.report .facts > :nth-child(n+7) { animation-delay: .24s; }
.report .facts > :nth-child(n+9) { animation-delay: .32s; }
.report .steps li:nth-child(2) { animation-delay: .12s; }
.report .steps li:nth-child(3) { animation-delay: .24s; }
.report .steps li:nth-child(4) { animation-delay: .36s; }
.report .msgbox { animation-delay: .4s; }
@keyframes dotIn { from { transform: scale(0); } }
.signal.is-result .signal__light { animation: lampPop .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes lampPop { 40% { transform: scale(1.06); } }
.wizard__step:not([hidden]), .wizard__result:not([hidden]) { animation: stepIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
#selbsttest.is-appearing { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.option { animation: none; }
.wizard__step:not([hidden]) .option { animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.wizard__step:not([hidden]) .option:nth-child(2) { animation-delay: .05s; }
.wizard__step:not([hidden]) .option:nth-child(3) { animation-delay: .1s; }
.wizard__step:not([hidden]) .option:nth-child(4) { animation-delay: .15s; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 40px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); }
.legal h2 { font-size: 28px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Überschrift links, aufrechte Ampel rechts daneben, darunter Text und Eingabefeld */
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title signal" "lede lede" "form form"; gap: 0 18px; align-items: center; }
  .hero__copy { display: contents; }
  .hero h1 { grid-area: title; }
  .hero .lede { grid-area: lede; }
  .hero .check { grid-area: form; }
  .signal { grid-area: signal; justify-self: end; align-self: center; margin-bottom: 18px; }
  .signal__head { padding: 7px; border-radius: 24px; border-width: 2.5px; }
  .signal__housing { padding: 10px 9px; gap: 9px; border-radius: 17px; }
  .signal__light { width: 58px; height: 58px; padding: 5px; --pad: 5px; }
  .signal__light::before { inset: -5px; border-width: 6px; }
  .signal__pole { height: 28px; width: 14px; }
  .signal__light::after { box-shadow: inset 0 7px 8px -5px rgba(0,0,0,.55), 0 0 16px 3px color-mix(in srgb, var(--c) 70%, transparent), 0 0 34px 8px color-mix(in srgb, var(--c) 32%, transparent); }
    .grid3, .split, .stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .report__body { grid-template-columns: 1fr; }
  .report__col + .report__col { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 8px 0 130px; min-height: 0; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 46px); margin-bottom: 18px; }
  .hero .lede { margin-bottom: 24px; font-size: 15.5px; }
  .signal__light { width: 44px; height: 44px; padding: 4px; --pad: 4px; }
  .signal__light::before { display: none; }
  .signal__lens::before { display: none; }
  .signal__head { padding: 5px; border-radius: 19px; border-width: 2px; }
  .signal__housing { padding: 8px 7px; gap: 7px; border-radius: 14px; }
  .signal__pole { display: none; }
  .signal { margin-bottom: 14px; }
  .hero__alt-q { font-size: 13px; }
  .field { flex-wrap: wrap; padding: 6px; border-radius: 16px; }
  .field__proto { padding: 9px 8px; font-size: 14px; }
  .field input { font-size: 17px; flex-basis: 0; }
  .field__submit { flex: 1 0 100%; }
  .by span { display: none; }
  .report__head, .report__col, .wizard__step, .wizard__nav { padding-left: 20px; padding-right: 20px; }
  .report__head { gap: 16px; }
  .lamp { width: 48px; height: 48px; padding: 5px; }
    .report__foot { padding: 16px 20px; }
  .options { grid-template-columns: 1fr; }
  .stepper { padding: 18px 20px 0; }
  .stepper__txt { display: none; }
  .stepper li[aria-current="step"] .stepper__txt { display: inline; }
  .field__submit { min-width: 0; }
    .wizard__result .msgbox,   .versions th, .versions td { padding: 11px 12px; }
  .section { padding: 64px 0; }
  .footer__top { grid-template-columns: 1fr; }
  .site-footer { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
