/* SafetyBoard – statischer Nachbau der WordPress/Enfold-Seite */

@font-face { font-family: "Klavika"; src: url("../fonts/klavika-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Klavika"; src: url("../fonts/klavika-medium.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Klavika"; src: url("../fonts/klavika-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blue-bright: #009de0;   /* Topbar */
  --blue: #009bee;          /* Überschriften, Links */
  --blue-dark: #004488;     /* Kapitelbalken */
  --yellow: #fbba00;        /* Mehrwert-Boxen */
  --text: #5b5b5c;
  --box: rgba(255, 255, 255, .3);
  --grey-footer: #808689;
  --grey-cols: #adadad;
  --grey-socket: #5b5b5c;
  --label: #bbeeff;
  --container: 1270px;
  --gutter: 50px;
  --header-h: 100px;
  --topbar-h: 30px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 80px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Klavika", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #e1e6eb;
}
/* fixierter Hintergrund (auch auf iOS, das background-attachment: fixed ignoriert) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #e1e6eb url("../img/background.svg") no-repeat left center / cover;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 { font-weight: 400; margin: 0 0 .3em; line-height: 1.3; }
h3 { font-size: 27px; color: var(--blue); text-transform: uppercase; }
h4 { font-size: 21px; font-weight: 500; color: var(--blue); line-height: 1.2; margin-top: .6em; }
h4:first-child, h3:first-child { margin-top: 0; }
p { margin: 0 0 .85em; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--blue-bright); height: var(--topbar-h); }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.topbar a { color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }

.header-main {
  background: #e1e3e6 url("../img/background.svg") no-repeat left center / cover fixed;
  transition: box-shadow .2s;
}
.is-scrolled .header-main { box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .2s; }
.is-scrolled .header-inner { height: 70px; }
.logo img { width: 200px; height: auto; transition: width .2s; }
.is-scrolled .logo img { width: 160px; }

.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; }
.menu > li { position: relative; }
.menu > li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 22px; margin-top: -11px; border-left: 1px solid #a0a3a6; }
.menu > li > a, .sub-toggle {
  display: block; padding: 0 13px;
  font: 500 20px/1 "Klavika", Arial, sans-serif; color: var(--text);
  background: none; border: 0; cursor: pointer;
  line-height: var(--header-h);
}
.is-scrolled .menu > li > a, .is-scrolled .sub-toggle { line-height: 70px; }
.menu > li:last-child > a { padding-right: 0; }
.menu > li > a:hover, .sub-toggle:hover { color: var(--blue); text-decoration: none; }

.sub-menu {
  position: absolute; right: 0; top: 100%; min-width: 300px;
  background: #fff; border-top: 2px solid var(--blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 18px; font-size: 15px; color: var(--text); border-bottom: 1px solid #eceef0; }
.sub-menu li:last-child a { border-bottom: 0; }
.sub-menu a:hover { background: #f4f6f8; color: var(--blue); text-decoration: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ Sektionen */
.section { padding-top: 120px; }
.home main > .section:first-of-type { padding-top: 120px; }

.stripe {
  margin: 0;
  padding: 20px 60px 20px 30px;
  font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
  background: url("../img/background_headlines.svg") no-repeat right center / cover;
}

.row { display: flex; margin-top: 50px; }
.row.box, .col.box { background: var(--box); }
.row--gap { gap: 55px; align-items: stretch; }
.col { min-width: 0; }
.col-2-5 { flex: 0 0 40%; }
.col-1-5, .col-arrow { flex: 0 0 20%; }
.col-1-3 { flex: 1 1 0; }
.col-2-3 { flex: 0 0 66.66%; padding-right: 40px; }
.col-full { flex: 1 1 auto; }
.col-figure { display: flex; justify-content: center; align-items: flex-start; }
.col-figure img { width: 300px; }

.col-arrow { display: flex; align-items: center; justify-content: center; }
.col-arrow .arrow-h { width: 80px; }
.col-arrow .arrow-v { display: none; }

ul.sq { margin: 0 0 1em; padding: 0; }
ul.sq li { list-style: square; margin: 0 0 15px 16px; padding: 3px 0; }
ol.num { margin: 0 0 1em; padding-left: 22px; }
ol.num li { margin-bottom: 4px; }

.benefit-icon { width: 48px; margin-bottom: 14px; }

.highlight { background: var(--yellow); color: #fff; padding: 20px; }
.highlight h4 { color: #fff; }
.highlight p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Hero-Slider */
.hero { padding-top: 0; }
.hero-stage { max-width: var(--container); margin: 0 auto; }
.hero .slides { position: relative; aspect-ratio: 1270 / 570; container-type: inline-size; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; }
.hero-photo { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; }
.hero-stripe { position: absolute; left: 72.36%; top: 0; height: 100%; width: auto; max-width: none; }
.hero-claim {
  position: absolute; left: 0; top: 63.16%;
  width: 93.7%;
  margin: 0;
  padding: 1.575cqw 7.87cqw;
  font-size: 2.835cqw; line-height: 1.333; font-weight: 400;
  color: #fff; text-transform: none; letter-spacing: 0;
  background: url("../img/bg_sliderclaims.svg") no-repeat 0 100% / cover;
}

/* ------------------------------------------------------------------ Slider allgemein */
.slider { position: relative; }
.slider .slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slider .slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.slider-dots { display: flex; justify-content: center; gap: 4px; position: absolute; left: 0; right: 0; bottom: 10px; z-index: 5; }
.slider-dots button {
  width: 22px; height: 22px; padding: 7px; border: 0; background: none; cursor: pointer;
}
.slider-dots button::before {
  content: ""; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.slider-dots button[aria-current="true"]::before { background: #555; }
.hero .slider-dots { bottom: 7%; width: 86%; }

/* ------------------------------------------------------------------ Geräte-Slider */
.section--devices .devices { max-width: 1000px; margin: 40px auto 0; padding: 0 var(--gutter); }
.devices .slides { position: relative; aspect-ratio: 1 / 1; }
.devices .slide { position: absolute; inset: 0; }
.device-stage { position: absolute; inset: 0; container-type: inline-size; }
.device-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(112, 118, 121, .2); }
.device-stage img { position: absolute; max-width: none; object-fit: fill; }
.device-label {
  position: absolute; margin: 0; white-space: nowrap;
  padding: 1cqw; font-size: clamp(11px, 1.6cqw, 16px); line-height: 1.15;
  background: var(--label); color: var(--text);
}
.device-label--r::after, .device-label--l::before {
  content: ""; display: inline-block; vertical-align: middle;
  border: .38em solid transparent;
}
.device-label--r::after { border-left-color: currentColor; margin-left: .45em; border-right-width: 0; }
.device-label--l::before { border-right-color: currentColor; margin-right: .45em; border-left-width: 0; }
.device-captions { display: none; }
.devices .slider-dots { bottom: -40px; }
.devices .slider-dots button::before { background: #a3a7aa; box-shadow: none; }
.devices .slider-dots button[aria-current="true"]::before { background: #555; }

/* ------------------------------------------------------------------ Hotspots */
.hotspot-figure { position: relative; margin-bottom: 20px; }
.hotspot-figure img { width: 100%; }
.hotspot { position: absolute; z-index: 2; }
.hotspot-btn {
  position: relative; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0;
  background: #0099ee; color: #fff; font: 500 12px/24px "Klavika", Arial, sans-serif; cursor: pointer;
}
.hotspot-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue-dark);
  z-index: -1; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot-btn::after { animation: none; opacity: 0; } }
.hotspot-tip {
  position: absolute; bottom: calc(100% + 14px); left: 12px; transform: translateX(-50%);
  width: 260px; padding: 12px 15px; background: #fff; color: var(--text);
  font-size: 14px; line-height: 1.5; box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.hotspot-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.hotspot--left .hotspot-tip { left: -10px; transform: none; }
.hotspot--left .hotspot-tip::after { left: 22px; }
.hotspot--right .hotspot-tip { left: auto; right: -10px; transform: none; }
.hotspot--right .hotspot-tip::after { left: auto; right: 14px; }
.hotspot:hover .hotspot-tip, .hotspot-btn:focus-visible + .hotspot-tip, .hotspot-btn[aria-expanded="true"] + .hotspot-tip { opacity: 1; visibility: visible; }
.step-list { display: none; }

/* ------------------------------------------------------------------ Kontakt + Footer */
.section--kontakt { background: var(--grey-footer); margin-top: 130px; padding-top: 10px; padding-bottom: 40px; }
.section--kontakt .row { margin-top: 40px; }
.contact { text-align: center; padding: 10px 20px; }
.contact h4 { font-weight: 400; line-height: 1.2; margin-bottom: .7em; }
.contact p { margin-bottom: .6em; }

.site-footer { color: #fff; }
.footer-cols { background: var(--grey-cols); padding: 34px 0 20px; border-top: 45px solid var(--grey-footer); }
.home .footer-cols { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 75px; }
.footer-col p, .footer-col li { font-size: 16px; }
.footer-col p { margin-bottom: .9em; }
.footer-col a { color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .9em; line-height: 1.65; }
.footer-col hr { border: 0; border-top: 1px solid rgba(91, 91, 92, .55); margin: 40px 0 40px; max-width: 260px; }
.footer-cert img { width: 260px; }
.file-hint { opacity: .8; font-size: .85em; }
.socket { background: var(--grey-socket); padding: 30px 0; text-align: center; font-size: 16px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 3px;
  background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top::before { content: ""; position: absolute; left: 50%; top: 55%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg); }
.to-top:hover { background: rgba(0, 0, 0, .55); }
.is-scrolled-far .to-top { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ Rechtstexte */
.legal { padding-top: 30px; padding-bottom: 60px; }
.legal h1 { font-size: 34px; text-transform: uppercase; margin: 0 0 .6em; font-weight: 500; }
.legal h2 { font-size: 30px; text-transform: uppercase; margin: 1.4em 0 .6em; font-weight: 500; }
.legal h3 { font-size: 20px; text-transform: none; margin: 1.6em 0 .4em; }
.legal h4 { font-size: 18px; margin: 1.4em 0 .3em; }
.legal p strong:only-child { color: var(--blue); }
.legal ul { padding-left: 20px; }
.legal ul li { list-style: square; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; }
.legal table { border-collapse: collapse; min-width: 640px; font-size: 14px; background: var(--box); }
.legal td, .legal th { border: 1px solid #c9ced3; padding: 6px 8px; vertical-align: top; }

/* ================================================================== Responsive */
@media (max-width: 989px) {
  :root { --gutter: 30px; }
  .row--gap { gap: 25px; }
  .stripe { font-size: 22px; }
  h3 { font-size: 22px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 80px; }
  html { scroll-padding-top: 100px; }
  .section, .home main > .section:first-of-type { padding-top: 60px; }

  /* Navigation */
  .nav-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    position: absolute; left: 6px; width: 32px; height: 2px; background: var(--text); content: ""; transition: transform .2s, top .2s;
  }
  .nav-toggle-bars { top: 21px; }
  .nav-toggle-bars::before { left: 0; top: -9px; }
  .nav-toggle-bars::after { left: 0; top: 9px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
    max-height: calc(100vh - 110px); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .header-main { position: relative; }
  .menu { display: block; padding: 6px 0; }
  .menu > li + li::before { display: none; }
  .menu > li > a, .sub-toggle, .is-scrolled .menu > li > a, .is-scrolled .sub-toggle {
    line-height: 1.3; padding: 13px var(--gutter); width: 100%; text-align: left; font-size: 18px; border-bottom: 1px solid #eceef0;
  }
  .sub-toggle::after { content: ""; display: inline-block; margin-left: 10px; border: 5px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
  .sub-menu, .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; background: #f6f7f9;
  }
  .sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
  .sub-menu a { padding-left: calc(var(--gutter) + 16px); }
  .logo img { width: 170px; }
  .is-scrolled .header-inner { height: 64px; }
  .is-scrolled .logo img { width: 140px; }

  /* Hero: Text unter das Bild */
  .hero .slides { aspect-ratio: auto; height: auto; overflow: visible; display: grid; }
  .hero .slide { position: relative; inset: auto; grid-area: 1 / 1; }
  .hero .slide > .hero-stripe { display: none; }
  .hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 1323 / 688; object-fit: cover; object-position: left; }
  .hero-claim {
    position: relative; top: auto; width: 100%;
    font-size: 17px; line-height: 1.35; padding: 14px 20px 34px;
    background: #7f868a;
  }
  .hero-claim br { display: none; }
  .hero .slider-dots { width: 100%; bottom: 6px; }

  /* Spalten untereinander */
  .row, .row--gap { flex-direction: column; gap: 20px; margin-top: 25px; }
  .row.box { padding: 0; }
  .col-2-5, .col-1-5, .col-1-3, .col-2-3, .col-arrow, .col-full { flex: 1 1 auto; padding-right: 0; }
  .row.box > .col { padding: 15px; }
  .row.box > .col-arrow { padding: 0; }
  .col-arrow .arrow-h { display: none; }
  .col-arrow .arrow-v { display: block; width: 80px; }
  .col.box { padding: 15px; }
  .stripe { font-size: 18px; letter-spacing: .5px; padding: 18px 20px; background: var(--blue-dark); }
  h3 { font-size: 19px; }
  h4 { font-size: 18px; }
  body { font-size: 15px; }
  .col-figure img { width: 220px; }

  /* Hotspots → nummerierte Liste */
  .hotspot-figure { display: none; }
  .step-list { display: block; list-style: none; margin: 0 0 1.4em; padding: 0; }
  .step-list li { display: flex; gap: 12px; margin-bottom: 12px; }
  .step-no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #0099ee; color: #fff; text-align: center; font-size: 13px; line-height: 26px; }
  .step-list p { margin: 0; }

  /* Geräte-Slider: Beschriftung unter dem Bild */
  .section--devices .devices { padding: 0 var(--gutter); margin-top: 25px; }
  .device-label { display: none; }
  .devices .slides { aspect-ratio: auto; display: grid; }
  .devices .slide { position: relative; inset: auto; grid-area: 1 / 1; }
  .device-stage { position: relative; aspect-ratio: 1 / 1; }
  .device-captions { display: block; list-style: none; margin: 14px 0 0; padding: 0 0 36px; text-align: center; font-size: 15px; }
  .device-captions li { display: inline-block; background: var(--label); padding: 3px 9px; margin: 3px; }
  .devices .slider-dots { bottom: 0; }

  .section--kontakt { margin-top: 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col hr { margin: 20px 0; }
  .legal h1 { font-size: 24px; }
  .legal h2 { font-size: 21px; }
}

@media print {
  .site-header, .to-top, .slider-dots, .hotspot { display: none !important; }
  body::before { display: none; }
}
.contact a[href^="tel"] { color: inherit; }
