/* ============================================================
   Bitwatch — Design-System v2
   Dunkel. Hoher Kontrast. Echte Farben für echte Schweregrade.
   ============================================================ */

:root {
  /* --- Flächen --- */
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --surface:   #161616;
  --surface-2: #1e1e1e;
  --border:    #282828;
  --border-2:  #3d3d3d;

  /* --- Text (kontrastgeprüft gegen --bg) --- */
  --text:      #f5f5f5;   /* 16.8:1  */
  --text-dim:  #b2b2b2;   /* 8.9:1   */
  --text-mute: #858585;   /* 5.1:1   */

  /* --- Marke --- */
  --accent:      #ffffff;
  --accent-hi:   #dadada;
  --accent-ink:  #0a0a0a;   /* Text auf Akzentfläche */
  --accent-soft: rgba(255, 255, 255, 0.10);
  --accent-line: rgba(255, 255, 255, 0.28);

  /* --- Schweregrade: sichtbar unterschiedlich --- */
  --crit:      #ffffff;
  --crit-soft: rgba(255, 255, 255, 0.14);
  --crit-line: rgba(255, 255, 255, 0.55);

  --high:      #d6d6d6;
  --high-soft: rgba(255, 255, 255, 0.08);
  --high-line: rgba(255, 255, 255, 0.34);

  --mid:       #b2b2b2;
  --mid-soft:  rgba(255, 255, 255, 0.05);
  --mid-line:  rgba(255, 255, 255, 0.22);

  --ok:        #858585;
  --ok-soft:   transparent;
  --ok-line:   rgba(255, 255, 255, 0.14);

  /* --- Maße --- */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 74px 0; }
.section--tight { padding: 52px 0; }
.section--raised { background: var(--bg-2); border-block: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding: 54px 0; } .container { padding: 0 18px; } }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.14; font-weight: 700; letter-spacing: -0.022em; color: #fff; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.012em; }
p  { color: var(--text-dim); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--text-dim); max-width: 58ch; }

/* Abstand zwischen Ueberschrift und Folgetext */
h1 + .lead, h2 + .lead, h2 + p, h3 + p { margin-top: 14px; }

/* Label statt Glow-Eyebrow */
.eyebrow {
  display: block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.mono  { font-family: var(--font-mono); }
.muted { color: var(--text-mute); }
.accent{ color: var(--accent); }
.center{ text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,12,16,0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 700; color: #fff;
  letter-spacing: -0.03em; font-size: 1.16rem;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name b { font-weight: 700; }
.brand__name small {
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute); margin-top: 4px;
}

/* ---------- Navigation ---------- */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.btn) { position: relative; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; height: 70px; }
.nav-links a.active:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 9px; width: 44px; height: 42px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 18px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { height: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 8vw, 104px) 0 clamp(52px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .3;
  mask-image: radial-gradient(820px 420px at 50% 34%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(820px 420px at 50% 34%, #000 0%, transparent 74%);
}


.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 24px; max-width: 56ch; }
.hero-actions { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .82rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Prüfbericht-Karte (ersetzt die Kommandozeile) ---------- */
.report {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 30px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.report__title { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.report__tag {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--text-mute); border: 1px dashed var(--border-2);
  padding: 3px 9px; border-radius: 100px;
}
.report__score { display: flex; align-items: center; gap: 26px; padding: 32px 30px; border-bottom: 1px solid var(--border); }
.score-ring { position: relative; width: 96px; height: 96px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring__val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.75rem; font-weight: 800; color: #fff; letter-spacing: -.03em;
}
.report__verdict h3 { margin-bottom: 5px; font-size: 1.3rem; }
.report__verdict p { font-size: .98rem; margin: 0; max-width: 56ch; }

.report__list { padding: 0; }
.finding {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px;
  align-items: start;
  padding: 22px 30px; border-bottom: 1px solid var(--border);
}
.finding:last-child { border-bottom: 0; }
.finding__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 9px; flex: none; }
.finding__dot--crit { background: var(--crit); }
.finding__dot--mid  { background: transparent; box-shadow: inset 0 0 0 2px var(--mid); }
.finding__dot--ok   { background: transparent; box-shadow: inset 0 0 0 1px var(--ok); }

.finding h4 { font-size: 1.06rem; font-weight: 600; color: var(--text); }
.finding:has(.sev--crit) h4 { font-weight: 700; }
.finding .sev { justify-self: end; margin-top: 4px; }
.finding p { font-size: .95rem; margin-top: 5px; max-width: 62ch; }
.finding__fix { font-size: .95rem; color: var(--text); margin-top: 6px; }
.finding__fix::before { content: "→ "; color: var(--text-mute); }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border-top: 2px solid var(--border-2);
  padding: 26px 0 0;
  transition: border-color .18s;
}
.card:hover { border-top-color: var(--accent); }
.card__num { color: var(--text-mute); font-size: .74rem; font-weight: 600; letter-spacing: .14em; }
.card h3 { margin: 12px 0 10px; font-size: 1.3rem; }
.card p { font-size: .95rem; max-width: 40ch; }

.chip {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); margin-bottom: 18px;
}
.chip svg { width: 21px; height: 21px; }

/* ---------- Schweregrad-Badges ---------- */
.sev {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; border: 1px solid;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.sev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sev--crit::before { background: currentColor; }                      /* gefüllt  */
.sev--high::before { background: currentColor; opacity: .75; }
.sev--mid::before  { box-shadow: inset 0 0 0 2px currentColor; }      /* Ring     */
.sev--ok::before   { box-shadow: inset 0 0 0 1px currentColor; width: 6px; height: 6px; }
.sev--crit { color: var(--crit); border-color: var(--crit-line); background: var(--crit-soft); font-weight: 700; }
.sev--high { color: var(--high); border-color: var(--high-line); background: var(--high-soft); }
.sev--mid  { color: var(--mid);  border-color: var(--mid-line);  background: var(--mid-soft); }
.sev--ok   { color: var(--ok);   border-color: var(--ok-line);   background: var(--ok-soft); font-weight: 500; }

/* Prüfbereiche unter dem Hero */
.scope-row {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 12px; margin-top: 30px;
}
.scope-row li {
  font-size: .84rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 15px;
}

/* ---------- Zentrierter Hero ---------- */
.hero--center { text-align: center; }
.hero--center h1 { max-width: 18ch; margin-inline: auto; }
.hero--center .lead { margin-inline: auto; }
.hero--center .hero-actions,
.hero--center .hero-meta { justify-content: center; }

/* Referenz-Block: nur das Zitat, groß gesetzt */
.ref-block { max-width: 74ch; margin-inline: auto; text-align: center; }

.quote--big p { font-size: clamp(1.15rem, 2.1vw, 1.45rem); line-height: 1.55; }
.quote--big cite { margin-top: 24px; }
.quote--big cite span { display: inline; font-weight: 400; color: var(--text-mute); }
.quote--big cite span::before { content: " · "; }
.ref-scope { margin-top: 26px; font-size: .9rem; color: var(--text-mute); }

/* ---------- Selbsttest ---------- */
.selftest { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 46px; }
.selftest li {
  display: grid; gap: 5px;
  padding: 20px 0; border-top: 1px solid var(--border);
}
.selftest__label {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute);
}
.selftest__val { color: var(--text-dim); font-size: .96rem; }
@media (max-width: 820px) { .selftest { grid-template-columns: 1fr; } }

.verify { margin-top: 30px; font-size: .92rem; color: var(--text-mute); }
.verify code {
  font-family: var(--font-mono); font-size: .88em; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}

/* ---------- Risiko-Liste ---------- */
.risk-list { list-style: none; display: grid; gap: 0; max-width: 760px; margin-inline: auto; }
.risk-list li {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 20px 0; border-top: 1px solid var(--border);
}
.risk-list li:last-child { border-bottom: 1px solid var(--border); }
.risk-list h3 { font-size: 1.06rem; }
.risk-list p { font-size: .93rem; margin-top: 4px; max-width: 44ch; }
.risk-list .sev { flex: none; margin-top: 3px; }

.grid--split { align-items: start; gap: 56px; }
.sec-foot { margin-top: 40px; }
.sec-foot.center { text-align: center; }

.scope-tag {
  flex: none; margin-top: 3px;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-mute);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 4px 11px; white-space: nowrap;
}
.scope-list { max-width: 860px; }

/* ---------- Referenz ---------- */
.ref { border-top: 2px solid var(--border-2); padding: 28px 0 0; }
.ref h3 { font-size: 1.3rem; }
.ref__scope { display: flex; gap: 24px; flex-wrap: wrap; margin: 14px 0 18px; }
.ref__scope span {
  font-size: .88rem; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.ref > p { max-width: 74ch; }
.ref__scope svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin-top: 26px;
  max-width: 68ch;
}
.quote p {
  font-size: 1.1rem; line-height: 1.6; color: var(--text);
}
.quote cite {
  display: block; margin-top: 16px; font-style: normal;
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.quote cite span {
  display: block; font-weight: 400; color: var(--text-mute); margin-top: 2px;
}

/* Grosses, zentriertes Zitat (Startseite) */
.quote.quote--big { border: 0; padding: 0; margin: 0; max-width: none; }
.quote.quote--big cite span { display: inline; }
.quote.quote--big cite span::before { content: " · "; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 46px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0 0; border-top: 1px solid var(--border);
}
.step__no {
  counter-increment: step; flex: none;
  font-weight: 700; font-size: 1.05rem; color: var(--accent);
  min-width: 30px; line-height: 1.5;
}
.step__no::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 5px; }
.step p { font-size: .93rem; max-width: 46ch; }

/* ---------- Section-Kopf ---------- */
.sec-head { max-width: 58ch; margin-bottom: 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Preis-Karten ---------- */
.price {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.price--feature { border-color: var(--accent-line); background: var(--surface-2); position: relative; }
.price--feature .price__tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.price h3 { font-size: 1.15rem; }
.price__amount { margin: 14px 0 6px; font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.price__amount small { display: block; font-size: .82rem; color: var(--text-mute); font-weight: 500; letter-spacing: 0; margin-top: 4px; line-height: 1.4; }
.price__desc { color: var(--text-dim); font-size: .93rem; min-height: 44px; }
.price ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.price li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: .93rem; }
.price li svg { flex: none; width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }
.price .btn { margin-top: auto; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; color: var(--text-dim); font-weight: 500; }
.field label .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
  color: var(--text); border-radius: 10px; padding: 13px 15px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 132px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--text-mute); }

/* ---------- Callout ---------- */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: var(--radius-sm);
  padding: 20px 24px; color: var(--text-dim); font-size: .95rem;
}
.callout strong { color: var(--text); }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--bg-2); border-block: 1px solid var(--border); text-align: center; }
.cta-band h2 { margin-bottom: 14px; max-width: 22ch; margin-inline: auto; }
.cta-band .btn { margin-top: 24px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin: 42px 0 14px; font-size: 1.4rem; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-dim); }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .ph {
  background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.45); color: var(--text);
  padding: 1px 8px; border-radius: 5px; font-family: var(--font-mono); font-size: .85em;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.footer-brand { max-width: 310px; }
.footer-brand p { font-size: .9rem; margin-top: 14px; }
.footer-col h4 {
  color: var(--text); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 15px; font-weight: 600;
}
.footer-col a { display: block; color: var(--text-dim); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: .84rem;
}
.footer-credit { display: inline-flex; align-items: center; gap: 7px; }
.footer-credit a { color: var(--text-dim); border-bottom: 1px solid var(--border-2); transition: color .15s, border-color .15s; }
.footer-credit a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Unterseiten-Hero ---------- */
.page-hero { padding: 72px 0 20px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }


/* ---------- Utilities (ersetzen frühere Inline-Styles) ---------- */
.t-strong    { color: var(--text); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-start   { display: flex; gap: 10px; align-items: flex-start; }
.mt-8        { margin-top: 8px; }
.mt-18       { margin-top: 18px; }
.mt-34       { margin-top: 34px; }
.mb-34       { margin-bottom: 34px; }
.cb-box      { margin-top: 5px; flex: none; }
.big-code    { font-size: 3rem; line-height: 1; margin-bottom: 18px; }

/* ---------- Utilities ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.stack-sm > * + * { margin-top: 10px; }
