/* ═══════════════════════════════════════════════════════════════
   ZAGL IT · Enterprise Cyber-Security Platform
   Single-file design system · Dark = :root default
   Light mode = [data-theme="light"] variable overrides
   ═══════════════════════════════════════════════════════════════

   § 01  CSS @property (animatable custom properties)
   § 02  Design Tokens  –  Dark (default) & Light overrides
   § 03  Global Reset & Base
   § 04  Animated Background
   § 05  Focus Rings
   § 06  Header
   § 07  Navigation – Globalnav & Mega-Menu
   § 08  Navigation – Mobile / Burger
   § 09  Settings Menu
   § 10  Sidebar
   § 11  Search
   § 12  Company Page
   § 13  Filters
   § 14  Main Content & Layout
   § 15  Category Boxes  (Bento + Animated Border)
   § 16  Forms & Inputs
   § 17  Checklist
   § 18  Info Button & Item Description
   § 19  Progress Bars & Donuts
   § 20  Badges
   § 21  Generic Modal
   § 22  BSI Grundschutz Visuals
   § 23  Report Modal
   § 24  Scroll-to-top
   § 25  Footer
   § 26  Cookie Consent
   § 27  Custom Scrollbars
   § 28  Charts & Stats
   § 29  Startseite – Hero / Features / Logos
   § 30  Skeleton Loaders
   § 31  @keyframes
   § 32  Responsive Design
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────── */
/* § 01  CSS @property  (animatable custom properties)            */
/* ─────────────────────────────────────────────────────────────── */
@property --card-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --shimmer-x {
  syntax: "<percentage>";
  initial-value: -100%;
  inherits: false;
}


/* ─────────────────────────────────────────────────────────────── */
/* § 02  Design Tokens                                            */
/* ─────────────────────────────────────────────────────────────── */

/* ── Dark (DEFAULT) ── */
:root {
  /* Layout */
  --sticky-offset:       72px;
  --max-content-width:   1440px;
  --globalfooter-h:      200px;

  /* Radius */
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Canvas & Surfaces */
  --bg-canvas:    #04090F;
  --bg-base:      #070D1A;
  --bg-surface:   #0C1428;
  --bg-elevated:  #111E38;
  --bg-glass:     rgba(7, 13, 26, 0.85);

  /* Accent palette */
  --accent:         #00AAFF;
  --accent-hover:   #33BBFF;
  --accent-dim:     rgba(0, 170, 255, 0.15);
  --accent-glow:    rgba(0, 170, 255, 0.30);
  --accent-glow-lg: rgba(0, 170, 255, 0.12);
  --teal:           #00E5CC;
  --teal-dim:       rgba(0, 229, 204, 0.15);
  --teal-glow:      rgba(0, 229, 204, 0.25);
  --purple:         #7C3AFF;
  --purple-dim:     rgba(124, 58, 255, 0.15);
  --green:          #00C864;
  --red:            #FF3860;
  --amber:          #FFAA00;

  /* Ambient orbs (background) */
  --orb-1: rgba(0, 100, 255, 0.09);
  --orb-2: rgba(0, 180, 200, 0.07);
  --orb-3: rgba(124, 58, 255, 0.05);

  /* Text */
  --text-primary:   #D8E4FF;
  --text-secondary: #7A90B8;
  --text-muted:     #3A4F72;
  --text-on-accent: #FFFFFF;

  /* Borders */
  --border-subtle: rgba(0, 170, 255, 0.08);
  --border-medium: rgba(0, 170, 255, 0.15);
  --border-strong: rgba(0, 170, 255, 0.30);
  --border-card:   1px solid rgba(0, 170, 255, 0.10);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.55);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.65);
  --shadow-lg:   0 12px 50px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-xs: 0.10s;
  --dur-sm: 0.18s;
  --dur-md: 0.32s;
  --dur-lg: 0.55s;

  /* Donut text */
  --donut-text-color: #D8E4FF;

  /* Mega-menu accent (used by JS-injected markup) */
  --mega-accent: #00AAFF;

  /* Themed glass backgrounds — use instead of hardcoded rgba() */
  --glass-panel:   rgba(7,  13, 26, 0.88);   /* sidebar, mega-menu, nav-mobile */
  --glass-heavy:   rgba(7,  13, 26, 0.97);   /* settings menu, popups */
  --glass-surface: rgba(7,  13, 26, 0.96);   /* cookie popup */
  --glass-card:    rgba(14, 25, 48, 0.88);   /* generic .card on hero */
  --glass-item:    rgba(11, 20, 40, 0.80);   /* item-description */
  --glass-overlay: rgba(4,   9, 15, 0.70);   /* route-spinner backdrop */
  --glass-footer:  rgba(7,  13, 26, 0.85);   /* footer container */
}

/* ── Light Mode Overrides ── */
[data-theme="light"] {
  /* Canvas & Surfaces */
  --bg-canvas:    #EFF3FA;
  --bg-base:      #F8FBFF;
  --bg-surface:   #FFFFFF;
  --bg-elevated:  #ECF1FA;
  --bg-glass:     rgba(240, 244, 250, 0.88);

  /* Accent palette — deepened for legibility on light backgrounds */
  --accent:         #0066CC;
  --accent-hover:   #0077EE;
  --accent-dim:     rgba(0, 102, 204, 0.10);
  --accent-glow:    rgba(0, 102, 204, 0.22);
  --accent-glow-lg: rgba(0, 102, 204, 0.08);
  --teal:           #009688;
  --teal-dim:       rgba(0, 150, 136, 0.12);
  --teal-glow:      rgba(0, 150, 136, 0.20);
  --purple:         #6923DE;
  --purple-dim:     rgba(105, 35, 222, 0.10);
  --green:          #007A30;
  --red:            #CC0033;
  --amber:          #CC8000;

  /* Ambient orbs */
  --orb-1: rgba(0, 80, 200, 0.05);
  --orb-2: rgba(0, 120, 170, 0.04);
  --orb-3: rgba(90, 40, 200, 0.03);

  /* Text */
  --text-primary:   #0D1B33;
  --text-secondary: #3A5172;
  --text-muted:     #8090AF;
  --text-on-accent: #FFFFFF;

  /* Borders */
  --border-subtle: rgba(0, 60, 140, 0.09);
  --border-medium: rgba(0, 60, 140, 0.16);
  --border-strong: rgba(0, 60, 140, 0.28);
  --border-card:   1px solid rgba(0, 60, 140, 0.09);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0, 30, 80, 0.10);
  --shadow-md:   0 4px 24px rgba(0, 30, 80, 0.12);
  --shadow-lg:   0 12px 50px rgba(0, 30, 80, 0.16);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Donut text */
  --donut-text-color: #0D1B33;

  /* Mega-menu accent */
  --mega-accent: #0066CC;

  /* Glass backgrounds */
  --glass-panel:   rgba(248, 251, 255, 0.93);
  --glass-heavy:   rgba(252, 254, 255, 0.98);
  --glass-surface: rgba(252, 254, 255, 0.97);
  --glass-card:    rgba(255, 255, 255, 0.92);
  --glass-item:    rgba(240, 245, 255, 0.88);
  --glass-overlay: rgba(220, 228, 242, 0.75);
  --glass-footer:  rgba(240, 244, 252, 0.92);
}

/* Light mode element-level overrides (hardcoded dark rgba values) */
[data-theme="light"] #globalheader {
  box-shadow:
    0 4px 40px rgba(0, 30, 80, 0.12),
    0 0 0 1px rgba(0, 80, 200, 0.07) inset,
    0 1px 0 rgba(255, 255, 255, 0.90) inset;
}
[data-theme="light"] .custom-modal { background: rgba(180, 200, 230, 0.72); }
[data-theme="light"] html::before  { opacity: 0.10; }
[data-theme="light"] body::before  { opacity: 0.025; }

/* ── Light mode: sub-page group accent RGB overrides ──
   All rgba(var(--grp),...) calls automatically inherit these */
[data-theme="light"] .sp-group-accent-cyan  { --grp: 0,102,204; }
[data-theme="light"] .sp-group-accent-amber { --grp: 160,90,0; }
[data-theme="light"] .sp-group-accent-green { --grp: 0,120,80; }

/* ── Sub-page navigation bar ── */
[data-theme="light"] .sp-nav {
  background: rgba(248,251,255,.96);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0,30,80,.07);
}
[data-theme="light"] .sp-nav-close {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
}
[data-theme="light"] .sp-nav-close:hover {
  background: rgba(200,0,0,.08);
  border-color: rgba(200,0,0,.25);
  color: #CC0033;
}
[data-theme="light"] .sp-nav-active-crumb { color: var(--accent); }

/* ── Sub-page heroes ── */
[data-theme="light"] .sp-hero-produkte,
[data-theme="light"] .sp-hero-links,
[data-theme="light"] .sp-hero-faq,
[data-theme="light"] #page-roadmap .sp-hero { background: var(--bg-base); }
[data-theme="light"] .sp-hero-overlay {
  background: linear-gradient(
    90deg,
    var(--bg-base) 28%,
    rgba(248,251,255,.80) 50%,
    rgba(248,251,255,.20) 70%,
    transparent 88%
  );
}
[data-theme="light"] .sp-hero-fade-bottom {
  background: linear-gradient(0deg, var(--bg-base) 0%, transparent 100%);
}

/* ── Accent color overrides for neon-on-dark values ── */
[data-theme="light"] .sp-hero-accent-cyan   { color: var(--accent); }
[data-theme="light"] .sp-hero-accent-green  { color: #007A55; }
[data-theme="light"] .sp-hero-accent-violet { color: var(--purple); }
[data-theme="light"] .sp-faq-group-label    { color: var(--purple); }
[data-theme="light"] .sp-faq-group-label::before { background: var(--purple); box-shadow: 0 0 5px rgba(105,35,222,.25); }
[data-theme="light"] .sp-faq-toggle                           { color: var(--purple); }
[data-theme="light"] .sp-faq-item.sp-faq-open .sp-faq-toggle { color: var(--purple); }
[data-theme="light"] .sp-faq-a strong  { color: var(--accent); }
[data-theme="light"] .sp-faq-a em      { color: var(--purple); }
[data-theme="light"] .sp-link-group-title::before { background: var(--accent); box-shadow: 0 0 4px rgba(0,102,204,.30); }
[data-theme="light"] .sp-link-arrow                    { color: rgba(0,102,204,.40); }
[data-theme="light"] .sp-link-item:hover .sp-link-arrow { color: var(--accent); }
[data-theme="light"] .globalnav .menu-item.sp-nav-on { color: var(--accent) !important; background: rgba(0,102,204,.08) !important; }

/* ── Product cards ── */
[data-theme="light"] .sp-tool-card {
  background: linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(240,246,255,.90) 100%);
  box-shadow: 0 4px 20px rgba(0,30,80,.07), inset 0 1px 0 rgba(255,255,255,.95);
}
[data-theme="light"] .sp-tool-card:hover {
  box-shadow: 0 12px 40px rgba(0,30,80,.12), 0 0 20px rgba(var(--grp,0,102,204),.06), inset 0 1px 0 rgba(255,255,255,.98);
}
[data-theme="light"] .sp-progress-bar { background: rgba(0,30,80,.08); }
[data-theme="light"] .sp-status-bar {
  background: linear-gradient(180deg, rgba(240,246,255,.70), rgba(228,238,255,.70));
  border-color: var(--border-subtle);
}

/* ── Tags ── */
[data-theme="light"] .sp-tag         { background: rgba(0,102,204,.07);  color: #0055BB; border-color: rgba(0,102,204,.20); }
[data-theme="light"] .sp-tag-warn    { background: rgba(160,90,0,.07);   color: #7A4400; border-color: rgba(160,90,0,.20); }
[data-theme="light"] .sp-tag-red     { background: rgba(200,0,50,.07);   color: #AA0033; border-color: rgba(200,0,50,.20); }
[data-theme="light"] .sp-tag-violet  { background: rgba(105,35,222,.07); color: #5515CC; border-color: rgba(105,35,222,.20); }
[data-theme="light"] .sp-tag-green   { background: rgba(0,120,80,.07);   color: #005C3C; border-color: rgba(0,120,80,.20); }

/* ── Links & FAQ sidebars, link groups, FAQ items ── */
[data-theme="light"] .sp-links-sidebar,
[data-theme="light"] .sp-faq-sidebar {
  background: rgba(255,255,255,.94);
  border-color: var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0,30,80,.06);
}
[data-theme="light"] .sp-sidebar-title { border-bottom-color: var(--border-subtle); }
[data-theme="light"] .sp-link-group {
  background: rgba(255,255,255,.92);
  border-color: var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0,30,80,.07);
}
[data-theme="light"] .sp-faq-item {
  background: rgba(255,255,255,.92);
  border-color: var(--border-subtle);
}
[data-theme="light"] .sp-faq-item.sp-faq-open { border-color: rgba(105,35,222,.20); }
[data-theme="light"] .sp-faq-q:hover  { background: rgba(105,35,222,.03); }
[data-theme="light"] .sp-faq-a        { border-top-color: var(--border-subtle); }

/* ── Category buttons ── */
[data-theme="light"] .sp-cat-btn:hover { background: rgba(0,102,204,.04); }
[data-theme="light"] .sp-cat-btn.sp-cat-active {
  background: rgba(0,102,204,.08);
  border-color: rgba(0,102,204,.25);
  color: var(--accent);
}
[data-theme="light"] .sp-cat-btn.sp-cat-active .sp-cat-count {
  background: rgba(0,102,204,.12);
  color: var(--accent);
}

/* ── Link items ── */
[data-theme="light"] .sp-link-item {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,60,140,.08);
}
[data-theme="light"] .sp-link-item:hover {
  background: rgba(0,102,204,.05);
  border-color: rgba(0,102,204,.20);
}

/* ── Search input ── */
[data-theme="light"] .sp-search-input {
  background: rgba(0,102,204,.04);
  border-color: rgba(0,80,180,.14);
}
[data-theme="light"] .sp-search-input:focus {
  border-color: rgba(0,102,204,.40);
  box-shadow: 0 0 14px rgba(0,102,204,.09);
}

/* ── Company page ── */
[data-theme="light"] .company-stat-strip {
  background: rgba(105,35,222,.025);
  border-color: rgba(105,35,222,.12);
}
[data-theme="light"] .company-box-card { border-color: rgba(105,35,222,.10); }

/* ── Roadmap sub-page (rm-*) ── */
[data-theme="light"] #page-roadmap { background: var(--bg-base); }
[data-theme="light"] .rm-nav {
  background: rgba(248,251,255,.96);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0,30,80,.07);
}
[data-theme="light"] .rm-hero-grid-bg { opacity: 0.35; }
[data-theme="light"] .rm-hero-scan    { opacity: 0.25; }
[data-theme="light"] .sp-hero-eyebrow { color: var(--text-muted); }

/* ── Sub-page wrapper: the fixed overlay that covers the viewport ── */
[data-theme="light"] .sub-page {
  background:
    radial-gradient(1400px 800px at 25% 20%, rgba(0,80,200,0.04), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(0,140,200,0.03), transparent 60%),
    var(--bg-base);
}
/* Reduce orb intensity in light mode */
[data-theme="light"] .sp-orb-1 { background: radial-gradient(ellipse, rgba(0,80,200,0.05), transparent 70%); }
[data-theme="light"] .sp-orb-2 { background: radial-gradient(ellipse, rgba(0,100,200,0.04), transparent 70%); }

/* ── Glass elements: disable backdrop-filter so semi-transparent
   backgrounds don't composite against dark canvas layers ── */
[data-theme="light"] .sp-topbar,
[data-theme="light"] .sp-links-sidebar,
[data-theme="light"] .sp-faq-sidebar,
[data-theme="light"] .sp-link-group,
[data-theme="light"] .sp-faq-item,
[data-theme="light"] .sp-tool-card,
[data-theme="light"] .sp-kpi-card,
[data-theme="light"] .rm-card,
[data-theme="light"] .rm-kpi-card,
[data-theme="light"] .company-box-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Sub-page topbar ── */
[data-theme="light"] .sp-topbar {
  background: rgba(248,251,255,0.98);
  border-color: var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0,30,80,0.07), inset 0 1px 0 rgba(255,255,255,0.90);
}

/* ── Sub-page sidebars & groups: solid opaque light backgrounds ── */
[data-theme="light"] .sp-links-sidebar,
[data-theme="light"] .sp-faq-sidebar {
  background: #F4F7FD;
  border-color: var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0,30,80,0.06);
}
[data-theme="light"] .sp-link-group {
  background: #FFFFFF;
  border-color: var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0,30,80,0.07);
}
[data-theme="light"] .sp-faq-item {
  background: #FFFFFF;
  border-color: var(--border-subtle);
}

/* ── KPI cards (produkte page) ── */
[data-theme="light"] .sp-kpi-card {
  background: #FFFFFF;
  border-color: rgba(0,60,140,0.12);
  box-shadow: 0 4px 16px rgba(0,30,80,0.09), inset 0 1px 0 rgba(255,255,255,0.95);
}
[data-theme="light"] .rm-kpi-card {
  background: #FFFFFF;
  border-color: rgba(0,60,140,0.12);
  box-shadow: 0 4px 16px rgba(0,30,80,0.09);
}
[data-theme="light"] .rm-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.97), rgba(240,246,255,0.92));
  border-color: rgba(0,60,140,0.10);
  box-shadow: 0 4px 20px rgba(0,30,80,0.08);
}

/* ── Company page box cards ── */
[data-theme="light"] .company-box-card {
  background: #FFFFFF;
  border-color: rgba(105,35,222,0.12);
  box-shadow: 0 4px 20px rgba(0,30,80,0.07);
}
[data-theme="light"] .company-box-title { color: var(--text-primary); }
[data-theme="light"] .company-box-body  { color: var(--text-secondary); }
[data-theme="light"] .company-box-bullets li { color: var(--text-secondary); border-top-color: var(--border-subtle); }
[data-theme="light"] .company-box-bullets li::before { background: var(--purple); box-shadow: 0 0 5px rgba(105,35,222,0.25); }
[data-theme="light"] .company-stat-item { color: var(--text-primary); }
[data-theme="light"] .company-stat-value { color: var(--accent); }

/* ── Company hero: reduce dark orb intensity ── */
[data-theme="light"] .sp-orb-comp-v1 { opacity: 0.35; }
[data-theme="light"] .sp-orb-comp-v2 { opacity: 0.30; }
[data-theme="light"] .sp-hero-company { background: linear-gradient(135deg, #F0F4FC 0%, #EEF2FF 60%, #F5F0FF 100%); }

/* ── Roadmap sidebar (#sidebar) ── */
[data-theme="light"] #sidebar {
  background: linear-gradient(180deg, rgba(240,245,255,0.99) 0%, rgba(235,242,255,0.99) 100%);
  border-right-color: var(--border-subtle);
  box-shadow: 4px 0 24px rgba(0,30,80,0.08), inset -1px 0 0 rgba(0,102,204,0.06);
}
[data-theme="light"] .sidebar-header    { border-bottom-color: var(--border-subtle); }
[data-theme="light"] .sb-brand-label    { color: var(--text-secondary); }
[data-theme="light"] #nav > li.nav-top  { color: var(--text-secondary); }
[data-theme="light"] #nav > li.nav-top:hover { background: rgba(0,102,204,0.05); color: var(--text-primary); }
[data-theme="light"] #nav > li.nav-top.active {
  background: rgba(0,102,204,0.08) !important;
  border-color: rgba(0,102,204,0.22) !important;
  border-left-color: var(--accent) !important;
}
[data-theme="light"] #nav > li.nav-top.active .nav-text { color: var(--accent) !important; }
[data-theme="light"] #nav > li.nav-top:hover {
  background: rgba(0,102,204,0.05) !important;
  border-color: rgba(0,102,204,0.14) !important;
}
[data-theme="light"] #nav .nav-sub li   { color: var(--text-secondary); border-bottom-color: var(--border-subtle); }
[data-theme="light"] #nav .nav-sub li:hover   { background: rgba(0,102,204,0.04); color: var(--text-primary); }
[data-theme="light"] #nav .nav-sub li.active  { background: rgba(0,102,204,0.08); color: var(--accent); }
[data-theme="light"] .sidebar-burger:hover     { background: rgba(0,102,204,0.10); box-shadow: 0 0 14px rgba(0,102,204,0.15); }

/* ── Homepage: hero section ── */
[data-theme="light"] .hp-hero {
  background:
    radial-gradient(1400px 900px at 65% 50%, rgba(0,80,200,0.07), transparent 55%),
    radial-gradient(1200px 800px at 30% 80%, rgba(0,140,220,0.05), transparent 60%),
    #EEF4FF;
}
[data-theme="light"] .hp-hero .hero-vignette { opacity: 0.15; }
[data-theme="light"] .hp-hero .hero-scanlines { opacity: 0.08; }

/* ── Homepage: hero text & interactive elements ── */
[data-theme="light"] .hp-hero-kicker   { color: var(--text-secondary); }
[data-theme="light"] .hp-hero-headline { color: var(--text-primary); }
[data-theme="light"] .hp-hero-sub      { color: var(--text-secondary); }
[data-theme="light"] .hp-accent-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #0033CC 50%, #0055EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hp-btn-ghost {
  background: rgba(0,102,204,0.06);
  color: var(--accent);
  border-color: rgba(0,102,204,0.28);
}
[data-theme="light"] .hp-btn-ghost:hover {
  background: rgba(0,102,204,0.10);
  border-color: rgba(0,102,204,0.50);
  box-shadow: 0 0 20px rgba(0,102,204,0.12);
}
[data-theme="light"] .hp-hud {
  background: rgba(240,245,255,0.82);
  border-color: rgba(0,60,140,0.12);
  color: var(--text-secondary);
}
[data-theme="light"] .hp-hud b { color: var(--text-primary); }
[data-theme="light"] .hp-hero-kicker::after { background: rgba(0,102,204,0.25); }

/* ── Hero floating bento cards ── */
[data-theme="light"] .hp-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(248,251,255,0.95);
  border-color: rgba(0,60,140,0.14);
  box-shadow: 0 8px 32px rgba(0,30,80,0.12), inset 0 1px 0 rgba(255,255,255,0.90);
}
[data-theme="light"] .hp-card-label { color: var(--text-muted); }
[data-theme="light"] .hp-card-value { color: var(--text-primary); }
[data-theme="light"] .hp-unit       { color: var(--text-muted); }
[data-theme="light"] .hp-ticker     { color: var(--text-muted); border-top-color: var(--border-subtle); }
[data-theme="light"] .hp-bar        { background: rgba(0,60,140,0.08); }

/* ── Homepage: trust strip ── */
[data-theme="light"] .hp-trust {
  background: rgba(240,245,255,0.95);
  border-top-color:    var(--border-subtle);
  border-bottom-color: var(--border-subtle);
}
[data-theme="light"] .hp-trust-logo { color: var(--text-secondary); }
[data-theme="light"] .hp-trust-logo:hover { color: var(--accent); }

/* ── Homepage: section typography ── */
[data-theme="light"] .hp-section-tag      { color: var(--accent); }
[data-theme="light"] .hp-section-headline { color: var(--text-primary); }
[data-theme="light"] .hp-section-sub      { color: var(--text-secondary); }

/* ── Homepage: services section ── */
[data-theme="light"] .hp-services {
  background:
    radial-gradient(1200px 700px at 80% 50%, rgba(0,80,200,0.04), transparent 60%),
    var(--bg-canvas);
}
[data-theme="light"] .hp-service-card {
  background: #FFFFFF;
  border-color: rgba(0,60,140,0.12);
  box-shadow: 0 2px 12px rgba(0,30,80,0.10), 0 6px 28px rgba(0,30,80,0.06);
}
[data-theme="light"] .hp-service-card::before { display: none; }
[data-theme="light"] .hp-service-card:hover {
  border-color: rgba(0,102,204,0.28);
  box-shadow: 0 12px 40px rgba(0,30,80,0.13), 0 0 20px rgba(0,102,204,0.06);
  transform: translateY(-3px);
}
[data-theme="light"] .hp-service-card h3 { color: var(--text-primary); }
[data-theme="light"] .hp-service-card p  { color: var(--text-secondary); }
[data-theme="light"] .hp-svc-icon {
  background: linear-gradient(135deg, rgba(0,102,204,0.10), rgba(0,60,180,0.07));
  border-color: rgba(0,102,204,0.22);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(0,102,204,0.12);
}
[data-theme="light"] .hp-svc-link       { color: var(--accent); }
[data-theme="light"] .hp-svc-link:hover { color: var(--accent-hover); }

/* ── Homepage: stats strip ── */
[data-theme="light"] .hp-stats-strip {
  background: rgba(225,236,255,0.90);
  border-top-color:    rgba(0,60,140,0.14);
  border-bottom-color: rgba(0,60,140,0.14);
}
[data-theme="light"] .hp-stat-label  { color: var(--text-secondary); }
[data-theme="light"] .hp-stat-num    { color: var(--accent); }
[data-theme="light"] .hp-stat-divider { background: linear-gradient(180deg, transparent, rgba(0,102,204,0.20), transparent); }

/* ── Homepage: threat section ── */
[data-theme="light"] .hp-threat-section {
  background:
    radial-gradient(1000px 600px at 20% 60%, rgba(0,60,200,0.04), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, rgba(0,80,180,0.04), transparent 60%),
    var(--bg-canvas);
}
[data-theme="light"] .hp-threat-card {
  background: #FFFFFF;
  border-color: rgba(0,60,140,0.12);
  box-shadow: 0 2px 12px rgba(0,30,80,0.10), 0 6px 24px rgba(0,30,80,0.06);
}
[data-theme="light"] .hp-threat-card:hover {
  border-color: color-mix(in srgb, var(--stage-color, #0066CC) 30%, rgba(0,60,140,0.15));
  box-shadow: 0 12px 36px rgba(0,30,80,0.10);
}
[data-theme="light"] .hp-threat-card h4      { color: var(--text-primary); }
[data-theme="light"] .hp-threat-card p.mono  { color: var(--text-secondary) !important; }
[data-theme="light"] .hp-threat-meter        { background: rgba(0,30,80,0.08); }
[data-theme="light"] .hp-threat-footer       { color: var(--text-secondary); }

/* ── Homepage: CTA section ── */
[data-theme="light"] .hp-cta-section {
  background: linear-gradient(180deg,
    var(--bg-base) 0%,
    rgba(0,80,200,0.04) 40%,
    rgba(0,80,200,0.03) 60%,
    var(--bg-base) 100%
  );
}
[data-theme="light"] .hp-cta-headline { color: var(--text-primary); }
[data-theme="light"] .hp-cta-sub      { color: var(--text-secondary); }
[data-theme="light"] .hp-cta-note     { color: var(--text-muted); }

/* ── Homepage footer ── */
[data-theme="light"] .globalfooter {
  background: var(--glass-footer);
  border-top-color: var(--border-subtle);
}
[data-theme="light"] .footer-section p,
[data-theme="light"] .footer-section a,
[data-theme="light"] .footer-brand span { color: var(--text-secondary); }
[data-theme="light"] .footer-section h4  { color: var(--text-primary); }
[data-theme="light"] .footer-section ul li a { color: var(--text-secondary); }
[data-theme="light"] .footer-section ul li a:hover { color: var(--accent); }

/* ── Roadmap content area ── */
[data-theme="light"] #page-title::before { color: var(--accent) !important; opacity: 0.80 !important; }

/* Charts deck — dark glass container */
[data-theme="light"] .charts-deck {
  background: rgba(248,251,255,0.97) !important;
  border-color: rgba(0,60,140,0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 16px rgba(0,30,80,0.08), inset 0 1px 0 rgba(255,255,255,0.90) !important;
}
[data-theme="light"] .chart-container {
  border-right-color: var(--border-subtle) !important;
}
[data-theme="light"] .chart-container:hover { background: rgba(0,102,204,0.04) !important; }
[data-theme="light"] .chart-label { color: var(--text-muted) !important; }
[data-theme="light"] .filterBar { border-bottom-color: var(--border-subtle) !important; }
[data-theme="light"] .overall-progress-box .progress-track { background: rgba(0,60,140,0.10) !important; }

/* Checklist items */
[data-theme="light"] .checklist-item {
  border-bottom-color: var(--border-subtle) !important;
}
[data-theme="light"] .checklist-item:hover { background: rgba(0,102,204,0.04) !important; }
[data-theme="light"] .checklist-item label { color: var(--text-primary) !important; }
[data-theme="light"] .checklist-item:hover label { color: var(--accent) !important; }
[data-theme="light"] .checklist-item input[type="checkbox"]:checked + label {
  color: var(--text-muted) !important;
  text-decoration-color: rgba(0,60,140,0.25) !important;
}
[data-theme="light"] .checklist-item input[type="checkbox"] {
  border-color: rgba(0,102,204,0.35) !important;
  background: rgba(0,102,204,0.04) !important;
}
[data-theme="light"] .checklist-item input[type="checkbox"]:hover {
  border-color: rgba(0,102,204,0.55) !important;
  background: rgba(0,102,204,0.08) !important;
}
[data-theme="light"] .checklist-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent), #003EA8) !important;
  box-shadow: 0 0 8px rgba(0,102,204,0.30) !important;
}

/* Group headers */
[data-theme="light"] .checklist-group-header {
  border-top-color: var(--border-subtle) !important;
}
[data-theme="light"] .checklist-group-title { color: var(--accent) !important; opacity: 0.80 !important; }

/* Badges — neon colors are invisible on white */
[data-theme="light"] .badge.hoch   { background: rgba(200,0,40,0.08)  !important; color: #B00020 !important; border-color: rgba(200,0,40,0.22)  !important; }
[data-theme="light"] .badge.mittel { background: rgba(160,100,0,0.08) !important; color: #8A5500 !important; border-color: rgba(160,100,0,0.22) !important; }
[data-theme="light"] .badge.niedrig{ background: rgba(0,120,60,0.08)  !important; color: #006030 !important; border-color: rgba(0,120,60,0.22)  !important; }
[data-theme="light"] .badge.must   { background: rgba(180,0,50,0.08)  !important; color: #A0002E !important; border-color: rgba(180,0,50,0.22)  !important; }
[data-theme="light"] .badge.should { background: rgba(140,90,0,0.08)  !important; color: #7A5000 !important; border-color: rgba(140,90,0,0.20)  !important; }
[data-theme="light"] .badge.effort { background: rgba(0,60,140,0.07)  !important; color: var(--text-muted) !important; border-color: rgba(0,60,140,0.16) !important; }

/* Info button & description box */
[data-theme="light"] .info-btn {
  background: rgba(0,102,204,0.06) !important;
  border-color: rgba(0,102,204,0.20) !important;
  color: var(--accent) !important;
}
[data-theme="light"] .info-btn:hover {
  background: rgba(0,102,204,0.12) !important;
  box-shadow: 0 0 6px rgba(0,102,204,0.18) !important;
  border-color: rgba(0,102,204,0.35) !important;
}
[data-theme="light"] .item-description {
  background: rgba(240,245,255,0.95) !important;
  border-color: rgba(0,60,140,0.14) !important;
  border-left-color: var(--accent) !important;
  color: var(--text-secondary) !important;
}

/* Sidebar footer buttons */
[data-theme="light"] .sidebar-footer .footer-btn,
[data-theme="light"] .sidebar-footer .form-action-btn,
[data-theme="light"] .footer-btn.nav-top-like {
  background: rgba(0,102,204,0.06) !important;
  border-color: rgba(0,102,204,0.18) !important;
  color: var(--text-secondary) !important;
}
[data-theme="light"] .sidebar-footer .footer-btn:hover,
[data-theme="light"] .sidebar-footer .form-action-btn:hover,
[data-theme="light"] .footer-btn.nav-top-like:hover {
  background: rgba(0,102,204,0.10) !important;
  border-color: rgba(0,102,204,0.28) !important;
  color: var(--accent) !important;
}

/* Filter bar buttons */
[data-theme="light"] .filter-btn,
[data-theme="light"] .filterBar .filter-btn {
  background: rgba(0,60,140,0.05) !important;
  border-color: rgba(0,60,140,0.16) !important;
  color: var(--text-secondary) !important;
}
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filterBar .filter-btn.active,
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filterBar .filter-btn:hover {
  background: rgba(0,102,204,0.09) !important;
  border-color: rgba(0,102,204,0.35) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 6px rgba(0,102,204,0.12) !important;
}
[data-theme="light"] .filter-reset {
  background: rgba(180,0,30,0.05) !important;
  border-color: rgba(180,0,30,0.20) !important;
  color: rgba(180,0,30,0.70) !important;
}


/* ─────────────────────────────────────────────────────────────── */
/* § 03  Global Reset & Base                                      */
/* ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-gutter: stable;
  min-height: 100%;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--sticky-offset);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

html { height: 100%; }
main { flex: 1 0 auto; }

/* Utility */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0; margin: -1px; padding: 0;
}


/* ─────────────────────────────────────────────────────────────── */
/* § 04  Animated Background                                      */
/* ─────────────────────────────────────────────────────────────── */

/* Layer 1: Scanlines overlay (html::before) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0 1px,
    transparent 1px 4px
  );
  background-size: 100% 4px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

/* Layer 2: SVG noise texture (html::after) */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Layer 3: Matrix line grid (body::before) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right,  var(--accent) 0.5px, transparent 0.5px),
    linear-gradient(to bottom, var(--accent) 0.5px, transparent 0.5px);
  background-size: 56px 56px;
  opacity: 0.04;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 45%, transparent 100%);
  animation: matrixBreathe 9s ease-in-out infinite;
  pointer-events: none;
}

/* Layer 4: Animated color orbs (body::after) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, var(--orb-1), transparent),
    radial-gradient(ellipse 55% 65% at 85% 75%, var(--orb-2), transparent),
    radial-gradient(ellipse 45% 45% at 55% 55%, var(--orb-3), transparent);
  animation: bgOrbDrift 30s ease-in-out infinite alternate;
  pointer-events: none;
}



/* ─────────────────────────────────────────────────────────────── */
/* § 05  Focus Rings                                              */
/* ─────────────────────────────────────────────────────────────── */
* { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}


/* ─────────────────────────────────────────────────────────────── */
/* § 06  Header                                                   */
/* ─────────────────────────────────────────────────────────────── */
#globalheader {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(0, 170, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 5px;
  /* overflow: visible — settings dropdown and mega-menu must escape the header */
  overflow: visible;
  padding: 0 20px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

/* Periodic scan-line beam that sweeps across the header */
#globalheader::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 170, 255, 0.06) 30%,
    rgba(0, 229, 204, 0.08) 50%,
    rgba(0, 170, 255, 0.06) 70%,
    transparent);
  /* Fade at edges so the beam is invisible when it overflows the header */
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  animation: headerScan 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Glowing bottom accent line */
#globalheader::after {
  content: "";
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 30%,
    var(--teal) 50%,
    var(--accent) 70%,
    transparent);
  opacity: 0.5;
  animation: borderGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.globalnav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.branding {
  background: linear-gradient(135deg, rgba(0,170,255,0.14), rgba(0,229,204,0.08));
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 3px 5px;
  box-shadow: 0 0 14px rgba(0,170,255,0.15);
  transition: box-shadow var(--dur-md) var(--ease-smooth), border-color var(--dur-md);
  animation: logoBreathe 5s ease-in-out infinite;
}
.branding:hover {
  box-shadow: 0 0 24px rgba(0,170,255,0.30), 0 0 8px rgba(0,229,204,0.20);
  border-color: var(--border-strong);
}

.globalnav .branding img { height: 40px; width: 60px; object-fit: contain; }

.nav-links { align-items: center; display: flex; gap: 1.2rem; }

.globalnav-menu-list {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  list-style: none;
}

/* Nav items with animated underline */
.menu-item {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  position: relative;
  transition:
    color var(--dur-sm) var(--ease-smooth),
    background var(--dur-sm) var(--ease-smooth);
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 99px;
  transition: left var(--dur-md) var(--ease-bounce), right var(--dur-md) var(--ease-bounce);
  box-shadow: 0 0 8px var(--accent-glow);
}

.menu-item:hover { color: var(--text-primary); background: var(--accent-dim); }
.menu-item:hover::after { left: 10%; right: 10%; }
.menu-item:active { transform: scale(0.96); }

.menu-item.current {
  background: linear-gradient(135deg, var(--accent-dim), var(--teal-dim));
  border: 1px solid var(--border-medium);
  color: var(--accent);
}
.menu-item.current::after { left: 10%; right: 10%; }

/* Dropdown arrow */
.globalnav .menu-item.has-sub { padding-right: 20px; position: relative; }
.globalnav .menu-item.has-sub::before {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: transform var(--dur-sm) var(--ease-bounce), border-top-color var(--dur-sm);
}
.globalnav .menu-item.has-sub[aria-expanded="true"] {
  background: var(--accent-dim);
  color: var(--accent);
  padding-inline: 10px;
}
.globalnav .menu-item.has-sub[aria-expanded="true"]::before {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: var(--accent);
}
/* Remove ::after underline on has-sub items – arrow is the indicator */
.globalnav .menu-item.has-sub::after { display: none; }


/* ─────────────────────────────────────────────────────────────── */
/* § 07  Mega-Menu                                                */
/* ─────────────────────────────────────────────────────────────── */
.mega-menu {
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  background: rgba(4, 8, 18, 0.97);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,170,255,0.08) inset, 0 8px 32px rgba(0,0,0,0.5);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition:
    max-height 0.4s var(--ease-smooth),
    opacity 0.3s var(--ease-smooth),
    padding 0.4s var(--ease-smooth),
    margin 0.4s var(--ease-smooth);
}

.mega-menu.open {
  margin: 8px 5px 12px;
  max-height: 80vh !important;
  opacity: 1;
  padding: 22px;
  overflow-y: auto;
  scrollbar-color: var(--border-medium) transparent;
  scrollbar-width: thin;
}

.mega-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.mega-col h4 {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 12px 4px;
  opacity: 0.9;
}

.mega-list { display: flex; flex-direction: column; gap: 6px; list-style: none; }

.mega-item {
  align-items: flex-start;
  background: rgba(0, 170, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-sm) var(--ease-bounce),
    background var(--dur-sm) var(--ease-smooth),
    border-color var(--dur-sm),
    box-shadow var(--dur-sm);
}

.mega-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-md) var(--ease-bounce);
  box-shadow: 2px 0 10px var(--accent-glow);
}

.mega-item:hover {
  background: var(--accent-dim);
  border-color: var(--border-medium);
  transform: translateX(3px);
  box-shadow: 0 2px 16px var(--accent-glow-lg);
}
.mega-item:hover::before { transform: scaleY(1); }
.mega-item:active { transform: scale(0.97); }

.mega-item .label { color: var(--text-primary); font-size: 0.88rem; font-weight: 500; }
.mega-item .hint  { color: var(--text-muted); font-size: 0.76rem; line-height: 1.35; margin-top: 2px; }

/* Stagger mega items on open */
.mega-menu.open .mega-item { animation: itemReveal 0.3s var(--ease-bounce) both; }
.mega-menu.open .mega-item:nth-child(1) { animation-delay: 0.04s; }
.mega-menu.open .mega-item:nth-child(2) { animation-delay: 0.08s; }
.mega-menu.open .mega-item:nth-child(3) { animation-delay: 0.12s; }
.mega-menu.open .mega-item:nth-child(4) { animation-delay: 0.16s; }
.mega-menu.open .mega-item:nth-child(5) { animation-delay: 0.20s; }
.mega-menu.open .mega-item:nth-child(6) { animation-delay: 0.24s; }


/* ─────────────────────────────────────────────────────────────── */
/* § 08  Navigation – Mobile / Burger                             */
/* ─────────────────────────────────────────────────────────────── */
.burger-icon {
  background: var(--accent-dim);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  color: var(--accent);
  cursor: pointer;
  display: none;
  font-size: 1.3rem;
  padding: 5px 10px;
  transition: background var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.burger-icon:hover  { background: var(--accent-dim); box-shadow: 0 0 14px var(--accent-glow); }
.burger-icon:active { transform: scale(0.92); }

.nav-top {
  align-items: center;
  background: rgba(0,170,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 0.92rem;
  font-weight: 600;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
  transition:
    background var(--dur-sm) var(--ease-smooth),
    border-color var(--dur-sm),
    color var(--dur-sm);
}
.nav-text { width: 100%; }
.nav-top:hover { background: var(--accent-dim); border-color: var(--border-medium); color: var(--text-primary); }

.nav-top .toggle-symbol { font-size: 0.85em; opacity: 0.6; transition: transform var(--dur-sm) var(--ease-bounce); }
.nav-top.active {
  background: linear-gradient(135deg, var(--accent-dim), var(--teal-dim));
  border-color: var(--border-strong);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow-lg), 0 0 0 1px rgba(0,170,255,0.05) inset;
}
.nav-top .toggle-symbol.is-pencil { color: var(--accent) !important; }

.toggle-box {
  align-items: center;
  background: rgba(0,170,255,0.06);
  border-radius: var(--r-xs);
  cursor: pointer;
  display: flex;
  gap: 5px;
  padding: 3px 7px;
  transition: background var(--dur-sm);
}
.toggle-box:hover { background: var(--accent-dim); }
.toggle-symbol { font-size: 14px; }

.section-donut { display: inline-block; height: 30px; vertical-align: middle; width: 30px; }

.nav-sub { list-style: none; margin-top: 0.3rem; padding-left: 0.5rem; }
.nav-sub li {
  align-items: center;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 0.87rem;
  justify-content: space-between;
  padding: 0.35rem 0.65rem;
  transition:
    background var(--dur-sm) var(--ease-smooth),
    color var(--dur-sm),
    border-color var(--dur-sm),
    box-shadow var(--dur-sm);
  position: relative;
}
.nav-sub li:hover { background: var(--accent-dim); color: var(--text-primary); }
.nav-sub li.active {
  background: linear-gradient(90deg, var(--accent-dim), var(--teal-dim));
  border: 1px solid var(--border-medium);
  color: var(--accent);
  box-shadow: -3px 0 12px var(--accent-glow), 0 0 8px var(--accent-glow-lg) inset;
  animation: navItemGlow 2.5s ease-in-out infinite;
}
.nav-sub li canvas.progress-donut { display: inline-block; margin-left: 0.5rem; vertical-align: middle; }

canvas.progress-donut.donut-edited {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: donutEditedPulse 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────────────────── */
/* § 09  Settings Menu                                            */
/* ─────────────────────────────────────────────────────────────── */
.settings-wrap { position: relative; }
.settings { position: relative; }

.settings-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 7px;
  transition: background var(--dur-sm), transform var(--dur-xs), box-shadow var(--dur-sm);
}
.settings-btn:hover { background: var(--accent-dim); box-shadow: 0 0 14px var(--accent-glow); }
.settings-btn:active { transform: scale(0.90); }
.settings-btn svg path { fill: var(--text-secondary); transition: fill var(--dur-sm); }
.settings-btn:hover svg path { fill: var(--accent); }
.settings-icon { transition: transform 0.5s var(--ease-smooth); transform-origin: 50% 50%; }


.settings-menu {
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  background: var(--glass-heavy);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), 0 0 24px var(--accent-glow-lg), 0 0 0 1px rgba(0,170,255,0.06) inset;
  min-width: 155px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1000;
  color: var(--text-primary);
  animation: settingsPopIn 0.22s var(--ease-bounce) both;
}

.settings-group + .settings-group {
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
  padding-top: 10px;
}
.settings-title {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.settings-options { display: flex; gap: 8px; align-items: center; justify-content: center; }

.settings-menu .settings-lang {
  background-position: center;
  background-size: cover;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
  height: 28px; width: 28px;
  transition: transform var(--dur-sm) var(--ease-bounce), border-color var(--dur-sm), box-shadow var(--dur-sm);
}
.settings-menu #lang-de { background-image: url('https://flagcdn.com/w40/de.png'); }
.settings-menu #lang-en { background-image: url('https://flagcdn.com/w40/gb.png'); }
.settings-menu .settings-lang:hover { transform: scale(1.12); box-shadow: 0 0 12px var(--accent-glow); }
.settings-menu .settings-lang.active { border-color: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }

.settings-tools { display: flex; flex-direction: column; gap: 6px; }
.settings-tool {
  background: rgba(0,170,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: center;
  padding: 7px 0;
  transition: background var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.settings-tool:hover { background: var(--accent-dim); border-color: var(--border-medium); box-shadow: 0 0 10px var(--accent-glow-lg); }
.settings-tool:active { transform: scale(0.95); }

/* Ensure SVG icons in settings are visible */
.settings-tool svg path, .settings-tool svg polyline, .settings-tool svg line, .settings-tool svg circle { stroke: var(--text-secondary); }
.settings-tool svg[viewBox="0 0 48 48"] path { fill: var(--text-secondary); stroke: none; }
.settings-tool:hover svg path,
.settings-tool:hover svg polyline,
.settings-tool:hover svg line  { stroke: var(--accent); }
.settings-tool:hover svg[viewBox="0 0 48 48"] path { fill: var(--accent); }

.settings-note { font-size: 0.76rem; opacity: 0.6; margin-top: 4px; }

/* ── Settings button animations ── */

/* Mode icon: base states */
.mode-icon .mode-moon,
.mode-icon .mode-sun {
  transform-origin: 12px 12px;
  transition: opacity 0.38s ease, transform 0.38s var(--ease-spring);
}
/* Dark mode (default) → moon visible, sun hidden */
.mode-icon .mode-moon { opacity: 1; transform: scale(1)    rotate(0deg); }
.mode-icon .mode-sun  { opacity: 0; transform: scale(0.5)  rotate(90deg); }
/* Light mode → sun visible, moon hidden */
[data-theme="light"] .mode-icon .mode-moon { opacity: 0; transform: scale(0.5) rotate(-90deg); }
[data-theme="light"] .mode-icon .mode-sun  { opacity: 1; transform: scale(1)   rotate(0deg); }

/* Stars: fill from text color, no extra stroke */
.mode-icon circle.mode-star { fill: currentColor; stroke: none; }
.mode-icon .mode-star   { animation: stTwinkle 2.5s ease-in-out infinite; }
.mode-icon .mode-star-2 { animation-delay: 0.85s; }
.mode-icon .mode-star-3 { animation-delay: 1.7s; }

/* Sun: spin on hover in light mode */
[data-theme="light"] .settings-tool:hover .mode-icon .mode-sun {
  animation: modeSunSpin 8s linear infinite;
  transform-origin: 12px 12px;
}

/* Share: nodes stagger-pulse on hover */
.share-node { transform-box: fill-box; transform-origin: center; }
.settings-tool:hover .share-node-a { animation: shareNodePop 1.1s ease-in-out infinite; }
.settings-tool:hover .share-node-b { animation: shareNodePop 1.1s ease-in-out infinite 0.37s; }
.settings-tool:hover .share-node-c { animation: shareNodePop 1.1s ease-in-out infinite 0.74s; }

/* Export: SVG bounces upward on hover */
.settings-tool:hover .export-icon { animation: iconBounceUp 0.45s var(--ease-bounce); }

/* Clear: SVG wobbles on hover */
.settings-tool:hover .clear-icon { animation: iconWobble 0.38s ease-in-out; }

@keyframes stTwinkle {
  0%, 100% { opacity: 0.20; }
  50%       { opacity: 1; }
}
@keyframes modeSunSpin {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1) rotate(360deg); }
}
@keyframes shareNodePop {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.28); }
}
@keyframes iconBounceUp {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-3px); }
  70%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
@keyframes iconWobble {
  0%,  100% { transform: rotate(0deg); }
  25%        { transform: rotate(-8deg); }
  75%        { transform: rotate(8deg); }
}
.icon-only { align-items: center; background: transparent !important; border: 0 !important; cursor: pointer; display: inline-flex; justify-content: center; margin: 0; padding: 0 !important; width: auto; height: auto; }
.icon-only > svg { display: block; }

/* Language buttons outside settings */
#lang-de, #lang-en {
  background-position: center; background-size: cover;
  border: 2px solid transparent; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer; height: 24px; width: 24px;
  transition: transform var(--dur-sm) var(--ease-bounce), border-color var(--dur-sm);
}
#lang-de:hover, #lang-en:hover { transform: scale(1.12); }
#lang-de.active, #lang-en.active { border-color: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }


/* ─────────────────────────────────────────────────────────────── */
/* § 10  Sidebar                                                  */
/* ─────────────────────────────────────────────────────────────── */
#sidebar {
  background: linear-gradient(180deg,
    rgba(8,14,28,.97) 0%,
    rgba(6,10,20,.99) 100%);
  border-right: 1px solid rgba(0,170,255,.10);
  box-shadow: 4px 0 24px rgba(0,0,0,.4), inset -1px 0 0 rgba(0,240,255,.04);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  height: calc(100dvh - var(--sticky-offset));
  min-width: 260px; max-width: 260px;
  overflow: hidden;
  padding: 0;
  position: sticky;
  top: var(--sticky-offset);
  z-index: 10;
  transition: box-shadow 0.3s var(--ease-smooth);
}

/* ── Sidebar header ── */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0,170,255,.07);
  flex-shrink: 0;
}
.sb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 8px #00F0FF, 0 0 16px rgba(0,240,255,.5);
  flex-shrink: 0;
  animation: spCnodePulse 3s ease-in-out infinite;
}
.sb-brand-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(120,180,255,.55);
}
.sb-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s, background .2s;
}
.sb-search-icon img { width: 15px; height: 15px; filter: invert(1); }
.sb-search-icon:hover { opacity: .8; background: rgba(0,240,255,.07); }

/* ── Search bar ── */
#sidebar .search-bar {
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
#sidebar input {
  background: rgba(0,170,255,.06);
  border: 1px solid rgba(0,170,255,.14);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  margin-bottom: 0;
  padding: 0.4rem 0.65rem;
  width: 100%;
  transition: border-color var(--dur-sm), background var(--dur-sm), box-shadow var(--dur-sm);
}
#sidebar input::placeholder { color: rgba(120,170,255,.3); }
#sidebar input:focus {
  border-color: rgba(0,240,255,.3);
  background: rgba(0,240,255,.04);
  box-shadow: 0 0 10px rgba(0,240,255,.12);
  outline: none;
}

/* ── Scroll wrapper ── */
#sidebar .sidebar-scroll {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 6px;
  scrollbar-color: rgba(0,170,255,.2) transparent;
  scrollbar-width: thin;
}

/* ── Section nav items (top-level) ── */
#sidebar ul { list-style: none; padding: 0 10px; }
#sidebar ul#nav { padding: 4px 10px 0; }

#sidebar li.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-sm);
  color: rgba(160,185,230,.65);
  padding: 8px 10px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  border-left: 2px solid transparent;
  position: relative;
}
#sidebar li.nav-top:hover {
  background: rgba(0,240,255,.05);
  color: rgba(200,220,255,.85);
  border-left-color: rgba(0,240,255,.2);
}
#sidebar li.nav-top.active {
  background: rgba(0,240,255,.07);
  color: #00F0FF;
  border-left-color: #00F0FF;
  font-weight: 600;
}
#sidebar li.nav-top.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #00F0FF, #2BFFB4);
  box-shadow: 0 0 8px rgba(0,240,255,.6);
  border-radius: 0 1px 1px 0;
}

.nav-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toggle-box {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.toggle-symbol {
  font-size: 11px;
  color: rgba(120,170,255,.4);
  transition: color .18s;
}
.nav-top:hover .toggle-symbol,
.nav-top.active .toggle-symbol { color: rgba(0,240,255,.55); }

/* Section donut canvas */
.section-donut {
  width: 22px !important;
  height: 22px !important;
  display: block;
}

/* ── Category sub-nav ── */
#sidebar .nav-sub {
  padding: 0 10px 0 22px;
}
#sidebar .nav-sub li {
  border-radius: var(--r-xs);
  color: rgba(140,165,210,.5);
  font-size: 12px;
  padding: 5px 8px;
  margin-bottom: 1px;
  cursor: pointer;
  border-left: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
#sidebar .nav-sub li::before {
  content: '›';
  color: rgba(0,240,255,.25);
  font-size: 10px;
  flex-shrink: 0;
}
#sidebar .nav-sub li:hover {
  background: rgba(0,240,255,.04);
  color: rgba(180,210,255,.75);
  border-left-color: rgba(0,240,255,.15);
}
#sidebar .nav-sub li.active {
  background: rgba(0,240,255,.06);
  color: #00F0FF;
  border-left-color: rgba(0,240,255,.35);
}

/* ── Sidebar footer (rendered by JS) ── */
.sidebar-footer {
  align-items: stretch;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(0,170,255,.08);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  padding: 10px;
  position: relative;
}

#sidebar.hidden { display: none; }

#page-title-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
#page-title { flex: 1 1 auto; min-width: 0; color: var(--text-primary); font-size: 1.15rem; font-weight: 800; }

.sidebar-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  box-shadow: 0 0 12px var(--accent-glow-lg);
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  height: 40px; width: 40px;
  margin-left: 0.5rem;
  transition: background var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.sidebar-burger:hover  { background: rgba(0,170,255,0.22); box-shadow: 0 0 18px var(--accent-glow); }
.sidebar-burger:active { transform: scale(0.93); }

.footer-btn.nav-top-like {
  background: rgba(0,240,255,.04);
  border: 1px solid rgba(0,240,255,.10);
  border-radius: var(--r-sm);
  color: rgba(160,200,255,.75);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  text-align: left;
  transition: background var(--dur-sm), border-color var(--dur-sm), color var(--dur-sm), transform var(--dur-xs);
  width: 100%;
}
.footer-btn.nav-top-like:hover {
  background: rgba(0,240,255,.08);
  border-color: rgba(0,240,255,.22);
  color: #00F0FF;
}
.footer-btn.nav-top-like:active { transform: scale(0.97); }

input.invalid { border-color: var(--red) !important; }
.field-error   { color: var(--red); font-size: 0.8rem; margin-top: 4px; }

.form-action-btn.nav-top-like {
  background: rgba(0,170,255,0.06); border: 1px solid var(--border-medium); border-radius: var(--r-sm);
  color: var(--text-primary); cursor: pointer; display: block; font-weight: 600;
  margin: 12px auto 0; max-width: 320px; padding: 10px 14px;
  transition: background var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs); width: 90%;
}
.form-action-btn.nav-top-like:hover  { background: var(--accent-dim); box-shadow: 0 0 10px var(--accent-glow-lg); }
.form-action-btn.nav-top-like:active { transform: scale(0.97); }


/* ─────────────────────────────────────────────────────────────── */
/* § 11  Search                                                   */
/* ─────────────────────────────────────────────────────────────── */
.search-icon { cursor: pointer; display: flex; float: right; font-size: 1.4rem; height: 30px; transition: transform var(--dur-sm) var(--ease-bounce), filter var(--dur-sm); }
.search-icon:hover { transform: scale(1.15); filter: drop-shadow(0 0 6px var(--accent)); }

.search-bar { display: flex; gap: 0.3rem; margin: 0.5rem 0; width: 100%; }
.search-bar input {
  background: var(--accent-dim); border: 1px solid var(--border-medium); border-radius: var(--r-sm);
  color: var(--text-primary); flex: 1; font-size: 0.9rem; padding: 0.4rem 0.7rem;
  transition: border-color var(--dur-sm), box-shadow var(--dur-sm);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { border-color: var(--border-strong); box-shadow: 0 0 12px var(--accent-glow-lg); }
.search-bar button {
  background: linear-gradient(135deg, var(--accent), var(--teal)); border: none; border-radius: var(--r-sm);
  color: #fff; cursor: pointer; font-size: 1rem; margin-bottom: 0.8rem; padding: 0 0.7rem;
  transition: opacity var(--dur-sm), transform var(--dur-xs), box-shadow var(--dur-sm);
  box-shadow: 0 0 10px var(--accent-glow);
}
.search-bar button:hover  { opacity: 0.85; box-shadow: 0 0 18px var(--accent-glow); }
.search-bar button:active { transform: scale(0.93); }


/* ─────────────────────────────────────────────────────────────── */
/* § 12  Company Page                                             */
/* ─────────────────────────────────────────────────────────────── */
#nav-company::after { content: ""; }
#nav-company:hover  { text-decoration: none; }



/* ─────────────────────────────────────────────────────────────── */
/* § 13  Filters                                                  */
/* ─────────────────────────────────────────────────────────────── */
#filterBar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
#filterBar.vertical { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 16px; }
.filter-group { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

.filter-tile {
  background: rgba(0,170,255,0.05); border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm); color: var(--text-secondary);
  font-size: 0.83rem; font-weight: 700; padding: 6px 12px;
  transition: background var(--dur-sm), color var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
  cursor: default;
}
.filter-tile:hover { background: var(--accent-dim); border-color: var(--border-medium); color: var(--accent); cursor: pointer; }
.filter-tile:active { transform: scale(0.96); }

.filter-tile.filter-tile-active {
  background: linear-gradient(135deg, var(--accent), var(--teal)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 18px var(--accent-glow) !important;
}

.filter-chip {
  background: rgba(0,170,255,0.05); border: 1px solid var(--border-subtle);
  border-radius: 999px; color: var(--text-secondary); cursor: pointer;
  font-size: 0.82rem; padding: 5px 12px;
  transition: transform var(--dur-sm) var(--ease-bounce), background var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm);
  user-select: none;
}
.filter-chip:hover  { transform: translateY(-1px); border-color: var(--border-medium); color: var(--text-primary); }
.filter-chip:active { transform: scale(0.96); }
.filter-chip.active { border-color: var(--text-muted); }

.filter-chip[data-facet="criticality"]        { background: rgba(255,56,96,0.06);  border-color: rgba(255,56,96,0.15); }
.filter-chip[data-facet="criticality"].active { background: rgba(255,56,96,0.12); border-color: rgba(255,56,96,0.40); color: #ff6688; }
.filter-chip[data-facet="effort"]             { background: rgba(0,170,255,0.06); border-color: rgba(0,170,255,0.15); }
.filter-chip[data-facet="effort"].active      { background: var(--accent-dim); border-color: var(--border-strong); color: var(--accent); }
.filter-chip[data-facet="doing"]              { background: rgba(124,58,255,0.06); border-color: rgba(124,58,255,0.15); }
.filter-chip[data-facet="doing"].active       { background: rgba(124,58,255,0.12); border-color: rgba(124,58,255,0.40); color: #a06bff; }

.filter-reset {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm); color: var(--text-muted);
  font-size: 0.83rem; font-weight: 700; padding: 6px 12px; cursor: pointer;
  transition: background var(--dur-sm), color var(--dur-sm), border-color var(--dur-sm);
}
.filter-reset:hover { background: var(--accent-dim); border-color: var(--border-medium); color: var(--accent); }

[type="button"]:hover { background: var(--accent-dim); color: var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent-dim); color: var(--accent); cursor: pointer; }
.footer-btn:hover { color: var(--teal); }


/* ─────────────────────────────────────────────────────────────── */
/* § 14  Main Content & Layout                                    */
/* ─────────────────────────────────────────────────────────────── */

/* When the homepage hero is shown, body uses no top padding (hero handles nav offset) */
body.home-mode { padding-top: 0; }

.container, #tool-container {
  display: flex;
  flex: 1;
  max-width: var(--max-content-width);
  margin: 0 auto;
  width: 100%;
}
#tool-container {
  flex-direction: column;
  align-items: stretch;
}
.rm-body-row {
  display: flex;
  flex: 1;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
}
/* Critical: allow [hidden] attribute to actually hide the tool container */
#tool-container[hidden],
#home-page[hidden],
.sub-page[hidden] { display: none !important; }

.chart-container {
  align-items: center; display: flex; flex-direction: column;
  float: right; height: 100px; margin-left: 0; visibility: hidden; width: 100px;
}
.charts-deck {
  align-items: center; display: flex; float: right;
  gap: 0.8rem; justify-content: flex-end; min-height: 130px;
}
.chart-label { color: var(--text-secondary); font-size: 0.76rem; margin-top: 0.25rem; opacity: 0.85; }

.container.start-mode, #tool-container.start-mode { grid-template-columns: 1fr; }
#content.start-centered { margin-left: auto; margin-right: auto; }
.start-centered #page-title-bar { display: none; }
.chart-container:not(.is-hidden) { visibility: visible; }
.chart-container { transform-origin: 50% 50%; will-change: transform, opacity; }
.chart-container.is-exiting  { animation: balloonOut 0.35s ease forwards; }
.chart-container.is-entering { animation: balloonIn  0.35s ease forwards; }

main { flex: 1; max-width: 1200px; overflow-y: auto; padding: 1rem; padding-top: 0; }
main#content { min-height: 0; }


/* ─────────────────────────────────────────────────────────────── */
/* § 15  Category Boxes  –  Bento + Animated Gradient Border     */
/* ─────────────────────────────────────────────────────────────── */
.category-box {
  background: var(--bg-surface);
  border: var(--border-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;       /* gap now handled by .cyber-divider + flex on #categoryContent */
  padding: 1.4rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform var(--dur-md) var(--ease-smooth),
    box-shadow var(--dur-md) var(--ease-smooth),
    border-color var(--dur-md);
}

/* Rotating gradient border on hover via conic-gradient + @property */
.category-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--card-angle),
    transparent 0deg,
    var(--accent) 45deg,
    var(--teal) 180deg,
    var(--purple) 270deg,
    transparent 360deg
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

/* Inner surface re-fill so conic border shows only as ring */
.category-box::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--r-md) - 1px);
  background: var(--bg-surface);
  z-index: -1;
}

.category-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow-lg);
}
.category-box:hover::before {
  opacity: 0.65;
  animation: rotateCardBorder 3.5s linear infinite;
}
.category-box:active { transform: scale(0.99); }

.category-box h3 { color: var(--text-primary); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.category-box p, .category-box li { color: var(--text-secondary); line-height: 1.65; }
.category-box ul { padding: 0 20px; list-style: none; }
.category-box a { color: var(--teal); text-decoration: none; }
.category-box a:hover { text-decoration: underline; }

#categoryContent {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Cyber Divider — injected between .category-box elements by cyber-fx.js ─── */
.cyber-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 0.25rem 0;
  pointer-events: none;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(0,240,255,.65)) drop-shadow(0 0 10px rgba(0,170,255,.35));
}

/* Full-width gradient scan line – glow via parent filter, no box-shadow */
.cyber-divider::before {
  content: "";
  position: absolute;
  left: 5%; right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,170,255,0.5) 15%,
    var(--accent) 35%,
    var(--teal)   50%,
    var(--accent) 65%,
    rgba(0,170,255,0.5) 85%,
    transparent   100%
  );
  opacity: 0.75;
}

/* Center security glyph with proper glow */
.cyber-divider::after {
  content: "◈";
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--teal);
  opacity: 0.95;
  background: var(--bg-canvas);
  padding: 0 20px;
  text-shadow:
    0 0 8px var(--teal),
    0 0 20px rgba(0,229,204,0.5),
    -16px 0 0 var(--accent),
    16px 0 0 var(--accent),
    -16px 0 6px rgba(0,170,255,0.4),
    16px 0 6px rgba(0,170,255,0.4);
  animation: checkboxShield 3.5s ease-in-out infinite;
}
/* ───────────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────── */
/* § 16  Forms & Inputs                                           */
/* ─────────────────────────────────────────────────────────────── */
.anzeige-box input {
  background: rgba(0,170,255,0.06); border: 1px solid var(--border-medium); border-radius: var(--r-md);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3) inset;
  color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.8rem; padding: 10px 14px; width: 97%;
  transition: border-color var(--dur-sm), background var(--dur-sm), box-shadow var(--dur-sm);
}
.anzeige-box input::placeholder { color: var(--text-muted); }
.anzeige-box input:focus { border-color: var(--border-strong); background: var(--accent-dim); box-shadow: 0 0 14px var(--accent-glow-lg); }

.anzeige-box textarea {
  background: rgba(0,170,255,0.06); border: 1px solid var(--border-medium); border-radius: var(--r-md);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3) inset; box-sizing: border-box;
  color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.8rem; min-height: 34px;
  overflow-wrap: break-word; padding: 10px 14px; resize: vertical; white-space: pre-wrap; width: 100%;
  transition: border-color var(--dur-sm), background var(--dur-sm), box-shadow var(--dur-sm);
}
.anzeige-box textarea::placeholder { color: var(--text-muted); }
.anzeige-box textarea:focus { border-color: var(--border-strong); background: var(--accent-dim); box-shadow: 0 0 14px var(--accent-glow-lg); }


/* ─────────────────────────────────────────────────────────────── */
/* § 17  Checklist                                                */
/* ─────────────────────────────────────────────────────────────── */
.checklist-item {
  align-items: center; display: flex; flex-wrap: wrap;
  margin: 0.4rem 0; transition: opacity var(--dur-sm);
}

.checklist-item input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  background: rgba(0,170,255,0.08);
  border: 2px solid var(--border-medium);
  border-radius: 5px; cursor: pointer;
  flex-shrink: 0; height: 20px; margin-right: 10px;
  position: relative; width: 20px;
  transition: background var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm);
}
.checklist-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-color: transparent;
  animation: checkboxShield 3s ease-in-out infinite;
}
.checklist-item input[type="checkbox"]:checked::after {
  color: #fff; content: "✓"; font-size: 12px; font-weight: 700;
  left: 2px; position: absolute; top: -2px;
}
.checklist-item label { color: var(--text-secondary); cursor: pointer; transition: color var(--dur-sm); }
.checklist-item input[type="checkbox"]:checked + label { color: var(--text-muted); opacity: 0.65; text-decoration: line-through; }

.checklist-item.is-hidden { opacity: 0.2; filter: grayscale(50%); }

.checklist-group-header { list-style: none; margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border-subtle); }
.checklist-group-title { color: var(--text-primary); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.checklist-group-header + .checklist-item { margin-top: 0.5rem; }


/* ─────────────────────────────────────────────────────────────── */
/* § 18  Info Button & Item Description                           */
/* ─────────────────────────────────────────────────────────────── */
.checklist-item .item-description { flex: 1 1 100%; }

.hide-btn {
  margin-left: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: var(--r-xs); border: 1px solid var(--border-subtle);
  background: rgba(0,170,255,0.08); max-width: fit-content;
  transition: background var(--dur-sm), border-color var(--dur-sm), box-shadow var(--dur-sm);
}
.hide-btn:hover { background: var(--accent-dim); border-color: var(--border-medium); box-shadow: 0 0 8px var(--accent-glow-lg); }
.hide-btn[aria-pressed="true"] svg { opacity: 0.5; }
.actions { align-items: center; height: 18px; }

.info-btn {
  backdrop-filter: blur(6px);
  background: linear-gradient(135deg, var(--accent-dim), var(--teal-dim));
  border: 1px solid var(--border-medium); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow-lg);
  color: var(--accent); cursor: pointer;
  display: inline-block; font-size: 13px; line-height: 18px;
  margin-left: 6px; text-align: center; user-select: none; width: 18px;
  transition: box-shadow var(--dur-sm), background var(--dur-sm);
}
.info-btn:hover { box-shadow: 0 0 16px var(--accent-glow), 0 0 0 2px var(--accent-dim); }

.item-description {
  backdrop-filter: blur(8px);
  background: var(--glass-item);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  box-shadow: 0 0 14px var(--teal-glow);
  color: var(--text-secondary);
  flex: 0.5; font-size: 0.87em; line-height: 1.6;
  margin-top: 6px; min-width: 100px; overflow-y: auto; padding: 10px 13px;
}


/* ─────────────────────────────────────────────────────────────── */
/* § 19  Progress Bars & Donuts                                   */
/* ─────────────────────────────────────────────────────────────── */
.progress {
  background: rgba(0,170,255,0.08); border-radius: var(--r-sm);
  height: 12px; margin: 0.5rem 0 1rem; overflow: hidden; position: relative;
}
.progress-bar {
  animation: progressShimmer 8s ease-in-out infinite;
  background: linear-gradient(90deg, var(--teal), var(--accent), var(--teal));
  background-size: 300% 100%;
  border-radius: var(--r-sm); height: 100%; position: relative; width: 100%;
  box-shadow: 0 0 14px var(--accent-glow), 0 0 6px var(--teal-glow);
}
.progress-bar::after {
  content: "";
  position: absolute; top: 0; left: -50%; height: 100%; width: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.3) 0%, transparent 45%);
  animation: sparkle 24s linear infinite;
}

.progress-donut { display: inline-block; height: 30px; margin-left: auto; vertical-align: middle; width: 30px; }


/* ─────────────────────────────────────────────────────────────── */
/* § 20  Badges                                                   */
/* ─────────────────────────────────────────────────────────────── */
.badge {
  border-radius: var(--r-xs); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em; margin-left: 0.5rem; padding: 3px 8px;
  position: relative; color: #fff;
}
.badge.hoch   { background: linear-gradient(135deg,#ff4455,#cc1133); box-shadow: 0 2px 10px rgba(255,56,80,0.40); }
.badge.mittel { background: linear-gradient(135deg,#ffbb00,#ee9900); box-shadow: 0 2px 10px rgba(255,170,0,0.35); color: #111; }
.badge.niedrig{ background: linear-gradient(135deg,#00dd88,#00aa55); box-shadow: 0 2px 10px rgba(0,200,100,0.35); }
.badge.must   { background: linear-gradient(135deg,#ff8899,#ff5566); color: #111; box-shadow: 0 2px 8px rgba(255,85,102,0.30); }
.badge.should { background: linear-gradient(135deg,#ffee99,#ffcc44); color: #111; box-shadow: 0 2px 8px rgba(255,204,68,0.30); }
.badge.effort.effort-a1 { background: linear-gradient(135deg,#dde4ff,#b8c8ff); color: #1a2060; }
.badge.effort.effort-a2 { background: linear-gradient(135deg,#b8c8ff,#8899ee); color: #1a2060; }
.badge.effort.effort-a3 { background: linear-gradient(135deg,#8899ee,#6677cc); }
.badge.effort.effort-a4 { background: linear-gradient(135deg,#6677cc,#4455aa); }


/* ─────────────────────────────────────────────────────────────── */
/* § 21  Generic Modal                                            */
/* ─────────────────────────────────────────────────────────────── */
.custom-modal {
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; left: 0; top: 0; overflow: auto;
  position: fixed; width: 100%; height: 100%; z-index: 10000;
}
.custom-modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow-lg);
  color: var(--text-primary);
  margin: 7% auto; max-width: 640px; padding: 2.2rem;
  position: relative; width: 90%;
  animation: modalPopIn 0.3s var(--ease-spring) both;
}
.custom-modal-content h2, .custom-modal-content h3, .custom-modal-content h4 { color: var(--text-primary); }
.custom-modal-content p, .custom-modal-content li { color: var(--text-secondary); line-height: 1.65; }
.custom-modal-content a { color: var(--teal); }

.custom-modal-close {
  color: var(--text-muted); cursor: pointer; font-size: 1.6rem;
  font-weight: 300; line-height: 1;
  position: absolute; right: 18px; top: 14px;
  transition: color var(--dur-sm), transform var(--dur-sm) var(--ease-bounce);
}
.custom-modal-close:hover { color: var(--text-primary); transform: scale(1.20) rotate(90deg); }


/* ─────────────────────────────────────────────────────────────── */
/* § 22  BSI Grundschutz Visuals                                  */
/* ─────────────────────────────────────────────────────────────── */
.gs-pyramid.pyramid--triangle {
  display: grid; gap: 12px; grid-auto-rows: auto;
  justify-items: stretch; margin: 18px auto; position: relative;
  width: clamp(280px, 50vw, 760px);
}
.gs-pyramid.pyramid--triangle::before {
  border-radius: 14px; clip-path: polygon(50% 0%,100% 100%,0% 100%);
  content: ""; inset: 0; opacity: 0.18; pointer-events: none; position: absolute;
}
.gs-pyramid.pyramid--triangle .gs-apex   { grid-column: 3 / 4; }
.gs-pyramid.pyramid--triangle .gs-middle { grid-column: 2 / 5; }
.gs-pyramid.pyramid--triangle .gs-base   { grid-column: 1 / 6; }

.gs-node {
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  appearance: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--border-medium); border-radius: 14px;
  box-shadow: var(--shadow-sm); color: var(--text-primary);
  cursor: pointer; font: inherit; padding: 12px 16px; text-align: center;
  transition: transform 0.12s var(--ease-smooth), filter 0.2s, box-shadow 0.2s;
}
.gs-pyramid.pyramid--triangle .gs-node { justify-self: stretch; min-width: 0; width: 100%; }
.gs-pyramid.pyramid--triangle .gs-apex   { max-width: 280px; justify-self: center; }
.gs-pyramid.pyramid--triangle .gs-middle { max-width: 520px; justify-self: center; }
.gs-pyramid.pyramid--triangle .gs-base   { max-width: 760px; justify-self: center; }
.gs-node:hover  { transform: translateY(-2px); filter: brightness(1.15); box-shadow: var(--shadow-md), 0 0 16px var(--accent-glow-lg); }
.gs-node:active { transform: scale(0.97); }
.gs-node.gs-apex   { background: linear-gradient(135deg,rgba(200,40,0,0.20),rgba(200,40,0,0.55)); border-color: rgba(200,40,0,0.35); }
.gs-node.gs-middle { background: linear-gradient(135deg,rgba(120,0,150,0.20),rgba(120,0,150,0.55)); border-color: rgba(120,0,150,0.35); }
.gs-node.gs-base   { background: linear-gradient(135deg,rgba(0,100,255,0.15),rgba(0,170,255,0.45)); border-color: var(--border-medium); }

.gs-house {
  --base-color: var(--accent); --proc-bg: rgba(0,170,255,0.10);
  --roof-color: var(--accent); --sys-bg: rgba(0,229,204,0.10);
  margin: 18px auto; max-width: 820px; position: relative;
}
.gs-house .roof { cursor: pointer; height: 64px; margin: 0 24px; position: relative; }
.gs-house .roof::before { background: var(--roof-color); border-radius: 6px 6px 10px 10px; clip-path: polygon(50% 0%,100% 100%,0% 100%); content: ""; position: absolute; inset: 0; }
.gs-house .roof .label { color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.6); position: absolute; left: 50%; top: 50%; transform: translateX(-50%); }
.gs-house .capline { background: rgba(0,170,255,0.25); border-radius: 3px; height: 4px; margin: 0 24px 6px; }
.gs-house .layer { border: 1px solid var(--border-subtle); border-radius: 10px; margin: 8px 24px; padding: 18px 14px 14px; position: relative; }
.gs-house .layer.process { background: var(--proc-bg); }
.gs-house .layer.system  { background: var(--sys-bg); }
.gs-house .layer .layer-title { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; position: absolute; right: 10px; top: 2px; }
.gs-house .tiles { display: grid; gap: 10px; }
.gs-house .tiles .gs-tile {
  background: rgba(0,170,255,0.06); border: 1px solid var(--border-subtle); border-radius: 10px;
  box-shadow: var(--shadow-sm); color: var(--text-secondary);
  justify-self: stretch; min-width: 0; padding: 10px 12px; text-align: center;
  transition: transform var(--dur-sm), background var(--dur-sm), box-shadow var(--dur-sm);
}
.gs-house .tiles .gs-tile:hover  { transform: translateY(-1px); background: var(--accent-dim); cursor: pointer; box-shadow: 0 0 12px var(--accent-glow-lg); }
.gs-house .tiles .gs-tile:active { transform: scale(0.97); }
.gs-house .layer.process .tiles { grid-template-columns: repeat(3,1fr); }
.gs-house .layer.system  .tiles { grid-template-columns: repeat(5,1fr); }
.gs-house .layer.process .gs-tile,
.gs-house .layer.system  .gs-tile { grid-column: auto !important; }
.gs-house .foundation {
  background: var(--base-color); border-radius: 6px; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin: 8px 24px 0; padding: 8px 12px; transition: filter var(--dur-sm), box-shadow var(--dur-sm);
}
.gs-house .foundation:hover { filter: brightness(1.12); box-shadow: 0 0 18px var(--accent-glow); }
.gs-house .foundation .label { color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.gs-desc { display: none; margin: 8px 0 12px; }
.gs-desc.open { display: block; }
h2.gs-desc-title { display: none; }
h2.gs-desc-title.visible { display: block; }


/* ─────────────────────────────────────────────────────────────── */
/* § 23  Report Modal                                             */
/* ─────────────────────────────────────────────────────────────── */
.report-modal-backdrop {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.75); display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 9999;
}
.report-modal {
  background: var(--bg-elevated); border: 1px solid var(--border-medium);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow-lg);
  color: var(--text-primary); overflow: hidden; width: min(720px,92vw);
  animation: modalPopIn 0.3s var(--ease-spring) both;
}
.report-modal header { background: rgba(0,170,255,0.06); border-bottom: 1px solid var(--border-subtle); font-weight: 700; padding: 16px 18px; }
.report-modal .body  { padding: 16px 18px; display: grid; gap: 14px; }
.report-groups { display: grid; gap: 14px; }
.report-group { background: rgba(0,170,255,0.05); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 12px; }
.report-group h4 { margin: 0 0 8px; font-size: 0.88rem; color: var(--text-primary); }
.report-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.report-option {
  background: rgba(0,170,255,0.05); border: 1px solid var(--border-subtle); border-radius: var(--r-sm);
  color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  transition: background var(--dur-sm), border-color var(--dur-sm);
}
.report-option:hover { background: var(--accent-dim); border-color: var(--border-medium); }
.report-option input { accent-color: var(--accent) !important; }
.report-modal footer { background: rgba(0,0,0,0.15); border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; }
.report-modal .btn {
  background: rgba(0,170,255,0.08); border: 1px solid var(--border-medium); border-radius: var(--r-sm);
  color: var(--text-primary); cursor: pointer; padding: 8px 14px;
  transition: background var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
.report-modal .btn:hover { background: var(--accent-dim); box-shadow: 0 0 10px var(--accent-glow-lg); }
.report-modal .btn:active { transform: scale(0.96); }
.report-modal .btn.primary { background: linear-gradient(135deg,var(--accent),var(--teal)); border-color: transparent; color: #fff; box-shadow: 0 4px 18px var(--accent-glow); }
.report-modal .btn.primary:hover { box-shadow: 0 4px 28px var(--accent-glow); }

#clear-confirm:hover { background: rgba(255,56,96,0.20); color: var(--red); cursor: pointer; }
#clear-cancel:hover, #btn-export:hover, #btn-copy-link:hover, #btn-share:hover { background: var(--accent-dim); color: var(--accent); cursor: pointer; }

#modal-share #qr-wrap { margin-top: 12px; }
#modal-share #qr-wrap canvas {
  display: block; width: min(60vw,260px); height: auto;
  image-rendering: pixelated;
  border: 5px solid rgba(0,170,255,0.20); border-radius: var(--r-sm);
}


/* ─────────────────────────────────────────────────────────────── */
/* § 24  Scroll-to-top                                            */
/* ─────────────────────────────────────────────────────────────── */
#scrollToTopBtn {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  background-size: 200% 200%;
  border: none; border-radius: var(--r-sm);
  bottom: 20px; right: 20px; left: auto;
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
  color: #fff; cursor: pointer;
  display: flex; flex-direction: column;
  height: 44px; width: 44px;
  justify-content: center;
  opacity: 0; padding: 0.6rem;
  pointer-events: none; position: fixed;
  transform: translateY(12px);
  transition: opacity var(--dur-md) var(--ease-smooth), transform var(--dur-md) var(--ease-smooth), box-shadow var(--dur-sm);
  animation: shimmerBG 4s ease infinite;
}
#scrollToTopBtn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scrollToTopBtn:hover { box-shadow: var(--shadow-lg), 0 0 35px var(--accent-glow); }
#scrollToTopBtn:active { transform: scale(0.90); }


/* ─────────────────────────────────────────────────────────────── */
/* § 25  Footer                                                   */
/* ─────────────────────────────────────────────────────────────── */
.globalfooter {
  flex: 0 0 auto;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 48px clamp(20px, 6vw, 100px) 20px;
}

.footer-container {
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 40px 60px;
  max-width: var(--max-content-width);
  margin: 0 auto 32px;
}
.footer-section { flex: 1 1 180px; max-width: 280px; }
.footer-section h3, .footer-section h4 { color: var(--text-primary); font-size: 14px; margin-bottom: 14px; font-weight: 700; letter-spacing: .04em; }
.footer-section ul { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.footer-section p { line-height: 1.7; margin-bottom: 6px; }
.footer-section a { color: var(--text-secondary); text-decoration: none; transition: color var(--dur-sm); }
.footer-section a:hover { color: var(--teal); }
.footer-section .menu-item { color: var(--text-secondary); font-size: 0.85rem; padding: 3px 0; cursor: pointer; }
.footer-section .menu-item:hover { color: var(--teal); }


/* ─────────────────────────────────────────────────────────────── */
/* § 26  Cookie Consent  –  Frosted Glass Bottom Bar             */
/* ─────────────────────────────────────────────────────────────── */
#cookie-overlay {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.55);
  display: none; height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 9999;
}

#cookie-popup {
  animation: cookieSpringUp 0.55s var(--ease-spring) both;
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  background: var(--glass-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-2xl);
  bottom: 20px; left: 50%;
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow-lg), 0 0 0 1px rgba(0,170,255,0.06) inset;
  display: none; max-width: 540px; padding: 24px 28px;
  position: fixed; text-align: center;
  transform: translateX(-50%); width: 92%; z-index: 10000;
}

/* Scanning border animation on cookie popup */
#cookie-popup::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--card-angle), var(--accent) 10%, var(--teal) 25%, transparent 40%, transparent 85%, var(--accent) 95%);
  z-index: -1;
  animation: rotateCardBorder 6s linear infinite;
  opacity: 0.4;
}
#cookie-popup::after {
  content: "";
  position: absolute; inset: 1px;
  border-radius: calc(var(--r-2xl) - 1px);
  background: var(--glass-surface);
  z-index: -1;
}

#cookie-popup h2 { color: var(--text-primary); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
#cookie-popup p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 18px; }

.popup-buttons { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }

#accept-cookies {
  background: linear-gradient(135deg, var(--accent), var(--teal)); border: none;
  border-radius: 999px; color: #fff; cursor: pointer;
  font-size: 0.88rem; font-weight: 700; padding: 10px 26px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: box-shadow var(--dur-sm), transform var(--dur-xs);
  animation: btnBreathe 3.5s ease-in-out infinite;
}
#accept-cookies:hover  { box-shadow: 0 4px 30px var(--accent-glow); }
#accept-cookies:active { transform: scale(0.96); }

#leave-site {
  background: rgba(255,56,96,0.12); border: 1px solid rgba(255,56,96,0.30);
  border-radius: 999px; color: var(--red); cursor: pointer;
  font-size: 0.88rem; font-weight: 700; padding: 10px 20px;
  transition: background var(--dur-sm), box-shadow var(--dur-sm), transform var(--dur-xs);
}
#leave-site:hover  { background: rgba(255,56,96,0.22); box-shadow: 0 0 14px rgba(255,56,96,0.25); }
#leave-site:active { transform: scale(0.96); }

.cookie-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 4px; }
.cookielink {
  background: rgba(0,170,255,0.06); border: 1px solid var(--border-subtle); border-radius: 999px; cursor: pointer;
  padding: 0; transition: background var(--dur-sm), border-color var(--dur-sm);
}
.cookielink:hover { background: var(--accent-dim); border-color: var(--border-medium); }
.cookielink .menu-item { color: var(--text-muted); font-size: 0.76rem; padding: 4px 12px; }
.cookielink:hover .menu-item { color: var(--teal); }
.no-scroll { height: 100vh; overflow: hidden; }


/* ─────────────────────────────────────────────────────────────── */
/* § 27  Custom Scrollbars                                        */
/* ─────────────────────────────────────────────────────────────── */
#sidebar .sidebar-scroll::-webkit-scrollbar { background: transparent; height: 6px; width: 6px; }
#sidebar .sidebar-scroll::-webkit-scrollbar-track { background: transparent; border-radius: 99px; margin: 4px; }
#sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,170,255,0.25); border: 1px solid rgba(0,170,255,0.12); border-radius: 99px;
}
#sidebar .sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0,170,255,0.45); box-shadow: 0 0 8px var(--accent-glow);
}


/* ─────────────────────────────────────────────────────────────── */
/* § 28  Charts & Stats                                           */
/* ─────────────────────────────────────────────────────────────── */
.stats { align-items: start; }
.stat-wrap { display: grid; grid-template-rows: auto auto; gap: 6px; text-align: center; }
.stat-label { font-size: 12px; color: var(--text-muted); }

.feature-grid-animated .card { position: relative; overflow: hidden; transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s; }
.feature-grid-animated .card::after {
  background: radial-gradient(circle at 75% 25%, var(--accent-glow-lg), transparent 55%);
  content: ""; position: absolute; inset: -40% -20% auto auto; height: 120px; width: 120px;
  transform: translate3d(0,0,0) rotate(12deg); pointer-events: none;
}
.feature-grid-animated .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow-lg); }

.demo-chart { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 10px; padding: 12px; }
.demo-chart .bar { display: flex; align-items: center; gap: 8px; }
.demo-chart .bar .lbl { width: 80px; font-size: 12px; color: var(--text-muted); }
.demo-chart .bar .val {
  height: 8px; border-radius: 6px; flex: 1; background: rgba(0,170,255,0.08); overflow: hidden; position: relative;
}
.demo-chart .bar .val > i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width 0.9s var(--ease-smooth);
  box-shadow: 0 0 8px var(--accent-glow);
}
.demo-chart .bar:nth-child(2) .val > i { background: linear-gradient(90deg, var(--teal), var(--purple)); }
.demo-chart .bar:nth-child(3) .val > i { background: linear-gradient(90deg, var(--purple), var(--accent)); }


/* ─────────────────────────────────────────────────────────────── */
/* § 29  Startseite – Hero / Features / Logos                     */
/* ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(24px, 5vw, 60px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: var(--border-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Scanning beam on hero */
.hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -2%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--teal), var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 50px var(--accent-glow-lg);
  animation: heroScan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
/* Corner glow orbs */
.hero::after {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.hero .orb-2-static {
  position: absolute; bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--teal-glow), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  position: relative; z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(28px, 4.8vw, 50px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 14px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 40%, var(--teal) 70%, var(--text-primary) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero-copy p {
  color: var(--text-secondary);
  font-size: clamp(14px, 2vw, 16.5px);
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 12px; margin: 20px 0 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--border-medium);
  cursor: pointer; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; user-select: none;
  transition:
    transform var(--dur-xs) var(--ease-smooth),
    box-shadow var(--dur-sm),
    background var(--dur-sm);
  position: relative; overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s var(--ease-smooth);
}
.btn:hover::after { left: 140%; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 24px var(--accent-glow);
  animation: btnBreathe 4s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 6px 36px var(--accent-glow); }

.btn-ghost {
  background: rgba(0,170,255,0.07);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--border-strong); }

.hero-bullets {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px;
  list-style: none; margin: 14px 0 0; padding: 0;
  font-size: 13px; color: var(--text-secondary);
}
.hero-bullets li::before { content: "⬡ "; color: var(--teal); font-size: 10px; }

.hero-visual { position: relative; min-height: 220px; }

/* Cards (generic) */
.card {
  background: var(--glass-card);
  border: var(--border-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-md) var(--ease-smooth), box-shadow var(--dur-md), border-color var(--dur-md);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow-lg); border-color: var(--border-medium); }
.card:active { transform: scale(0.98); }

.demo-chart { position: absolute; right: 0; top: 0; width: 70%; height: 56%; }
.demo-list  { position: absolute; left: 0; bottom: 0; width: 64%; height: 48%; }

.blur.orb { position: absolute; filter: blur(40px); opacity: 0.5; }
.orb-1 { width: 220px; height: 220px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(0,100,255,0.35), transparent 60%); animation: orbFloat 12s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; left: -40px; bottom: -60px; background: radial-gradient(circle, rgba(0,200,180,0.30), transparent 60%); animation: orbFloat 16s ease-in-out infinite reverse; }

/* Logos marquee */
.logos { padding: 10px 0 6px; }
.marquee {
  display: flex; gap: 32px; overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .logo {
  color: var(--text-muted); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.10em; opacity: 0.7;
  animation: marqueeScroll 18s linear infinite;
}

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-grid .card { padding: 20px; border: var(--border-card); }
.feature-grid h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.feature-grid p  { color: var(--text-secondary); font-size: 0.87rem; line-height: 1.6; }

/* Staggered reveal for feature cards */
.feature-grid .card:nth-child(1) { animation-delay: 0s; }
.feature-grid .card:nth-child(2) { animation-delay: 0.1s; }
.feature-grid .card:nth-child(3) { animation-delay: 0.2s; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px; align-items: end; margin-top: 8px;
}
.stat {
  font-size: clamp(26px, 5vw, 42px); font-weight: 900; text-align: center;
  background: var(--bg-elevated); border: var(--border-card); border-radius: var(--r-md);
  padding: 14px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-sm), border-color var(--dur-sm);
}
.stat:hover { box-shadow: var(--shadow-md), 0 0 16px var(--accent-glow-lg); border-color: var(--border-medium); }
.stat-caption { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--text-muted); }

/* Reveal animations – enhanced */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.75s var(--ease-smooth),
    transform 0.75s var(--ease-smooth);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger children inside revealed sections */
.reveal.in > *:nth-child(1) { transition-delay: 0s; }
.reveal.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal.in > *:nth-child(5) { transition-delay: 0.32s; }


/* ─────────────────────────────────────────────────────────────── */
/* § 29b  Homepage Intro Animation                                */
/* ─────────────────────────────────────────────────────────────── */

/* Boot overlay: full-screen flash + scan on hp-intro */
.hp-boot-overlay {
  position: fixed; inset: 0;
  z-index: 9900;
  pointer-events: none;
  opacity: 0;
}
#home-page.hp-intro .hp-boot-overlay {
  animation: hpBootFlash .55s ease-out both;
}
.hp-boot-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0,240,255,.9) 40%,
    rgba(43,255,180,.8) 60%, transparent 100%);
  box-shadow: 0 0 24px rgba(0,240,255,.9), 0 0 50px rgba(0,240,255,.35);
}
#home-page.hp-intro .hp-boot-scan {
  animation: hpBootScanLine .45s cubic-bezier(.4,0,.6,1) both;
}

/* Hero element staggered entrance */
#home-page.hp-intro .hp-hero-kicker   { animation: hpFadeUp .5s ease-out .22s both; }
#home-page.hp-intro .hp-hero-headline { animation: hpFadeUp .75s cubic-bezier(.22,.68,0,1.12) .42s both; }
#home-page.hp-intro .hp-hero-sub      { animation: hpFadeUp .5s ease-out .68s both; }
#home-page.hp-intro .hp-hero-ctas     { animation: hpFadeUp .48s ease-out .88s both; }
#home-page.hp-intro .hp-hud           { animation: hpFadeUp .4s ease-out 1.05s both; }

/* Shield + bento cards */
#home-page.hp-intro .hero-shield-wrap  { animation: hpShieldIn 1.1s cubic-bezier(.34,1.56,.64,1) .12s both; }
#home-page.hp-intro .hp-bento-tl       { animation: hpBentoSlideL .65s ease-out .95s both; }
#home-page.hp-intro .hp-bento-tr       { animation: hpBentoSlideR .65s ease-out 1.15s both; }


@keyframes hpBootFlash {
  0%   { background: rgba(0,240,255,.09); opacity: 1; }
  25%  { background: rgba(0,240,255,.04); opacity: 1; }
  100% { background: transparent; opacity: 0; }
}
@keyframes hpBootScanLine {
  0%   { top: 0;     opacity: 1; }
  90%  { opacity: .5; }
  100% { top: 100vh; opacity: 0; }
}
@keyframes hpFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hpShieldIn {
  from { opacity: 0; transform: translateY(calc(-50% + 16px)) scale(.72); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); }
}
@keyframes hpBentoSlideL {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hpBentoSlideR {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─────────────────────────────────────────────────────────────── */
/* § 30  Skeleton Loaders                                         */
/* ─────────────────────────────────────────────────────────────── */
.skeleton-loader {
  background: var(--bg-elevated); border-radius: var(--r-md);
  position: relative; overflow: hidden;
}
.skeleton-loader::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,170,255,0.08) 40%, rgba(0,170,255,0.14) 50%, rgba(0,170,255,0.08) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}
.skeleton-text { height: 1em; border-radius: 4px; margin-bottom: 8px; background: rgba(0,170,255,0.06); }
.skeleton-text:last-child { width: 70%; }

/* Route transition overlay */
.route-spinner-overlay {
  position: fixed; inset: 0; z-index: 9998;
  display: grid; place-items: center;
  background: var(--glass-overlay);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: all;
  transition: opacity 0.2s var(--ease-smooth);
}


/* ─────────────────────────────────────────────────────────────── */
/* § 31  @keyframes                                               */
/* ─────────────────────────────────────────────────────────────── */

@keyframes bgOrbDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(4%, -3%) scale(1.05); }
  66%  { transform: translate(-3%, 5%) scale(0.97); }
  100% { transform: translate(2%, -2%) scale(1.03); }
}

@keyframes headerScan {
  0%   { left: -55%; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.80; }
}

@keyframes logoBreathe {
  0%, 100% { box-shadow: 0 0 12px rgba(0,170,255,0.14); }
  50%       { box-shadow: 0 0 24px rgba(0,170,255,0.30), 0 0 8px rgba(0,229,204,0.20); }
}

@keyframes settingsPopIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes itemReveal {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes navItemGlow {
  0%, 100% { box-shadow: -3px 0 12px var(--accent-glow), 0 0 8px var(--accent-glow-lg) inset; }
  50%       { box-shadow: -3px 0 20px var(--accent-glow), 0 0 16px var(--accent-dim) inset; }
}

@keyframes donutEditedPulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-glow); }
  50%       { box-shadow: 0 0 18px var(--accent-glow), 0 0 0 4px var(--accent-dim); }
}

@keyframes rotateCardBorder {
  to { --card-angle: 360deg; }
}

@keyframes checkboxShield {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,170,255,0); }
  50%       { box-shadow: 0 0 0 5px rgba(0,170,255,0.15), 0 0 16px rgba(0,170,255,0.10); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow), 0 0 10px var(--accent-glow); }
  50%       { box-shadow: 0 0 0 6px var(--accent-dim), 0 0 20px var(--accent-glow); }
}

@keyframes heroScan {
  0%   { top: -2%; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes btnBreathe {
  0%, 100% { box-shadow: 0 4px 22px var(--accent-glow); }
  50%       { box-shadow: 0 4px 36px var(--accent-glow), 0 0 0 4px var(--accent-dim); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(12px,-10px) scale(1.06); }
  66%       { transform: translate(-8px,14px) scale(0.95); }
}

@keyframes cookieSpringUp {
  0%   { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.92); }
  70%  { transform: translateX(-50%) translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes modalPopIn {
  0%   { opacity: 0; transform: scale(0.92) translateY(12px); }
  70%  { transform: scale(1.01) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes balloonOut {
  0%   { transform: scale(1);   opacity: 1;   filter: saturate(1); }
  60%  { transform: scale(0.7); opacity: 0.6; filter: saturate(.7); }
  100% { transform: scale(0);   opacity: 0;   filter: saturate(.5); }
}

@keyframes balloonIn {
  0%   { transform: scale(0);    opacity: 0;   filter: saturate(.6); }
  45%  { transform: scale(1.07); opacity: 0.9; }
  100% { transform: scale(1);    opacity: 1;   filter: saturate(1); }
}

@keyframes progressShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes shimmerBG {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes sparkle {
  0%   { left: -50%; }
  100% { left: 0%; }
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* gradientFade kept for legacy compatibility */
@keyframes gradientFade {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Matrix grid breathing — used on body::before */
@keyframes matrixBreathe {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  40%       { opacity: 0.07; transform: scale(1.01); }
  70%       { opacity: 0.03; transform: scale(0.99); }
}

/* Cursor spotlight — controlled by JS via --cx / --cy custom props */
@keyframes spotlightPulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1.00; }
}

/* Security-themed perimeter scan on cards */
@keyframes perimeterScan {
  0%   { clip-path: inset(0 100% 0 0); }
  25%  { clip-path: inset(0 0 0 0); }
  50%  { clip-path: inset(0 0 0 0); }
  75%  { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Threat pulse — red ring expanding from a point */
@keyframes threatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,56,96,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,56,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,56,96,0); }
}

/* Cyber grid line reveal — used by JS canvas overlay */
@keyframes gridReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ─────────────────────────────────────────────────────────────── */
/* § 32  Responsive Design                                        */
/* ─────────────────────────────────────────────────────────────── */

@media (max-width: 1000px) { .charts-deck { display: none !important; } }

@media (min-width: 901px) {
  .container { display: flex; align-items: flex-start; gap: 1rem; }
  #content, #categoryContent { flex: 1 1 auto; min-width: 0; }
  .sidebar-burger { display: none !important; }
}

@media (max-width: 900px) {
  .burger-icon { display: block; }

  .nav-links {
    backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
    background: var(--glass-heavy);
    border: 1px solid var(--border-medium); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow-lg);
    display: none; flex-direction: column; padding: 1rem;
    position: absolute; right: 0; top: 62px; width: 230px; z-index: 100;
  }
  .nav-links.active { display: flex; animation: settingsPopIn 0.22s var(--ease-bounce) both; }

  .globalnav-menu-list { flex-direction: column; gap: 0.4rem; align-items: flex-start; }

  .charts-deck { flex-wrap: wrap; justify-content: flex-start; }
  .container { display: block; }
  .company-boxes { grid-template-columns: repeat(2,minmax(0,1fr)); }

  body.has-sidebar .sidebar-burger { display: inline-flex; align-items: center; justify-content: center; }

  #sidebar { display: none; max-width: 100%; }
  #sidebar.drawer-open {
    display: flex; flex-direction: column; position: static;
    max-height: calc(100dvh - var(--sticky-offset)); overflow: hidden;
    border: 1px solid var(--border-medium); border-radius: var(--r-md);
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow-lg);
    background: var(--glass-panel); z-index: 20;
    animation: settingsPopIn 0.25s var(--ease-bounce) both;
  }
  #sidebar.drawer-open .sidebar-scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; }

  body.sidebar-drawer-open #charts-deck,
  body.sidebar-drawer-open #filterBar,
  body.sidebar-drawer-open #categoryContent { display: none !important; }
  .filterBar { display: none !important; }

  .footer-container { gap: 0; }
  .custom-modal-content { width: auto; }
  .settings-menu { right: auto; }
  .mega-grid { gap: 10px; grid-template-columns: repeat(1,minmax(200px,1fr)); }
}

@media (max-width: 720px) {
  .gs-house .layer.process .gs-node:nth-of-type(1) { grid-column: 1 / span 2; }
  .gs-house .layer.process .gs-node:nth-of-type(2) { grid-column: 3 / span 2; }
  .gs-house .layer.process .gs-node:nth-of-type(3) { grid-column: 5 / span 2; }
  .gs-house .layer.system  .gs-node:nth-of-type(1) { grid-column: 1 / span 3; }
  .gs-house .layer.system  .gs-node:nth-of-type(2) { grid-column: 4 / span 3; }
  .gs-house .layer.system  .gs-node:nth-of-type(3) { grid-column: 1 / span 3; }
  .gs-house .layer.system  .gs-node:nth-of-type(4) { grid-column: 4 / span 3; }
  .gs-house .layer.system  .gs-node:nth-of-type(5) { grid-column: 2 / span 4; }
  .footer-container { flex-direction: column; gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-inner   { grid-template-columns: auto; }
  .hero-visual  { display: none; }
}

@media (max-width: 600px) {
  .stats.reveal.in { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid    { grid-template-columns: repeat(1,minmax(0,1fr)); }
  .hero-bullets    { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company-boxes   { grid-template-columns: 1fr; }
  .category-box    { padding: 1rem; }
  .category-box ul { padding: 0; }
  .anzeige-box input { width: 94%; }

  .checklist-item {
    display: grid;
    grid-template-areas: "cb label" "badges badges" "actions actions";
    grid-template-columns: auto 1fr;
    grid-auto-rows: auto;
    align-items: center;
    column-gap: 10px; row-gap: 6px;
    padding: 12px;
    border: var(--border-card); border-radius: var(--r-md);
    background: rgba(0,170,255,0.04);
    margin-bottom: 4px;
  }
  .checklist-item input[type="checkbox"] { grid-area: cb; }
  .checklist-item label { grid-area: label; }
  .checklist-item .badges   { grid-area: badges; display: flex; flex-wrap: wrap; gap: 6px; }
  .checklist-item .actions  { grid-area: actions; display: flex; align-items: center; gap: 8px; }
  .checklist-item .item-description { grid-column: 1 / -1; }
  .checklist-item .badges .badge { margin-left: 0; }
  #cookie-popup { padding: 18px 16px; }
}

@media (max-width: 400px) {
  .stats.reveal.in { grid-template-columns: repeat(1,minmax(0,1fr)); }
  .hero-ctas        { flex-direction: column; }
  .anzeige-box input { width: 92%; }
}

/* ─────────────────────────────────────────────────────────────── */

/* Ultra-wide clamp */
@media (min-width: 1440px) {
  .container { max-width: var(--max-content-width); margin: 0 auto; }
  main        { max-width: 1100px; }
}

/* ─────────────────────────────────────────────────────────────── */
/* § 34  Cyber-FX Integration Styles                              */
/* ─────────────────────────────────────────────────────────────── */

/* CSS vars set by cyber-fx.js for cursor tracking */
:root {
  --cx: 50%;
  --cy: 50%;
}

/* Card cursor-position inner highlight via ::before on generic .card
   (category-box::after is reserved for the conic border fill) */
.feature-grid .card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    200px 140px at var(--mx, 50%) var(--my, 0%),
    rgba(0, 170, 255, 0.10),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}
html[data-theme="light"] .feature-grid .card::before {
  background: radial-gradient(
    200px 140px at var(--mx, 50%) var(--my, 0%),
    rgba(0, 98, 230, 0.07),
    transparent 65%
  );
}

/* Press micro-interaction (set by cyber-fx.js) */
.is-pressed { transform: scale(0.97) !important; transition-duration: 0.10s !important; }


/* ─────────────────────────────────────────────────────────────── */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* ═══════════════════════════════════════════════════════════════
   § 36  Homepage (Static Hero Landing Page)
   ═══════════════════════════════════════════════════════════════ */

/* Shared helpers used on homepage */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.hp-blink { animation: hpBlink 1.2s steps(2) infinite; }
@keyframes hpBlink { 50% { opacity: .25; } }

.hp-accent-gradient {
  background: linear-gradient(135deg, #00F0FF 0%, #0052FF 50%, #00AAFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Home page wrapper ── */
.home-page {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

/* ── HERO ── */
.hp-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background:
    radial-gradient(1400px 900px at 65% 50%, rgba(0,82,255,0.10), transparent 55%),
    radial-gradient(1200px 800px at 30% 80%, rgba(0,240,255,0.07), transparent 60%),
    #06070A;
}

/* Hero canvas layers */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-canvas--grid      { z-index: 1; }
.hero-canvas--particles { z-index: 2; }

.hero-ambient {
  position: absolute;
  width: 560px; height: 560px;
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,240,255,0.09), rgba(0,82,255,0.05) 35%, transparent 65%);
  mix-blend-mode: screen;
  filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .4s;
}

/* Matrix grid overlay */
.hero-matrix {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(120,180,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,180,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 65% 50%, black 40%, transparent 100%);
  animation: hpMatrixBreathe 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes hpMatrixBreathe {
  0%, 100% { opacity: .5; }
  50%       { opacity: .85; }
}

.hero-scanlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
  background-size: 100% 4px;
  mix-blend-mode: overlay;
  opacity: .4;
  pointer-events: none;
  z-index: 3;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ── Shield visualization ── */
.hero-shield-wrap {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(55vh, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 0 60px rgba(0,82,255,.28)) drop-shadow(0 0 120px rgba(0,240,255,.12));
}
.hero-shield-core {
  position: relative;
  width: 100%; height: 100%;
}

/* Ring animations */
.shield-ring { position: absolute; inset: 0; transform-origin: center; }
.shield-ring svg { width: 100%; height: 100%; overflow: visible; }

.shield-spin-slow     { animation: shieldSpin 140s linear infinite; }
.shield-spin-slow-rev { animation: shieldSpin 180s linear infinite reverse; }
.shield-spin-mid      { animation: shieldSpin 60s  linear infinite; }
.shield-spin-mid-rev  { animation: shieldSpin 90s  linear infinite reverse; }
@keyframes shieldSpin { to { transform: rotate(360deg); } }

.shield-glow-ring {
  position: absolute; inset: -8%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(0,240,255,.55) 78%, rgba(0,82,255,.50) 86%, transparent 94%);
  filter: blur(14px);
  animation: shieldSpin 18s linear infinite;
  opacity: .8;
}
.shield-glow-ring-2 {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0 75%, rgba(0,82,255,.50) 82%, rgba(0,240,255,.60) 90%, transparent 98%);
  filter: blur(10px);
  animation: shieldSpin 14s linear infinite reverse;
  opacity: .7;
}
.shield-pulse {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,.30), rgba(0,82,255,.15) 50%, transparent 70%);
  animation: shieldPulse 3.4s ease-in-out infinite;
}
@keyframes shieldPulse {
  0%, 100% { transform: scale(.95); opacity: .5; }
  50%       { transform: scale(1.06); opacity: .9; }
}
.shield-sweep {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,240,255,.16), transparent 35%);
  -webkit-mask: radial-gradient(circle, transparent 56%, black 57%, black 99%, transparent 100%);
          mask: radial-gradient(circle, transparent 56%, black 57%, black 99%, transparent 100%);
  animation: shieldSpin 6s linear infinite;
  mix-blend-mode: screen;
}

/* ── Hero copy ── */
.hp-hero-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  padding: calc(var(--sticky-offset) + 40px) 0 60px clamp(24px, 5vw, 80px);
}

.hp-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #7C92AE;
  margin-bottom: 22px;
}

.hp-hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #E6F1FF;
  margin: 0 0 22px;
}

.hp-hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
  color: #7C92AE;
  margin-bottom: 32px;
  max-width: 480px;
}

.hp-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Shared button styles */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn:active { transform: scale(0.97); }

.hp-btn-primary {
  background: linear-gradient(135deg, #0052FF, #00AAFF);
  color: #fff;
  box-shadow: 0 4px 28px rgba(0,82,255,0.45), 0 0 0 1px rgba(0,240,255,0.15) inset;
}
.hp-btn-primary:hover {
  box-shadow: 0 6px 40px rgba(0,82,255,0.60), 0 0 0 1px rgba(0,240,255,0.25) inset;
}

.hp-btn-ghost {
  background: rgba(0,240,255,0.06);
  color: #E6F1FF;
  border-color: rgba(0,240,255,0.25);
}
.hp-btn-ghost:hover {
  background: rgba(0,240,255,0.12);
  border-color: rgba(0,240,255,0.50);
  box-shadow: 0 0 20px rgba(0,240,255,0.15);
}

/* HUD pill */
.hp-hud {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: #7C92AE;
  background: rgba(6,7,10,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 7px 18px;
  backdrop-filter: blur(8px);
}
.hp-hud b { color: #E6F1FF; font-weight: 500; }

/* ── Floating bento cards ── */
.hp-bento {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
}
.hp-bento-tl { top: 18%; right: calc(3% + min(55vh, 560px) + 20px); width: 260px; }
.hp-bento-tr { bottom: 18%; right: 3%; width: 280px; }

.hp-card {
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(180deg, rgba(20,28,44,0.60), rgba(10,14,22,0.60));
  border: 1px solid rgba(120,170,255,0.15);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.hp-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7C92AE;
}
.hp-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}
.hp-card-value {
  font-size: 28px;
  line-height: 1;
  color: #EAF6FF;
  letter-spacing: -0.01em;
}
.hp-unit { font-size: 14px; color: #7C92AE; margin-left: 3px; }
.hp-card-delta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7CFFB2; }
.hp-warn { color: #FF8A2A !important; }

.hp-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}
.hp-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00F0FF, #0052FF);
  box-shadow: 0 0 10px rgba(0,240,255,.45);
  position: relative;
}
.hp-bar > i::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-100%);
  animation: hpShimmer 2.6s linear infinite;
}
@keyframes hpShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(120%); } }

.hp-ticker {
  font-size: 10px;
  color: #7C92AE;
  margin-top: 12px;
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 10px;
  text-overflow: ellipsis;
}

.hp-pip {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hp-pip-cyan  { background: #00F0FF; box-shadow: 0 0 8px #00F0FF; }
.hp-pip-amber { background: #FF8A2A; box-shadow: 0 0 8px #FF8A2A; }
.hp-pip-green { background: #2BFFB4; box-shadow: 0 0 8px #2BFFB4; }
.hp-pip-red   { background: #FF3B5C; box-shadow: 0 0 8px #FF3B5C; }

/* ── Trust logos strip ── */
.hp-trust {
  background: rgba(6,7,10,0.8);
  border-top: 1px solid rgba(120,170,255,0.10);
  border-bottom: 1px solid rgba(120,170,255,0.10);
  padding: 22px 0;
}
.hp-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hp-trust-label {
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #3A4F72;
  white-space: nowrap;
  flex-shrink: 0;
}
.hp-trust-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}
.hp-trust-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #3A4F72;
  text-transform: uppercase;
  transition: color .2s;
}
.hp-trust-logo:hover { color: #7C92AE; }

/* ── Section layout shared ── */
.hp-section {
  padding: 100px 0;
}
.hp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}
.hp-section-tag {
  font-size: 9px;
  letter-spacing: .40em;
  text-transform: uppercase;
  color: #00AAFF;
  margin-bottom: 18px;
}
.hp-section-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #E6F1FF;
  margin: 0 0 20px;
}
.hp-section-sub {
  font-size: 16px;
  line-height: 1.8;
  color: #7C92AE;
  max-width: 640px;
  margin-bottom: 52px;
}

/* ── Services grid ── */
.hp-services {
  background:
    radial-gradient(1200px 700px at 80% 50%, rgba(0,82,255,0.06), transparent 60%),
    #06070A;
}
.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hp-service-card {
  background: linear-gradient(180deg, rgba(14,20,36,0.70), rgba(8,12,20,0.70));
  border: 1px solid rgba(120,170,255,0.12);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.hp-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px 200px at var(--mx, 50%) var(--my, 0%), rgba(0,240,255,0.07), transparent 65%);
  pointer-events: none;
  transition: opacity .3s;
}
.hp-service-card:hover {
  border-color: rgba(0,240,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 30px rgba(0,240,255,0.08);
  transform: translateY(-3px);
}

.hp-svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(0,82,255,0.08));
  border: 1px solid rgba(0,240,255,0.22);
  display: grid;
  place-items: center;
  color: #00F0FF;
  box-shadow: 0 0 18px rgba(0,240,255,0.15);
  margin-bottom: 18px;
}

.hp-service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #E6F1FF;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hp-service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #7C92AE;
  margin: 0 0 20px;
}

.hp-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #00AAFF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap .2s, color .2s;
}
.hp-svc-link:hover { color: #00F0FF; gap: 10px; }

/* ── Stats strip ── */
.hp-stats-strip {
  background: rgba(6,7,10,0.95);
  border-top: 1px solid rgba(120,170,255,0.08);
  border-bottom: 1px solid rgba(120,170,255,0.08);
  padding: 50px 0;
}
.hp-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.hp-stat-item {
  text-align: center;
}
.hp-stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: #00AAFF;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hp-stat-label {
  font-size: 12px;
  letter-spacing: .08em;
  color: #3A4F72;
  text-transform: uppercase;
}
.hp-stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(0,170,255,0.25), transparent);
}

/* ── Threat section ── */
.hp-threat-section {
  background:
    radial-gradient(1000px 600px at 20% 60%, rgba(255,59,92,0.05), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, rgba(0,82,255,0.07), transparent 60%),
    #06070A;
}
.hp-threat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hp-threat-card {
  background: linear-gradient(180deg, rgba(14,20,36,0.60), rgba(8,12,20,0.60));
  border: 1px solid rgba(120,170,255,0.10);
  border-radius: 14px;
  padding: 22px;
  transition: border-color .25s, box-shadow .25s;
}
.hp-threat-card:hover {
  border-color: color-mix(in srgb, var(--stage-color, #00F0FF) 40%, transparent);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.hp-threat-stage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--stage-color, #00F0FF);
  margin-bottom: 10px;
}
.hp-threat-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #E6F1FF;
  margin: 0 0 8px;
}
.hp-threat-meter {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  margin-top: 14px;
}
.hp-threat-meter > i {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.hp-threat-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #3A4F72;
  text-transform: uppercase;
}

/* ── CTA section ── */
.hp-cta-section {
  background: linear-gradient(180deg,
    #06070A 0%,
    rgba(0,52,200,0.08) 40%,
    rgba(0,52,200,0.06) 60%,
    #06070A 100%
  );
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.hp-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  text-align: center;
  position: relative;
  z-index: 2;
}
.hp-cta-bg-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  margin: -10%;
  background: radial-gradient(800px 600px at 50% 50%, rgba(0,82,255,0.10), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hp-cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #E6F1FF;
  margin: 16px 0 20px;
}
.hp-cta-sub {
  font-size: 16px;
  line-height: 1.8;
  color: #7C92AE;
  margin-bottom: 40px;
}
.hp-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hp-cta-note {
  font-size: 11px;
  letter-spacing: .12em;
  color: #3A4F72;
  text-transform: uppercase;
}

/* ── Footer brand mark ── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}
.footer-brand:hover .footer-brand-img { filter: brightness(1.15) drop-shadow(0 0 8px rgba(0,240,255,.6)); }
.footer-brand-img {
  width: 32px; height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0,240,255,.35));
  transition: filter 0.3s var(--ease-smooth);
}

/* Footer bottom row */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 14px 0 4px;
  color: var(--text-muted);
  font-size: 11px;
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
}
.footer-bottom-links .menu-item {
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 0;
}
.footer-bottom-links .menu-item:hover { color: var(--teal); }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hp-bento-tl { display: none; }
  .hp-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-threat-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-stats-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hp-stat-divider { display: none; }
}

@media (max-width: 900px) {
  .hero-shield-wrap { width: min(40vh, 380px); right: 0; opacity: .4; }
  .hp-bento-tr { display: none; }
  .hp-hero-content { max-width: 100%; padding-right: 24px; }
  .globalfooter { padding: 36px clamp(16px, 5vw, 60px) 16px; }
}

@media (max-width: 700px) {
  .hero-shield-wrap { display: none; }
  .hp-services-grid { grid-template-columns: 1fr; }
  .hp-threat-grid { grid-template-columns: 1fr; }
  .hp-stats-inner { grid-template-columns: 1fr 1fr; }
  .hp-hero-ctas { flex-direction: column; }
  .hp-cta-buttons { flex-direction: column; align-items: center; }
  .hp-trust-inner { flex-direction: column; align-items: flex-start; }
  .hp-hud { gap: 10px; font-size: 9px; padding: 6px 12px; flex-wrap: wrap; }
  .hp-stat-num { font-size: clamp(28px, 8vw, 46px) !important; }
  .footer-container { flex-direction: column; gap: 28px; }
  .footer-section { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hp-hero-headline { font-size: clamp(30px, 10vw, 50px); }
  .hp-section-headline { font-size: clamp(26px, 9vw, 44px); }
  .hp-hero-content { padding-top: calc(var(--sticky-offset) + 24px); }
  .hp-hero { min-height: 100svh; }
  .hp-services-grid { gap: 14px; }
  .hp-threat-grid { gap: 14px; }
  .hp-stats-strip { padding: 40px clamp(16px, 5vw, 40px); }
}

/* ── §36b  Homepage scroll-reveal system ── */
.hp-sa {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity   0.65s var(--ease-smooth) var(--sa-d, 0ms),
    transform 0.65s var(--ease-smooth) var(--sa-d, 0ms),
    filter    0.55s var(--ease-smooth) var(--sa-d, 0ms);
}
.hp-sa-up    { transform: translateY(40px); }
.hp-sa-left  { transform: translateX(-44px); }
.hp-sa-right { transform: translateX(44px); }
.hp-sa-pop   { transform: scale(0.82) translateY(14px); }
.hp-sa-blur  { filter: blur(8px); transform: translateY(18px); }
.hp-sa-glow  { transform: scale(0.65); filter: blur(6px); }
.hp-sa.hp-sa-run { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-sa { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   § 37  Sub-pages  (Produkte / Links / FAQ)
   Kill Chain / Network Topology aesthetic
   ═══════════════════════════════════════════════════════════════ */

.sub-page {
  position: fixed;
  top: var(--sticky-offset);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 45;
  background:
    radial-gradient(1400px 800px at 25% 20%, rgba(0,82,255,.09), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(0,229,204,.06), transparent 60%),
    #06070A;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,170,255,.2) transparent;
}
.sub-page::-webkit-scrollbar { width: 5px; }
.sub-page::-webkit-scrollbar-thumb { background: rgba(0,170,255,.2); border-radius: 3px; }

.sp-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sp-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sp-orb-1 {
  width: 900px; height: 700px;
  top: -200px; left: -300px;
  background: radial-gradient(ellipse, rgba(0,82,255,.11), transparent 70%);
  filter: blur(60px);
}
.sp-orb-2 {
  width: 700px; height: 600px;
  bottom: -150px; right: -200px;
  background: radial-gradient(ellipse, rgba(255,77,31,.08), transparent 70%);
  filter: blur(60px);
}

.sp-wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 14px 48px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Topbar ── */
.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(22,28,42,.62), rgba(10,14,22,.62));
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  flex-shrink: 0;
  gap: 16px;
}
.sp-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.sp-brand-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.sp-dot-pulse {
  animation: spPulse 1.8s ease-in-out infinite;
}
@keyframes spPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.8); }
}
.sp-nav-area {
  display: flex;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.sp-nav-active {
  color: #00F0FF;
  background: rgba(0,240,255,.07);
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(0,240,255,.15);
}
.sp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sp-pill {
  border: 1px solid rgba(255,255,255,.07);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
.sp-close-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .24em;
  padding: 6px 12px;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.sp-close-btn:hover {
  background: rgba(255,59,92,.12);
  border-color: rgba(255,59,92,.35);
  color: #FF3B5C;
}

/* ── KPI Strip ── */
.sp-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex-shrink: 0;
}
.sp-kpi-card {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(22,28,42,.55), rgba(8,12,20,.55));
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.sp-kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.sp-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.sp-kpi-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ── Tool cards grid ── */
.sp-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

/* ── Per-group accent custom properties ── */
.sp-group-accent-cyan  { --grp: 0,240,255; }
.sp-group-accent-amber { --grp: 255,203,71; }
.sp-group-accent-green { --grp: 43,255,180; }

/* ── Group container ── */
.sp-group { display: flex; flex-direction: column; gap: 16px; }

/* ── Group heading ── */
.sp-group-hd {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--grp, 120,170,255), .28), transparent);
}
.sp-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: rgba(var(--grp, 120,170,255), .8);
  white-space: nowrap;
}
.sp-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(var(--grp, 120,170,255), .55);
  background: rgba(var(--grp, 120,170,255), .07);
  border: 1px solid rgba(var(--grp, 120,170,255), .18);
  border-radius: 20px;
  padding: 2px 7px;
  flex-shrink: 0;
}

/* ── Card grid within group ── */
.sp-group-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ── Base card ── */
.sp-tool-card {
  padding: 20px;
  background: linear-gradient(145deg, rgba(22,28,42,.62) 0%, rgba(8,12,20,.68) 100%);
  border: 1px solid rgba(var(--grp, 120,170,255), .10);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.sp-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(var(--grp, 0,240,255), .08), transparent 70%);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
  border-radius: inherit;
}
.sp-tool-card::after {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--grp, 0,240,255), .55), transparent);
  opacity: 0;
  transition: opacity .28s;
  pointer-events: none;
}
.sp-tool-card:hover::before,
.sp-tool-card:hover::after { opacity: 1; }
.sp-tool-card:hover {
  border-color: rgba(var(--grp, 0,240,255), .28);
  box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 28px rgba(var(--grp, 0,240,255), .08), inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateY(-2px);
}
.sp-tool-card:active { transform: translateY(0) scale(.985); transition-duration: .1s; }

/* ── Wide card (Bericht & Export — 2× width) ── */
.sp-tool-card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
}
.sp-tool-card--wide .sp-tool-icon { flex-shrink: 0; margin-top: 2px; }
.sp-tool-card--wide .sp-tool-body { flex: 1; min-width: 0; }

/* ── Badge (legacy, replaced by group heading) ── */
.sp-badge { display: none; }
.sp-tool-tags { display: flex; gap: 4px; margin-top: 1px; }
.sp-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,240,255,.08);
  color: #00F0FF;
  border: 1px solid rgba(0,240,255,.18);
  line-height: 1.6;
}
.sp-tag-warn   { background: rgba(255,203,71,.08);  color: #FFCB47; border-color: rgba(255,203,71,.2); }
.sp-tag-red    { background: rgba(255,59,92,.08);   color: #FF3B5C; border-color: rgba(255,59,92,.2); }
.sp-tag-violet { background: rgba(179,136,255,.08); color: #B388FF; border-color: rgba(179,136,255,.2); }
.sp-tag-green  { background: rgba(43,255,180,.08);  color: #2BFFB4; border-color: rgba(43,255,180,.2); }

/* ── SVG icon area ── */
.sp-tool-icon {
  width: 56px; height: 56px;
  background: rgba(var(--grp, 120,170,255), .05);
  border: 1px solid rgba(var(--grp, 120,170,255), .12);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.sp-tool-card:hover .sp-tool-icon {
  background: rgba(var(--grp, 0,240,255), .09);
  border-color: rgba(var(--grp, 0,240,255), .32);
  box-shadow: 0 0 22px rgba(var(--grp, 0,240,255), .14);
}
.tc-svg { width: 34px; height: 34px; display: block; overflow: visible; }

/* ── Card text layout ── */
.sp-tool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-tool-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.sp-tool-card h3 {
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.sp-tool-card p {
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.sp-tool-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(var(--grp, 120,170,255), .45);
  text-transform: uppercase;
}

/* ── Card footer ── */
.sp-tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--grp, 120,170,255), .08);
}
.sp-progress-wrap { flex: 1; min-width: 60px; }
.sp-progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.sp-progress-bar {
  height: 2px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.sp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--grp, 0,240,255), 1), rgba(var(--grp, 0,82,255), .65));
  border-radius: 2px;
  transition: width .6s ease;
  box-shadow: 0 0 6px rgba(var(--grp, 0,240,255), .45);
}
.sp-open-btn {
  background: rgba(var(--grp, 0,240,255), .08);
  border: 1px solid rgba(var(--grp, 0,240,255), .22);
  border-radius: 8px;
  color: rgb(var(--grp, 0,240,255));
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sp-open-btn:hover {
  background: rgba(var(--grp, 0,240,255), .16);
  border-color: rgba(var(--grp, 0,240,255), .48);
  box-shadow: 0 0 18px rgba(var(--grp, 0,240,255), .2);
}
.sp-open-btn:active { transform: scale(.97); }

/* ── SVG icon animation keyframes ── */
@keyframes tcDraw      { from { stroke-dashoffset: var(--dash, 30); } to { stroke-dashoffset: 0; } }
@keyframes tcSpinSlow  { to { transform: rotate(360deg); } }
@keyframes tcPulse     { 0%,100% { opacity: .5; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.22); } }
@keyframes tcScanV     { 0% { transform: translateY(-10px); opacity: 0; } 45%,55% { opacity: .8; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes tcBlink     { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes tcRingPulse { 0%,100% { transform: scale(1); opacity: .28; } 50% { transform: scale(1.1); opacity: .65; } }
@keyframes tcWiggle    { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-1px); } }
@keyframes tcEcgRun    { 0% { stroke-dashoffset: 70; } 100% { stroke-dashoffset: -70; } }
@keyframes tcBounceY   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ── SVG animation utility classes ── */
.tc-svg .tc-spin      { animation: tcSpinSlow 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.tc-svg .tc-pulse     { animation: tcPulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tc-svg .tc-pulse-slow{ animation: tcPulse 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tc-svg .tc-scan      { animation: tcScanV 2.6s ease-in-out infinite; }
.tc-svg .tc-blink     { animation: tcBlink 1.7s ease-in-out infinite; }
.tc-svg .tc-blink-slow{ animation: tcBlink 2.5s ease-in-out .75s infinite; }
.tc-svg .tc-ring      { animation: tcRingPulse 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tc-svg .tc-ring-2    { animation: tcRingPulse 2.5s ease-in-out .85s infinite; transform-box: fill-box; transform-origin: center; }
.tc-svg .tc-wiggle    { animation: tcWiggle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.tc-svg .tc-ecg       { stroke-dasharray: 25 45; animation: tcEcgRun 2.5s linear infinite; }
.tc-svg .tc-draw      { animation: tcDraw 1.1s ease-out .3s both; }
.tc-svg .tc-draw-2    { animation: tcDraw 1.1s ease-out .65s both; }
.tc-svg .tc-draw-3    { animation: tcDraw 1.1s ease-out 1s both; }
.tc-svg .tc-bounce    { animation: tcBounceY 1.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ── Status bar ── */
.sp-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(180deg, rgba(22,28,42,.5), rgba(8,12,20,.5));
  border: 1px solid rgba(120,170,255,.08);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Links sub-page layout ── */
.sp-links-wrap, .sp-faq-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  flex: 1;
}
.sp-links-sidebar, .sp-faq-sidebar {
  background: linear-gradient(180deg, rgba(22,28,42,.55), rgba(8,12,20,.55));
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: fit-content;
  position: sticky;
  top: 62px; /* 48px sp-nav + 14px gap */
}
.sp-sidebar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(120,170,255,.1);
  margin-bottom: 4px;
}
.sp-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .08em;
  padding: 7px 10px;
  transition: background .2s, color .2s, border-color .2s;
  line-height: 1.4;
}
.sp-cat-btn:hover {
  background: rgba(0,240,255,.04);
  color: var(--text-primary);
}
.sp-cat-btn.sp-cat-active {
  background: rgba(0,240,255,.08);
  border-color: rgba(0,240,255,.2);
  color: #00F0FF;
}
.sp-cat-count {
  background: rgba(120,170,255,.10);
  border-radius: 4px;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 8px;
  padding: 1px 5px;
  margin-left: 4px;
}
.sp-cat-btn.sp-cat-active .sp-cat-count { background: rgba(0,240,255,.12); color: #00F0FF; }

/* Links main */
.sp-links-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-link-group {
  background: linear-gradient(180deg, rgba(22,28,42,.55), rgba(8,12,20,.55));
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  scroll-margin-top: 14px;
}
.sp-link-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(120,170,255,.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-link-group-title::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 6px #00F0FF;
  flex-shrink: 0;
}
.sp-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
}
.sp-link-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(120,170,255,.07);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255,255,255,.02);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  line-height: 1.3;
}
.sp-link-item:hover {
  background: rgba(0,240,255,.06);
  border-color: rgba(0,240,255,.2);
  color: var(--text-primary);
  transform: translateX(2px);
}
.sp-link-arrow {
  color: rgba(0,240,255,.4);
  font-size: 11px;
  flex-shrink: 0;
  transition: color .2s;
}
.sp-link-item:hover .sp-link-arrow { color: #00F0FF; }

/* ── FAQ sub-page ── */
.sp-search-bar { flex-shrink: 0; }
.sp-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0,170,255,.05);
  border: 1px solid rgba(120,170,255,.14);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 11px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sp-search-input::placeholder { color: var(--text-secondary); }
.sp-search-input:focus {
  border-color: rgba(0,240,255,.4);
  box-shadow: 0 0 18px rgba(0,240,255,.09);
}
.sp-faq-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-faq-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #B388FF;
  padding: 12px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-faq-group-label::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #B388FF;
  box-shadow: 0 0 5px #B388FF;
  flex-shrink: 0;
}
.sp-faq-item {
  background: linear-gradient(180deg, rgba(22,28,42,.55), rgba(8,12,20,.55));
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .2s;
}
.sp-faq-item.sp-faq-open { border-color: rgba(179,136,255,.25); }
.sp-faq-item.sp-faq-hidden { display: none; }
.sp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 16px;
  text-align: left;
  transition: background .2s;
  line-height: 1.4;
}
.sp-faq-q:hover { background: rgba(179,136,255,.04); }
.sp-faq-toggle {
  color: #B388FF;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 300;
  transition: transform .3s var(--ease-smooth), color .2s;
  line-height: 1;
}
.sp-faq-item.sp-faq-open .sp-faq-toggle { transform: rotate(45deg); color: #D0A8FF; }
.sp-faq-a {
  display: none;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  padding: 0 16px 14px;
  border-top: 1px solid rgba(120,170,255,.07);
}
.sp-faq-a.sp-faq-open { display: block; }
.sp-faq-a p { margin: 8px 0 0; }
.sp-faq-a strong { color: #00F0FF; font-weight: 600; }
.sp-faq-a em { color: #B388FF; font-style: normal; }

/* ── Nav highlight for active sub-page ── */
.globalnav .menu-item.sp-nav-on {
  color: #00F0FF !important;
  background: rgba(0,240,255,.08) !important;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   § 37b  Sub-page redesign additions
   (sp-nav / sp-hero / sp-footer + per-page animations)
   ═══════════════════════════════════════════════════════════════ */

/* ── sp-nav (sticky minimal nav bar) ── */
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(6,7,10,.88);
  border-bottom: 1px solid rgba(0,170,255,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sp-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sp-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(120,170,255,.12);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 12px 5px 8px;
  transition: background .2s, border-color .2s, color .2s;
}
.sp-nav-back:hover {
  background: rgba(0,170,255,.06);
  border-color: rgba(0,170,255,.3);
  color: var(--text-primary);
}
.sp-nav-back svg { flex-shrink: 0; }
.sp-nav-crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-nav-sep {
  opacity: .4;
}
.sp-nav-active-crumb {
  color: #00F0FF;
}
.sp-nav-close {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 6px 14px;
  transition: background .2s, border-color .2s, color .2s;
}
.sp-nav-close:hover {
  background: rgba(255,59,92,.12);
  border-color: rgba(255,59,92,.35);
  color: #FF3B5C;
}

/* ── sp-hero (shared hero base) ── */
.sp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: -1px;
}
.sp-hero-body {
  position: relative;
  z-index: 5;
  padding: 40px 48px 44px;
  max-width: 640px;
}
.sp-hero-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.sp-hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.sp-hero-p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
}
.sp-hero-accent { display: inline; }
.sp-hero-accent-cyan  { color: #00F0FF; }
.sp-hero-accent-green { color: #2BFFB4; }
.sp-hero-accent-violet{ color: #B388FF; }

/* gradient overlay: left opaque, right transparent */
.sp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    90deg,
    #06070A 28%,
    rgba(6,7,10,.82) 48%,
    rgba(6,7,10,.30) 68%,
    transparent 88%
  );
  pointer-events: none;
}
/* bottom fade to bg */
.sp-hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  z-index: 6;
  background: linear-gradient(0deg, #06070A 0%, transparent 100%);
  pointer-events: none;
}

/* ── sp-hero-produkte: circuit grid + scanning line + nodes ── */
.sp-hero-produkte { background: #06070A; }

.sp-hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,240,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: spGridDrift 18s linear infinite;
}
@keyframes spGridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 42px 42px, 42px 42px; }
}

.sp-hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(0,240,255,.0) 30%, rgba(0,240,255,.8) 50%, rgba(0,240,255,.0) 70%, transparent 100%);
  box-shadow: 0 0 18px rgba(0,240,255,.6);
  animation: spScanLine 5s linear infinite;
}
@keyframes spScanLine {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.sp-circuit-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.sp-cnode {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 12px #00F0FF, 0 0 24px rgba(0,240,255,.5);
  animation: spCnodePulse 2.4s ease-in-out infinite;
}
.sp-cnode::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,240,255,.3);
  animation: spCnodeRing 2.4s ease-in-out infinite;
}
@keyframes spCnodePulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%       { transform: scale(1.3); opacity: .5; }
}
@keyframes spCnodeRing {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.sp-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.sp-orb-prod-1 {
  width: 420px; height: 320px;
  top: -80px; right: 10%;
  background: radial-gradient(ellipse, rgba(0,240,255,.10), transparent 70%);
  filter: blur(50px);
  animation: spOrbFloat 9s ease-in-out infinite alternate;
}
.sp-orb-prod-2 {
  width: 280px; height: 250px;
  bottom: 0px; right: 5%;
  background: radial-gradient(ellipse, rgba(0,82,255,.12), transparent 70%);
  filter: blur(40px);
  animation: spOrbFloat 13s ease-in-out infinite alternate-reverse;
}
@keyframes spOrbFloat {
  from { transform: translateY(0px) translateX(0px); }
  to   { transform: translateY(-24px) translateX(12px); }
}

/* ── sp-hero-links: network mesh ── */
.sp-hero-links { background: #06070A; }

.sp-hero-mesh-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 600px 400px at 75% 50%, rgba(43,255,180,.07), transparent 70%),
    radial-gradient(ellipse 400px 300px at 88% 30%, rgba(0,240,255,.06), transparent 60%),
    radial-gradient(ellipse 500px 350px at 65% 75%, rgba(0,82,255,.06), transparent 65%);
  animation: spMeshPulse 8s ease-in-out infinite alternate;
}
@keyframes spMeshPulse {
  from { opacity: .7; }
  to   { opacity: 1; }
}

.sp-net-node {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  animation: spNetNodePulse var(--dur, 3s) ease-in-out infinite;
}
@keyframes spNetNodePulse {
  0%, 100% { transform: scale(1);   opacity: .85; }
  50%       { transform: scale(1.6); opacity: .35; }
}

/* ── sp-hero-faq: hex bg + expanding rings ── */
.sp-hero-faq { background: #06070A; }

.sp-hero-hex-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 700px 500px at 80% 50%, rgba(179,136,255,.09), transparent 65%),
    radial-gradient(ellipse 400px 300px at 92% 25%, rgba(0,240,255,.06), transparent 55%),
    radial-gradient(ellipse 500px 400px at 70% 80%, rgba(179,136,255,.07), transparent 60%);
  animation: spHexGlow 10s ease-in-out infinite alternate;
}
@keyframes spHexGlow {
  from { opacity: .65; }
  to   { opacity: 1; }
}

.sp-faq-ring-anim {
  position: absolute;
  width: var(--size, 160px);
  height: var(--size, 160px);
  border-radius: 50%;
  border: 1.5px solid var(--clr, rgba(179,136,255,.2));
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: spRingExpand var(--dur, 3s) ease-out infinite;
}
@keyframes spRingExpand {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* ── sp-inner (content wrapper below hero) ── */
.sp-inner {
  padding: 20px 20px 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── sp-footer ── */
.sp-footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(120,170,255,.08);
}
.sp-footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sp-footer-logo {
  height: 22px;
  width: auto;
  opacity: .55;
  flex-shrink: 0;
}
.sp-footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-secondary);
  opacity: .6;
}
.sp-footer-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.sp-footer-links button {
  background: none;
  border: 1px solid rgba(120,170,255,.10);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 12px;
  transition: background .2s, color .2s, border-color .2s;
}
.sp-footer-links button:hover {
  background: rgba(0,170,255,.06);
  border-color: rgba(0,170,255,.25);
  color: var(--text-primary);
}

/* ── override sp-wrap: preserve compatibility, new layout doesn't use it ── */
/* .sp-wrap retains its definition above; new pages omit it */

/* ── Responsive additions for §37b ── */
@media (max-width: 900px) {
  .sp-hero-body { padding: 28px 24px 36px; }
  .sp-nav-crumb { display: none; }
}
@media (max-width: 600px) {
  .sp-hero { min-height: 280px; }
  .sp-hero-body { padding: 20px 16px 28px; }
  .sp-inner { padding: 14px 14px 0; }
  .sp-footer-links { margin-left: 0; }
  .sp-nav { padding: 0 12px; }
  .sp-nav-back { padding: 5px 8px 5px 6px; letter-spacing: .08em; }
}

/* ═══════════════════════════════════════════════════════════════
   §37c  Sub-page entrance animations  (sp-intro trigger class)
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared keyframes ─────────────────────────────────────────── */
@keyframes spNavDrop    { from{opacity:0;transform:translateY(-110%)} to{opacity:1;transform:translateY(0)} }
@keyframes spBodyLeft   { from{opacity:0;transform:translateX(-36px)} to{opacity:1;transform:translateX(0)} }
@keyframes spBodyRight  { from{opacity:0;transform:translateX(36px)}  to{opacity:1;transform:translateX(0)} }
@keyframes spBodyUp     { from{opacity:0;transform:translateY(30px)}  to{opacity:1;transform:translateY(0)} }
@keyframes spFloatUp    { from{opacity:0;transform:translateY(44px) scale(.82)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes spFadeBlur   { from{opacity:0;filter:blur(7px)}            to{opacity:1;filter:blur(0)} }
@keyframes spFadeScale  { from{opacity:0;transform:scale(1.07)}       to{opacity:1;transform:scale(1)} }
@keyframes spScanLeft   { from{clip-path:inset(0 100% 0 0);opacity:.4} to{clip-path:inset(0 0% 0 0);opacity:1} }
@keyframes spDiagReveal { from{clip-path:polygon(0 0,0 0,0 0,0 100%);opacity:.4} to{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:1} }
@keyframes spNodeFlash  { 0%{opacity:0;transform:scale(0)} 65%{opacity:1;transform:scale(1.28)} 100%{opacity:1;transform:scale(1)} }
@keyframes spPopBounce  { from{opacity:0;transform:scale(.84) translateY(16px)} to{opacity:1;transform:scale(1) translateY(0)} }
@keyframes spEyebrow    { from{opacity:0;transform:translateX(-28px);letter-spacing:.3em} to{opacity:1;transform:translateX(0)} }
@keyframes spEyebrowR   { from{opacity:0;transform:translateX(28px);letter-spacing:.3em}  to{opacity:1;transform:translateX(0)} }
@keyframes spHeadline   { from{opacity:0;transform:translateY(28px) skewX(-1.5deg)} to{opacity:1;transform:translateY(0) skewX(0)} }
@keyframes spHeadlineR  { from{opacity:0;transform:translateX(40px) skewX(1.5deg)}  to{opacity:1;transform:translateX(0) skewX(0)} }
@keyframes spInnerFade  { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes spCardIn     { from{opacity:0;transform:translateY(18px) scale(.95)} to{opacity:1;transform:translateY(0) scale(1)} }

/* ── Universal — all sub-pages ────────────────────────────────── */
.sub-page.sp-intro .sp-nav          { animation: spNavDrop  .38s cubic-bezier(.22,.68,0,1.2) both; }
.sub-page.sp-intro .sp-hero-overlay { animation: spFadeBlur .5s ease-out .02s both; }
.sub-page.sp-intro .sp-hero-eyebrow { animation: spEyebrow  .42s ease-out .26s both; }
.sub-page.sp-intro .sp-hero-h1      { animation: spHeadline .52s cubic-bezier(.22,.68,0,1.1) .38s both; }
.sub-page.sp-intro .sp-hero-p       { animation: spFadeBlur .45s ease-out .55s both; }
.sub-page.sp-intro .sp-inner        { animation: spInnerFade .48s ease-out .44s both; }

/* ── Produkte — grid scans from left · orbs spring in · KPIs bounce ── */
#page-produkte.sp-intro .sp-hero-grid-bg  { animation: spScanLeft  .65s ease-out .04s both; }
#page-produkte.sp-intro .sp-circuit-nodes { animation: spFadeBlur  .5s  ease-out .22s both; }
#page-produkte.sp-intro .sp-orb-prod-1   { animation: spPopBounce .7s  cubic-bezier(.34,1.56,.64,1) .18s both; }
#page-produkte.sp-intro .sp-orb-prod-2   { animation: spPopBounce .7s  cubic-bezier(.34,1.56,.64,1) .30s both; }
#page-produkte.sp-intro .sp-kpi-card:nth-child(1) { animation: spPopBounce .38s cubic-bezier(.34,1.56,.64,1) .55s both; }
#page-produkte.sp-intro .sp-kpi-card:nth-child(2) { animation: spPopBounce .38s cubic-bezier(.34,1.56,.64,1) .65s both; }
#page-produkte.sp-intro .sp-kpi-card:nth-child(3) { animation: spPopBounce .38s cubic-bezier(.34,1.56,.64,1) .75s both; }
#page-produkte.sp-intro .sp-kpi-card:nth-child(4) { animation: spPopBounce .38s cubic-bezier(.34,1.56,.64,1) .85s both; }
#page-produkte.sp-intro .sp-kpi-card:nth-child(5) { animation: spPopBounce .38s cubic-bezier(.34,1.56,.64,1) .95s both; }
#page-produkte.sp-intro .sp-tool-card { animation: spCardIn .4s cubic-bezier(.22,.68,0,1.1) calc(.82s + var(--card-delay, 0ms)) both; }

/* ── Links — mesh blurs in · net-nodes flash one-by-one · body from right ── */
#page-links.sp-intro .sp-hero-mesh-bg          { animation: spFadeBlur  .7s ease-out .04s both; }
#page-links.sp-intro .sp-net-node:nth-child(1) { animation: spNodeFlash .4s ease-out .20s both; }
#page-links.sp-intro .sp-net-node:nth-child(2) { animation: spNodeFlash .4s ease-out .32s both; }
#page-links.sp-intro .sp-net-node:nth-child(3) { animation: spNodeFlash .4s ease-out .44s both; }
#page-links.sp-intro .sp-net-node:nth-child(4) { animation: spNodeFlash .4s ease-out .56s both; }
#page-links.sp-intro .sp-net-node:nth-child(5) { animation: spNodeFlash .4s ease-out .68s both; }
#page-links.sp-intro .sp-hero-eyebrow          { animation: spEyebrowR  .42s ease-out .26s both; }
#page-links.sp-intro .sp-hero-h1               { animation: spHeadlineR .52s cubic-bezier(.22,.68,0,1.1) .38s both; }
#page-links.sp-intro .sp-links-sidebar         { animation: spBodyLeft  .48s ease-out .58s both; }
#page-links.sp-intro .sp-links-main            { animation: spInnerFade .48s ease-out .70s both; }

/* ── FAQ — hex zooms in · rings pop · everything blurs through ── */
#page-faq.sp-intro .sp-hero-hex-bg                  { animation: spFadeScale .65s ease-out .04s both; }
#page-faq.sp-intro .sp-faq-ring-anim:nth-child(2)   { animation: spNodeFlash .55s cubic-bezier(.34,1.56,.64,1) .15s both; }
#page-faq.sp-intro .sp-faq-ring-anim:nth-child(3)   { animation: spNodeFlash .55s cubic-bezier(.34,1.56,.64,1) .28s both; }
#page-faq.sp-intro .sp-faq-ring-anim:nth-child(4)   { animation: spNodeFlash .55s cubic-bezier(.34,1.56,.64,1) .42s both; }
#page-faq.sp-intro .sp-hero-eyebrow                 { animation: spFadeBlur  .42s ease-out .28s both; }
#page-faq.sp-intro .sp-hero-h1                      { animation: spFadeBlur  .52s ease-out .42s both; }
#page-faq.sp-intro .sp-faq-sidebar                  { animation: spBodyLeft  .48s ease-out .58s both; }
#page-faq.sp-intro .sp-faq-main                     { animation: spFadeBlur  .50s ease-out .70s both; }

/* ── Unternehmen — diagonal wipe · body sweeps right · stats bounce ── */
#page-company.sp-intro .sp-hero-grid-bg                  { animation: spDiagReveal .7s ease-out .04s both; }
#page-company.sp-intro .sp-circuit-nodes                 { animation: spFadeBlur   .5s ease-out .22s both; }
#page-company.sp-intro .sp-orb-comp-v1                   { animation: spFloatUp    .7s cubic-bezier(.34,1.56,.64,1) .18s both; }
#page-company.sp-intro .sp-orb-comp-v2                   { animation: spFloatUp    .7s cubic-bezier(.34,1.56,.64,1) .30s both; }
#page-company.sp-intro .sp-hero-eyebrow                  { animation: spEyebrowR   .42s ease-out .26s both; }
#page-company.sp-intro .sp-hero-h1                       { animation: spHeadlineR  .52s cubic-bezier(.22,.68,0,1.1) .38s both; }
#page-company.sp-intro .company-stat-item:nth-child(1)   { animation: spPopBounce  .40s cubic-bezier(.34,1.56,.64,1) .58s both; }
#page-company.sp-intro .company-stat-item:nth-child(2)   { animation: spPopBounce  .40s cubic-bezier(.34,1.56,.64,1) .68s both; }
#page-company.sp-intro .company-stat-item:nth-child(3)   { animation: spPopBounce  .40s cubic-bezier(.34,1.56,.64,1) .78s both; }
#page-company.sp-intro .company-stat-item:nth-child(4)   { animation: spPopBounce  .40s cubic-bezier(.34,1.56,.64,1) .88s both; }
#page-company.sp-intro .company-boxes-wrap               { animation: spBodyUp     .48s ease-out .70s both; }

@media (prefers-reduced-motion: reduce) {
  .sub-page.sp-intro * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   § 38  Roadmap Redesign  (Kill-Chain aesthetic for tool panels)
   ═══════════════════════════════════════════════════════════════ */

/* Sidebar — see § 10 for full sidebar styles */

/* Category boxes – Kill Chain glass panel style */
.category-box {
  background: linear-gradient(180deg, rgba(16,26,48,.65), rgba(6,10,20,.65)) !important;
  border: 1px solid rgba(0,170,255,.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04) !important;
  padding: 20px !important;
  transition: border-color .3s, box-shadow .3s !important;
  position: relative;
}
.category-box::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.25), transparent);
  border-radius: 1px;
}
.category-box:hover {
  border-color: rgba(0,240,255,.22) !important;
  box-shadow: 0 14px 50px rgba(0,0,0,.55), 0 0 20px rgba(0,240,255,.05), inset 0 1px 0 rgba(255,255,255,.06) !important;
  transform: none !important;
}
.category-box:active { transform: none !important; }

/* Category box headings */
.category-box h3, .category-box .category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: .01em;
}

/* Checklist items */
.checklist-item:hover label { color: var(--text-primary); }
.checklist-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #00F0FF, #0052FF);
  box-shadow: 0 0 10px rgba(0,240,255,.4);
}

/* Overall progress box */
.overall-progress-box {
  background: linear-gradient(135deg, rgba(0,82,255,.12), rgba(0,229,204,.06)) !important;
  border-color: rgba(0,170,255,.22) !important;
}

/* Filter bar */
.filterBar .filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(120,170,255,.12);
  background: rgba(0,0,0,.2);
  color: var(--text-secondary);
  transition: background .2s, border-color .2s, color .2s;
}
.filterBar .filter-btn.active, .filterBar .filter-btn:hover {
  background: rgba(0,240,255,.08);
  border-color: rgba(0,240,255,.25);
  color: #00F0FF;
}

/* Roadmap page title bar */
#page-title-bar {
  border-bottom: 1px solid rgba(0,170,255,.1);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
#page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .01em;
}

/* ── Charts deck: premium Bento panel ── */
.charts-deck {
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  float: right !important;
  min-height: unset !important;
  background: linear-gradient(180deg, rgba(12,20,40,.75), rgba(6,10,20,.80));
  border: 1px solid rgba(0,170,255,.12);
  border-radius: 16px;
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.chart-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  height: auto !important;
  width: auto !important;
  min-width: 80px !important;
  padding: 12px 16px !important;
  gap: 6px !important;
  visibility: visible !important;
  border-right: 1px solid rgba(0,170,255,.08) !important;
  transition: background .2s !important;
}
.chart-container:last-child { border-right: none !important; }
.chart-container:hover { background: rgba(0,240,255,.03) !important; }
.chart-container canvas {
  width: 72px !important;
  height: 72px !important;
  display: block !important;
}
.chart-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 7.5px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: rgba(120,170,255,.55) !important;
  margin-top: 0 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  display: block !important;
}

/* ── Sub-page responsive ── */
@media (max-width: 1200px) {
  .sp-group-grid { grid-template-columns: repeat(3, 1fr); }
  .sp-tool-card--wide { grid-column: span 2; }
  .sp-kpi-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sp-links-wrap, .sp-faq-wrap { grid-template-columns: 1fr; }
  .sp-links-sidebar, .sp-faq-sidebar { position: static; top: 0; }
  .sp-group-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-tool-card--wide { grid-column: span 1; flex-direction: column; }
  .sp-kpi-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sp-group-grid { grid-template-columns: 1fr; }
  .sp-tool-card--wide { grid-column: span 1; }
  .sp-kpi-strip { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   § 39  Roadmap Full Redesign  –  Cyber Navigation & Components
   ═══════════════════════════════════════════════════════════════ */

/* ── Sidebar section nav items ── */
#nav > li.nav-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  margin-bottom: 3px !important;
  cursor: pointer !important;
  background: transparent !important;
  transition: background .2s, border-color .2s !important;
}
#nav > li.nav-top:hover {
  background: rgba(120,170,255,.06) !important;
  border-color: rgba(120,170,255,.12) !important;
}
#nav > li.nav-top.active {
  background: rgba(0,240,255,.07) !important;
  border-color: rgba(0,240,255,.20) !important;
  border-left: 2px solid #00F0FF !important;
}
.nav-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}
#nav > li.nav-top:hover .nav-text { color: var(--text-primary); }
#nav > li.nav-top.active .nav-text { color: #00F0FF; }

.toggle-box {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}
.toggle-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(120,170,255,.35);
  line-height: 1;
  user-select: none;
}

/* ── Sub-nav items (categories) ── */
#nav ul.nav-sub { margin-left: 8px !important; padding-left: 0 !important; }
#nav .nav-sub li {
  padding: 5px 10px 5px 14px !important;
  border-radius: 6px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
  border: 1px solid transparent !important;
  margin-bottom: 1px !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: transparent !important;
}
#nav .nav-sub li:hover {
  background: rgba(0,240,255,.05) !important;
  color: rgba(0,240,255,.8) !important;
  border-color: rgba(0,240,255,.12) !important;
}
#nav .nav-sub li.active {
  background: rgba(0,240,255,.07) !important;
  color: #00F0FF !important;
  border-color: rgba(0,240,255,.18) !important;
}
.progress-donut { flex-shrink: 0 !important; }

/* ── Page title bar ── */
#page-title-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(0,170,255,.10) !important;
  margin-bottom: 12px !important;
}
#page-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: .005em !important;
}
#page-title::before {
  content: "// ";
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #00F0FF;
  opacity: .65;
  letter-spacing: .1em;
}

/* ── Charts deck ── */
.charts-deck {
  gap: 12px !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
  min-height: unset !important;
  float: right !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.chart-container {
  float: none !important;
  height: 90px !important;
  width: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.chart-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 8px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: rgba(120,170,255,.55) !important;
  margin-top: 5px !important;
  opacity: 1 !important;
}

/* ── Filter bar ── */
.filterBar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  align-items: center !important;
  padding: 8px 0 10px !important;
  border-bottom: 1px solid rgba(0,170,255,.08) !important;
  margin-bottom: 14px !important;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(120,170,255,.4);
  white-space: nowrap;
  padding-right: 3px;
}
.filter-btn, .filterBar .filter-btn {
  height: 24px !important;
  padding: 0 9px !important;
  font-size: 9px !important;
  letter-spacing: .14em !important;
  font-family: 'JetBrains Mono', monospace !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  border: 1px solid rgba(120,170,255,.12) !important;
  background: rgba(0,0,0,.15) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s, color .15s !important;
}
.filter-btn.active, .filterBar .filter-btn.active,
.filter-btn:hover, .filterBar .filter-btn:hover {
  background: rgba(0,240,255,.09) !important;
  border-color: rgba(0,240,255,.28) !important;
  color: #00F0FF !important;
  box-shadow: 0 0 8px rgba(0,240,255,.12) !important;
}
.filter-reset {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(255,59,92,.06);
  border: 1px solid rgba(255,59,92,.18);
  border-radius: 6px;
  color: rgba(255,59,92,.65);
  cursor: pointer;
  padding: 3px 10px;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-reset:hover {
  background: rgba(255,59,92,.12);
  border-color: rgba(255,59,92,.38);
  color: #FF3B5C;
}

/* ── Overall progress box (section summary) ── */
.overall-progress-box {
  background: linear-gradient(135deg, rgba(0,52,120,.20), rgba(0,180,150,.08)) !important;
  border-color: rgba(0,170,255,.22) !important;
  padding: 14px 18px !important;
}
.overall-progress-box h3 {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9px !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
  color: rgba(0,240,255,.65) !important;
  font-weight: 400 !important;
  margin-bottom: 10px !important;
}
.overall-progress-box .progress {
  height: 5px !important;
  background: rgba(0,170,255,.10) !important;
  border-radius: 3px !important;
  margin: 0 !important;
}
.overall-progress-box .progress-bar {
  border-radius: 3px !important;
  box-shadow: 0 0 8px rgba(0,240,255,.5) !important;
  animation: none !important;
  background: linear-gradient(90deg, #00F0FF, #2BFFB4) !important;
  background-size: 100% 100% !important;
  transition: width .6s ease !important;
}

/* ── Category box: checklist container ── */
.category-box ul {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* ── Checklist items ── */
.checklist-item {
  gap: 0 !important;
  padding: 7px 2px !important;
  border-bottom: 1px solid rgba(120,170,255,.07) !important;
  margin: 0 !important;
  transition: background .15s !important;
  border-radius: 6px;
}
.checklist-item:last-child { border-bottom: none !important; }
.checklist-item:hover { background: rgba(0,240,255,.03) !important; }

.checklist-item input[type="checkbox"] {
  border: 1.5px solid rgba(0,170,255,.30) !important;
  border-radius: 5px !important;
  background: rgba(0,170,255,.05) !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
  transition: background .15s, border-color .15s, box-shadow .15s !important;
}
.checklist-item input[type="checkbox"]:hover {
  border-color: rgba(0,240,255,.5) !important;
  background: rgba(0,240,255,.06) !important;
}
.checklist-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #00F0FF, #0052FF) !important;
  border-color: transparent !important;
  box-shadow: 0 0 10px rgba(0,240,255,.45), 0 0 2px #00F0FF !important;
}
.checklist-item input[type="checkbox"]:checked::after {
  font-size: 11px !important;
  top: -1px !important;
  left: 2px !important;
}
.checklist-item label {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  flex: 1 !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: color .15s !important;
}
.checklist-item:hover label { color: var(--text-primary) !important; }
.checklist-item input[type="checkbox"]:checked + label {
  color: var(--text-muted) !important;
  opacity: .5 !important;
  text-decoration: line-through !important;
  text-decoration-color: rgba(120,170,255,.35) !important;
}

/* ── Checklist group headers ── */
.checklist-group-header {
  border-top: 1px solid rgba(0,170,255,.12) !important;
  margin-top: 14px !important;
  padding-top: 8px !important;
}
.checklist-group-title {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 8.5px !important;
  letter-spacing: .28em !important;
  text-transform: uppercase !important;
  color: rgba(0,240,255,.5) !important;
  font-weight: 400 !important;
}

/* ── Badges redesign ── */
.badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.badge {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 8.5px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  margin-left: 0 !important;
  font-weight: 500 !important;
}
.badge.hoch {
  background: rgba(255,59,92,.14) !important;
  color: #FF6B80 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,59,92,.28) !important;
}
.badge.mittel {
  background: rgba(255,203,71,.10) !important;
  color: #FFCB47 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,203,71,.24) !important;
}
.badge.niedrig {
  background: rgba(43,255,180,.10) !important;
  color: #2BFFB4 !important;
  box-shadow: none !important;
  border: 1px solid rgba(43,255,180,.22) !important;
}
.badge.must {
  background: rgba(255,120,140,.10) !important;
  color: #FF8899 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,120,140,.22) !important;
}
.badge.should {
  background: rgba(255,230,100,.08) !important;
  color: #FFEE64 !important;
  box-shadow: none !important;
  border: 1px solid rgba(255,230,100,.20) !important;
}
.badge.effort {
  background: rgba(120,170,255,.09) !important;
  color: rgba(160,200,255,.75) !important;
  box-shadow: none !important;
  border: 1px solid rgba(120,170,255,.18) !important;
}

/* ── Info and hide buttons ── */
.info-btn {
  background: rgba(0,170,255,.06) !important;
  border: 1px solid rgba(0,170,255,.18) !important;
  color: rgba(0,240,255,.7) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  width: 17px !important;
  line-height: 17px !important;
}
.info-btn:hover {
  background: rgba(0,240,255,.12) !important;
  box-shadow: 0 0 8px rgba(0,240,255,.2) !important;
  border-color: rgba(0,240,255,.35) !important;
}
.item-description {
  background: rgba(6,10,20,.7) !important;
  border: 1px solid rgba(0,170,255,.14) !important;
  border-left: 2px solid rgba(0,240,255,.4) !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  line-height: 1.65 !important;
  color: var(--text-secondary) !important;
  border-radius: 8px !important;
}

/* ── Sidebar footer action buttons ── */
.sidebar-footer .footer-btn,
.sidebar-footer .form-action-btn,
.footer-btn.nav-top-like {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 9.5px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  background: rgba(0,170,255,.07) !important;
  border: 1px solid rgba(0,170,255,.16) !important;
  border-radius: 8px !important;
  color: var(--text-secondary) !important;
  transition: background .2s, border-color .2s, color .2s !important;
}
.sidebar-footer .footer-btn:hover,
.sidebar-footer .form-action-btn:hover,
.footer-btn.nav-top-like:hover {
  background: rgba(0,240,255,.10) !important;
  border-color: rgba(0,240,255,.28) !important;
  color: #00F0FF !important;
  box-shadow: 0 0 10px rgba(0,240,255,.12) !important;
}

/* ── Progress donut in sub-nav ── */
.section-donut { display: block; flex-shrink: 0; }

/* ── Roadmap responsive ── */
@media (max-width: 900px) {
  .charts-deck { display: none !important; }
  .filterBar { gap: 4px 6px !important; }
  .filter-btn, .filterBar .filter-btn { font-size: 8px !important; padding: 0 7px !important; }
}
@media (max-width: 600px) {
  #page-title { font-size: 15px !important; }
  .category-box { padding: 14px !important; }
  .checklist-item label { font-size: 12px !important; }
}

/* ── Roadmap Hero (rm-hero) — full-viewport-width, sticky ── */
.rm-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  flex-shrink: 0;
  /* Full-viewport bleed out of the centered max-width container */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: 0;
  margin-bottom: 0;
  background: #06070A;
}
.rm-hero[hidden] { display: none !important; }

/* Nav-only mode: hide everything except the nav bar */
.rm-hero.rm-hero--nav-only { min-height: 0; }
.rm-hero.rm-hero--nav-only > *:not(.rm-hero-nav) { display: none !important; }

/* sticky sp-nav style bar inside roadmap hero */
.rm-hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(6,7,10,.85);
  border-bottom: 1px solid rgba(0,170,255,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.rm-nav-left { display: flex; align-items: center; gap: 12px; }
.rm-nav-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rm-kpi-item {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.rm-kpi-val {
  font-size: 13px;
  font-weight: 600;
  color: #00F0FF;
  letter-spacing: .02em;
}
.rm-kpi-lbl {
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(120,170,255,.5);
}
.rm-kpi-div {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(120,170,255,.25);
  font-size: 12px;
}

/* background: animated grid */
.rm-hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,240,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  animation: rmGridIntro 2.8s ease-out forwards;
}
@keyframes rmGridIntro {
  0%   { opacity: 0; background-position: 0 0; }
  18%  { opacity: 1; }
  72%  { opacity: 0.65; background-position: 0 -6px; }
  100% { opacity: 0; background-position: 0 -19px; }
}

/* scan line */
.rm-hero-scan {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.0) 30%, rgba(0,240,255,.7) 50%, rgba(0,240,255,.0) 70%, transparent);
  box-shadow: 0 0 14px rgba(0,240,255,.5);
  animation: spScanLine 7s linear infinite;
}

/* data flow bars */
.rm-dflow-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.rm-dflow {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--clr), transparent);
  animation: rmDflow var(--dur, 4s) ease-in-out infinite;
  opacity: 0;
}
@keyframes rmDflow {
  0%   { top: -10%; height: 20%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 110%; height: 20%; opacity: 0; }
}

/* glowing hex nodes */
.rm-node {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00F0FF;
  box-shadow: 0 0 10px #00F0FF, 0 0 20px rgba(0,240,255,.4);
  z-index: 3;
  pointer-events: none;
  animation: spCnodePulse var(--dur, 4s) ease-in-out infinite;
}
.rm-node::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,240,255,.25);
  animation: spCnodeRing var(--dur, 4s) ease-in-out infinite;
}

/* shield orb */
.rm-shield-orb {
  position: absolute;
  width: 350px; height: 280px;
  top: -60px; right: 8%;
  background: radial-gradient(ellipse, rgba(0,82,255,.14), transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
  animation: spOrbFloat 10s ease-in-out infinite alternate;
}

/* hero body (text + meta) */
.rm-hero-body {
  position: relative;
  z-index: 5;
  padding: 28px 28px 32px;
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Secondary orb (green accent, top-left) ── */
.rm-orb-secondary {
  position: absolute;
  width: 280px; height: 200px;
  top: -24px; left: -16px;
  background: radial-gradient(ellipse, rgba(43,255,180,.08), transparent 68%);
  filter: blur(46px);
  z-index: 1;
  pointer-events: none;
  animation: spOrbFloat 13s ease-in-out infinite alternate-reverse;
}

/* ── Hero KPI strip ── */
.rm-hero-kpi-strip {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  background: rgba(0,240,255,.022);
  border-top: 1px solid rgba(0,240,255,.08);
}
.rm-hkpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 8px;
  gap: 3px;
  border-right: 1px solid rgba(0,240,255,.07);
}
.rm-hkpi:last-child { border-right: none; }
.rm-hkpi-sep { display: none; }
.rm-hkpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 600;
  color: #00F0FF;
  letter-spacing: .04em;
  line-height: 1;
}
.rm-hkpi-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(120,180,255,.38);
  white-space: nowrap;
}

/* ── Hero overall progress bar ── */
.rm-hero-progress {
  position: relative;
  z-index: 6;
  height: 2px;
  flex-shrink: 0;
  background: rgba(0,240,255,.05);
}
.rm-hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00F0FF 0%, #2BFFB4 100%);
  box-shadow: 0 0 8px rgba(0,240,255,.55), 0 0 20px rgba(0,240,255,.2);
  transition: width .9s cubic-bezier(.22,.68,0,1.2);
}

/* ── Section context bar — full-width (tool-container child) ── */
.rm-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 20px;
  background: rgba(0,240,255,.03);
  border-bottom: 1px solid rgba(0,240,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Full-width bleed matching rm-hero */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.rm-section-bar[hidden] { display: none !important; }
.rm-sb-left, .rm-sb-right { display: flex; align-items: center; gap: 8px; }
.rm-sb-crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,240,255,.68);
}
.rm-sb-crumb::before { content: '› '; color: rgba(0,240,255,.32); }
.rm-sb-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(120,180,255,.48);
}

/* ── Section progress bar — full-width (tool-container child) ── */
.rm-section-progress {
  height: 2px;
  background: rgba(0,240,255,.04);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.rm-section-progress[hidden] { display: none !important; }
.rm-section-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0,240,255,.6) 0%, #2BFFB4 100%);
  box-shadow: 0 0 6px rgba(0,240,255,.4);
  transition: width .65s ease-out;
}

/* ── Category box entry animation ── */
@keyframes catBoxIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.category-box { animation: catBoxIn .38s ease-out both; }
.category-box:nth-child(1) { animation-delay: .02s; }
.category-box:nth-child(2) { animation-delay: .07s; }
.category-box:nth-child(3) { animation-delay: .12s; }
.category-box:nth-child(4) { animation-delay: .17s; }
.category-box:nth-child(5) { animation-delay: .22s; }
.category-box:nth-child(6) { animation-delay: .27s; }
.category-box:nth-child(7) { animation-delay: .32s; }
.category-box:nth-child(8) { animation-delay: .37s; }

/* ── Enhanced filter tiles ── */
.filter-tile {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.filter-tile.filter-tile-active {
  box-shadow: 0 0 12px rgba(0,240,255,.22);
}

/* ── Page title bar redesign ── */
#page-title-bar {
  position: relative;
}
#page-title-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(0,240,255,.22) 0%, rgba(0,240,255,.04) 60%, transparent 100%);
}
#page-title {
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   § 39b  Security Roadmap — Full Visual Redesign
   ══════════════════════════════════════════════════════════════ */

/* ── Shield SVG decoration ── */
.rm-shield-svg {
  position: absolute;
  top: -10px; right: 5%;
  width: 210px; height: 230px;
  opacity: .68;
  pointer-events: none;
  z-index: 2;
}
.rm-shield-svg svg { width: 100%; height: 100%; overflow: visible; display: block; }

@keyframes rsSpin  { to { transform: rotate(360deg); } }
@keyframes rsSpin2 { to { transform: rotate(-360deg); } }
@keyframes rsBlink { 0%,100%{ opacity:.45 } 50%{ opacity:1 } }
@keyframes rsScan  {
  0%  { transform: translateY(-56px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100%{ transform: translateY(56px);  opacity: 0; }
}

.rm-shield-svg .rs-ring  {
  transform-origin: 100px 112px;
  transform-box: fill-box;
  animation: rsSpin 14s linear infinite;
}
.rm-shield-svg .rs-ring2 {
  transform-origin: 100px 112px;
  transform-box: fill-box;
  animation: rsSpin2 20s linear infinite;
}
.rm-shield-svg .rs-pulse { animation: rsBlink 2.2s ease-in-out infinite; }
.rm-shield-svg .rs-blink { animation: rsBlink 1.8s ease-in-out infinite; }
.rm-shield-svg .rs-blink2{ animation: rsBlink 2.5s ease-in-out infinite .7s; }
.rm-shield-svg .rs-scan  {
  transform-origin: 100px 102px;
  transform-box: fill-box;
  animation: rsScan 3.8s ease-in-out infinite;
}

/* ── Hero entrance animation ── */
@keyframes rmHeroNavIn    { from{ opacity:0; transform:translateY(-14px) } to{ opacity:1; transform:none } }
@keyframes rmHeroBodyIn   { from{ opacity:0; transform:translateY(22px)  } to{ opacity:1; transform:none } }
@keyframes rmHeroShieldIn { from{ opacity:0; transform:translateX(28px) scale(.9) } to{ opacity:.68; transform:none } }
@keyframes rmKpiPop       { from{ opacity:0; transform:translateY(10px) scale(.94) } to{ opacity:1; transform:none } }

#roadmap-hero.rm-intro .rm-hero-nav   { animation: rmHeroNavIn    .48s cubic-bezier(.22,.68,0,1.1) .08s  both; }
#roadmap-hero.rm-intro .rm-hero-body  { animation: rmHeroBodyIn   .52s cubic-bezier(.22,.68,0,1.1) .20s  both; }
#roadmap-hero.rm-intro .rm-shield-svg { animation: rmHeroShieldIn .60s cubic-bezier(.22,.68,0,1.1) .26s  both; }
#roadmap-hero.rm-intro .rm-hkpi:nth-child(1) { animation: rmKpiPop .42s cubic-bezier(.22,.68,0,1.1) .38s both; }
#roadmap-hero.rm-intro .rm-hkpi:nth-child(2) { animation: rmKpiPop .42s cubic-bezier(.22,.68,0,1.1) .44s both; }
#roadmap-hero.rm-intro .rm-hkpi:nth-child(3) { animation: rmKpiPop .42s cubic-bezier(.22,.68,0,1.1) .50s both; }
#roadmap-hero.rm-intro .rm-hkpi:nth-child(4) { animation: rmKpiPop .42s cubic-bezier(.22,.68,0,1.1) .56s both; }
#roadmap-hero.rm-intro .rm-hero-progress-fill { transition: width 1.3s cubic-bezier(.22,.68,0,1.1) .65s; }

/* ── Enhanced KPI values ── */
.rm-hkpi-val {
  font-size: 22px !important;
  font-weight: 700 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -.01em !important;
}
#rm-hkpi-pct      { color: #00F0FF; }
#rm-hkpi-done     { color: #2BFFB4; }
#rm-hkpi-crit     { color: #FF3B5C; }
#rm-hkpi-sections { color: rgba(255,255,255,.8); }

/* ── Sidebar nav icons ── */
.rm-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  margin-right: 8px;
  vertical-align: middle;
  transition: background .2s, border-color .2s;
}
.rm-nav-icon svg { display: block; }
.nav-top:hover .rm-nav-icon,
.nav-top.active .rm-nav-icon {
  background: rgba(0,240,255,.09);
  border-color: rgba(0,240,255,.24);
}

/* ── Sidebar stagger intro (delays set via JS per-item) ── */
@keyframes rmNavItemIn { from{ opacity:0; transform:translateX(-16px) } to{ opacity:1; transform:none } }
.rm-sidebar-intro #nav > li { animation: rmNavItemIn .38s cubic-bezier(.22,.68,0,1.1) both; }

/* ── Category box redesign ── */
.rm-cat-box {
  padding: 0 !important;
  overflow: hidden !important;
}
.rm-cat-box h3.progress-title { display: none !important; }
.rm-cat-box div.progress       { display: none !important; }

.rm-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(var(--cat-rgb, 0,240,255), .1);
  background: rgba(var(--cat-rgb, 0,240,255), .035);
  position: relative;
}
.rm-cat-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(var(--cat-rgb, 0,240,255), .35),
    rgba(var(--cat-rgb, 0,240,255), .08),
    transparent);
}
.rm-cat-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--cat-rgb, 0,240,255), .07);
  border: 1px solid rgba(var(--cat-rgb, 0,240,255), .18);
}
.rm-cat-icon .tc-svg { width: 28px; height: 28px; }
.rm-cat-info { flex: 1; min-width: 0; }
.rm-cat-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: .01em;
}
.rm-cat-prog-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(var(--cat-rgb, 0,240,255), .6);
}
.rm-cat-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: rgba(var(--cat-rgb, 0,240,255), .85);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.rm-cat-bar {
  height: 3px;
  background: rgba(var(--cat-rgb, 0,240,255), .07);
}
.rm-cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg,
    rgba(var(--cat-rgb, 0,240,255), .85),
    rgba(var(--cat-rgb, 0,240,255), .45));
  box-shadow: 0 0 8px rgba(var(--cat-rgb, 0,240,255), .35);
  transition: width .75s cubic-bezier(.22,.68,0,1.1);
}
.rm-cat-body {
  padding: 16px 20px 20px;
}

/* ── Overall / overview box ── */
.rm-overview-box {
  background: linear-gradient(135deg, rgba(0,82,255,.14), rgba(0,240,255,.06)) !important;
  border-color: rgba(0,240,255,.22) !important;
}
.rm-overview-box::before {
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.35), transparent) !important;
}

/* ── Category box entry spring ── */
.rm-cat-box { animation: catBoxIn .45s cubic-bezier(.22,.68,0,1.1) both; }
.rm-cat-box:nth-child(1) { animation-delay: .04s; }
.rm-cat-box:nth-child(2) { animation-delay: .10s; }
.rm-cat-box:nth-child(3) { animation-delay: .16s; }
.rm-cat-box:nth-child(4) { animation-delay: .22s; }
.rm-cat-box:nth-child(5) { animation-delay: .28s; }
.rm-cat-box:nth-child(6) { animation-delay: .34s; }
.rm-cat-box:nth-child(7) { animation-delay: .40s; }
.rm-cat-box:nth-child(8) { animation-delay: .46s; }

@media (max-width: 900px) {
  .rm-shield-svg { opacity: .45; width: 140px; height: 155px; right: 2%; }
}
@media (max-width: 600px) {
  .rm-shield-svg { display: none; }
}

/* ── Hero outro (collapse to nav-only) ── */
@keyframes rmHeroBodyOut   { from{ opacity:1; transform:none } to{ opacity:0; transform:translateY(-8px) } }
@keyframes rmHeroShieldOut { from{ opacity:.68; transform:none } to{ opacity:0; transform:translateX(16px) scale(.93) } }
@keyframes rmKpiOut        { from{ opacity:1; transform:none } to{ opacity:0; transform:translateY(6px) } }

#roadmap-hero.rm-outro .rm-hero-body        { animation: rmHeroBodyOut   .26s ease-out both; }
#roadmap-hero.rm-outro .rm-shield-svg       { animation: rmHeroShieldOut .22s ease-out both; }
#roadmap-hero.rm-outro .rm-hkpi             { animation: rmKpiOut        .20s ease-out both; }
#roadmap-hero.rm-outro .rm-hero-kpi-strip   { animation: rmKpiOut        .22s ease-out both; }
#roadmap-hero.rm-outro .rm-hero-progress    { animation: rmKpiOut        .20s ease-out both; }

/* ── nav-sub li: gap-based layout, compact, wrapping text ── */
#nav .nav-sub li {
  justify-content: flex-start !important;
  gap: 6px !important;
  align-items: center !important;
}
#nav .nav-sub li .data-cat {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  text-align: left !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}
#nav .nav-sub li .progress-donut {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  width: 26px !important;
  height: 26px !important;
}

/* ── Chart labels above donut ── */
.chart-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 8px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: rgba(140,190,255,.75) !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
  display: block !important;
  text-align: center !important;
  order: -1 !important;
}

/* ── Sidebar-footer always visible (nav scrolls, footer stays) ── */
/* #sidebar is display:flex + flex-direction:column + height:100dvh-offset + overflow:hidden.
   #nav is a direct child → give it flex:1+min-height:0+overflow-y:auto so it scrolls
   internally, leaving .sidebar-footer (flex:0 0 auto) always pinned at the bottom. */
#sidebar {
  display: flex !important;
  flex-direction: column !important;
}
#sidebar #nav {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,170,255,.15) transparent;
}
#sidebar #nav::-webkit-scrollbar { width: 4px; }
#sidebar #nav::-webkit-scrollbar-thumb { background: rgba(0,170,255,.18); border-radius: 4px; }
.sidebar-footer {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 5;
}

/* ══════════════════════════════════════════════════════════════
   § COMPANY / UNTERNEHMEN SUB-PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero background: violet grid (overrides cyan from sp-hero-grid-bg) ── */
.sp-hero-company > .sp-comp-grid {
  background-image:
    linear-gradient(rgba(179,136,255,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179,136,255,.042) 1px, transparent 1px);
}

/* ── Scan line: violet instead of cyan ── */
.sp-comp-scan {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(179,136,255,.0) 28%,
    rgba(179,136,255,.85) 50%,
    rgba(179,136,255,.0) 72%,
    transparent 100%);
  box-shadow: 0 0 18px rgba(179,136,255,.55);
}

/* ── Circuit nodes: violet variant ── */
.sp-cnode-v {
  background: #B388FF;
  box-shadow: 0 0 12px #B388FF, 0 0 24px rgba(179,136,255,.45);
}
.sp-cnode-v::after { border-color: rgba(179,136,255,.28); }

/* ── Company hero orbs ── */
.sp-orb-comp-v1 {
  width: 440px; height: 340px;
  top: -90px; right: 7%;
  background: radial-gradient(ellipse, rgba(179,136,255,.16), transparent 70%);
  filter: blur(52px);
  animation: spOrbFloat 11s ease-in-out infinite alternate;
}
.sp-orb-comp-v2 {
  width: 310px; height: 270px;
  bottom: -20px; right: 22%;
  background: radial-gradient(ellipse, rgba(0,82,255,.13), transparent 70%);
  filter: blur(44px);
  animation: spOrbFloat 9s ease-in-out infinite alternate-reverse;
}

/* ── Company stat strip ── */
.company-stat-strip {
  display: flex;
  border: 1px solid rgba(179,136,255,.14);
  border-radius: 10px;
  margin: 28px 0 40px;
  overflow: hidden;
  background: rgba(179,136,255,.025);
}
.company-stat-item {
  flex: 1;
  padding: 22px 12px 20px;
  text-align: center;
  border-right: 1px solid rgba(179,136,255,.12);
  position: relative;
  overflow: hidden;
}
.company-stat-item:last-child { border-right: none; }
.company-stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(179,136,255,.08), transparent 70%);
}
.company-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: #B388FF;
  letter-spacing: -.02em;
  line-height: 1;
  position: relative;
}
.company-stat-unit { font-size: .55em; }
.company-stat-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(180,200,255,.45);
  margin-top: 7px;
  position: relative;
}

/* ── Company section label ── */
.company-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(179,136,255,.55);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(179,136,255,.38);
}

/* ── Company boxes ── */
.company-boxes-wrap { margin-bottom: 48px; }
.company-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.company-box-card {
  background: var(--bg-surface);
  border: 1px solid rgba(179,136,255,.12);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  animation: compBoxIn .45s ease both;
}
@keyframes compBoxIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.company-box-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(179,136,255,.07), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.company-box-card:hover { border-color: rgba(179,136,255,.32); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(179,136,255,.13); }
.company-box-card:hover::before { opacity: 1; }
.company-box-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-box-title::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #B388FF;
  box-shadow: 0 0 8px rgba(179,136,255,.65);
}
.company-box-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
  position: relative;
}
.company-box-bullets {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.company-box-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  border-top: 1px solid rgba(179,136,255,.07);
  position: relative;
}
.company-box-bullets li:first-child { border-top: none; }
.company-box-bullets li::before {
  content: '›';
  position: absolute; left: 0;
  color: #B388FF;
  font-weight: 700;
}
.company-box-extra {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
  position: relative;
}

/* ── Company timeline ── */
.company-tl-wrap { margin-bottom: 48px; }
.company-timeline {
  position: relative;
  padding-left: 28px;
}
.company-timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, #B388FF 0%, rgba(179,136,255,.04) 100%);
}
.company-tl-item {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .4s ease, transform .4s ease;
}
.company-tl-item.in { opacity: 1; transform: translateX(0); }
.company-tl-dot {
  position: absolute;
  left: -32px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #B388FF;
  box-shadow: 0 0 10px rgba(179,136,255,.75), 0 0 0 3px rgba(179,136,255,.14);
}
.company-tl-when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B388FF;
  margin-bottom: 4px;
}
.company-tl-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}

/* ── Company responsive ── */
@media (max-width: 900px) {
  .company-stat-strip { flex-wrap: wrap; }
  .company-stat-item { flex: 1 1 45%; border-bottom: 1px solid rgba(179,136,255,.12); }
  .company-stat-item:nth-child(odd) { border-right: 1px solid rgba(179,136,255,.12); }
  .company-stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .company-boxes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .company-stat-item { flex: 1 1 100%; border-right: none !important; }
  .company-stat-item:last-child { border-bottom: none; }
  .company-stat-val { font-size: 22px; }
}


/* ── Roadmap responsive ── */
@media (max-width: 900px) {
  .rm-hero { min-height: 200px; }
  .rm-hero-body { padding: 20px 16px 24px; }
  .rm-hero-nav { padding: 0 12px; }
  .rm-nav-kpis { display: none; }
  .rm-hkpi { padding: 8px 8px 6px; }
  .rm-hkpi-val { font-size: 14px; }
  .rm-hkpi-lbl { font-size: 6.5px; letter-spacing: .14em; }
  .rm-section-bar { padding: 5px 12px; }
}
@media (max-width: 600px) {
  .rm-hero { min-height: 180px; }
  .rm-hero-body { padding: 16px 12px 20px; }
  .rm-hkpi { padding: 7px 6px 5px; }
  .rm-hkpi-val { font-size: 13px; }
  .rm-hkpi-lbl { font-size: 6px; }
}

/* ══════════════════════════════════════════════════════════════
   § ROADMAP — MOBILE DRAWER + LAYOUT
   ══════════════════════════════════════════════════════════════ */

/* Backdrop (shown at any viewport width via JS) */
#rm-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,8,20,.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}
#rm-drawer-backdrop.open {
  display: block;
  animation: rmBdIn .22s ease both;
}
@keyframes rmBdIn { from { opacity:0 } to { opacity:1 } }

@media (max-width: 900px) {
  /* Sidebar: fixed overlay, slides in from left */
  body.has-sidebar #sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: auto !important;
    top: var(--sticky-offset, 0px) !important;
    left: 0 !important;
    width: min(290px, 88vw) !important;
    min-width: 0 !important;
    max-width: 88vw !important;
    height: calc(100dvh - var(--sticky-offset, 0px)) !important;
    transform: translateX(-110%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s !important;
    z-index: 200 !important;
    border-right: 1px solid rgba(0,240,255,.14) !important;
    border-left: none !important;
    border-radius: 0 16px 16px 0 !important;
    box-shadow: none !important;
    animation: none !important;
  }
  body.has-sidebar #sidebar.drawer-open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 48px rgba(0,0,0,.7), 0 0 0 1px rgba(0,240,255,.07) !important;
    animation: none !important;
  }

  /* Content: always full-width */
  body.has-sidebar #content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  /* Sidebar is now an overlay — don't hide content behind it */
  body.sidebar-drawer-open #filterBar     { display: flex !important; }
  body.sidebar-drawer-open #categoryContent { display: block !important; }

  /* Filter bar: show on mobile (override the always-hidden rule) */
  #filterBar, .filterBar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }

  /* Sidebar burger always visible in roadmap */
  body.has-sidebar .sidebar-burger {
    display: inline-flex !important;
  }

  /* Roadmap hero: compact for mobile */
  #roadmap-hero {
    padding: 14px 14px 12px !important;
  }
  .rm-hero-body {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .rm-hero-kpi-strip {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .rm-hkpi {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 80px !important;
  }

  /* Category boxes: tighter on mobile */
  .rm-cat-box { padding: 12px !important; }
  .rm-cat-header { gap: 8px !important; }

  /* Overview heading: wrap instead of overflow */
  .rm-overview-box h3 {
    font-size: 0.78rem !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }

  /* sp-footer: simple stack on mobile */
  .sp-footer-inner {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: center !important;
  }
}

/* Very small phones: full-width sidebar drawer */
@media (max-width: 480px) {
  body.has-sidebar #sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-right: none !important;
  }
}
