/* Hallmark · macrostructure: Split Studio + Index-First · tone: technical/austere · anchor hue: brand blue #1E88E5 */
/* Hallmark · pre-emit critique: P5 H4 E5 S4 R5 V4 */

/* ---- page-scoped tokens (reuse site brand vars) ---- */
:root {
  --cst-navy: #041326;
  --cst-dark: #030d1d;
  --cst-panel: #04182f;
  --cst-panel-2: #061f3a;
  --cst-line: rgba(30, 136, 229, 0.16);
  --cst-line-strong: rgba(30, 136, 229, 0.4);
  --cst-white: #ffffff;
  --cst-body: #c3d1de;
  --cst-muted: #8fa3b3;
}

/* ---- shared type ---- */
.cst-sub { color: var(--primary-color); font-weight: 700; font-size: 18px; display: inline-block; margin-bottom: 8px; }
.cst-h2 { color: var(--cst-white); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; margin: 0 0 18px; overflow-wrap: anywhere; }
.cst-h3 { color: var(--cst-white); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.cst-body { color: var(--cst-body); font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.cst-body:last-child { margin-bottom: 0; }
.cst-intro-center { max-width: 760px; margin-left: auto; margin-right: auto; }

.cst-band-navy { background: var(--cst-navy); }
.cst-band-dark { background: var(--cst-dark); }

/* Tighter, fluid section rhythm (overrides the global .py-120 = 120px only on
   this page's content bands; the hero and final CTA keep their own padding). */
.py-120.cst-band-navy,
.py-120.cst-band-dark { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }

/* ============================================ */
/* HERO                                          */
/* ============================================ */
.cst-hero { background: var(--cst-navy); padding: 130px 0 100px; position: relative; overflow: hidden; }
.cst-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--cst-line) 1px, transparent 1px), linear-gradient(90deg, var(--cst-line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.35; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%); pointer-events: none;
}
.cst-hero-text { position: relative; z-index: 1; }
.cst-kicker { margin-bottom: 4px; }
.cst-product { font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; color: var(--cst-white); margin: 0 0 14px; overflow-wrap: anywhere; }
.cst-product .cst-accent { color: var(--primary-color); }
.cst-tag {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--primary-color);
  border: 1px solid var(--cst-line-strong); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.cst-hero-h1 { color: var(--cst-white); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; margin: 0 0 20px; overflow-wrap: anywhere; }
.cst-hero-lead { color: var(--cst-body); font-size: 18px; line-height: 1.7; max-width: 560px; margin: 0 0 32px; }
.cst-hero-btns { position: relative; z-index: 1; }

/* Scope builder visual */
.cst-scope {
  position: relative; z-index: 1; background: linear-gradient(160deg, var(--cst-panel), var(--cst-dark));
  border: 1px solid var(--cst-line); border-radius: 20px; padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.cst-scope-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cst-scope-title { color: var(--cst-white); font-weight: 700; font-size: 16px; }
.cst-scope-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.5); animation: cst-pulse 2.4s ease-out infinite; }
@keyframes cst-pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.5); } 70% { box-shadow: 0 0 0 12px rgba(30, 136, 229, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); } }
.cst-scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cst-chip {
  border: 1px solid var(--cst-line); border-radius: 12px; padding: 16px 14px; color: var(--cst-body);
  font-size: 14px; font-weight: 600; background: rgba(30, 136, 229, 0.04); text-align: center;
  min-height: 54px; display: flex; align-items: center; justify-content: center;
  animation: cst-chip-in 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.28s);
}
@keyframes cst-chip-in {
  0%, 100% { border-color: var(--cst-line); color: var(--cst-body); background: rgba(30, 136, 229, 0.04); }
  18%, 40% { border-color: var(--cst-line-strong); color: var(--cst-white); background: rgba(30, 136, 229, 0.14); }
}
.cst-chip-plus { color: var(--primary-color); font-size: 22px; border-style: dashed; }
.cst-scope-foot { margin-top: 18px; color: var(--cst-muted); font-size: 13px; text-align: center; }

/* ============================================ */
/* INTRO + Box                                   */
/* ============================================ */
.cst-approach { background: var(--cst-panel); border: 1px solid var(--cst-line); border-radius: 20px; padding: 30px; height: 100%; }
.cst-approach-intro { font-size: 15px; margin-bottom: 22px; }
.cst-box { display: flex; gap: 16px; padding: 16px; border-radius: 14px; margin-bottom: 12px; border: 1px solid transparent; }
.cst-box:last-child { margin-bottom: 0; }
.cst-box-active { border-color: var(--cst-line-strong); background: rgba(30, 136, 229, 0.06); }
.cst-box-badge {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: rgba(30, 136, 229, 0.12);
  color: var(--primary-color); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.cst-box h4 { color: var(--cst-white); font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.cst-box p { color: var(--cst-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* ============================================ */
/* DISZIPLINEN                                   */
/* ============================================ */
.cst-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }
.cst-jump-label { color: var(--cst-muted); font-size: 14px; font-weight: 600; margin-right: 4px; }
.cst-jump-link {
  color: var(--cst-body); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--cst-line); border-radius: 999px; padding: 8px 15px; transition: all 0.25s ease;
}
.cst-jump-link:hover { color: var(--cst-white); border-color: var(--cst-line-strong); background: rgba(30, 136, 229, 0.1); }

.cst-disc { padding: 44px 0; scroll-margin-top: 90px; }
.cst-disc:first-of-type { padding-top: 24px; }
.cst-disc:last-of-type { padding-bottom: 8px; }
.cst-disc-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cst-disc-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: rgba(30, 136, 229, 0.1);
  border: 1px solid var(--cst-line); display: flex; align-items: center; justify-content: center; color: var(--primary-color);
}
.cst-disc-icon svg { width: 26px; height: 26px; }
.cst-disc-tag { display: block; color: var(--primary-color); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }

.cst-disc-card { background: var(--cst-panel); border: 1px solid var(--cst-line); border-radius: 18px; padding: 26px; height: 100%; }
.cst-check { list-style: none; padding: 0; margin: 0 0 20px; }
.cst-check li { position: relative; padding-left: 30px; color: var(--cst-body); font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.cst-check li:last-child { margin-bottom: 0; }
.cst-check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E88E5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
  border: 1px solid var(--cst-line-strong);
}
.cst-meta { color: var(--cst-muted); font-size: 13.5px; line-height: 1.5; margin: 0; padding-top: 12px; border-top: 1px dashed var(--cst-line); }
.cst-meta + .cst-meta { margin-top: 8px; }

/* ---- discipline mini-visuals (hand-built, one per module) ---- */
.cst-viz {
  position: relative; overflow: hidden; min-height: 116px; margin-bottom: 22px;
  background: var(--cst-dark); border: 1px solid var(--cst-line); border-radius: 12px;
  padding: 18px; display: flex; align-items: center; justify-content: center; gap: 14px;
}

/* Code Review: code lines with a sweeping scan + one flagged line */
.cst-viz-code { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
.cvz-ln { height: 8px; width: var(--w); border-radius: 4px; background: rgba(30, 136, 229, 0.22); }
.cvz-ln.cvz-flag { background: rgba(255, 111, 97, 0.45); position: relative; }
.cvz-ln.cvz-flag::after { content: ""; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #ff6f61; box-shadow: 0 0 8px #ff6f61; }
.cvz-sweep { position: absolute; left: 0; right: 0; height: 26px; top: -26px; background: linear-gradient(var(--primary-color), transparent); opacity: 0.45; animation: cvz-sweep 3.4s ease-in-out infinite; }
@keyframes cvz-sweep { 0% { top: -26px; } 65%, 100% { top: 118px; } }

/* Mobile: phone with a row-by-row scan + shield */
.cst-viz-mobile { gap: 18px; }
.cvz-phone { position: relative; width: 62px; height: 92px; border: 2px solid var(--cst-line-strong); border-radius: 10px; padding: 12px 8px; display: flex; flex-direction: column; gap: 9px; }
.cvz-phone .cvz-row { height: 7px; border-radius: 4px; background: rgba(30, 136, 229, 0.28); }
.cvz-scan { position: absolute; left: 6px; right: 6px; height: 9px; border-radius: 4px; background: rgba(30, 136, 229, 0.65); top: 12px; animation: cvz-mscan 2.8s ease-in-out infinite; }
@keyframes cvz-mscan { 0%, 100% { top: 12px; } 50% { top: 66px; } }
.cvz-shield { color: var(--primary-color); }
.cvz-shield svg { width: 34px; height: 34px; }

/* WiFi: expanding signal rings + rogue twin tag */
.cst-viz-wifi { }
.cvz-ap { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }
.cvz-arc { position: absolute; bottom: 24px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border: 2px solid var(--primary-color); border-radius: 50%; opacity: 0; animation: cvz-wifi 2.8s ease-out infinite; }
.cvz-arc:nth-child(2) { animation-delay: 0s; }
.cvz-arc:nth-child(3) { animation-delay: 0.6s; }
.cvz-arc:nth-child(4) { animation-delay: 1.2s; }
@keyframes cvz-wifi { 0% { opacity: 0.75; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.5); } }
.cvz-twin { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; color: #ff6f61; border: 1px solid rgba(255, 111, 97, 0.4); border-radius: 6px; padding: 2px 8px; }

/* Passwort-Audit: masked dots turning cracked + strength meter filling */
.cst-viz-pw { flex-direction: column; gap: 14px; }
.cvz-dots { display: flex; gap: 8px; }
.cvz-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(30, 136, 229, 0.3); display: block; animation: cvz-pw 3.2s ease-in-out infinite; }
.cvz-dots i:nth-child(even) { animation-delay: 0.4s; }
@keyframes cvz-pw { 0%, 55% { background: rgba(30, 136, 229, 0.3); } 72%, 100% { background: #ff6f61; } }
.cvz-meter { width: 160px; max-width: 72%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cvz-meter span { display: block; height: 100%; width: 18%; background: #ff6f61; border-radius: 4px; animation: cvz-meter 3.2s ease-in-out infinite; }
@keyframes cvz-meter { 0% { width: 16%; } 70%, 100% { width: 88%; } }

/* Darknet: leaked-data chips surfacing one by one */
.cst-viz-dark { flex-wrap: wrap; gap: 10px; padding: 20px; }
.cvz-leak { font-size: 12px; font-weight: 600; color: var(--cst-body); border: 1px solid var(--cst-line); border-radius: 6px; padding: 4px 10px; opacity: 0; animation: cvz-leak 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes cvz-leak { 0%, 8% { opacity: 0; transform: translateY(6px); } 20%, 68% { opacity: 1; transform: translateY(0); } 82%, 100% { opacity: 0; } }

/* Live-Hacking: padlock springing open, then "Access Granted" */
.cst-viz-live { flex-direction: column; gap: 12px; }
.cvz-lock { color: var(--primary-color); }
.cvz-lock svg { width: 42px; height: 42px; overflow: visible; }
.cvz-shackle { transform-box: fill-box; transform-origin: bottom right; animation: cvz-shackle 3.6s ease-in-out infinite; }
@keyframes cvz-shackle { 0%, 50% { transform: translateY(0) rotate(0); } 66%, 100% { transform: translateY(-2px) rotate(-14deg); } }
.cvz-granted { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: #4ade80; opacity: 0; animation: cvz-granted 3.6s ease-in-out infinite; }
@keyframes cvz-granted { 0%, 58% { opacity: 0; } 72%, 100% { opacity: 1; } }

/* Incident Response: NIS2 deadline timeline with a gliding marker */
.cst-viz-ir { }
.cvz-track { position: relative; width: 100%; max-width: 220px; height: 2px; background: var(--cst-line-strong); }
.cvz-node { position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--cst-panel); border: 2px solid var(--cst-line-strong); }
.cvz-node:nth-child(1) { left: 0; }
.cvz-node:nth-child(2) { left: 50%; margin-left: -6px; }
.cvz-node:nth-child(3) { left: 100%; margin-left: -12px; }
.cvz-node em { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--cst-body); }
.cvz-marker { position: absolute; top: -7px; left: 0; width: 16px; height: 16px; margin-left: -2px; border-radius: 50%; background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); animation: cvz-marker 4s ease-in-out infinite; }
@keyframes cvz-marker { 0% { left: 0; } 50% { left: 100%; } 100% { left: 0; } }

/* ============================================ */
/* WEITERE SZENARIEN                             */
/* ============================================ */
.cst-more {
  background: var(--cst-panel); border: 1px solid var(--cst-line); border-radius: 16px; padding: 24px; height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cst-more:hover { transform: translateY(-4px); border-color: var(--cst-line-strong); }
.cst-more h4 { color: var(--cst-white); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.cst-more p { color: var(--cst-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.cst-more-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: rgba(30, 136, 229, 0.1); border: 1px solid var(--cst-line);
  color: var(--primary-color); margin-bottom: 16px; transition: background 0.25s ease, border-color 0.25s ease;
}
.cst-more-icon svg { width: 24px; height: 24px; overflow: visible; }
.cst-more:hover .cst-more-icon { background: rgba(30, 136, 229, 0.18); border-color: var(--cst-line-strong); }

/* Mini idle animations on the accent element of each module icon. */
.acc { transform-box: fill-box; transform-origin: center; }
.acc-spin  { animation: cst-a-spin 6s linear infinite; }
.acc-pulse { animation: cst-a-pulse 2.6s ease-in-out infinite; }
.acc-bob   { animation: cst-a-bob 2.4s ease-in-out infinite; }
.acc-blink { animation: cst-a-blink 3.2s ease-in-out infinite; }
.acc-scan  { animation: cst-a-scan 2.6s ease-in-out infinite; }
.acc-draw  { stroke-dasharray: 22; stroke-dashoffset: 22; animation: cst-a-draw 3.4s ease-in-out infinite; }
/* Slightly livelier on hover. */
.cst-more:hover .acc-pulse { animation-duration: 1.6s; }
.cst-more:hover .acc-scan  { animation-duration: 1.6s; }
.cst-more:hover .acc-bob   { animation-duration: 1.4s; }

@keyframes cst-a-spin  { to { transform: rotate(360deg); } }
@keyframes cst-a-pulse { 0%,100% { transform: scale(0.7); opacity: 0.45; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes cst-a-bob   { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@keyframes cst-a-blink { 0%,42%,100% { opacity: 1; } 48%,54% { opacity: 0.12; } }
@keyframes cst-a-scan  { 0%,100% { transform: translateY(-3.5px); } 50% { transform: translateY(3.5px); } }
@keyframes cst-a-draw  { 0% { stroke-dashoffset: 22; } 45%,70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 22; } }

/* ============================================ */
/* ABLAUF                                        */
/* ============================================ */
.cst-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.cst-step { position: relative; background: var(--cst-panel); border: 1px solid var(--cst-line); border-radius: 16px; padding: 26px 20px; }
.cst-step-n {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-color); color: var(--cst-navy); font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.cst-step h4 { color: var(--cst-white); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.cst-step p { color: var(--cst-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* ============================================ */
/* FAQ (reuses global .faq-area)                 */
/* ============================================ */
.cst-faq-q { font-size: 19px; color: var(--cst-white); margin: 0; font-weight: 700; line-height: 1.4; }

/* ============================================ */
/* FINAL CTA                                      */
/* ============================================ */
.cst-cta { padding: 100px 0; }
.cst-cta-inner {
  max-width: 720px; margin: 0 auto; text-align: center; background: linear-gradient(160deg, var(--cst-panel), var(--cst-dark));
  border: 1px solid var(--cst-line); border-radius: 24px; padding: 56px 32px;
}
.cst-cta-inner .cst-body { max-width: 560px; margin: 0 auto 28px; }

/* ============================================ */
/* RESPONSIVE                                    */
/* ============================================ */
@media (max-width: 991px) {
  .cst-hero { padding: 100px 0 70px; }
  .cst-scope { margin-top: 40px; }
  .cst-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-disc-text.order-lg-2 { order: 0; }
}
@media (max-width: 575px) {
  .cst-hero { padding: 80px 0 56px; }
  .cst-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-steps { grid-template-columns: 1fr; }
  .cst-disc { padding: 32px 0; }
  .cst-disc-head { gap: 12px; }
  .cst-disc-icon { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .cst-chip, .cst-scope-dot,
  .acc-spin, .acc-pulse, .acc-bob, .acc-blink, .acc-scan, .acc-draw,
  .cvz-sweep, .cvz-scan, .cvz-arc, .cvz-dots i, .cvz-meter span,
  .cvz-leak, .cvz-shackle, .cvz-granted, .cvz-marker { animation: none; }
  .cst-chip { border-color: var(--cst-line); }
  .acc-draw { stroke-dashoffset: 0; }
  .acc-pulse { transform: scale(1); opacity: 1; }
  /* Static, legible fallbacks when motion is off. */
  .cvz-sweep { display: none; }
  .cvz-leak, .cvz-granted { opacity: 1; }
  .cvz-arc:nth-child(2) { opacity: 0.5; transform: scale(1); }
  .cvz-arc:nth-child(3), .cvz-arc:nth-child(4) { opacity: 0; }
  .cvz-meter span { width: 70%; }
  .cvz-marker { left: 50%; }
}
