@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0b0d;
  --bg-2: #0f1013;
  --surface: #131418;
  --surface-2: #181a1f;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #ececee;
  --muted: #8d9099;
  --faint: #5d6069;
  --white: #ffffff;

  --red: #ff5f45;
  --amber: #f2b33d;
  --green: #4fd18b;
  --signal: #ff5f45;

  --radius: 6px;
  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  color-scheme: dark;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); }
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--white); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
::selection { background: rgba(255, 95, 69, .35); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* Topbar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(10, 11, 13, .85); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(140%) blur(10px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { color: var(--white); text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.02rem; }
.logo-sub { font-family: var(--mono); font-weight: 400; color: var(--muted); margin-left: 8px; font-size: .9rem; }
.topbar-meta { font-size: .78rem; color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 88px 0 0; border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, .55) 0%, var(--bg) 92%); pointer-events: none; }
.hero > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: end; padding-bottom: 72px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .78rem; color: var(--muted); margin-bottom: 28px; }
.kicker-tag { color: var(--signal); border: 1px solid rgba(255, 95, 69, .45); padding: 3px 8px; border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 24px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 36px; }

.scan-form { display: flex; gap: 8px; max-width: 600px; flex-wrap: wrap; }
.field { flex: 1 1 280px; display: flex; align-items: center; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color .15s; }
.field:focus-within { border-color: var(--white); }
.field-prefix { padding-left: 16px; color: var(--faint); font-size: .95rem; user-select: none; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--white); font: 500 1.05rem var(--mono); padding: 16px 16px 16px 2px; }
.field input::placeholder { color: var(--faint); }
.turnstile { flex-basis: 100%; }
.turnstile:empty { display: none; }
.hero-note { font-size: .78rem; color: var(--faint); margin: 16px 0 0; }
.hero .form-error { margin-top: 14px; }

/* Beispielbericht */
.specimen { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .82rem; }
.specimen-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.specimen-head span:first-child { color: var(--text); }
.specimen-rows { margin: 0; padding: 6px 0; }
.specimen-rows div { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; padding: 9px 16px; align-items: baseline; }
.specimen-rows div + div { border-top: 1px dashed var(--line); }
.specimen-rows dt { color: var(--muted); }
.specimen-rows dd { margin: 0; color: var(--text); }
.arrow { color: var(--faint); }
.st { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.st-red { color: var(--red); } .st-amber { color: var(--amber); } .st-green { color: var(--green); } .st-muted { color: var(--faint); }
.specimen-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.specimen-score { font-size: 1.6rem; color: var(--amber); letter-spacing: -.02em; text-transform: none; }
.specimen-score small { font-size: .8rem; color: var(--faint); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 24px 26px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--text); font-size: .98rem; }
.facts sup, .footnote sup { color: var(--faint); font-size: .65em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); padding: 0 22px; min-height: 52px; font: 500 1rem var(--sans); cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--white); color: #0a0b0d; }
.btn-primary:hover { background: #d9dade; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); min-height: 44px; }
.btn-ghost:hover { border-color: var(--text); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* Blöcke */
.block { padding: 112px 0; border-bottom: 1px solid var(--line); }
.block-alt { background: var(--bg-2); }
.block-head { max-width: 640px; margin-bottom: 56px; }
.block-head h2, .explain h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }

.scope { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scope li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 280px; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.scope .num { color: var(--faint); font-size: .85rem; }
.scope h3 { font-size: 1.15rem; margin-bottom: 6px; }
.scope p { margin: 0; color: var(--muted); max-width: 560px; }
.scope .tech { color: var(--faint); font-size: .76rem; text-align: right; }

.explain { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 80px; align-items: start; }
.explain > div > p { color: var(--muted); max-width: 580px; }
.note { margin-top: 36px; padding: 20px 22px; border: 1px solid var(--line-strong); border-left: 2px solid var(--amber); border-radius: var(--radius); }
.note p:last-child { margin: 0; color: var(--text); }
.fixtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.fixtable caption { text-align: left; }
.fixtable th { text-align: left; font-weight: 400; color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 0 10px; border-bottom: 1px solid var(--line-strong); }
.fixtable td { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.fixtable td:last-child { text-align: right; color: var(--green); }
.fixtable .eol td:last-child { color: var(--red); }
.fixtable th:last-child { text-align: right; }

.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 500; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.4rem var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: -6px 0 24px; max-width: 700px; }
.footnote { font-size: .74rem; color: var(--faint); margin-top: 28px; }

/* Fortschritt */
.panel { padding: 72px 0 96px; min-height: calc(100vh - 140px); }
.panel-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.03em; }
.progress { height: 2px; background: var(--line); margin: 28px 0 12px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--white); transition: width .6s ease; }
.progress-step { color: var(--muted); font-size: .82rem; }
.log { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); font-size: .86rem; }
.log li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--faint); }
.log li::after { content: "ausstehend"; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.log li.active { color: var(--text); }
.log li.active::after { content: "läuft"; color: var(--amber); animation: blink 1.2s steps(2, start) infinite; }
.log li.done { color: var(--text); }
.log li.done::after { content: "ok"; color: var(--green); }
@keyframes blink { to { visibility: hidden; } }

/* Ergebnis */
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.report-id .muted { max-width: 620px; margin: 0; }
.score { --pct: 0; --col: var(--muted); }
.score-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.score-num { color: var(--faint); font-size: 1rem; }
.score-num strong { font-size: 3.6rem; font-weight: 500; color: var(--col); letter-spacing: -.04em; line-height: 1; margin-right: 4px; }
.grade { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--col); border: 1px solid currentColor; padding: 4px 8px; border-radius: 3px; }
.score-bar { height: 6px; background: var(--surface-2); position: relative; overflow: hidden; border-radius: 1px; }
.score-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--pct) * 1%); background: var(--col); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.score-scale { position: relative; height: 18px; margin-top: 8px; font-size: .68rem; color: var(--faint); }
.score-scale span { position: absolute; transform: translateX(-50%); }
.score-scale span:nth-child(1) { left: 0; transform: none; }
.score-scale span:nth-child(2) { left: 55%; }
.score-scale span:nth-child(3) { left: 80%; }
.score-scale span:nth-child(4) { right: 0; left: auto; transform: none; }
.grade-green { color: var(--green); } .grade-yellow { color: var(--amber); } .grade-red { color: var(--red); }

.php-status { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-left-width: 2px; border-radius: var(--radius); font-size: .95rem; }
.php-status::before { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 12px; }
.php-risk { border-left-color: var(--red); } .php-risk::before { content: "PHP2Shell · Warnung"; color: var(--red); }
.php-unknown { border-left-color: var(--amber); } .php-unknown::before { content: "PHP2Shell · Prüfen"; color: var(--amber); }
.php-ok { border-left-color: var(--green); } .php-ok::before { content: "PHP2Shell · OK"; color: var(--green); }
.php-neutral { border-left-color: var(--faint); } .php-neutral::before { content: "PHP2Shell"; color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 56px 0 16px; }
.section-head h3 { font-size: 1.3rem; margin: 0; }
.section-head .muted { font-size: .78rem; }
.issues { border-top: 1px solid var(--line); }
.issue { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.issue .sev { grid-row: span 2; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; white-space: pre-line; line-height: 1.7; }
.issue h4 { font-size: 1.08rem; margin: 0; }
.issue p { margin: 0; color: var(--muted); max-width: 720px; }
.sev-critical .sev, .sev-high .sev { color: var(--red); }
.sev-medium .sev { color: var(--amber); }
.sev-low .sev { color: var(--muted); }
.issue-none .sev { color: var(--green); }
.issue-locked h4 { color: var(--muted); font-weight: 400; }
.issue-locked .sev { color: var(--faint); }

.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 64px 0 40px; }
.cta-card { background: var(--bg-2); padding: 36px; }
.cta-accent { background: var(--surface); }
.cta-card h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.cta-card form { display: grid; gap: 16px; margin-top: 24px; }
.cta-card label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.cta-card .opt { color: var(--faint); margin-left: 6px; font-family: var(--mono); font-size: .72rem; }
.cta-card input[type="text"], .cta-card input[type="email"], .cta-card input[type="tel"], .cta-card textarea {
  font: 400 1rem var(--sans); color: var(--white); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; width: 100%; outline: none; transition: border-color .15s;
}
.cta-card input:focus, .cta-card textarea:focus { border-color: var(--white); }
.cta-card textarea { resize: vertical; }
.cta-card .btn { justify-self: start; margin-top: 4px; }
.check { grid-template-columns: 18px 1fr !important; gap: 12px !important; align-items: start; font-size: .82rem !important; line-height: 1.5; }
.check input { appearance: none; width: 16px; height: 16px; margin: 2px 0 0; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); cursor: pointer; display: grid; place-content: center; }
.check input:checked { background: var(--white); border-color: var(--white); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid #0a0b0d; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.form-error { color: var(--red); font-size: .88rem; margin: 0; }
.success { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 2px solid var(--green); border-radius: var(--radius); color: var(--text); }

/* Footer */
.footer { padding: 28px 0; font-size: .82rem; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Rechtstexte */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 500; }
.imprint { display: grid; grid-template-columns: max-content 1fr; gap: 0 32px; margin: 0 0 1em; border-top: 1px solid var(--line); }
.imprint dt, .imprint dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.imprint dt { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding-top: 13px; }
.imprint dd { margin: 0; color: var(--text); }

/* Responsiv */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .specimen { max-width: 560px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scope li { grid-template-columns: 56px minmax(0, 1fr); }
  .scope .tech { grid-column: 2; text-align: left; }
  .explain { grid-template-columns: 1fr; gap: 48px; }
  .report-head { grid-template-columns: 1fr; gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; background-size: 40px 40px; }
  .hero-grid { padding-bottom: 48px; }
  .topbar-meta { display: none; }
  .scan-form .btn { flex: 1 1 100%; }
  .field-prefix { display: none; }
  .field input { padding-left: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 16px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .block { padding: 72px 0; }
  .scope li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .scope .tech { grid-column: auto; }
  .specimen-rows div { grid-template-columns: 72px 1fr; }
  .specimen-rows .st { grid-column: 2; }
  .issue { grid-template-columns: 1fr; }
  .issue .sev { grid-row: auto; }
  .cta-card { padding: 26px 20px; }
  .imprint { grid-template-columns: 1fr; }
  .imprint dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
