/* ============================================================
   Bitwatch — Design-System
   Dunkel, clean, seriös. Ein Akzent. Viel Ruhe.
   ============================================================ */

:root {
  /* Flächen */
  --bg:        #0b0d10;   /* Grund, fast schwarz */
  --bg-2:      #101318;   /* leicht erhöhte Fläche */
  --surface:   #14171c;   /* Karten */
  --surface-2: #191d23;   /* Karten hover / erhöht */
  --border:    #232830;   /* feine Rahmen */
  --border-2:  #2d333c;   /* Rahmen hover */

  /* Text */
  --text:      #e7e9ec;   /* Haupttext */
  --text-dim:  #9aa2ad;   /* gedämpft */
  --text-mute: #6b7280;   /* sehr leise, Meta */

  /* Akzent (sparsam) — monochrom */
  --accent:      #ffffff; /* Weiß */
  --accent-dim:  #c9ced6;
  --accent-glow: rgba(255, 255, 255, 0.10);

  /* Status — greyscale, Schwere über Helligkeit */
  --ok:    #e7e9ec;
  --warn:  #9aa2ad;
  --crit:  #ffffff;

  /* Maße */
  --maxw: 1120px;
  --radius: 12px;
  --radius-sm: 8px;

  --font-sans: "Inter", "Inter Tight", -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;
  /* dezenter Verlauf oben, kein Gimmick */
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(255,255,255,0.025), transparent 55%);
  background-attachment: fixed;
}

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

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 60px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } .container { padding: 0 18px; } }

/* ---- Typo ---- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { color: var(--text-dim); }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-dim); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.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(11,13,16,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: #fff; letter-spacing: -0.02em; font-size: 1.06rem; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  background: var(--accent-glow);
  position: relative;
}
.brand__mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.45;transform:scale(.82);} }
.brand small { color: var(--text-mute); font-weight: 400; font-family: var(--font-mono); font-size: .7rem; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: .95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

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

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 18px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; text-align: 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: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #0b0d10; border-color: var(--accent); }
.btn--primary:hover { background: #d7dbe0; box-shadow: 0 8px 30px var(--accent-glow); }
.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; }

/* ---- Hero ---- */
.hero { padding: clamp(70px, 12vw, 128px) 0 clamp(60px, 8vw, 92px); position: relative; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; color: var(--text-mute); font-family: var(--font-mono); font-size: .82rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---- Terminal-Kachel (dezent, echt wirkend) ---- */
.scan-card {
  margin-top: 54px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  font-family: var(--font-mono);
}
.scan-card__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mute); font-size: .78rem; }
.scan-card__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.scan-card__bar .r{background:#3a4048}.scan-card__bar .y{background:#4a5058}.scan-card__bar .g{background:#5a626b}
.scan-card__bar span { margin-left: 8px; }
.scan-card__body { padding: 22px 20px; font-size: .86rem; line-height: 1.9; }
.scan-line { color: var(--text-dim); }
.scan-line .ok { color: var(--ok); }
.scan-line .warn { color: var(--warn); }
.scan-line .crit { color: var(--crit); }
.scan-line .prompt { color: var(--accent); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .18s, transform .18s, background .18s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card__num { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; }
.card h3 { margin: 14px 0 10px; }
.card p { font-size: .96rem; }

/* Icon-Chip */
.chip {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-glow); border: 1px solid var(--border);
  color: var(--accent); margin-bottom: 16px;
}
.chip svg { width: 20px; height: 20px; }

/* Schwere-Badges */
.sev { font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 100px; border: 1px solid; display: inline-flex; align-items: center; gap: 6px; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev--crit { color: #ffffff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.10); font-weight: 600; }
.sev--high { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.sev--mid  { color: var(--text-mute); border-color: var(--border); background: var(--bg-2); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__no { counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: var(--accent); border: 1px solid var(--border-2); background: var(--bg-2); }
.step__no::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: .95rem; }

/* ---- Section header ---- */
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---- Preis-Karten ---- */
.price {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}
.price--feature { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-glow), var(--surface) 42%); position: relative; }
.price--feature .price__tag { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #0b0d10; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; padding: 4px 11px; border-radius: 100px; letter-spacing: .06em; }
.price h3 { font-size: 1.15rem; }
.price__amount { margin: 14px 0 6px; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.price__amount small { font-size: .9rem; color: var(--text-mute); font-weight: 500; }
.price__desc { color: var(--text-dim); font-size: .93rem; min-height: 44px; }
.price ul { list-style: none; margin: 20px 0 26px; 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; }

/* ---- Forms ---- */
.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);
  color: var(--text); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.textarea { min-height: 130px; 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: 18px 22px; color: var(--text-dim); font-size: .95rem;
}
.callout strong { color: var(--text); }

/* ---- CTA-Band ---- */
.cta-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .btn { margin-top: 26px; }

/* ---- Prose (Recht/Text-Seiten) ---- */
.prose { max-width: 74ch; }
.prose h2 { margin: 40px 0 14px; font-size: 1.4rem; }
.prose h3 { margin: 26px 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,.08); border: 1px dashed rgba(255,255,255,.45); color: var(--text); padding: 1px 7px; 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: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: .9rem; margin-top: 12px; }
.footer-col h4 { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; font-family: var(--font-mono); 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; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: .82rem; font-family: var(--font-mono); }

/* ---- Page hero (Unterseiten) ---- */
.page-hero { padding: 68px 0 20px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }

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