/* ===========================================================
   NP Security — Design Tokens
   Primary navy sampled from client logo (#1A3D64)
=========================================================== */
:root {
  color-scheme: light;

  /* Brand */
  --navy-900: #0B1D30;
  --navy-800: #122C48;
  --navy-700: #1A3D64;
  --navy-600: #24507F;
  --navy-500: #33689F;
  --blue-accent: #2F7CF6;
  --blue-accent-dark: #1E5FD1;
  --mint: #17A673;
  --mint-soft: #E4F7EF;
  --danger: #DC2626;

  /* Surfaces & text */
  --bg-page: #F6F8FB;
  --bg-alt: #EEF2F8;
  --surface: #FFFFFF;
  --text-primary: #10192A;
  --text-muted: #57647A;
  --text-inverse: #F5F8FC;
  --border: #E1E7F0;
  --border-strong: #C7D2E2;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 25, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(16, 25, 42, 0.18);
  --shadow-lg: 0 20px 48px -16px rgba(16, 25, 42, 0.28);
  --shadow-glow: 0 0 0 1px rgba(47, 124, 246, 0.18), 0 12px 32px -8px rgba(47, 124, 246, 0.35);

  /* Spacing (8px rhythm) */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Type */
  --font-heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;

  --container: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Reset & base
=========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0; color: var(--navy-900); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
svg { flex-shrink: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-8); }
}

:root { --section-pad: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
section { padding-block: var(--section-pad); }
main > section { position: relative; }
.hero { margin-bottom: var(--section-pad); }

/* Trenner zwischen den Bereichen: Linie mit Raute genau in der Mitte des Abstands */
main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(640px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
  pointer-events: none;
}
main > section + section::after { display: none; }
.section-panel {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin: var(--section-pad) var(--space-6);
  padding-block: var(--space-16);
}
main > .section-panel::before,
main > .section-panel::after { top: calc(var(--section-pad) * -1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(47, 124, 246, 0.09);
  border: 1px solid rgba(47, 124, 246, 0.22);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin-top: var(--space-4); }
.section-head p { color: var(--text-muted); margin-top: var(--space-4); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ===========================================================
   Buttons
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--blue-accent-dark); box-shadow: 0 16px 36px -10px rgba(47, 124, 246, 0.5); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-inverse);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy-800);
}
.btn-outline:hover { border-color: var(--blue-accent); color: var(--blue-accent-dark); background: rgba(47, 124, 246, 0.06); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--blue-accent);
  outline-offset: 2px;
}

/* ===========================================================
   Header / Nav
=========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); letter-spacing: 0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand-logo { height: 44px; width: auto; display: block; }
.footer-brand .brand-logo { height: 40px; }

.nav-links { display: none; align-items: center; gap: var(--space-8); }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a:hover { color: var(--navy-800); }
.nav-links a[aria-current="page"] { color: var(--navy-900); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue-accent);
  border-radius: var(--radius-pill);
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-800);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .container {
  height: auto;
  padding-block: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--space-2);
}
.mobile-menu a {
  padding: 0.85rem var(--space-2);
  font-weight: 600;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover { background: var(--bg-alt); }
.mobile-menu .btn { margin-top: var(--space-2); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===========================================================
   Hero
=========================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--text-inverse);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 70% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(47,124,246,0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24) var(--space-24);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #BFE0FF; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  max-width: 26ch;
  margin-top: var(--space-6);
  text-wrap: balance;
}
.hero .lead {
  margin-top: var(--space-6);
  max-width: 46ch;
  color: #C8D6EA;
  font-size: 1.1rem;
}
.hero .hero-actions { margin-top: var(--space-8); display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.hero-stats {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  width: 100%;
  max-width: 760px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--space-8);
}
.hero-stats .stat b { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: #fff; }
.hero-stats .stat span { color: #9FB4CF; font-size: 0.85rem; }

/* ===========================================================
   Risk / stats section
=========================================================== */
.risk-section .container {
  display: grid;
  gap: var(--space-16);
  align-items: center;
}
.risk-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}
.risk-visual .badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.risk-visual .badge-row .dot-status { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--mint); }
.risk-visual .dot-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); display: inline-block; box-shadow: 0 0 0 4px var(--mint-soft); }
.risk-visual .bar-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.risk-visual .bar-row span:first-child { width: 110px; font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
.risk-visual .bar-track { flex: 1; height: 10px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.risk-visual .bar-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--blue-accent), var(--navy-600)); width: 0%; transition: width 1.1s var(--ease-out); }
.risk-visual.in-view .bar-fill { width: var(--fill, 60%); }
.risk-visual .bar-row span:last-child { width: 42px; text-align: right; font-family: var(--font-mono); font-size: 0.8rem; color: var(--navy-700); flex-shrink: 0; }

.risk-content h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.stat-cards { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-card b { font-family: var(--font-heading); font-size: 1.9rem; color: var(--navy-800); display: block; }
.stat-card p { color: var(--text-muted); margin-top: var(--space-2); }
.stat-card .source { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: var(--space-3); font-size: 0.85rem; color: var(--blue-accent-dark); font-weight: 600; }
.stat-card .source svg { width: 14px; height: 14px; }

@media (min-width: 900px) {
  .risk-section .container { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================
   Promise cards
=========================================================== */
.promise-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.promise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.promise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(47,124,246,0.35); }
.promise-card .icon-wrap {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  margin-bottom: var(--space-6);
}
.promise-card .icon-wrap svg { width: 24px; height: 24px; }
.promise-card h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.promise-card p { color: var(--text-muted); }

/* ===========================================================
   Why us
=========================================================== */
.why-panel {
  position: relative;
  display: grid;
  gap: var(--space-12);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #E4EEFC 0%, #F1F5FB 55%, #FFFFFF 100%);
  border: 1px solid var(--border);
  color: var(--text-primary);
  overflow: hidden;
}
.why-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,61,100,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,61,100,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 80% at 30% 20%, black 20%, transparent 100%);
  pointer-events: none;
}
.why-panel > * { position: relative; }
.why-intro h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-top: var(--space-4); }
.why-intro p { color: var(--text-muted); margin: var(--space-4) 0 var(--space-8); max-width: 34ch; }
.why-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47,124,246,0.4); }
.why-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  margin-bottom: var(--space-4);
}
.why-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; }

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .why-panel { grid-template-columns: 0.8fr 1.4fr; padding: var(--space-12); align-items: center; }
}

/* ===========================================================
   Pricing
=========================================================== */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  margin: 0 auto var(--space-12);
}
.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 40px;
}
.pricing-toggle button.is-active { background: var(--navy-800); color: #fff; }
.pricing-toggle .save-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.3rem;
}

.plan-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan-card {
  background: linear-gradient(180deg, #fff 0%, #F5F9FF 100%);
  border: 1px solid var(--blue-accent);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.featured {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, #fff 0%, #F5F9FF 100%);
}
.plan-card .plan-tag {
  position: absolute;
  top: -13px; left: var(--space-8);
  background: var(--blue-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}
.plan-card h3 { font-size: 1.3rem; }
.plan-card .plan-audience { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.35rem; }
.plan-card .price { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.35rem; }
.plan-card .price b { font-family: var(--font-heading); font-size: 2.4rem; color: var(--navy-900); white-space: nowrap; }
.plan-card .price span { color: var(--text-muted); font-size: 0.9rem; }
.plan-card .plan-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; font-family: var(--font-mono); }
.plan-features { margin: var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.plan-features li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-primary); font-size: 0.94rem; }
.plan-features svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 0.15rem; }
.pricing-footnote { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: var(--space-8); }

/* ===========================================================
   Schulungen page
=========================================================== */
.module-list { display: grid; gap: var(--space-4); }
.module-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
}
.module-item .icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--navy-700);
  display: grid; place-items: center;
}
.module-item .icon-wrap svg { width: 22px; height: 22px; }
.module-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.module-item p { color: var(--text-muted); font-size: 0.92rem; }
.module-item .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--navy-700);
  background: var(--bg-alt);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  justify-self: end;
}
@media (max-width: 640px) {
  .module-item { grid-template-columns: auto 1fr; }
  .module-item .tag { grid-column: 2; justify-self: start; }
}

.process-steps { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.process-steps li { list-style: none; position: relative; padding-top: var(--space-12); }
.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-accent);
  position: absolute; top: 0; left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.process-steps li::after {
  content: "";
  position: absolute;
  top: 0.75rem; left: 2.4rem; right: 0;
  height: 1px;
  background: var(--border);
}
.process-steps h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.process-steps p { color: var(--text-muted); font-size: 0.92rem; }

/* ===========================================================
   Kunden-Anmeldung & Schulungsbereich (schulungen.html)
=========================================================== */
[hidden] { display: none !important; }
#portal-section { padding-top: var(--space-12); min-height: 60vh; }
.video-card { cursor: pointer; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.video-card:hover, .video-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47,124,246,0.35); }
.video-card.is-done .tag { color: #0F6B4C; background: var(--mint-soft); }
.video-player { margin-top: var(--space-6); }
.video-player .video-thumb { border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.video-player .ph { position: relative; text-align: center; color: #C8D6EA; padding: var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.video-player .ph strong { color: #fff; font-family: var(--font-heading); font-size: 1.05rem; }
.video-desc { color: var(--text-muted); max-width: 70ch; }
#test-area { margin-top: var(--space-4); }

.login-card {
  max-width: 380px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.login-card h2 { font-size: 1.25rem; text-align: center; }
.login-card .login-sub { text-align: center; color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; margin: 0.25rem 0 var(--space-4); }
.login-card .field { margin-bottom: var(--space-3); }
.login-card .field label { font-size: 0.82rem; margin-bottom: 0.3rem; }
.login-card .field input { padding: 0.55rem 0.85rem; min-height: 42px; font-size: 0.95rem; }
.login-card .field:last-of-type { margin-bottom: var(--space-4); }
.login-card .btn { min-height: 42px; padding-block: 0.6rem; }
.login-card .btn[disabled] { opacity: 0.6; cursor: wait; }

.portal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.portal-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: var(--space-3); }
.portal-user { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--space-2); }
.portal-user .mono { font-family: var(--font-mono); font-size: 0.85rem; color: var(--navy-700); overflow-wrap: anywhere; }
.portal-h3 { font-size: 1.2rem; margin: var(--space-8) 0 var(--space-4); }

.video-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.video-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  position: relative;
}
.video-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.video-thumb .play {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}
.video-thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-thumb video, .video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-meta { padding: var(--space-4) var(--space-6) var(--space-6); }
.video-meta .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--navy-700);
  background: var(--bg-alt);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.video-meta h4 { font-family: var(--font-heading); font-size: 1.05rem; color: var(--navy-900); margin: var(--space-3) 0 0.3rem; }
.video-meta p { color: var(--text-muted); font-size: 0.9rem; }
.video-meta .soon { display: block; margin-top: var(--space-3); font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

.test-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.test-empty svg { width: 36px; height: 36px; color: var(--navy-500); margin-bottom: var(--space-2); }
.test-empty strong { color: var(--navy-900); font-family: var(--font-heading); font-size: 1.05rem; }

/* ===========================================================
   Kontakt page
=========================================================== */
.contact-wrap {
  display: grid;
  gap: var(--space-12);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1.15fr 0.85fr; padding: var(--space-12); }
}
.field { margin-bottom: var(--space-6); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--navy-900); }
.field .required { color: var(--danger); margin-left: 0.15rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-page);
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(47,124,246,0.15);
}
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
.field .error-msg { display: none; font-size: 0.82rem; color: var(--danger); margin-top: 0.4rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.form-status[role="alert"] { border-radius: var(--radius-sm); padding: var(--space-4); margin-bottom: var(--space-6); font-size: 0.9rem; }
.form-status.success { background: var(--mint-soft); color: #0F6B4C; }
.form-status.error { background: #FDECEC; color: #9B1C1C; }

.contact-aside { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-6); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); border-radius: var(--radius-md); padding: var(--space-8); color: #fff; }
.contact-aside svg { width: 110px; height: 110px; }
.contact-aside .brand-mark { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.9rem; color: #C8D6EA; }
.contact-info a:hover { color: #fff; }

/* ===========================================================
   CTA band + Footer
=========================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  margin-inline: var(--space-6);
}
@media (min-width: 640px) { .cta-band { margin-inline: var(--space-8); } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.cta-band p { color: #B9CBE4; margin-top: var(--space-3); max-width: 50ch; margin-inline: auto; }
.cta-band .hero-actions { margin-top: var(--space-8); display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

.site-footer { padding-block: var(--space-16) var(--space-8); color: var(--text-muted); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 1.4fr repeat(2, 1fr); margin-bottom: var(--space-12); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; color: var(--navy-800); margin-bottom: var(--space-4); }
.footer-brand svg { width: 30px; height: 30px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy-800); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a:hover { color: var(--blue-accent-dark); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: var(--space-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: 0.85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===========================================================
   Scroll reveal utility
=========================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* Quartals-Refresher */
.refresher {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.refresher-copy h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.refresher-copy > p { color: var(--text-muted); margin-top: var(--space-4); }
.refresher-points { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.refresher-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-muted); }
.refresher-points strong { color: var(--navy-900); }
.refresher-points svg { width: 22px; height: 22px; color: var(--blue-accent); margin-top: 0.15rem; }
.refresher-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(160deg, #E4EEFC 0%, #F1F5FB 100%);
  border-radius: var(--radius-md);
}
.refresher-timeline::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: calc(var(--space-8) + 26px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-accent) 0 8px, transparent 8px 14px);
  opacity: 0.55;
}
.rq { position: relative; text-align: center; }
.rq-badge {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-3);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  box-shadow: 0 0 0 6px rgba(47, 124, 246, 0.15);
}
.rq b { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--navy-900); }
.rq span { font-size: 0.8rem; color: var(--text-muted); }
@media (min-width: 1000px) {
  .refresher { padding: var(--space-12); }
}
@media (max-width: 520px) {
  .refresher-timeline { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
  .refresher-timeline::before { display: none; }
}

/* Cyberangriffe-Seite */
.fact-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .fact-grid { grid-template-columns: 1fr; } }
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue-accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.fact b { display: block; font-family: var(--font-heading); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); color: var(--navy-800); line-height: 1.1; }
.fact p { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--space-3); }
.fact small { display: block; margin-top: var(--space-3); font-size: 0.78rem; }
.fact small a, .case-src a, .sources a { color: var(--blue-accent-dark); font-weight: 600; }
.fact small a:hover, .case-src a:hover, .sources a:hover { text-decoration: underline; }

.case-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.case-card:hover { box-shadow: var(--shadow-md); border-color: rgba(47, 124, 246, 0.35); }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.case-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-accent-dark); background: rgba(47, 124, 246, 0.1); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
.case-meta { font-size: 0.82rem; color: var(--text-muted); }
.case-card h3 { font-size: 1.25rem; }
.case-row { margin-top: var(--space-4); }
.case-row h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.3rem; font-weight: 500; }
.case-row p { color: var(--text-primary); font-size: 0.95rem; }
.case-cost {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-alt);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm);
}
.case-cost h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-700); margin: 0 0 0.25rem; font-weight: 500; }
.case-cost p { color: var(--navy-900); font-weight: 600; font-size: 0.95rem; }
.case-src { margin-top: auto; padding-top: var(--space-4); font-size: 0.82rem; }
@media (min-width: 900px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

.sources { display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.9rem; color: var(--text-muted); }
.sources li::marker { color: var(--blue-accent); }
.sources-list { padding-left: 1.2rem; margin: 0; }
.source-note { margin-top: var(--space-6); font-size: 0.85rem; color: var(--text-muted); }

/* Was macht NP Security */
.about-row { display: grid; gap: var(--space-8); align-items: center; }
.about-row + .about-row { margin-top: var(--space-16); }
.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 30% 20%, var(--navy-600), var(--navy-900));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.about-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.about-visual svg { width: 42%; height: 42%; color: #fff; position: relative; z-index: 1; }
.about-visual-iso { background: none; box-shadow: none; overflow: visible; }
.about-visual-iso::before { display: none; }
.about-visual-iso svg { width: 88%; height: 88%; }
/* Haken mit Brief */
.about-hook {
  position: relative;
  align-self: stretch;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
main { overflow-x: clip; }
.about-hook-art { width: min(384px, 100%); height: auto; aspect-ratio: 240 / 300; }
@media (min-width: 900px) {
  .about-hook { justify-content: center; }
  .about-hook-art { transform: translateY(-35px); }
}
.about-visual-photo { padding: var(--space-8); }
.about-visual-photo img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.about-intro h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem); margin-top: var(--space-4); }
.about-lead { font-size: 1.15rem; font-weight: 600; color: var(--navy-900); margin-top: var(--space-6); }
.about-intro > p { color: var(--text-muted); margin-top: var(--space-4); font-size: 1.02rem; }
.about-iso h3 { font-size: 1.15rem; }
.about-iso > p { color: var(--text-muted); margin-top: var(--space-4); }
.about-checklist { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.about-checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.about-checklist svg { width: 20px; height: 20px; color: var(--blue-accent); flex-shrink: 0; margin-top: 0.2rem; }
.about-checklist span { color: var(--text-primary); }
@media (min-width: 900px) {
  .about-row { grid-template-columns: 1fr 1fr; }
  .about-row.reverse .about-visual { order: 1; }
  .about-row.reverse .about-iso { order: 2; }
}

/* Page hero (sub-pages) */
.page-hero { padding-block: var(--section-pad); text-align: center; }
.page-hero .eyebrow { margin-bottom: var(--space-4); }
.page-hero h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.page-hero p { color: var(--text-muted); max-width: 60ch; margin: var(--space-4) auto 0; font-size: 1.05rem; }

/* Rechtliche Seiten (Impressum, Datenschutz, AGB) */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.2rem; margin-top: var(--space-12); }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-muted); margin-top: var(--space-3); }
.legal a { color: var(--blue-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-alt); padding: 0.1rem 0.35rem; border-radius: 4px; }
.legal .ph { background: #FFF3C4; color: #6B5100; padding: 0 0.2rem; border-radius: 3px; }
.legal-date { margin-top: var(--space-8) !important; font-size: 0.9rem; }
.footer-legal a:hover { text-decoration: underline; }
