/* WebShield Security – Design-System v3
   Navy statt Schwarz, Bernstein-Akzent, Mono-Überschriften,
   Spec-Sheet-Layout (Label links, Inhalt rechts), Linien statt Boxen. */
:root {
  --bg: #0b1019;
  --bg-deep: #070b12;
  --panel: #111827;
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);
  --text: #f1f4f8;
  --muted: #c7cfda;
  --subtle: #8b95a5;
  --quiet: #6e7889;
  --accent: #f2b545;
  --accent-dark: #c98f22;
  --accent-soft: #ffd98a;
  --accent-ink: #1a1204;
  --ok: #3ddc97;
  --max: 1200px;
  --label: 220px;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "cv01", "ss03", "tnum";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  border-top: 3px solid var(--accent);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); }
.skip:focus { left: 12px; }

h1, h2, h3, .btn, .eyebrow, .kicker, .chip, .card .number, .t-num, .console-title, .finding-card .meta, .sev, .report-item .ri, .role .tags span, .timeline .t-meta, .footer-inner {
  font-family: var(--mono);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,16,25,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; letter-spacing: .01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 0;
  border: 1.5px solid var(--accent);
  background: transparent;
  display: grid; place-items: center;
}
.brand-mark svg { width: 17px; height: 17px; display: block; }
.brand-mark svg path { stroke: var(--accent); }
.brand-name b { font-weight: 500; color: var(--text); }
.brand-name span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; margin-left: auto; }
.nav-links a { padding: 20px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 0;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 0;
  border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 84px 24px 40px;
  display: grid; grid-template-columns: 1fr; gap: 44px;
}
.hero > div:first-child { animation: rise .7s ease both; max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 0 0 12px;
  border-left: 2px solid var(--accent); color: var(--accent-soft);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 0; background: var(--ok); }
h1 { margin: 0; font-size: clamp(30px, 4.8vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.gradient-text { color: var(--accent); }
.lead { margin: 26px 0 0; max-width: 66ch; color: var(--muted); font-size: 17.5px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0; margin-top: 36px; color: var(--subtle); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.chip { padding: 12px 18px 12px 0; margin-right: 18px; }
.chip::before { content: "+ "; color: var(--accent); }

/* ---------- Konsole: Streifen unter dem Hero ---------- */
.console { border: 1px solid var(--line); background: var(--bg-deep); animation: rise .8s ease .1s both; }
.console-top { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.lights { display: flex; gap: 6px; }
.lights i { width: 7px; height: 7px; background: var(--line); }
.lights i:nth-child(3) { background: var(--ok); animation: status-blink 2.4s ease-in-out infinite; }
.console-title { color: var(--quiet); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.console-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.finding-card { padding: 20px 20px 22px; border-right: 1px solid var(--line-soft); }
.finding-card:last-child { border-right: 0; }
.finding-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--quiet); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.finding-card strong { display: block; font-weight: 590; margin-bottom: 6px; font-size: 15px; }
.finding-card p { margin: 0; color: var(--subtle); font-size: 13.5px; line-height: 1.6; }
.finding-card code { font-family: var(--mono); font-size: 12px; color: var(--accent-soft); }
.sev { display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.sev::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: 0 0 auto; }
.sev-critical { color: #ff8a84; border-color: rgba(255,95,87,.45); }
.sev-high { color: #ffb86b; border-color: rgba(255,157,66,.45); }
.sev-medium { color: #ffd77a; border-color: rgba(255,189,46,.45); }
.sev-low { color: #8fe6bd; border-color: rgba(61,220,151,.45); }
.sev-info { color: #9fc6ff; border-color: rgba(120,170,255,.45); }
.progress { height: 3px; background: var(--line-soft); overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); animation: progress-fill 1.4s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: .9s; --w: 100%; }

/* ---------- Sektionen: Spec-Sheet-Layout ---------- */
section:not(.hero) {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: var(--label) 1fr; gap: 24px 48px; align-items: start;
  border-top: 1px solid var(--line-soft);
}
section:not(.hero) > * { grid-column: 2; min-width: 0; }
section:not(.hero) > .section-head { grid-column: 1; position: sticky; top: 86px; margin: 0; }
.section-head { max-width: 100%; }
.kicker { color: var(--accent); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.section-head p { color: var(--subtle); font-size: 14.5px; line-height: 1.65; margin: 14px 0 0; }
/* Sektionen, deren erstes Kind selbst ein Zweispalter ist: volle Breite */
section:not(.hero) > .grid-2, section:not(.hero) > .report-grid, section:not(.hero) > .assessment-grid, section:not(.hero) > .cta-band { grid-column: 1 / -1; }
.grid-2 > .section-head, .report-grid > div > .section-head { position: static; }
.grid-2 > .section-head h2, .report-grid h2 { font-size: clamp(22px, 2.6vw, 32px); }
.grid-2 > .section-head p, .report-grid .section-head p { font-size: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }

/* Karten als Linien-Raster */
.card {
  position: relative; border: 0; border-top: 1px solid var(--line); background: transparent;
  padding: 22px 0 28px; min-height: 0;
}
.card::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--accent); transition: width .3s ease; }
.card:hover::before { width: 100%; }
.card .number { color: var(--accent); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.card h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.35; font-weight: 500; }
.card p { margin: 0; color: var(--subtle); font-size: 14.5px; line-height: 1.65; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--subtle); font-size: 14px; line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.card-link:hover { color: var(--accent-soft); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-num { color: var(--accent); font-size: 12px; letter-spacing: .06em; padding-top: 3px; }
.t-num::before { content: "["; color: var(--quiet); }
.t-num::after { content: "]"; color: var(--quiet); }
.timeline h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.timeline p { margin: 0; color: var(--subtle); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.timeline .t-meta { display: block; margin-top: 10px; font-size: 11.5px; color: var(--accent-soft); letter-spacing: .02em; }
.timeline a { color: var(--accent); }

.signal-list { display: grid; gap: 10px; margin-top: 20px; }
.signal-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 15px; line-height: 1.6; }
.signal-item::before { content: "+"; font-family: var(--mono); color: var(--accent); line-height: 1.6; }

.quote { padding: 28px 0 0; border: 0; border-top: 2px solid var(--accent); background: transparent; }
.quote p { font-family: var(--mono); font-size: clamp(18px, 2vw, 24px); line-height: 1.4; margin: 0; color: var(--text); font-weight: 500; }
.quote small { display: block; color: var(--subtle); margin-top: 18px; line-height: 1.65; font-size: 14px; }

.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  border: 1px solid var(--accent); padding: 36px;
  background: var(--bg-deep);
}
.cta-band h2 { font-size: clamp(20px, 2.4vw, 28px); }
.cta-band p { margin: 12px 0 0; color: var(--subtle); max-width: 680px; line-height: 1.65; }
.cta-band .q-next { color: var(--accent-soft); font-family: var(--mono); font-size: .95em; }

.faq-list { max-width: 800px; margin-top: 0; }
details.faq { border-top: 1px solid var(--line); padding: 18px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 16px; font-weight: 500; color: var(--text); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--accent); flex: 0 0 auto; }
details.faq[open] summary::after { content: "\2212"; }
details.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
details.faq .a { padding-top: 12px; color: var(--subtle); font-size: 15px; line-height: 1.65; max-width: 70ch; }

/* ---------- Code / Terminal ---------- */
.code {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  border: 1px solid var(--line-soft); background: var(--bg-deep);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--muted); tab-size: 2;
}
.code .c { color: var(--quiet); }
.code .k { color: var(--accent); }
.code .s { color: #8fe6bd; }
.code .w { color: #ffd77a; }
.code .r { color: #ff8a84; }
.terminal { border: 1px solid var(--line); background: var(--bg-deep); }
.terminal .code { border: 0; }

/* ---------- Report-Block ---------- */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.report-list { display: grid; gap: 0; margin-top: 20px; }
.report-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.report-item:last-child { border-bottom: 1px solid var(--line-soft); }
.report-item .ri { color: var(--accent); font-size: 11.5px; padding-top: 3px; }
.report-item b { display: block; color: var(--text); font-weight: 590; font-size: 15px; margin-bottom: 3px; }
.report-item span { color: var(--subtle); font-size: 14px; line-height: 1.55; }
.report-sev .report-item { grid-template-columns: 112px 1fr; }
.report-sev .report-item .sev { justify-self: start; margin-top: 2px; }

/* ---------- Team / Rollen ---------- */
.role { display: grid; gap: 12px; align-content: start; }
.role .badge { display: inline-flex; width: 40px; height: 40px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.role .badge svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.role .tags span { font-size: 11px; color: var(--accent-soft); border: 1px solid rgba(242,181,69,.35); padding: 3px 7px; }

/* ---------- Terms ---------- */
.terms { display: grid; gap: 0; margin-top: 18px; }
.term { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--subtle); line-height: 1.55; }
.term:last-child { border-bottom: 1px solid var(--line-soft); }
.term b { color: var(--text); font-weight: 590; }

/* ---------- Formular ---------- */
.assessment-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.assessment-panel { border: 0; padding: 0; background: transparent; }
form.assessment-panel { border: 1px solid var(--line); padding: 28px; background: var(--bg-deep); }
.assessment-panel h2 { font-size: clamp(20px, 2.4vw, 28px); }
form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 0; padding: 12px 14px; outline: none; font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0;
  transition: border-color .18s ease;
}
select option { background: var(--panel); color: var(--text); }
textarea { min-height: 118px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.form-note { color: var(--quiet); font-size: 12px; line-height: 1.5; margin: 0; }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-error { display: none; color: #ffb4b4; border: 1px solid rgba(255,95,87,.4); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.form-error a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-group { display: grid; gap: 8px; }
.field-group > .field-label { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.scope-grid { display: grid; gap: 8px; }
.scope {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 13px 15px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400;
  transition: border-color .18s ease;
}
.scope:hover { border-color: rgba(242,181,69,.5); }
.scope:has(input:checked) { border-color: var(--accent); }
.scope:focus-within { border-color: var(--accent); }
.scope input { width: 18px; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--accent); }
.scope b { display: block; color: var(--text); font-weight: 590; font-size: 15px; margin-bottom: 3px; }
.scope span { color: var(--subtle); font-size: 14px; line-height: 1.5; }

/* ---------- Legal ---------- */
section.legal { display: block; max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.legal h3 { margin: 30px 0 8px; font-size: 15px; font-weight: 500; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; font-size: 15.5px; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 12px; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(242,181,69,.4); }
.legal a:hover { border-bottom-color: var(--accent); }
.pad-top { padding-top: 64px; }
.page-head { padding-top: 76px; padding-bottom: 8px; }
.page-head .lead { max-width: 66ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 28px 24px 46px; color: var(--quiet); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12px; letter-spacing: .02em; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress-fill { to { width: var(--w); } }
@keyframes status-blink { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  section:not(.hero) { grid-template-columns: 1fr; gap: 20px; }
  section:not(.hero) > * { grid-column: 1; }
  section:not(.hero) > .section-head { position: static; max-width: 720px; }
  h2 { font-size: clamp(22px, 3.4vw, 30px); }
  .section-head p { font-size: 16px; }
  .report-grid, .assessment-grid, .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .console-body { grid-template-columns: 1fr; }
  .finding-card { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .finding-card:last-child { border-bottom: 0; }
  .cta-band { grid-template-columns: 1fr; align-items: start; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 24px 16px;
    background: var(--panel); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,.5); font-size: 14px; z-index: 40;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
}
@media (max-width: 560px) {
  .hero { padding-top: 52px; padding-left: 18px; padding-right: 18px; }
  .page-head { padding-top: 52px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; }
  .nav-links { padding-left: 16px; padding-right: 16px; }
  .brand-name span { display: none; }
  section:not(.hero) { padding: 48px 18px; }
  .cta-band, form.assessment-panel { padding: 22px; }
  .code { font-size: 12px; padding: 14px 16px; }
  .chip { padding: 10px 12px 10px 0; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, html { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .progress span { width: var(--w) !important; }
}
