/* ==========================================================================
   Dunkles Design („Dark Mode“) – nur aktiv mit html.hl-dm (Footer-Schalter, Standard: aus).
   Wird nach allen anderen Theme-Styles geladen und überschreibt nur Farben.
   ========================================================================== */

html.hl-dm{color-scheme:dark}
html.hl-dm{
  --ink:#eef1f6; --ink-2:#c3c9d4; --ink-3:#aab2bf; --ink-4:#a3abb8;
  --bg:#0c111b; --red-soft:#3a1420; --red-text:var(--red); --tl-text:#8ab8ff; --red-hover:#3d1622; --tl:#6aa6ff; --tl-d:#6aa6ff; --tl-l:#16263f;
  --c1:#1d3f73; --c2:#6b1f33; --c3:#17243a; --c4:#2b2560;
  --glass:linear-gradient(160deg,#1a2233e6,#141b29d9);
  --glass-shadow:inset 0 1px 0 #ffffff12,0 1px 0 #0000004d,0 24px 48px -30px #000000b3;
  --glass-line:#ffffff1a; --glass-hover:linear-gradient(160deg,#222c40,#1a2232);
  --surface:#151c2a; --surface-2:#10161f; --chip:#1b2435; --line:#ffffff24; --surface-nav:#121927e6; --field:#0f1522; --field-focus:#131a28;
  --dm-card:#151c2a; --dm-card-2:#1b2435; --dm-line:#ffffff1a; --dm-line-2:#ffffff26;
  /* Avada-Farbpalette */
  --awb-color1:#151c2a; --awb-color2:#0c111b; --awb-color3:#3a1420; --awb-color6:#c3c9d4; --awb-color7:#eef1f6; --awb-color8:#05080e;
}
html.hl-dm body,html.hl-dm body.hl{--awb-color1:#151c2a;--awb-color2:#0c111b;--awb-color3:#3a1420;--awb-color6:#c3c9d4;--awb-color7:#eef1f6;--awb-color8:#05080e}
html.hl-dm body.hl{background:var(--bg);color:var(--ink)}
html.hl-dm .hl-canvas .blob{opacity:.5!important}
html.hl-dm .hl-canvas .k2{opacity:.3!important}
html.hl-dm .hl-canvas::after{display:none}
html.hl-dm .hl-canvas .ov-tech{--gl:#ffffff0d}
html.hl-dm .ov-tech .circ{filter:invert(1);opacity:.5}

/* Text */
html.hl-dm .hl :is(h1,h2,h3,h4,h5,h6){color:var(--ink)}
html.hl-dm body.hl .fusion-title{--awb-text-color:var(--ink)}
html.hl-dm .hl .hl-more a,html.hl-dm .hl .hl-more a::after{color:var(--ink)}
html.hl-dm .hl .hl-more a:hover{color:var(--red-text)}
html.hl-dm .hl .hl-link-blue,html.hl-dm .hl a.hl-link-blue{color:var(--tl)!important}
html.hl-dm .hl .hl-label p{background:var(--red-soft)}
html.hl-dm .hl .hl-sp-toc .hl-label p{background:none}
html.hl-dm .hl .hl-sub,html.hl-dm .hl .hl-red{color:var(--red)}
html.hl-dm .hl .hl-notice-more a:hover{background:#ffffff14}

/* Navigation */
html.hl-dm .hl-nav{--mbd:#ffffff17;--msh:0 30px 70px -25px #000c,0 2px 6px #0006;--mhov:#232d40;--mic:#3a1420;--mict:var(--red);--mtx:var(--ink);--mtx2:var(--ink-4)}
html.hl-dm .hl-nav .navbar{color:var(--ink)}
html.hl-dm .hl-scrolled .hl-nav .navbar::before{box-shadow:0 1px 0 #ffffff0d,0 18px 44px -20px #000}
html.hl-dm .hl-nav .dd.mega li.m-all{background:#ffffff08}
html.hl-dm .hl-nav .hl-search{background:#151c2a;border-color:var(--dm-line)}
html.hl-dm .hl .mnav{background:#0c111bf7;color:var(--ink)}
html.hl-dm .mnav .mi{background:var(--red-soft);color:var(--red)}
html.hl-dm .hl-lang > summary{background:#ffffff12;border-color:var(--dm-line);color:var(--ink)}
html.hl-dm .hl-lang > summary:hover,html.hl-dm .hl-lang[open] > summary{background:#ffffff1f}
html.hl-dm .hl-lang-list{background:#151c2a;border-color:var(--dm-line)}
html.hl-dm .hl .iconbtn:hover{background:#ffffff14}
html.hl-dm .hl img[src*="hl-services-logo"]{content:url("../img/hl-services-logo-hell.svg")}

/* Glas-Karten und helle Flächen */
html.hl-dm .hl :is(.hl-usp,.hl-svc,.hl-sp-facts,.hl-sp-toc,.hl-sp-spec,.hl-sp-note,.hl-sp-stack,.hl-sp-step,.hl-sp-aside,.hl-sp-route-way,.hl-kp-branche,.hl-kr-card,.hl-kr-person,.zf-cert) > .fusion-column-wrapper{background:var(--glass)!important;border-color:var(--dm-line)!important;box-shadow:var(--glass-shadow)}
html.hl-dm .hl :is(.hl-usp,.hl-svc) > .fusion-column-wrapper::before{background:radial-gradient(120% 80% at 0% 0%,#ffffff12 0%,#fff0 55%)}
html.hl-dm .hl :is(.hl-usp,.hl-svc,.hl-sp-tile,.hl-kr-perk):hover > .fusion-column-wrapper{background:linear-gradient(160deg,#222c40,#1a2232)!important;border-color:var(--dm-line-2)!important}
html.hl-dm .hl :is(.hl-ref,a.hl-nl-card,.hl-job,.hl-legal-card,.hl-legal-toc-details){background:var(--glass);border-color:var(--dm-line)}
html.hl-dm .hl .hl-job:hover{background:linear-gradient(160deg,#222c40,#1a2232)}
html.hl-dm .hl .hl-notice > .fusion-column-wrapper{background:#151c2ae6!important;border-color:var(--dm-line)}
html.hl-dm body.hl .fusion-title.hl-notice-badge{background:var(--red-soft)}
html.hl-dm .hl .hl-contact-box > .fusion-column-wrapper{background:radial-gradient(60% 90% at 100% 0%,#1f6fd133 0%,transparent 60%),linear-gradient(160deg,#1a2233e6,#141b29d9)!important;border-color:var(--dm-line)!important}
html.hl-dm .hl .hl-mf-card > .fusion-column-wrapper{background:#121927e6!important;border-color:var(--dm-line)}
html.hl-dm .hl .hl-hero-chips .hl-chip{background:#151c2a;color:var(--ink);border-color:var(--dm-line)}
html.hl-dm .sp-orb-light .o > span{background:#1b2435e6;border-color:var(--dm-line-2);color:var(--ink)}
html.hl-dm .sp-orb-light .ring{border-color:#ffffff1f}
/* Dunkle Kopf-Kachel: Punkte und Symbol heller, sonst verschwinden sie (--tl-l ist im Dark Mode dunkel) */
html.hl-dm .hl .hl-sp-bento-head > .fusion-column-wrapper::before{background-image:radial-gradient(#8ab8ff40 1px,transparent 1.3px)}
html.hl-dm .hl .hl-sp-art .ic{color:#8ab8ff;opacity:.16}
html.hl-dm .hl .hl-ico--teal{background:#12303a}
html.hl-dm .hl .hl-ico--red{background:var(--red-soft)}
html.hl-dm .hl .hl-panel{box-shadow:0 1px 0 #ffffff0d,0 30px 60px -32px #000}
html.hl-dm .hl .hl-ki::after{background-color:#00000059}

/* Seiten-spezifische Flächen */
html.hl-dm .hl .hl-sp-layer > .fusion-column-wrapper{background:#1b2435!important;border-color:var(--dm-line)!important}
html.hl-dm .hl .hl-sp-layer:last-child > .fusion-column-wrapper{background:linear-gradient(160deg,#1b2435,#16263f)!important}
html.hl-dm .hl .hl-lst-tabs > .nav > .nav-tabs{background:var(--glass)!important;border-color:var(--dm-line)!important}
html.hl-dm .hl .hl-lst-tabs > .nav > .nav-tabs > li:not(.active) > .tab-link{color:var(--ink)!important}
html.hl-dm .hl .hl-lst-tabs > .nav > .nav-tabs > li:not(.active) > .tab-link:hover{background:#ffffff14!important}
html.hl-dm .hl .hl-lst-tabs .awb-tab-pane-inner{background:var(--glass);border-color:var(--dm-line)}
html.hl-dm .hl .fusion-tabs .nav-tabs li .tab-link{background:transparent}
html.hl-dm .hl .zf-cert-img{background:#fff}

/* Formulare */
html.hl-dm .hl .fusion-form-field :is(input.fusion-form-input:not([type=checkbox]),textarea.fusion-form-input,select.fusion-form-input){background:#0f1522!important;border-color:var(--dm-line-2)!important;color:var(--ink)!important}
html.hl-dm .hl .fusion-form-field :is(input,textarea)::placeholder{color:#8891a0}
html.hl-dm .hl .fusion-form-field label,html.hl-dm .hl .fusion-form-field .fusion-form-label{color:var(--ink)}
html.hl-dm .hl .fusion-form-upload-field-container > .fusion-form-upload-field{background:#0f1522!important;border-color:var(--dm-line-2)!important;color:var(--ink)}

/* Footer-Schalter */
html.hl-dm .hl .hl-motion-track{background:#ffffff2e}
html.hl-dm .hl .hl-mf-top{color:var(--ink-3)}

/* Kundenlogos: einfarbig hell, damit sie auf dunklem Grund lesbar sind */
html.hl-dm .hl :is(.hl-logos,.hl-ref) img{filter:brightness(0) invert(1);opacity:.75}

/* Rote Schrift auf dunklem Grund: hellere Variante (WCAG AA), Buttons behalten das Marken-Rot mit weißer Schrift */
html.hl-dm .hl-nav .menu a.active,html.hl-dm .hl-nav .menu .dd > a.active,html.hl-dm .mnav .active,
html.hl-dm .hl .hl-more a:hover,html.hl-dm .hl .hl-mf-col a:hover,html.hl-dm .hl .hl-mf-legal a:hover,html.hl-dm .hl .hl-mf-contact a:hover,
html.hl-dm .hl .red,html.hl-dm .hl .hl-hero-cta .hl-cta-more:hover,html.hl-dm .hl .hl-hero-chips a.hl-chip:hover,html.hl-dm .hl .hl-sp-toc a:hover,
html.hl-dm .hl .hl-display .hl-sub,html.hl-dm body.hl .fusion-title .hl-sub{color:var(--red-text)}
html.hl-dm .hl :is(.hl-ico--red,.hl-ico--plain),html.hl-dm .mnav .mi,html.hl-dm .hl .hl-mf-contact a .ic,html.hl-dm .hl .hl-hero-chips .hl-chip .ic,html.hl-dm .hl .hl-checks li::before{color:var(--red)}
html.hl-dm .hl .hl-svc:hover .hl-ico--red{color:#fff}
html.hl-dm .hl :is(.hl-legal-text,.hl-form-consent,.fusion-form-checkbox,.hl-legal-body) a:not(.fusion-button){color:var(--red-text)}
html.hl-dm .hl .hl-kp-partner > .fusion-column-wrapper{background:var(--glass);border-color:var(--dm-line)}
html.hl-dm .hl .hl-kp-partner-logo a{color:#eef3fb}

/* Hero-Grafik Startseite: im Dark Mode weiter Cyan (hell: Monitoring-Blau, s. hl-site.css) */
html.hl-dm .hl-hv{--hv-c:#4fc2f8;--hv-c-deep:#4fc2f8;--hv-c-hi:#a6e0fc}
html.hl-dm .hl-hv-echo{stroke:var(--ec-d)}
/* Qualitätsanspruch (Startseite): Kacheln auf dem dunklen Band wie im hellen Modus */
html.hl-dm .hl .hl-quality .hl-usp > .fusion-column-wrapper{background:#ffffff14!important;border-color:#fff3!important}
html.hl-dm .hl .hl-quality .hl-usp:hover > .fusion-column-wrapper{background:#ffffff24!important;border-color:#ffffff59!important}
