/* ==========================================================================
   e:pro – Website styles
   Built on the "Foliendesign Plus" design system (see tokens.css).
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchor targets and keyboard-focused elements clear of the fixed header */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Smooth in-page scrolling only after the first interaction (main.js adds the class): from the start it
   would also animate the browser's initial jump to a deep link such as /#kontakt through the whole page.
   Not while the visitor has paused the animations: links then jump. */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll:not(.motion-paused) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-core);
  font-size: 16px;
  line-height: 1.6;
  color: var(--prp-grey);
  background: var(--prp-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Clip stray horizontal overflow (e.g. not-yet-revealed slide-ins) at the wrappers too:
   body's own overflow propagates to the viewport, so on mobile it would otherwise
   widen the layout viewport. `clip` keeps position:sticky working. */
main, .footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--prp-red); text-decoration: none; }
a:hover { color: var(--prp-red-dark); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--prp-red); color: #fff; }
:focus-visible { outline: 2px solid var(--prp-red); outline-offset: 3px; border-radius: 4px; }
/* The red ring is below 3:1 on indigo: white ring on the dark surfaces, red again on the light islands in them. */
.hero :focus-visible, .page-hero :focus-visible, .section--dark :focus-visible, .contact :focus-visible, .footer :focus-visible,
.drawer :focus-visible, .js .site-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }
.js .site-header .dd :focus-visible, .section--dark .demo :focus-visible { outline-color: var(--prp-red); }
/* Sections land flush below the header (their own top padding shows); other anchors 16px below it. */
section[id] { scroll-margin-top: -16px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  background: var(--prp-indigo); color: #fff; font-weight: 600;
  padding: 12px 18px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; } /* keeps short phrases such as "End-to-End" or "weitere Systeme" on one line */

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

/* e:pro wordmark colon */
.c { color: var(--prp-red); }
.ep { text-transform: none; letter-spacing: .08em; color: var(--prp-indigo); }
.ep b { color: var(--prp-red); font-weight: inherit; }
.eyebrow--on-dark .ep { color: #fff; }
/* wordmarks on indigo: the brighter red keeps the colon readable (#CC3300 nearly vanishes there) */
.layer__title .c, .rules__claim .c, .kicker .ep b, .eyebrow--on-dark .ep b, .page-hero .c { color: var(--prp-red-glow); }
.wordmark { font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.01em; line-height: 1; color: #fff; }

.mini-hex {
  display: inline-block; flex: none;
  width: 12px; height: 10.4px;
  background: var(--c, var(--prp-red));
  clip-path: var(--hex);
}

/* ---------- Sections & type ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--tint { background: var(--prp-page); }
.section--dark {
  background: linear-gradient(180deg, var(--prp-indigo) 0%, var(--prp-indigo-deep) 100%);
  color: var(--on-dark-body);
  overflow: hidden;
  overflow: clip; /* clips the deco hexagons without becoming a scroll container, so .arch__security can stick */
}

.eyebrow {
  display: block;
  margin-bottom: 22px;
  padding-left: 23px; text-indent: -23px; /* hanging indent: wrapped lines align with the text, not the hexagon (12px hex + 11px gap) */
  font-family: var(--font-display);
  font-size: 12px; line-height: 1.5;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--prp-red);
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: 0;
  width: 12px; height: 10.4px; margin-right: 11px;
  background: var(--prp-red); clip-path: var(--hex);
}
.eyebrow--on-dark { color: var(--prp-red-glow-text); }
/* a drawn dot: the · of the display font sits off-centre between the tracked capitals (the text before it
   carries one letter-spacing more than the text after it) */
.eyebrow__sep { display: inline-block; width: 4px; height: 4px; margin: 0 .25em 0 calc(.25em - var(--tracking-eyebrow)); border-radius: 50%; background: currentColor; vertical-align: .3em; }
.section-head--center .eyebrow, .contact .eyebrow { padding-left: 0; text-indent: 0; }

.h2 {
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--prp-indigo);
  text-wrap: balance;
}
.h2--sm { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.h2--on-dark { color: #fff; }
.h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--prp-indigo); margin-bottom: 10px; }
.lead {
  margin-top: 24px; max-width: 860px;
  font-size: clamp(16.5px, 1.35vw, 20px); line-height: 1.62;
  color: var(--prp-grey);
}
.lead--sm { font-size: clamp(16px, 1.25vw, 18.5px); }
.lead--on-dark { color: var(--on-dark-body); }
.kicker .ep { color: #fff; }
.kicker {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--prp-red-glow-text); margin-bottom: 14px;
}

.section-head { max-width: 920px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.sub-head { max-width: 920px; margin: clamp(64px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.sub-head .lead { margin-top: 18px; }
.sub-head--split {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 64px); align-items: start; max-width: none;
}
.sub-head--split .lead { margin-top: 4px; }

.band { background: var(--prp-page); border-radius: var(--radius-panel); padding: clamp(28px, 5vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap;
  padding: 15px 26px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
/* Arrow icons: small inline SVGs in the text colour (the arrow characters are not in the Poppins subsets,
   so they would fall back to a system font). Sized like the characters they replace. */
.ico {
  display: inline-block; flex: none; width: .95em; height: .95em; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round;
}
.ico--ext { width: .8em; }
.btn .arr { display: inline-block; position: relative; top: .015em; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--prp-red); color: #fff; box-shadow: 0 12px 30px rgba(204, 51, 0, .36); }
.btn--primary:hover { background: var(--prp-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(204, 51, 0, .44); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; font-weight: 500; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--sm { font-size: 15px; padding: 11px 20px; border-radius: 9px; box-shadow: 0 8px 22px rgba(204, 51, 0, .30); }
.btn--lg { font-size: 17px; padding: 17px 32px; border-radius: 11px; }

.link-arrow {
  display: inline-block;
  font-weight: 600; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.01em;
  color: var(--prp-red);
}
.link-arrow .arr { display: inline-block; margin-left: 8px; vertical-align: -.14em; transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(6px); }

/* ---------- Cards & lists ---------- */
.card {
  --hover-tr: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  background: #fff;
  border: 1px solid var(--prp-border);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--hover-tr);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--prp-grey); }
/* the hex bullet sits on the first line when the heading wraps (1.3em = the .h3 line height; 1lh where supported) */
.card--mark .h3 { display: flex; align-items: flex-start; gap: 11px; }
.card--mark .h3::before {
  content: ""; flex: none; width: 11px; height: 9.5px; background: var(--prp-red); clip-path: var(--hex);
  margin-top: calc((1.3em - 9.5px) / 2); margin-top: calc((1lh - 9.5px) / 2);
}
.card--role { border-top: 3px solid var(--c); }
.role__title { font-size: 19px; font-weight: 600; color: var(--prp-indigo); margin-bottom: 16px; }
.role__title::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--c); margin-bottom: 16px; }

.bullets li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--prp-ink); }
.bullets li + li { margin-top: 9px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 7.8px; background: var(--prp-red); clip-path: var(--hex);
}
.bullets--sm li { font-size: 15px; }
.bullets--role li::before { background: var(--c); }
.bullets--on-dark li, .bullets--gain li { color: #fff; }
.bullets--on-dark li::before, .bullets--gain li::before { background: var(--prp-red-glow); }
.bullets--cols { columns: 2 250px; column-gap: 36px; }
.bullets--cols li { break-inside: avoid; margin: 0 0 10px; }
.bullets--cols li + li { margin-top: 0; }

/* ---------- Actor hexagon ---------- */
.actor-hex {
  --w: 150px;
  position: relative; flex: none;
  width: var(--w); aspect-ratio: 1.155;
  clip-path: var(--hex);
  background: var(--c);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  color: #fff; font-weight: 600; text-align: center;
  font-size: max(11px, calc(var(--w) * .088)); line-height: 1.1;
}
.actor-hex img { width: calc(var(--w) * .36); max-width: none; height: auto; }
.actor-hex--xs { --w: 34px; }
.actor-hex--xs img { width: calc(var(--w) * .6); }
.actor-hex--sm { --w: 118px; }
.actor-hex--lg { --w: clamp(150px, 15vw, 210px); }
.actor-hex--xl { --w: clamp(180px, 18vw, 250px); }
/* light fills (Netzkunde, Installateur, Netzbetreiber): dark label and icon; Dienstleister keeps white */
.actor-hex--ink { color: var(--actor-ink); }
.actor-hex--ink img { filter: var(--actor-ink-filter); }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 260; pointer-events: none; }
.progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--prp-red), var(--prp-red-glow));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 200;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { position: relative; display: block; width: 150px; height: 54px; flex: none; margin-right: auto; }
.brand__logo { position: absolute; left: 0; top: 50%; width: 150px; transform: translateY(-50%); transition: opacity .25s ease; }
.brand__logo--dark { opacity: 0; }
/* .no-js: without the scroll script the header would stay transparent over the white sections */
.site-header.is-scrolled, .no-js .site-header {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 rgba(51, 51, 102, .07), 0 10px 30px rgba(51, 51, 102, .07);
}
.is-scrolled .brand__logo--light, .no-js .brand__logo--light { opacity: 0; }
.is-scrolled .brand__logo--dark, .no-js .brand__logo--dark { opacity: 1; }

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 9px;
  color: #fff; font-size: 15px; font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link .c { color: var(--prp-red-glow); }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.is-scrolled .nav__link, .no-js .nav__link { color: var(--prp-indigo); }
.is-scrolled .nav__link .c, .no-js .nav__link .c { color: var(--prp-red); }
.is-scrolled .nav__link:hover, .no-js .nav__link:hover { color: var(--prp-indigo); background: var(--prp-page); }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--prp-red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link.is-active::after { transform: scaleX(1); }
.nav__caret {
  width: 6px; height: 6px; margin-left: 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  opacity: .65; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.nav__item--dd:hover .nav__caret, .nav__item--dd:focus-within .nav__caret, .nav__item--dd.is-open .nav__caret { transform: translateY(1px) rotate(225deg); }

.dd {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 120;
  width: 320px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--prp-border); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(51, 51, 102, .07), 0 18px 44px rgba(51, 51, 102, .16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd--right { left: auto; right: 0; }
/* .is-open: opened by a tap on a touch screen (main.js) */
.nav__item--dd:hover .dd, .nav__item--dd:focus-within .dd, .nav__item--dd.is-open .dd { opacity: 1; visibility: visible; transform: none; }
/* closed with Esc or after a click or tap on an item (main.js); reopens on the next hover or focus */
.nav__item--dd.is-dismissed .dd { opacity: 0; visibility: hidden; transform: translateY(8px); }
.nav__item--dd.is-dismissed .nav__caret { transform: translateY(-2px) rotate(45deg); }
.dd a { display: block; padding: 11px 13px; border-radius: 9px; transition: background-color .16s ease; }
.dd a:hover { background: var(--prp-page); }
.dd strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--prp-indigo); }
.dd a > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--prp-muted); }
/* Lösungen: two columns (e:pro / Für Ihre Rolle), centred under the trigger */
.dd--cols { left: 50%; translate: -50% 0; width: 580px; flex-direction: row; gap: 8px; }
.dd__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; }
.dd__col + .dd__col { padding-left: 8px; border-left: 1px solid var(--prp-border); }
.dd__head {
  padding: 8px 13px 6px;
  font-family: var(--font-display); font-size: 11px; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase;
  color: var(--prp-red);
}
/* the item of the page being shown */
.dd a[aria-current="page"] { background: var(--prp-page); }
.dd a[aria-current="page"] strong { color: var(--prp-red); }

.site-header__cta { flex: none; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: background-color .2s; }
.is-scrolled .burger span { background: var(--prp-indigo); }

.drawer {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  padding: 26px clamp(24px, 7vw, 56px); overflow-y: auto;
  background: var(--prp-indigo-deep);
  transform: translateX(100%); visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.drawer__head img { width: 150px; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 6px; cursor: pointer; }
.drawer nav a {
  display: block; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font-size: 22px; font-weight: 600;
}
/* --n = position in the menu (set by main.js), so every link staggers in, however many there are */
.drawer.is-open nav > * { animation: drawer-in .45s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); }
/* "Lösungen": a group label above its three indented pages */
.drawer__label {
  padding: 12px 0 4px;
  font-family: var(--font-display); font-size: 12px; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prp-red-glow-text);
}
.drawer nav a.drawer__sub { padding-left: 20px; font-size: 18px; font-weight: 500; }
/* the current page: colour and an underline (not the colour alone; the footer does the same) */
.drawer nav a[aria-current="page"] {
  color: var(--prp-red-glow-text);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.drawer__cta { margin-top: 28px; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(24px); } }
/* Shorter screens: tighter, so all links and the button fit without scrolling inside the menu
   (most phones, and phones whose browser bars take part of the height). Each step starts where the
   one before it stops fitting: the full menu needs about 850px of height (879px at 320px wide, where
   "Für Netzkunden & Installateure" wraps), this one about 646px (670px), the next about 555px. */
@media (max-height: 879.98px) {
  .drawer { padding-top: 18px; padding-bottom: 18px; }
  .drawer__head { margin-bottom: 14px; }
  .drawer nav a { padding: 9px 0; font-size: 20px; line-height: 1.4; }
  .drawer nav a.drawer__sub { font-size: 17px; }
  .drawer__label { padding-top: 8px; }
  .drawer__cta { margin-top: 20px; }
}
/* Small phones (e.g. 375 × 667 with browser bars, 320 × 568): tighter still */
@media (max-height: 669.98px) {
  .drawer nav a { padding: 6px 0; font-size: 18px; }
  .drawer nav a.drawer__sub { font-size: 16px; }
  .drawer__label { padding: 7px 0 2px; }
  .drawer__cta { margin-top: 14px; padding-top: 13px; padding-bottom: 13px; }
}
/* Phones in landscape, 200% zoom: the links in three columns, without the group label */
@media (max-height: 559.98px) {
  .drawer { padding-top: 12px; padding-bottom: 12px; }
  .drawer__head { margin-bottom: 6px; }
  .drawer__head img { width: 124px; }
  .drawer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .drawer nav a, .drawer nav a.drawer__sub { padding: 5px 0; font-size: 16px; line-height: 1.4; }
  .drawer__label { display: none; }
  .drawer__cta { margin-top: 14px; padding-top: 13px; padding-bottom: 13px; }
}
/* ... but short and narrow (small phones in portrait with browser bars, 200% zoom on a narrow window):
   two columns, so no link runs into the next column */
@media (max-height: 559.98px) and (max-width: 559.98px) {
  .drawer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .drawer nav a, .drawer nav a.drawer__sub { padding: 7px 0; font-size: 17px; }
}
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 150px 0 110px;
  background: var(--prp-indigo); color: #fff;
}
.hero__bg {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35, 35, 72, .5) 0%, rgba(35, 35, 72, .22) 42%, rgba(31, 31, 64, .9) 100%);
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.deco-hex { position: absolute; clip-path: var(--hex); animation: floaty 9s ease-in-out infinite; }
.deco-hex--a { width: 200px; height: 173px; right: 6%; top: 15%; background: rgba(255, 255, 255, .045); }
.deco-hex--b { width: 76px; height: 66px; right: 9%; top: 44%; background: var(--prp-red); animation-duration: 7s; animation-delay: -2s; }
.deco-hex--c { width: 46px; height: 40px; right: 21%; top: 30%; background: rgba(255, 255, 255, .08); animation-duration: 11s; animation-delay: -5s; }
.hero__inner { position: relative; }
.hero__copy { max-width: 980px; }
.hero__title {
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 78px);
  line-height: 1.05; letter-spacing: -.025em;
  color: #fff; text-wrap: balance;
}
.hero__title-sub { display: block; margin-top: .1em; color: var(--prp-lavender); font-weight: 400; }
.hero__lead {
  margin-top: 28px; max-width: 740px;
  font-size: clamp(16.5px, 1.45vw, 21px); line-height: 1.62;
  color: var(--on-dark-body);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* the four figures below the hero text */
.stats { --w: clamp(128px, 11vw, 158px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin-top: clamp(44px, 5.5vw, 76px); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.stat__hex {
  display: flex; align-items: center; justify-content: center;
  width: var(--w); height: calc(var(--w) * .866);
  clip-path: var(--hex); background: var(--prp-indigo-hex); color: #fff;
  transition: transform .3s var(--ease);
}
.stat:nth-child(2) .stat__hex { background: var(--prp-red) url("../img/icons/hex-rot.svg") center / 100% 100% no-repeat; }
.stat:hover .stat__hex { transform: scale(1.06); }
.stat__hex--badge { background: #fff; }
.stat__hex--badge img { width: 62%; }
.stat__value { font-size: calc(var(--w) * .175); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__value--word { font-size: calc(var(--w) * .135); }
.stat__label { max-width: 200px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #d6d6e6; }
.rise { animation: rise .85s var(--ease) both; animation-delay: var(--d, 0s); }


.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrollcue 1.8s var(--ease) infinite;
}

/* "Animationen pausieren" (hero bottom right and footer bar, kept in sync by main.js).
   Needs JavaScript; not shown with reduced motion, where nothing loops anyway. */
.hero__motion {
  position: absolute; left: 0; right: 0; bottom: 24px;
  display: flex; justify-content: flex-end;
  pointer-events: none;
}
.hero__motion .motion-toggle { pointer-events: auto; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 32px; padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--on-dark-body); white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.motion-toggle:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }
.motion-toggle__icon { position: relative; flex: none; width: 10px; height: 10px; }
.motion-toggle__icon::before, .motion-toggle__icon::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 10px; border-radius: 1px; background: currentColor;
}
.motion-toggle__icon::before { left: 1px; }
.motion-toggle__icon::after { right: 1px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before { /* play triangle */
  left: 1px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }

/* ---------- 2 · Herausforderung ---------- */
.drivers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 22px 26px;
}
.driver { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: center; }
.driver__icon { width: 92px; height: 92px; object-fit: contain; }
.driver--tl { grid-area: 1 / 1; }
.driver--tr { grid-area: 1 / 3; }
.driver--bl { grid-area: 2 / 1; }
.driver--br { grid-area: 2 / 3; }
.drivers__hub { grid-area: 1 / 2 / 3 / 3; position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.drivers__arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drivers__arrows > path { /* connectors only: the marker's own path keeps its fill */
  fill: none; stroke: var(--prp-indigo); stroke-width: 4; stroke-linecap: round;
  marker-end: url(#arrowhead);
  stroke-dasharray: 130; stroke-dashoffset: 130;
  transition: stroke-dashoffset 1.2s var(--ease) .5s;
}
.drivers__hub.is-in .drivers__arrows > path, .no-js .drivers__arrows > path { stroke-dashoffset: 0; }
.netz {
  position: relative; width: min(200px, 62%); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 35% 30%, #3d3d82, #24235f 70%);
  color: #fff; box-shadow: 0 22px 50px rgba(36, 35, 95, .35);
}
.netz img { position: relative; width: 40%; max-width: none; }
.netz strong { position: relative; font-size: 22px; font-weight: 600; }
.netz__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(51, 51, 102, .4); animation: ripple 3.2s var(--ease-out) infinite; }
.netz__ring--2 { animation-delay: 1.6s; }

.more-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 34px auto 8px; animation: bob 2.4s ease-in-out infinite; }
.more-arrow span { width: 72px; height: 16px; background: var(--prp-indigo); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 45%, 50% 100%, 0 45%); }
.more-arrow span + span { opacity: .55; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
.more__item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 16px 22px; border-radius: var(--radius-card);
  background: var(--prp-pill); text-align: center;
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; line-height: 1.2; color: var(--prp-indigo);
  --hover-tr: transform .28s var(--ease), background-color .28s;
  transition: var(--hover-tr);
}
.more__item:hover { transform: translateY(-4px); background: #e9e9f1; }
.more__item img { height: 62px; width: auto; }

.success { margin-top: clamp(64px, 8vw, 104px); text-align: center; }
.success__title { max-width: 900px; margin: 0 auto; }
.success__label { margin-top: 36px; font-size: 20px; font-weight: 600; color: var(--prp-indigo); }
.np { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.np__item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-card);
  font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--prp-indigo); text-align: left;
}
.np__item img { flex: none; width: 34px; height: 34px; object-fit: contain; }
.track { position: relative; margin-top: 26px; padding: 18px 0; }
.track__bar {
  position: absolute; left: 0; right: 0; top: 50%; height: 50px; translate: 0 -50%;
  background: var(--prp-indigo);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%, 26px 50%);
  overflow: hidden;
}
.track__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 0 35%, rgba(255, 255, 255, .22) 50%, transparent 65% 100%);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: sweep 3.6s var(--ease) infinite;
}
.track__actors { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; }
.js .track .actor-hex { opacity: 0; scale: .6; transition: opacity .4s ease var(--d), scale .55s var(--ease-out) var(--d); }
.js .track.is-in .actor-hex { opacity: 1; scale: 1; }
.success__cta { margin-top: 30px; text-align: right; }

/* ---------- 3 · Lösung & Plattform ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.split__body p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; }
.split__body p + p { margin-top: 16px; }
.split__body strong { font-weight: 600; color: var(--prp-indigo); }

.platform { margin-top: clamp(36px, 4vw, 56px); }
.platform__actors {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center;
  padding-bottom: 46px; position: relative;
}
.platform__actors::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 38px;
  background:
    repeating-linear-gradient(180deg, var(--actor-kunde) 0 6px, transparent 6px 12px) 12.5% 0 / 3px 12px repeat-y,
    repeating-linear-gradient(180deg, var(--actor-installateur) 0 6px, transparent 6px 12px) 37.5% 0 / 3px 12px repeat-y,
    repeating-linear-gradient(180deg, var(--actor-betreiber) 0 6px, transparent 6px 12px) 62.5% 0 / 3px 12px repeat-y,
    repeating-linear-gradient(180deg, var(--actor-dienstleister) 0 6px, transparent 6px 12px) 87.5% 0 / 3px 12px repeat-y;
  animation: linkflow .9s linear infinite;
}
.platform__actors .actor-hex { --w: clamp(124px, 13vw, 176px); }
.js .platform .actor-hex { opacity: 0; translate: 0 26px; transition: opacity .5s ease var(--d), translate .7s var(--ease-out) var(--d); }
.js .platform.is-in .actor-hex { opacity: 1; translate: none; }
.platform__core {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px) clamp(14px, 2vw, 28px) clamp(20px, 2.5vw, 30px);
  border-radius: var(--radius-panel);
  background: var(--prp-indigo); color: #fff;
  box-shadow: var(--shadow-panel);
}
.platform__brand {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  font-size: clamp(14.5px, 1.2vw, 17px); color: var(--on-dark-body);
}
.platform__sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .3); }
.platform__logic { margin: 22px 0 14px; text-align: center; font-weight: 600; color: #fff; }
.chevrons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.chevrons li {
  min-height: 60px; padding: 6px 20px 6px 26px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.2; hyphens: auto;
  color: var(--prp-indigo); background: #e9f3fb;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  animation: chevflow 8s linear infinite; animation-delay: calc(var(--i) * 1s);
}
.platform__link { width: 64px; height: 20px; margin: 12px auto; background: var(--prp-indigo); clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 45%, 50% 100%, 0 45%); animation: bob 2.4s ease-in-out infinite; }
.platform__base {
  padding: 16px 20px; border-radius: 14px;
  background: var(--prp-indigo-mid); color: #fff; text-align: center;
  font-size: clamp(15px, 1.3vw, 17px);
  box-shadow: 0 10px 30px rgba(51, 51, 102, .15);
  container-type: inline-size;
}
.platform__base strong { font-size: 1.22em; font-weight: 700; white-space: nowrap; }
.platform__base .dot { margin: 0 12px; }
/* Too narrow for one line (~265px of text): stack the two names and drop the separator dot.
   Without container-query support the <wbr> before the dot lets "· weitere Systeme" wrap as a unit. */
@container (max-width: 272px) {
  .platform__base strong { display: block; }
  .platform__base .dot { display: none; }
}
.platform--compact .platform__core { padding: 22px; }

/* ---------- 4 · Sparten ---------- */
.sparten { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(10px, 2vw, 26px); margin: clamp(8px, 2vw, 16px) 0 clamp(40px, 5vw, 60px); }
.sparte {
  --sw: clamp(124px, 15vw, 200px);
  width: var(--sw); height: calc(var(--sw) * .866); min-width: 0;
  clip-path: var(--hex); background: var(--prp-pill);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 0 calc(var(--sw) * .14);
  font-size: clamp(14px, 1.3vw, 18px); font-weight: 600; line-height: 1.2; text-align: center; color: var(--prp-indigo);
  --hover-tr: background-color .3s ease, color .3s ease;
  transition: var(--hover-tr);
}
.sparte img { height: calc(var(--sw) * .3); width: auto; max-width: none; transition: filter .3s ease, transform .4s var(--ease-out); }
.sparte:hover { background: var(--prp-indigo); color: #fff; }
.sparte:hover img { filter: brightness(0) invert(1); transform: translateY(-3px) scale(1.06); }

/* ---------- 5 · End-to-End ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 14px; border-radius: 999px;
  border: 1px solid var(--prp-border); background: #fff; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--prp-indigo);
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.filter__btn::before { content: ""; width: 11px; height: 9.5px; clip-path: var(--hex); background: var(--c, var(--prp-red)); }
.filter__btn:hover { border-color: var(--prp-lavender); box-shadow: var(--shadow-card); }
.filter__btn.is-active { background: var(--prp-indigo); border-color: var(--prp-indigo); color: #fff; }

.e2e {
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--prp-border); border-radius: var(--radius-panel);
  background: #fff; box-shadow: var(--shadow-card);
}
.e2e__top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 16px;
  margin-bottom: clamp(22px, 3vw, 40px);
  font-size: clamp(16px, 1.5vw, 22px); color: var(--prp-indigo);
}
.e2e__top .wordmark { color: var(--prp-indigo); }
.e2e__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
[data-actor] { transition: opacity .35s ease, filter .35s ease, transform .35s var(--ease); }
[data-actor].is-dim { opacity: .16; filter: grayscale(1); }
[data-actor].is-focus { transform: scale(1.02); }
/* Each actor hexagon sits above its list, so the lists get the full column width
   (beside the hexagon a desktop column leaves ~115px, too narrow for "Freigabe-/Abnahmeprozesse"). */
.e2e__col--left { display: flex; flex-direction: column; gap: 26px; }
.e2e__group { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.e2e__group .actor-hex { align-self: center; }
.e2e__col--center { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.e2e__col--right { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.e2e__col--right > .actor-hex { justify-self: center; }
.e2e__list {
  flex: 1; min-width: 0; padding: 13px 28px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, #fff), #edf5fc);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; color: var(--prp-indigo);
}
.e2e__list li + li { margin-top: 5px; }
.e2e__col--right .e2e__list { background: linear-gradient(90deg, #edf5fc, color-mix(in srgb, var(--c) 22%, #fff)); }

.honeycomb {
  --w: clamp(100px, 8vw, 116px); --h: calc(var(--w) * .866); --gap: 4px;
  position: relative;
  width: calc(var(--w) * 4 + var(--gap) * 4);
  height: calc(var(--h) * 4 + var(--gap) * 3);
}
.honeycomb li {
  position: absolute;
  left: calc(var(--col) * (var(--w) * .75 + var(--gap)));
  top: calc(var(--row) * (var(--h) + var(--gap)) / 2);
  width: var(--w); height: var(--h);
  clip-path: var(--hex); background: var(--actor-betreiber);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 calc(var(--w) * .13);
  font-size: max(10.5px, calc(var(--w) * .095)); font-weight: 500; line-height: 1.1; text-align: center; color: var(--actor-ink);
  transition: transform .25s var(--ease);
}
.honeycomb li:hover { transform: scale(1.09); z-index: 2; } /* the fill stays, so the label keeps its contrast */
.honeycomb img { width: calc(var(--w) * .34); max-width: none; filter: var(--actor-ink-filter); }
/* the honeycomb itself triggers the pop (data-reveal-trigger), not the much taller board */
.js .honeycomb li { scale: .3; opacity: 0; }
.js .honeycomb.is-in li { animation: pop .55s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms + .25s); }
.e2e .platform__link { margin-top: clamp(22px, 3vw, 36px); }

/* ---------- 6 · Prozesse ---------- */
.rtu {
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr) minmax(0, 1fr);
  grid-template-areas: "a hub c" "b hub d" "e f g";
}
.rtu__a { grid-area: a; } .rtu__b { grid-area: b; } .rtu__c { grid-area: c; } .rtu__d { grid-area: d; }
.rtu__e { grid-area: e; } .rtu__f { grid-area: f; } .rtu__g { grid-area: g; }
.rtu__hub { grid-area: hub; position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.rtu__hex {
  position: relative; z-index: 1;
  width: min(86%, 300px); aspect-ratio: 1.155;
  clip-path: var(--hex); background: var(--prp-indigo); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.rtu__hex strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.1; }
.rtu__hex span:last-child { font-size: 17px; color: var(--on-dark-body); }
.rtu__dot { width: 22px; height: 19px; margin-bottom: 8px; clip-path: var(--hex); background: var(--prp-red); animation: beat 2.4s ease-in-out infinite; }
.rtu__orbit { position: absolute; width: min(104%, 362px); height: auto; overflow: visible; }
.rtu__orbit polygon {
  fill: none; stroke: var(--prp-lavender); stroke-width: .8;
  stroke-dasharray: 4 3; animation: march 6s linear infinite;
}

.lanes-wrap { margin-top: clamp(64px, 8vw, 104px); }
.lanes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.lanes-head .e2e__top { margin: 0; justify-content: flex-start; }
.lanes-hint { font-size: 14px; color: var(--prp-muted); }
.lanes__actors, .lanes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lanes__actor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-bottom: 16px; }
.lanes__actor small { flex-basis: 100%; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--prp-muted); }
.lanes .actor-hex--xs { --w: 46px; }
/* mobile legend for the lane dots (shown below 760px only, where the actor column headers are hidden) */
.lanes__legend { display: none; }
.lanes__list {
  row-gap: 8px; padding: 8px 0;
  background-image:
    linear-gradient(90deg, transparent calc(33.333% - .5px), var(--prp-line) calc(33.333% - .5px), var(--prp-line) calc(33.333% + .5px), transparent calc(33.333% + .5px)),
    linear-gradient(90deg, transparent calc(66.666% - .5px), var(--prp-line) calc(66.666% - .5px), var(--prp-line) calc(66.666% + .5px), transparent calc(66.666% + .5px));
}
.lane {
  --cp: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  grid-column: var(--from) / var(--to);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px 34px;
  background: #e9f3fb; color: var(--prp-indigo);
  font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: center;
  clip-path: var(--cp);
  transition: background-color .2s, color .2s;
}
.lane small { font-size: .88em; font-weight: 500; white-space: nowrap; }
/* hover only where a pointer really hovers: after a tap on a touch screen the fill would stick */
@media (hover: hover) { .lane:hover { background: var(--prp-indigo); color: #fff; } }
.lane__dots { display: none; gap: 4px; flex: none; }
.lane__dots .mini-hex { width: 10px; height: 8.7px; }
/* each lane grows when it scrolls into view (data-reveal-trigger); --k = its position in that batch */
.js .lane:not(.is-in) { clip-path: polygon(0 0, 0 0, 14px 50%, 0 100%, 0 100%, 14px 50%); }
.js .lane.is-in { animation: lane-in .8s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 70ms + .2s); }
.lanes-wrap .platform__link { margin-top: 24px; }

/* ---------- 7–9 · Lösungen (hub layout) ---------- */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px clamp(20px, 3vw, 40px); align-items: center; }
.hub__side { display: flex; flex-direction: column; gap: 22px; }
.hub__card .h3 { font-size: 19px; }
.hub__center { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hub__center > .actor-hex { animation: bob 6s ease-in-out infinite; }
.hub__center--duo { position: relative; justify-self: center; width: clamp(230px, 24vw, 320px); height: clamp(250px, 26vw, 350px); }
.hub__center--duo .actor-hex { position: absolute; --w: clamp(150px, 16vw, 210px); }
.hub__center--duo .actor-hex:first-child { left: 0; top: 0; animation: bob 6s ease-in-out infinite; }
.hub__center--duo .actor-hex:last-child { right: 0; bottom: 0; animation: bob 6s ease-in-out -3s infinite; }
.hub__card--below { width: 100%; max-width: 390px; }

.miniflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 2px 0; }
.bullets .miniflow li,
.miniflow li {
  position: relative; margin: 0; padding: 4px 11px; border-radius: 999px; line-height: 1.4;
  background: var(--prp-pill); font-size: 13.5px; font-weight: 600; color: var(--prp-indigo);
  animation: flowpill 4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1s);
}
.bullets .miniflow li::before { content: none; }
/* the arrow between the pills: drawn with a mask, so nothing is read out and no fallback font is needed */
.miniflow li:not(:last-child)::after {
  content: ""; position: absolute; right: -1.145em; top: 50%; translate: 0 -55%;
  width: .74em; height: .73em; background: var(--prp-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 14' fill='none' stroke='%23000' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 7h12.6M8 1.2l5.8 5.8L8 12.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 14' fill='none' stroke='%23000' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 7h12.6M8 1.2l5.8 5.8L8 12.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.integration {
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 3.5vw, 40px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-panel);
  background: var(--prp-indigo-mid); color: #fff;
  box-shadow: var(--shadow-panel);
}
.integration::after { content: ""; position: absolute; right: -40px; top: -44px; width: 170px; height: 147px; clip-path: var(--hex); background: rgba(255, 255, 255, .06); }
.integration__title { margin-bottom: 20px; text-align: center; font-size: 20px; font-weight: 600; color: #fff; }
/* balanced text columns (like .bullets--cols): two columns from ~730px content width, one below */
.integration__list { position: relative; z-index: 1; columns: 2 340px; column-gap: 48px; }
.integration__list li { break-inside: avoid; margin: 0 0 12px; }
.integration__list li + li { margin-top: 0; }
.integration__list li:last-child { margin-bottom: 0; }

/* ---------- 10 · e:pro AI ---------- */
.ai-deco { position: absolute; inset: 0; pointer-events: none; }
.ai-deco span { position: absolute; clip-path: var(--hex); background: rgba(255, 255, 255, .035); animation: floaty 14s ease-in-out infinite; }
.ai-deco span:nth-child(1) { width: 420px; height: 364px; right: -120px; top: 60px; }
.ai-deco span:nth-child(2) { width: 220px; height: 190px; left: -60px; top: 42%; animation-delay: -4s; }
.ai-deco span:nth-child(3) { width: 140px; height: 121px; right: 12%; bottom: 8%; animation-delay: -8s; }
#ai .container { position: relative; }

.ai-apps { display: flex; flex-wrap: wrap; gap: 12px; margin: -20px 0 clamp(36px, 4vw, 52px); }
.ai-apps li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14.5px; font-weight: 500; color: #fff;
}
.ai-apps .actor-hex--xs { --w: 30px; }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps::before {
  /* runs from the centre of hex 1 to the centre of hex 4 (28px gap + half of the 60px hex);
     linear, so the tip reaches each hexagon just as its number pops in */
  content: ""; position: absolute; left: 30px; right: calc(25% - 51px); top: 25px; height: 3px;
  background: var(--prp-red); transform-origin: left; transform: scaleX(0);
  transition: transform 1.4s linear .3s;
}
.steps.is-in::before, .no-js .steps::before { transform: scaleX(1); }
.step__num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 52px; margin-bottom: 22px;
  clip-path: var(--hex); background: var(--prp-red);
  font-size: 21px; font-weight: 700; color: #fff;
}
.js .steps .step__num { scale: 0; transition: scale .5s var(--ease-out) calc(var(--i) * .46s + .25s); }
.js .steps.is-in .step__num { scale: 1; }
.step { display: flex; flex-direction: column; }
.step__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; line-height: 1.25; color: #fff; }
.step p { margin-bottom: 18px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-body); }
.step__gain {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 15.5px; font-weight: 600; color: #fff;
}
.step__gain::before { content: ""; flex: none; width: 10px; height: 8.7px; clip-path: var(--hex); background: var(--prp-red-glow); }

.ai-block { margin-top: clamp(80px, 10vw, 128px); }
.ai-block__head { max-width: 860px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.ai-block__head .lead { margin-top: 12px; }

.demo {
  position: relative; max-width: 1040px; overflow: hidden;
  border-radius: 16px; background: #fff; color: var(--prp-grey);
  box-shadow: 0 30px 80px rgba(10, 10, 40, .45);
}
.demo__bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; background: var(--prp-page); border-bottom: 1px solid var(--prp-border); }
.demo__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d9d9e3; }
.demo__bar p { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--prp-indigo); }
.demo__body { padding: clamp(22px, 3.5vw, 40px); }
.demo__q {
  display: grid;
  padding: 18px 22px; border-left: 4px solid var(--prp-red); border-radius: 4px 12px 12px 4px;
  background: var(--prp-pill);
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.35; color: var(--prp-indigo);
}
.demo__q > * { grid-area: 1 / 1; }
.demo__ghost { visibility: hidden; }
.demo__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--prp-red); animation: blink 1s steps(1) infinite; }
.demo__caret.is-off { display: none; }
/* The typing indicator has a fixed 26px slot (the gap above the steps), so showing it moves nothing. */
.demo__typing { display: flex; gap: 6px; height: 26px; padding: 9px 4px; opacity: 0; transition: opacity .25s; }
.demo__typing.is-on { opacity: 1; }
.demo__typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--prp-lavender); animation: typing 1s ease-in-out infinite; }
.demo__typing span:nth-child(2) { animation-delay: .15s; }
.demo__typing span:nth-child(3) { animation-delay: .3s; }
.demo__typing:not(.is-on) span { animation: none; }
.demo__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.demo__steps::before {
  /* centre of hex 1 to centre of hex 4 (22px gap + half of the 44px hex), so --p 1/3 and 2/3 hit hex 2 and 3 */
  content: ""; position: absolute; left: 22px; right: calc(25% - 38.5px); top: 18px; height: 2px;
  background: var(--prp-red); transform-origin: left; transform: scaleX(var(--p, 1));
  transition: transform .6s var(--ease);
}
.demo__num {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 38px; margin-bottom: 12px;
  clip-path: var(--hex); background: var(--prp-red);
  font-weight: 700; color: #fff;
}
.demo__steps strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--prp-indigo); }
.demo__steps p { font-size: 15px; line-height: 1.5; }
.demo__note { margin-top: 26px; font-weight: 600; color: var(--prp-indigo); }
.demo__result { margin-top: 14px; padding: 18px 22px; border-radius: 12px; background: var(--prp-indigo); color: #fff; font-weight: 600; }
.js .demo[data-state] .demo__steps li,
.js .demo[data-state] .demo__note,
.js .demo[data-state] .demo__result { opacity: .14; filter: grayscale(1); translate: 0 14px; transition: opacity .45s ease, translate .55s var(--ease-out), filter .45s ease; }
.js .demo[data-state] .demo__steps li.is-on,
.js .demo[data-state] .is-on { opacity: 1; filter: none; translate: none; }
.demo__replay {
  position: absolute; right: 14px; top: 8px;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--prp-border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--prp-indigo);
  transition: background-color .2s, color .2s;
}
.demo__replay:hover { background: var(--prp-indigo); color: #fff; }

.rules { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(24px, 4vw, 56px); }
.rules__apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rules__apps li {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px; border-top: 3px solid var(--c);
  background: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--prp-indigo);
}
.rules__apps li::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 22px; translate: -50% 0; background: var(--prp-red); }
.rules__apps .actor-hex--xs { --w: 52px; }
.rules__core {
  position: relative; margin-top: 22px; padding: clamp(22px, 3vw, 32px);
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
}
.rules__core::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 22px; translate: -50% 0; background: var(--prp-red); }
.rules__core h3 { margin-bottom: 16px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: #fff; }
.rules__core ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rules__core li { font-size: 16.5px; line-height: 1.45; color: var(--on-dark-body); }
.rules__sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; padding: 22px clamp(20px, 3vw, 32px); border-radius: 14px; background: var(--prp-page); }
.rules__sources li { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--prp-indigo); }
.rules__guards { display: flex; flex-direction: column; justify-content: space-around; gap: 18px; padding-left: 28px; border-left: 3px solid var(--prp-red); }
.rules__guards li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #fff; }
.rules__guards li::before { content: ""; flex: none; width: 12px; height: 10.4px; clip-path: var(--hex); background: var(--prp-red-glow); }
.rules__claims { margin-top: 36px; }
.rules__claim { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: #fff; }
.rules__claims p + p { margin-top: 6px; font-size: 17px; color: var(--on-dark-body); }

.arch { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.arch__layers { display: flex; flex-direction: column; gap: 10px; }
.layer {
  --hover-tr: background-color .25s, border-color .25s;
  overflow: hidden; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06);
  transition: var(--hover-tr);
}
.layer:hover { background: rgba(255, 255, 255, .09); }
.layer.is-open { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .24); }
.layer__btn {
  width: 100%; display: grid; grid-template-columns: 40px minmax(170px, .9fr) minmax(0, 1.3fr) 30px; align-items: center; gap: 16px;
  padding: 18px 22px; border: 0; background: none; cursor: pointer; text-align: left; color: inherit;
}
.layer__head { font: inherit; } /* the h3 around each button only adds heading navigation */
.layer__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 14px; }
.layer__no { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; color: var(--prp-red-glow-pale); }
.layer__name { font-size: 17px; font-weight: 600; line-height: 1.3; color: #fff; }
/* on-dark-body, not muted: the hover and open backgrounds are lighter (muted drops to 3.7–4.4:1 there) */
.layer__name small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--on-dark-body); }
.layer__sum { font-size: 14.5px; color: var(--on-dark-body); text-wrap: balance; }
.layer__toggle { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.layer__toggle::before, .layer__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: #fff; translate: -50% -50%; }
.layer__toggle::after { rotate: 90deg; }
.layer.is-open .layer__toggle { transform: rotate(45deg); background: var(--prp-red); border-color: var(--prp-red); }
/* visibility hides the collapsed content from screen readers too; it turns visible at once on opening
   and only after the collapse when closing */
.layer__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .42s var(--ease), visibility .42s; }
.layer.is-open .layer__panel, .no-js .layer__panel { grid-template-rows: 1fr; visibility: visible; }
.layer__inner { min-height: 0; overflow: hidden; padding: 0 22px 0 78px; }
.layer__inner > :last-child { margin-bottom: 22px; }
.layer__title { margin-bottom: 12px; font-weight: 600; color: #fff; }
.layer__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.layer__grid li {
  padding: 10px 13px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .07);
  font-size: 14px; line-height: 1.4; color: var(--on-dark-body);
}
.layer__grid li small { color: var(--on-dark-body); }
.layer__grid--described li strong { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 600; color: #fff; }
.layer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.layer__list li { position: relative; padding: 4px 0 4px 18px; font-size: 14px; color: var(--on-dark-body); }
.layer__list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 7px; clip-path: var(--hex); background: var(--prp-lavender); }
.layer__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.layer__chips li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--prp-indigo); }
.layer__chips .actor-hex--xs { --w: 30px; }
.js .layer.is-open .layer__grid li { animation: item-in .45s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms + .1s); }

.arch__security { position: sticky; top: 100px; padding: 26px 22px; border-radius: 16px; background: var(--prp-page); text-align: center; color: var(--prp-indigo); }
.arch__shield { width: 46px; height: 46px; margin: 0 auto 10px; }
.arch__shield path:first-child { fill: var(--prp-indigo); }
.arch__shield .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .6s ease .7s; }
.arch__security.is-in .tick, .no-js .arch__shield .tick { stroke-dashoffset: 0; }
.arch__security h3 { margin-bottom: 12px; font-size: 19px; font-weight: 700; }
.arch__security li { padding: 12px 0; border-top: 1px solid var(--prp-line); font-size: 15px; line-height: 1.35; }

/* ---------- 11 · Vorteile (tabs) ---------- */
/* The list scrolls sideways if the tabs ever overflow, and a scroll box clips the focus ring:
   6px of padding (cancelled by the negative margin) keeps the ring inside it. The tab's own bottom padding
   is 6px smaller and the 1px divider moved into the padding, so text, ink and divider stay where they were. */
.tabs__list {
  position: relative; display: flex; gap: clamp(20px, 3vw, 40px);
  margin: -6px -6px 0; padding: 6px 6px 7px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs__list::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 1px; background: var(--prp-border); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none; padding: 0 0 10px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; color: var(--prp-muted);
  transition: color .18s ease;
}
.tabs__tab:hover { color: var(--prp-indigo); }
.tabs__tab[aria-selected="true"] { font-weight: 600; color: var(--prp-indigo); }
.tabs__ink {
  position: absolute; left: 0; bottom: 1px; height: 2px; width: var(--w, 0px);
  background: var(--prp-red);
  transform: translateX(var(--x, 0px));
  transition: transform .38s var(--ease), width .38s var(--ease);
}
/* Without JavaScript all panels show, so controls that would do nothing are hidden. */
.no-js .tabs__list, .no-js .filter, .no-js .layer__toggle, .no-js .demo__caret, .no-js .motion-toggle { display: none; }
.no-js .tabs__panel[hidden] { display: block; }
.tabs__panel { padding-top: 40px; }
.tabs__panel.is-entering { animation: panel-in .5s var(--ease-out); }
.tabs__panel.is-entering .bullets--gain li { animation: item-in .5s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms + .15s); }
.tabs__title { margin-bottom: 26px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--prp-indigo); }
.benefit { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.benefit__facts { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--prp-border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.benefit__gain {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px); border-radius: 16px;
  background: var(--prp-indigo); color: #fff; box-shadow: var(--shadow-panel);
}
.benefit__gain::after { content: ""; position: absolute; right: -30px; bottom: -36px; width: 150px; height: 130px; clip-path: var(--hex); background: rgba(255, 255, 255, .05); }
.benefit__label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prp-indigo);
}
.benefit__label--gain { color: var(--prp-red-glow-text); }
.bullets--gain { position: relative; z-index: 1; }
.bullets--gain li + li { margin-top: 12px; }

/* ---------- Wer wir sind: the three pillars (home page and Unternehmen) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.split + .pillars { margin-top: clamp(48px, 6vw, 80px); }
.pillar { display: flex; flex-direction: column; padding: 32px 30px 34px; }
.pillar__hex {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 59px; margin-bottom: 22px;
  clip-path: var(--hex); background: var(--prp-red) url("../img/icons/hex-rot.svg") center / 100% 100% no-repeat;
  color: #fff;
  transition: scale .3s var(--ease);
}
:is(.pillar, .benefit-card):hover .pillar__hex { scale: 1.08; }
.pillar__icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar .h3 { margin-bottom: 12px; }


/* ---------- Leistungen (home) ---------- */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.offer { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--prp-red); }
.offer .h3 { margin-bottom: 0; }

/* ---------- e:pro teaser (home) ---------- */
.epro-teaser__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.epro-teaser .c { color: var(--prp-red-glow); }
.epro-teaser .lead { margin-top: 20px; }
.actors-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 34px; font-size: 14px; font-weight: 500; color: var(--prp-lavender); }
.actors-line li { display: inline-flex; align-items: center; gap: 9px; }
.epro-teaser__links { display: grid; gap: 14px; }
.epro-teaser__links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 18px;
  padding: 20px 24px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff;
  transition: background-color .2s, border-color .2s, transform .28s var(--ease);
}
.epro-teaser__links a:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .34); color: #fff; transform: translateX(4px); }
.epro-teaser__links strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.epro-teaser__links span { grid-column: 1; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--on-dark-body); }
.epro-teaser__links .arr { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--prp-red-glow); }

/* ---------- Warum Sie uns vertrauen können (home) ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.partner { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; align-items: center; }
.partner__badge { width: 128px; }
.reasons { display: grid; gap: 14px; margin-top: 14px; }
.reasons .card { padding: 22px 26px; }

/* ---------- Team teaser (home, Unternehmen) ---------- */
.team { align-items: center; }
.team__side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.perks li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--prp-border); border-radius: 12px; background: #fff;
  font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--prp-indigo);
}
.section:not(.section--tint) .perks li { background: var(--prp-page); }
.perks li::before { content: ""; flex: none; width: 14px; height: 12px; clip-path: var(--hex); background: var(--prp-red); }

/* ---------- Unsere Geschichte: timeline (Unternehmen) ---------- */
.timeline { position: relative; max-width: 880px; padding-left: 60px; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--prp-indigo), var(--prp-red)); transform-origin: top;
}
.timeline__item { position: relative; }
.timeline__item + .timeline__item { margin-top: clamp(30px, 3.6vw, 44px); }
.timeline__mark { position: absolute; left: -60px; top: 0; width: 36px; height: 31px; clip-path: var(--hex); background: var(--prp-indigo); }
.timeline__item--now .timeline__mark { background: var(--prp-red); }
.timeline__when {
  padding-top: 6px; margin-bottom: 8px;
  font-family: var(--font-display); font-size: 12px; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prp-red);
}
.timeline__when .c { color: inherit; }
.timeline__item .h3 { margin-bottom: 8px; }
.timeline__item p:last-child { font-size: 16px; line-height: 1.65; color: var(--prp-grey); }
/* the line grows down, then the stations rise in one after another (main.js sets --n) */
.js .timeline::before { transform: scaleY(0); }
.js .timeline.is-in::before { transform: none; animation: grow-y 1.6s var(--ease) both; }
.js .timeline__item { opacity: 0; }
.js .timeline.is-in .timeline__item { opacity: 1; animation: rise .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 160ms + .1s); }

/* ---------- Karriere ---------- */
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(48px, 6vw, 80px); }
.benefit-card { display: flex; flex-direction: column; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(40px, 5vw, 64px); }
.job { padding: clamp(26px, 3.5vw, 44px); border-top: 3px solid var(--prp-red); }
.job:hover { transform: none; } /* a long card: no lift */
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.job__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.25; color: var(--prp-indigo); }
.job__meta { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--prp-muted); }
.job__meta::before { content: ""; width: 11px; height: 9.5px; clip-path: var(--hex); background: var(--prp-red); }
.card .job__intro { max-width: 900px; margin-top: 14px; font-size: 16.5px; line-height: 1.65; }
.job__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.job__sub { margin-bottom: 14px; font-size: 16px; font-weight: 600; color: var(--prp-indigo); }
.job__cta { margin-top: 32px; }
.apply { margin-top: 22px; }
.apply p { max-width: 860px; font-size: 16px; line-height: 1.65; color: var(--prp-grey); }
.apply a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- 12 · Unternehmen ---------- */
.company { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.facts {
  --W: clamp(172px, 16vw, 224px); --H: calc(var(--W) * .866);
  position: relative; margin: 0 auto;
  width: calc(var(--W) * 1.75 + 8px); height: calc(var(--H) * 2 + 8px);
}
.fact {
  position: absolute; width: var(--W); height: var(--H);
  clip-path: var(--hex);
  background: var(--prp-red) url("../img/icons/hex-rot.svg") center / 100% 100% no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  padding: 0 calc(var(--W) * .14); text-align: center; color: #fff;
  --hover-tr: transform .3s var(--ease); /* merged into the reveal transition (see [data-reveal]) */
  transition: var(--hover-tr);
}
.fact:hover { transform: scale(1.04); }
.fact--a { left: 0; top: calc(var(--H) / 2 + 4px); }
.fact--b { left: calc(var(--W) * .75 + 8px); top: 0; }
.fact--c { left: calc(var(--W) * .75 + 8px); top: calc(var(--H) + 8px); }
.fact__label { font-size: clamp(13px, 1.1vw, 16px); }
.fact img { height: calc(var(--W) * .22); width: auto; max-width: none; filter: brightness(0) invert(1); }
.fact__value { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.1; }
.fact__value--sm { font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; line-height: 1.25; }
.customers {
  width: 100%; max-width: 640px; margin-left: auto; aspect-ratio: 1.155;
  clip-path: var(--hex); background: var(--prp-indigo);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4% 12% 7%;
}
.customers figcaption { margin-bottom: 3%; font-size: clamp(20px, 2.4vw, 34px); font-weight: 500; color: #fff; }
.customers img { width: 100%; }

.competence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 40px; }
.comp {
  --hover-tr: transform .28s var(--ease), box-shadow .28s var(--ease);
  position: relative; display: flex; flex-direction: column; gap: 24px;
  padding: 84px 28px 28px; border-radius: 18px;
  background: var(--prp-indigo); color: #fff; box-shadow: var(--shadow-panel);
  transition: var(--hover-tr);
}
.comp:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(51, 51, 102, .28); }
.comp__hex {
  position: absolute; left: 26px; top: -50px;
  width: 124px; height: 107px; clip-path: var(--hex);
  background: var(--prp-red) url("../img/icons/hex-rot.svg") center / 100% 100% no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 16px; font-weight: 700; line-height: 1.2; color: #fff;
}
.comp__hex b { font-weight: 700; }
.comp__visual { margin-top: auto; align-self: flex-end; height: 92px; width: auto; }
.comp__visual--invert { filter: brightness(0) invert(1); opacity: .9; }
.comp__visual--badge { padding: 10px 14px; border-radius: 10px; background: #fff; }
.comp__visual--wide { height: 84px; }
.quote { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.quote p { font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--prp-indigo); text-wrap: balance; }
.quote span { color: var(--prp-red); }

/* ---------- 13 · Kontakt ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(90px, 12vh, 160px) 0; background: var(--prp-indigo); color: #fff; text-align: center; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 31, 64, .7), rgba(35, 35, 72, .7)); }
.contact__inner { position: relative; max-width: 900px; }
.contact__title { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.contact__card {
  display: inline-flex; flex-direction: column; gap: 4px; margin-top: 32px;
  padding: 24px 36px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-style: normal; font-size: 18px; color: var(--on-dark-body);
}
.contact__card strong { font-size: 20px; color: #fff; }
.contact__lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 8px; }
.contact__card a, .footer address a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact__card a { color: #fff; }
.contact__lead { margin: 20px auto 0; max-width: 680px; }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 7vw, 88px) 0 0; background: var(--prp-indigo-deep); color: #c3c3da; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 44px 32px; }
/* Five 190px columns fit in one row only from about 1180px. Below that (desktop layout from 980px)
   the columns take the width of their content and share the rest, so "Rechtliches" stays in the row. */
@media (min-width: 980px) and (max-width: 1179.98px) {
  .footer__grid { grid-template-columns: repeat(5, auto); justify-content: space-between; column-gap: 24px; }
}
/* Tablets: three columns over two rows (not four plus "Rechtliches" alone from about 950px) ... */
@media (min-width: 760px) and (max-width: 979.98px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ... and from 640px two columns with the address last over the full width (as on phones),
   so "Rechtliches" does not stand alone in a third row */
@media (min-width: 640px) and (max-width: 759.98px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; order: 1; }
}
.footer__head { margin-bottom: 16px; font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; color: #fff; }
.footer li + li { margin-top: 9px; }
.footer a { font-size: 14.5px; color: var(--on-dark-muted); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; font-size: 14.5px; line-height: 1.7; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer__bottom img { width: 168px; opacity: .85; }
.footer__bottom p { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b4b4cf; }
/* inline links are underlined, not told apart by colour alone */
.footer__bottom p a, .legal p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer__bottom p a { color: inherit; }
.footer__bottom p a:hover, .legal p a:hover { text-decoration-thickness: 2px; }
.footer__bottom .mini-hex { width: 8px; height: 7px; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* While the container runs to the viewport edge, the fixed back-to-top hexagon (50px wide, 20px in)
   would cover the bar's right end: keep that end clear. From ~554px the copyright and the motion toggle
   could share a row and push the toggle under the hexagon, so the clearance starts below that. */
@media (min-width: 540px) and (max-width: 1364px) {
  .footer .footer__bottom { padding-right: calc(84px - var(--gutter)); }
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 50px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
/* The hexagon is a pseudo-element, so its clip-path does not cut off the focus ring. */
.to-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: var(--hex); background: var(--prp-red);
  transition: background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; }
.to-top:hover::before { background: var(--prp-red-dark); }
/* floats over light and dark sections alike: white ring on an indigo halo */
.to-top:focus-visible { outline-color: #fff; box-shadow: 0 0 0 7px var(--prp-indigo); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 150px 0 64px; background: var(--prp-indigo); color: #fff; }
.legal-hero + .legal .notice { margin-top: 0; }
.footer__bottom a { font-size: 13px; }
.site-header.is-scrolled .btn--sm { box-shadow: none; }
.legal-hero .h2 { color: #fff; }
.legal { padding: 64px 0 var(--section-y); }
.legal .container, .legal-hero .container { max-width: 880px; } /* title and body share one left edge */
.legal h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; color: var(--prp-indigo); }
.legal p, .legal li { line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.placeholder { padding: 2px 6px; border-radius: 6px; background: #fff3cd; color: #7a5a00; font-weight: 500; }
.notice { margin-bottom: 32px; padding: 16px 20px; border-left: 4px solid var(--prp-red); border-radius: 4px 12px 12px 4px; background: var(--prp-page); color: var(--prp-ink); }

/* ---------- Page header of the subpages ----------
   The hero photo under a strong indigo gradient and one static hexagon (no loop). Pages with looping
   animations carry the pause toggle bottom right (.page-hero--motion, the same .hero__motion as on home). */
.page-hero {
  position: relative; overflow: hidden; overflow: clip;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 92px)) 0 clamp(64px, 8vw, 104px);
  background: var(--prp-indigo); color: #fff;
}
.page-hero--motion { padding-bottom: clamp(88px, 9vw, 112px); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(35, 35, 72, .94) 0%, rgba(35, 35, 72, .94) 30%, rgba(35, 35, 72, .55) 100%); }
.page-hero::after {
  content: ""; position: absolute; right: 7%; top: 50%; translate: 0 -38%;
  width: clamp(120px, 15vw, 220px); aspect-ratio: 1.155;
  clip-path: var(--hex); background: rgba(255, 255, 255, .05); pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .hero__motion { z-index: 1; }
.page-hero .h2 { max-width: 980px; }
.page-hero .ai-apps { margin: 30px 0 0; }
.page-hero + .section--dark { border-top: 1px solid rgba(255, 255, 255, .08); }

/* Kontakt: the contact band itself is the page header */
.contact--page {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 96px));
}

/* ---------- Home: agenda tiles ----------
   Each tile is one link (the title link's ::after covers the card), so its name stays short and the
   titles stay navigable as headings. The actor colour shows only as the top border: white on the
   light actor fills would reach only 2.6:1, so the number hexagon stays white on indigo. */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.area { position: relative; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--c, var(--prp-red)); }
.area--wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
.area__no {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 38px; clip-path: var(--hex); background: var(--prp-indigo);
  font-size: 17px; font-weight: 700; line-height: 1; color: #fff;
}
.area__title { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--prp-indigo); }
.area--wide .area__title { margin-bottom: 4px; }
.area__link, .area__link:hover { color: inherit; }
.area__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.area__link:focus-visible { outline: none; }
.area__link:focus-visible::after { outline: 2px solid var(--prp-red); outline-offset: 3px; }
.area__more { margin-top: auto; padding-top: 4px; font-size: 22px; line-height: 1; color: var(--prp-red); }
.area__more .arr { transition: transform .25s var(--ease); }
.area:hover .area__more .arr { transform: translateX(6px); }
.area__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 32px; }
.area__links .link-arrow { font-size: clamp(17px, 1.5vw, 20px); }

/* ---------- Pager: previous / next page ---------- */
.pager { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--prp-border); }
.pager__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pager__link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 28px; }
.pager__link--next { grid-column: 2; align-items: flex-end; text-align: right; }
.pager__dir {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase;
  color: var(--prp-red);
}
.pager__dir .ico { transition: transform .25s var(--ease); }
.pager__link:hover .pager__dir .ico { transform: translateX(-4px); }
.pager__link--next:hover .pager__dir .ico { transform: translateX(4px); }
.pager__name { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; color: var(--prp-indigo); }

/* a short link below a section's content (home: on to the platform page) */
.section-more { margin-top: clamp(28px, 3.5vw, 44px); text-align: right; }

/* ---------- Soft hyphens only where a word would not fit ----------
   A browser breaks at any &shy; whose first part still fits the line, even when the whole word would fit
   on the next one ("e:pro für Netz- / kunden"). Where a text sits beside other words, its block drops the
   &shy; (hyphens: none) as soon as the box holds the longest word; narrower, the &shy; apply as before.
   Thresholds = longest word + what shares its line (+1px or more); without container queries the &shy; stay. */
.rules__apps li { container: app-card / inline-size; }
@container app-card (min-width: 178px) { /* hexagon 52 + gap 14 + "Netzbetreiber" 110.5 */
  .rules__apps li > span:last-child { -webkit-hyphens: none; hyphens: none; }
}
.rtu__d { container: rtu-card / inline-size; }
@container rtu-card (min-width: 247.5px) { /* bullet 11 + gap 11 + "Implementierungszeit" 224.5 */
  .rtu__d .h3 { -webkit-hyphens: none; hyphens: none; }
}
.comp .bullets { container: comp-list / inline-size; }
@container comp-list (min-width: 154px) { /* indent 22 + "Prozessplattform" 130.3 */
  .comp .bullets li { -webkit-hyphens: none; hyphens: none; }
}
.e2e__list { container: e2e-list / inline-size; }
@container e2e-list (min-width: 136px) { /* "Abnahmeprozesse" 134.2 */
  .e2e__list li { -webkit-hyphens: none; hyphens: none; }
}

/* ==========================================================================
   Scroll reveal
   (translate/scale for the reveal, transform for hover, so both can coexist)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; translate: 0 28px;
  transition:
    opacity .7s var(--ease) var(--d, 0ms),
    translate .85s var(--ease-out) var(--d, 0ms),
    scale .85s var(--ease-out) var(--d, 0ms),
    var(--hover-tr, color 0s);
}
.js [data-reveal="left"] { translate: -44px 0; }
.js [data-reveal="right"] { translate: 44px 0; }
.js [data-reveal="zoom"] { translate: none; scale: .9; }
.js [data-reveal="pop"] { translate: 0 18px; scale: .7; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
/* In-page link targets (e.g. #akteure) only fade in: the browser scrolls to the box before it is
   revealed, so an offset would leave the heading under the fixed header once it moves back. */
.js [data-reveal][id] { translate: none; scale: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
/* Colour-cycling text (chevrons, mini flow): the fill fades only between the base colour and a light red
   tint (#E69980, indigo text 5.1:1) and switches in one step to red with white text (5.2:1) and back.
   A fade straight to red would pass through fills where neither text colour reaches 4.5:1. */
@keyframes chevflow {
  0%, 100% { background-color: #e9f3fb; color: var(--prp-indigo); }
  3% { background-color: #e69980; color: var(--prp-indigo); animation-timing-function: step-start; }
  4% { background-color: var(--prp-red); color: #fff; }
  12% { background-color: var(--prp-red); color: #fff; animation-timing-function: step-start; }
  13% { background-color: #e69980; color: var(--prp-indigo); }
  20% { background-color: #e9f3fb; color: var(--prp-indigo); }
}
@keyframes linkflow {
  from { background-position: 12.5% 0, 37.5% 0, 62.5% 0, 87.5% 0; }
  to { background-position: 12.5% 12px, 37.5% 12px, 62.5% 12px, 87.5% 12px; }
}
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 180% 0; } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; scale: .3; } 70% { opacity: 1; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
@keyframes march { to { stroke-dashoffset: -70; } }
@keyframes lane-in {
  from { clip-path: polygon(0 0, 0 0, 14px 50%, 0 100%, 0 100%, 14px 50%); }
  to { clip-path: var(--cp); }
}
@keyframes flowpill { /* see chevflow */
  0%, 100% { background-color: var(--prp-pill); color: var(--prp-indigo); }
  7% { background-color: #e69980; color: var(--prp-indigo); animation-timing-function: step-start; }
  8% { background-color: var(--prp-red); color: #fff; }
  22% { background-color: var(--prp-red); color: #fff; animation-timing-function: step-start; }
  23% { background-color: #e69980; color: var(--prp-indigo); }
  30% { background-color: var(--prp-pill); color: var(--prp-indigo); }
}
@keyframes item-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: none; } }
@keyframes panel-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }

/* ---------- Looping animations: pause control ----------
   Every infinite loop reads its play state from --loop. main.js sets .anim-off on an area while it is
   off-screen (saves the per-frame work) and html.motion-paused when the visitor pauses animations.
   One-off entrances (reveal, pop, lanes, tabs, drawer) are not listed, so they always finish. */
.anim-off, .motion-paused { --loop: paused; }
.deco-hex, .hero__scroll span,
.netz__ring, .more-arrow, .track__bar::after, .platform__actors::after, .chevrons li, .platform__link,
.rtu__dot, .rtu__orbit polygon, .hub__center .actor-hex, .miniflow li, .ai-deco span,
.demo__caret, .demo__typing span { animation-play-state: var(--loop, running) !important; }
/* Paused by the visitor, the colour-cycling loops rest in their base colours instead of freezing
   mid-cycle (a frozen red chevron or hexagon would read as highlighted). They restart on resume. */
.motion-paused .chevrons li, .motion-paused .miniflow li { animation: none !important; }
/* Paused, entrances skip to their final state the moment they would start: nothing slides, pops or
   grows in, and nothing stays hidden. Hover transitions (--hover-tr) stay. */
@media (prefers-reduced-motion: no-preference) {
  .motion-paused :is(.rise, .honeycomb li, .lane, .tabs__panel, .bullets--gain li, .layer__grid li, .drawer nav > *,
    .timeline__item, .timeline::before) {
    animation-duration: 0s !important; animation-delay: 0s !important;
  }
  .motion-paused [data-reveal] { transition: var(--hover-tr, none) !important; }
  .motion-paused :is(.track .actor-hex, .platform .actor-hex, .steps .step__num, .drivers__arrows > path, .arch__shield .tick),
  .motion-paused .steps::before,
  .motion-paused .demo[data-state] :is(.demo__steps li, .demo__note, .demo__result) { transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Must stay before the 979.98px block so the smaller breakpoints still win. */
@media (max-width: 1199.98px) {
  .deco-hex--b, .deco-hex--c { display: none; }
  .nav__link { padding: 10px 11px; }
  .chevrons { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 6px; }
  .chevrons li { font-size: 13px; padding: 6px 16px 6px 22px; }

  .drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drivers__hub { grid-area: auto; grid-column: 1 / -1; order: -1; min-height: 0; padding-bottom: 8px; }
  .driver--tl, .driver--tr, .driver--bl, .driver--br { grid-area: auto; }
  .drivers__arrows { display: none; }
  .netz { width: 190px; }
  .np { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the larger honeycomb takes width from the side lists: closer columns keep them roomy */
  .e2e__grid { column-gap: 18px; }

  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hub__center { grid-column: 1 / -1; order: -1; }
  .hub--seven .hub__card--below { max-width: none; }
}
/* Just above the one-column layout the side lists are narrowest: a little more room keeps
   "Abnahmeprozesse" (134.2px) whole, so "Freigabe-/Abnahmeprozesse" stays on two lines. */
@media (min-width: 980px) and (max-width: 1039.98px) {
  .e2e__grid { column-gap: 12px; }
  .e2e__list { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 979.98px) {
  :root { --header-h: 68px; }
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
  .no-js .burger { display: none; } /* the drawer needs JavaScript; the page and footer still lead everywhere */
  /* slide in vertically only: no sideways offset on narrow screens */
  .js [data-reveal="left"], .js [data-reveal="right"] { translate: 0 28px; }


  .driver { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  .driver__icon { width: 72px; height: 72px; }

  .split { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .e2e__grid { grid-template-columns: minmax(0, 1fr); }
  .e2e__col--left { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .e2e__col--center > .actor-hex { align-self: center; }
  .honeycomb { --w: 116px; } /* the board is one column here: room for the desktop size */

  .rtu { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hub hub" "a c" "b d" "e f" "g g"; }
  .rtu__hub { min-height: 0; padding: 10px 0 18px; }
  .rtu__hex { width: 260px; }
  .rtu__orbit { width: 314px; }

  .sub-head--split { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .demo__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__steps::before { display: none; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rules__guards { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 14px 28px; padding: 22px 0 0; border-left: 0; border-top: 3px solid var(--prp-red); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch__security { position: static; text-align: left; }
  .arch__security ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .arch__shield { margin: 0 0 10px; }
  .layer__btn { grid-template-columns: 34px minmax(0, 1fr) 30px; }
  .layer__sum { display: none; }
  .layer__inner { padding-left: 72px; }
  .layer__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .benefit { grid-template-columns: minmax(0, 1fr); }
  .company, .trust, .epro-teaser__inner { grid-template-columns: minmax(0, 1fr); }
  .customers { margin: 0 auto; }
  .pillars { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .offers, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places, .job__cols { grid-template-columns: minmax(0, 1fr); }
  .job__cols { gap: 24px; }
  .stats { --w: 132px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; max-width: 520px; }
  .pillar { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 26px 24px; }
  .pillar__hex { grid-row: span 2; width: 56px; height: 48.5px; margin: 0; }
  .pillar__icon { width: 26px; height: 26px; }
  .competence { grid-template-columns: minmax(0, 1fr); row-gap: 72px; }

  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759.98px) {
  .lanes__actors { display: none; }
  .lanes__list { grid-template-columns: minmax(0, 1fr); background-image: none; }
  .lane { grid-column: 1 / -1; justify-content: space-between; text-align: left; padding: 11px 26px 11px 28px; }
  .lane__label { min-width: 0; }
  .lane small { white-space: normal; }
  .lane__dots { display: inline-flex; border-radius: 999px; transition: background-color .2s, box-shadow .2s; }
  /* on the indigo hover fill the dots sit on a white chip (the Dienstleister dot would vanish on indigo) */
  @media (hover: hover) { .lane:hover .lane__dots { background: #fff; box-shadow: 0 0 0 4px #fff; } }
  .lanes__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--prp-muted); }
  .lanes__legend li { display: inline-flex; align-items: center; gap: 6px; }
  .lanes__legend .mini-hex { width: 10px; height: 8.7px; }
  .lanes-head { flex-direction: column; }
  .np { gap: 10px; }
  .np__item { gap: 8px; padding: 12px; font-size: 14px; }
  .np__item img { width: 28px; height: 28px; }
}

@media (max-width: 639.98px) {
  .eyebrow { letter-spacing: .2em; font-size: 11px; }
  .hero { padding: 120px 0 90px; }
  .hero__scroll { display: none; }
  .btn--lg { padding: 15px 24px; font-size: 16px; }
  .hero__ctas .btn, .page-hero__ctas .btn { flex: 1 1 auto; }
  .stats { --w: 116px; column-gap: 10px; }
  .stat__label { font-size: 12.5px; }
  .offers, .benefits, .perks { grid-template-columns: minmax(0, 1fr); }
  .partner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline { padding-left: 48px; }
  .timeline::before { left: 13px; }
  .timeline__mark { left: -48px; width: 28px; height: 24px; }
  .timeline__when { padding-top: 2px; }
  .epro-teaser__links a { padding: 18px 20px; }

  .drivers { grid-template-columns: minmax(0, 1fr); }
  .driver { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 24px; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .more__item img { height: 50px; }
  .np { grid-template-columns: minmax(0, 1fr); }
  .track__actors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .track__bar { display: none; }
  .track .actor-hex { --w: 124px; }
  .success__cta { text-align: center; }

  .platform__actors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; padding-bottom: 12px; }
  .platform__actors::after { display: none; }
  .platform__actors .actor-hex { --w: 128px; }
  .chevrons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform__base .dot { margin: 0 6px; }
  /* stack the brand phrases instead of leaving the separator dangling at a line end */
  .platform__brand { flex-direction: column; gap: 4px; }
  .platform__sep { display: none; }

  .sparte { --sw: min(calc(50vw - 34px), 170px); }
  .e2e { padding-inline: 12px; }
  .e2e__col--left { grid-template-columns: minmax(0, 1fr); }
  .rtu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hub" "a" "c" "b" "d" "e" "f" "g"; }
  .rtu__hex { width: 230px; }
  .rtu__orbit { width: 280px; }

  .hub { grid-template-columns: minmax(0, 1fr); }
  .hub__center--duo { width: 250px; height: 250px; }
  .hub__center--duo .actor-hex { --w: 160px; }
  .card { padding: 24px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .step { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; }
  .step__gain { margin-top: 0; }
  .step__num { grid-row: 1 / 4; margin-bottom: 0; }
  .demo__steps { grid-template-columns: minmax(0, 1fr); }
  .rules__apps, .rules__core ul, .rules__sources { grid-template-columns: minmax(0, 1fr); }
  .rules__apps li::after { display: none; }
  .arch__security ul { grid-template-columns: minmax(0, 1fr); }
  .layer__btn { gap: 12px; padding: 16px; grid-template-columns: 28px minmax(0, 1fr) 30px; }
  .layer__inner { padding: 0 16px; }

  /* the facts cluster is 1.75 hexagons wide: shrink it with the column on small phones */
  .facts { --W: min(172px, calc((100vw - 2 * var(--gutter) - 8px) / 1.75)); }
  .fact { gap: 4%; }
  .fact__value--sm { font-size: 12.5px; }
  .bullets--cols { columns: 1; }
  .tabs__list { gap: 16px; }
  .tabs__tab { font-size: 15px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  /* the address gets the full width instead of a squeezed half column, after the link columns
     (in its source position it would leave a gap beside the third column) */
  .footer__contact { grid-column: 1 / -1; order: 1; }
  .areas, .area--wide { grid-template-columns: minmax(0, 1fr); }
  .area--wide { row-gap: 12px; }
  .area__links { justify-content: flex-start; }
  .pager__inner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pager__link--next { grid-column: auto; }
  .section-more { text-align: center; }
  /* honeycomb: three interlocking columns (2-1-2-1… pattern), sized to the card
     (12px padding + 1px border each side) */
  .honeycomb {
    --w: min(120px, calc((100vw - 2 * var(--gutter) - 26px - 2 * var(--gap)) / 2.5));
    width: calc(var(--w) * 2.5 + var(--gap) * 2);
    height: calc(var(--h) * 5 + var(--gap) * 4);
  }
  .honeycomb li {
    --c: 0; --o: 0; --k: 0;
    font-size: max(9.5px, calc(var(--w) * .095)); /* phones: scales with the card (11.4px at 390px) */
    left: calc(var(--c) * (var(--w) * .75 + var(--gap)));
    top: calc((var(--k) * 2 + var(--o)) * (var(--h) + var(--gap)) / 2);
  }
  .honeycomb li:nth-child(3n+2) { --c: 2; }
  .honeycomb li:nth-child(3n) { --c: 1; --o: 1; }
  .honeycomb li:nth-child(n+4) { --k: 1; }
  .honeycomb li:nth-child(n+7) { --k: 2; }
  .honeycomb li:nth-child(n+10) { --k: 3; }
  .honeycomb li:nth-child(n+13) { --k: 4; }
  .contact__card { padding: 20px 24px; }
  .page-hero::after { right: -48px; } /* half off the edge, clear of the headline */
}

/* Below ~405px the hero eyebrow takes two lines in Arial Black but only one in the fallback font.
   Reserving both lines keeps the headline (the LCP element) from moving down when the webfont arrives. */
@media (max-width: 404.98px) {
  .hero .eyebrow { min-height: 3em; }
}

/* Small phones: the four Vorteile tabs no longer fit in one row, so they wrap
   into a 2×2 grid (no hidden horizontal scroll); each tab carries its own underline. */
@media (max-width: 399.98px) {
  .tabs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding-bottom: 1px; overflow: visible; }
  .tabs__tab { justify-self: start; padding: 10px 0; text-align: left; border-bottom: 2px solid transparent; }
  .tabs__tab[aria-selected="true"] { border-bottom-color: var(--prp-red); }
  .tabs__ink { display: none; }
}

@media (max-width: 379.98px) {
  .h2 { font-size: 26px; }
  .band { padding: 24px 16px; }
  .driver { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
  .driver__icon { width: 56px; height: 56px; }
  /* two per row inside the 16px band padding */
  .track .actor-hex { --w: min(124px, calc(50vw - 36px)); }
  /* smaller facts cluster: slightly smaller icon and text keep the labels inside the hexagons */
  .fact img { height: calc(var(--W) * .17); }
  .fact__label, .fact__value--sm { font-size: 12px; }
  /* a little more room for the lane labels next to their actor dots (keeps the 12px gap down to ~296px) */
  .lane { padding-right: 24px; }
  /* a smaller logo leaves room beside it */
  .brand, .brand__logo { width: 120px; }
  .site-header__inner { gap: 12px; }
  .site-header .btn--sm { padding: 10px 14px; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; } /* nothing loops here, so there is nothing to pause */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .hero__bg { transform: none; }
}

/* ---------- Forced colours (e.g. Windows contrast themes) ----------
   The browser swaps fills for the system background. The actor colours carry meaning and the actor
   graphics were checked as designed (dark ink on the light fills), so they keep their own colours;
   otherwise the dark icons, the lane dots and the legend hexagons vanish. */
@media (forced-colors: active) {
  .actor-hex, .honeycomb li, .mini-hex { forced-color-adjust: none; }
  /* the hexagon stations and the line of the timeline are drawn with backgrounds */
  .timeline__mark, .timeline::before { forced-color-adjust: none; }
  .miniflow li::after { forced-color-adjust: none; } /* the red arrows are drawn with a background */
  /* the header switches between the white and the navy logo with its own background: keep both */
  .site-header { forced-color-adjust: none; }
  /* the transparent header sits on the page headers of the subpages, the legal pages and the contact
     page: they keep their indigo, so the white logo and the white focus rings above them stay visible
     in light contrast themes too */
  .legal-hero, .page-hero, .contact--page { forced-color-adjust: none; }
  .page-hero .motion-toggle { forced-color-adjust: auto; } /* the toggle keeps its system colours (below) */
  /* on wide screens the bar's extent is what shows which actors a process spans: keep the bars
     (a slightly deeper fill, so the edge stays clear on a white system background) */
  .lane { forced-color-adjust: none; background: #d6e7f7; }
  /* the white logo in the menu and the footer keeps a plate in its brand background */
  .drawer__head img, .footer__bottom img {
    forced-color-adjust: none; opacity: 1;
    background: var(--prp-indigo-deep); outline: 6px solid var(--prp-indigo-deep); border-radius: 2px;
  }
  /* the pause toggle sits on the hero photo: an opaque system background, and the icon (drawn with
     backgrounds) in the system text colour */
  .motion-toggle, .motion-toggle:hover { background-color: Canvas; }
  .motion-toggle__icon { forced-color-adjust: none; color: CanvasText; }
}

/* ---------- Print ----------
   Prints the page as a document: every entrance in its final state, all Vorteile panels and architecture
   layers open, no fixed or screen-only controls, and the indigo surfaces and hexagon fills kept. */
@media print {
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .progress, .skip-link, .to-top, .burger, .drawer, .motion-toggle, .hero__motion, .hero__scroll, .pager,
  .hero__deco, .ai-deco, .filter, .tabs__list, .layer__toggle, .demo__replay, .demo__caret, .demo__typing { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .honeycomb li, .js .track .actor-hex, .js .platform .actor-hex, .js .steps .step__num {
    opacity: 1 !important; translate: none !important; scale: none !important;
  }
  .js .lane { clip-path: var(--cp) !important; }
  .js .timeline__item { opacity: 1 !important; }
  .js .timeline::before { transform: none !important; }
  .steps::before { transform: scaleX(1) !important; }
  .drivers__arrows > path, .arch__shield .tick { stroke-dashoffset: 0 !important; }
  [data-actor].is-dim, [data-actor].is-focus { opacity: 1; filter: none; transform: none; } /* the actor filter is not printed */
  .tabs__panel[hidden] { display: block !important; }
  .layer__panel { grid-template-rows: 1fr !important; visibility: visible !important; }
  .js .demo[data-state] :is(.demo__steps li, .demo__note, .demo__result) { opacity: 1 !important; filter: none !important; translate: none !important; }
  .demo__steps::before { transform: none !important; }
  .demo__ghost { visibility: visible; } /* the full question, also before the typing demo has run */
  .demo__q-text { visibility: hidden; }
  .hero { min-height: 0; padding: 48px 0; }
  .hero__bg { transform: none !important; }
  .legal-hero { padding-top: 48px; }
  .page-hero { padding: 40px 0 32px; }
  .contact--page { min-height: 0; padding: 48px 0; }
  .arch__security { position: static; }
  /* the competence hexagons sit above their cards on screen; inside them they cannot be cut off at a page break */
  .competence { padding-top: 0; row-gap: 22px; }
  .comp { padding-top: 28px; }
  .comp__hex { position: relative; left: auto; top: auto; }
  h1, h2, h3, h4, .eyebrow, .kicker { break-after: avoid; }
  h2, h3, .section-head, .sub-head, .ai-block__head, .drivers__hub, .rtu__hub, .hub__center, .e2e__group, .e2e__col--right,
  .honeycomb, .card, .area, .more__item, .np__item, .band, .platform, .lanes-wrap, .integration, .step, .demo, .rules, .layer,
  .arch__security, .benefit__facts, .benefit__gain, .company, .facts, .customers, .comp, .quote, .contact__inner, .footer__grid,
  .timeline__item, .job__cols > div { break-inside: avoid; }
}
