/* Homepage (EN). Flex only; row spacing lives in column padding (zero gap),
   so each row maps 1:1 onto an Elementor container. */

.hm {
  --hm-radius: 12px;
  --hm-line: #d7e7ef;
  --hm-line-strong: #a9d0e2;
  --hm-strip: #f4f8fb;
  --hm-shadow: 0 14px 34px -24px rgba(13, 36, 55, .45);
  --hm-shadow-hover: 0 24px 44px -24px rgba(13, 36, 55, .55);
  --hm-on-dark: #a9c3d2;
}

/* ---------- Type ---------- */
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wasser); margin: 0 0 14px;
}
.hm-eyebrow::after { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }
.hm-eyebrow--dark { color: var(--hm-on-dark); }

.hm-h1 {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(2.1rem, 3.7vw, 3rem); line-height: 1.1; letter-spacing: -.018em;
  color: var(--navy); margin: 0 0 20px;
}
.hm-h1 span { display: block; color: var(--wasser); }
.hm-h1, .hm-h1 span { text-wrap: balance; }

.hm-h2 {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem); line-height: 1.16; letter-spacing: -.012em;
  color: var(--navy); margin: 0;
}
.hm-h2--light { color: #fff; }

.hm-lead { font-size: 1rem; line-height: 1.6; color: var(--text-leise); margin: 12px 0 0; max-width: 40rem; }
.hm-lead--dark { color: var(--hm-on-dark); }

/* ---------- Buttons ---------- */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hm-btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.hm-btn:hover svg { transform: translateX(3px); }
.hm-btn--fill { background: var(--wasser); color: #fff; }
.hm-btn--fill:hover { background: var(--wasser-dunkel); color: #fff; }
.hm-btn--white { background: #fff; color: var(--navy); box-shadow: 0 8px 20px -12px rgba(13, 36, 55, .4); }
.hm-btn--white:hover { color: var(--wasser); box-shadow: 0 10px 24px -12px rgba(13, 36, 55, .5); }
.hm-btn--line { background: #fff; color: var(--navy); border-color: var(--hm-line-strong); }
.hm-btn--line svg { color: var(--wasser); }
.hm-btn--line:hover { border-color: var(--wasser); background: #f0f7fb; color: var(--navy); }
.hm-btn--sm { padding: 11px 20px; font-size: .875rem; }

.hm-textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--wasser); text-decoration: none; white-space: nowrap;
}
.hm-textlink svg { width: 15px; height: 15px; transition: transform .2s ease; }
.hm-textlink:hover { color: var(--wasser-dunkel); }
.hm-textlink:hover svg { transform: translateX(3px); }

/* ---------- Layout ---------- */
.hm-section { padding-block: 80px; }
.hm-head { max-width: 46rem; margin-bottom: 36px; }
.hm-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  margin-bottom: 26px;
}
.hm-head-row > :first-child { padding-right: 24px; }

.hm-split { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -24px; }
.hm-split--top { align-items: flex-start; }
.hm-part { width: 50%; padding: 0 24px; }
.hm-part--45 { width: 45%; }
.hm-part--55 { width: 55%; }

/* ---------- Hero ---------- */
.hm-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; min-height: 662px;
  background: #e8f1f7 url('../img/hero-alpen.jpg') center right / cover no-repeat;
}
.hm-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 33%, rgba(255,255,255,.5) 52%, rgba(255,255,255,0) 70%);
}
.hm-hero__inner { position: relative; z-index: 1; padding-block: 72px 128px; }
.hm-hero__text { max-width: 38rem; }
.hm-hero__sub { font-size: 1.0625rem; line-height: 1.6; color: #3d5866; margin: 0; max-width: 31rem; }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* Maps to an Elementor shape divider (wave) on the hero container. */
.hm-wave { position: absolute; left: 0; bottom: -1px; z-index: 1; display: block; width: 100%; height: 72px; color: var(--hm-strip); }

/* ---------- Partner logo strip (original logo colours) ---------- */
.hm-strip { background: var(--hm-strip); border-bottom: 1px solid var(--hm-line); }
.hm-strip__row { display: flex; flex-wrap: wrap; align-items: center; padding-block: 16px 24px; }
.hm-strip__label {
  flex: none; margin: 0; padding-right: 28px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-leise);
}
.hm-logos {
  flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  list-style: none; margin: 0; padding: 0;
}
.hm-logos li { display: flex; align-items: center; justify-content: center; padding: 8px 28px; }
.hm-logo { display: block; width: auto; max-width: none; }
/* Heights are tuned per logo so each carries similar visual weight. */
.hm-logo--aws { height: 54px; }
.hm-logo--tb { height: 26px; }
.hm-logo--drei { height: 42px; }

/* ---------- Solution cards ---------- */
.hm-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.hm-col { display: flex; padding: 0 12px 24px; }
.hm-col--3 { width: 33.3333%; }
.hm-col--2 { width: 50%; }

.hm-card {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hm-card:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow-hover); border-color: #b9d8e7; }
.hm-card__media { position: relative; overflow: hidden; }
/* Solution cards: a second photo fades in on mouse hover; touch screens (no hover) fade between both slowly */
.hm-card__img--alt { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .6s ease, transform .45s ease; }
@media (hover: hover) { .hm-card:hover .hm-card__img--alt { opacity: 1; } }
@media (hover: none) {
  .hm-card__img--alt { animation: hm-swap 12s ease-in-out infinite; }
  #facility .hm-card__img--alt { animation-delay: -4s; }
  #environment .hm-card__img--alt { animation-delay: -8s; }
}
@keyframes hm-swap { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.hm-card__img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .45s ease; }
.hm-card:hover .hm-card__img { transform: scale(1.04); }
.hm-card--big .hm-card__img { height: 220px; }
.hm-story .hm-card__img { height: 170px; }

.hm-badge {
  position: relative; z-index: 1; flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin: -25px 0 0 20px; border-radius: 50%;
  background: #fff; color: var(--wasser); box-shadow: 0 6px 16px -6px rgba(13, 36, 55, .35);
}
.hm-badge svg { width: 22px; height: 22px; }

.hm-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 24px 24px; }
.hm-card__kicker {
  margin: 0 0 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wasser);
}
.hm-card__title { margin: 0 0 10px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.hm-card__title a { color: inherit; text-decoration: none; }
.hm-card__title a:hover { color: var(--wasser); }
.hm-card__text { font-size: .9063rem; line-height: 1.6; color: var(--text-leise); }
.hm-card__text p { margin: 0 0 12px; }
.hm-card__foot { margin-top: auto; padding-top: 10px; }
.hm-card__foot--center { text-align: center; }

.hm-checks { list-style: none; margin: 2px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; line-height: 1.45; color: var(--navy); }
.hm-checks svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--wasser); }

/* ---------- Impact (dark) ---------- */
.hm-impact { position: relative; overflow: hidden; margin-top: 8px; background: var(--navy); }
.hm-impact::before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background: url('../img/hero-sensor-quadrat.jpg') right center / cover no-repeat;
}
.hm-impact::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,36,55,.97) 0%, rgba(13,36,55,.86) 48%, rgba(13,36,55,.62) 100%);
}
.hm-impact__inner { position: relative; z-index: 1; padding-block: 88px 96px; }

/* Tabbed showcase: intro + tabs (5 parts) | stage (6 parts). Flex only. */
.hm-im { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 0 -28px; }
.hm-im__intro { width: 45.45%; padding: 0 28px; }
.hm-im__stage-col { width: 54.55%; padding: 0 28px; }
.hm-im__intro .hm-lead { margin-bottom: 32px; }

.hm-im-tabs { display: flex; flex-direction: column; }
.hm-im-tab {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; width: 100%;
  margin: 0 0 10px; padding: 16px 20px 16px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.hm-im-tab:last-child { margin-bottom: 0; }
.hm-im-tab:hover { background: rgba(255,255,255,.05); }
.hm-im-tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.hm-im-tab__icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 16px;
  border-radius: 12px; background: rgba(255,255,255,.06); color: var(--hm-on-dark); transition: background-color .25s ease, color .25s ease;
}
.hm-im-tab__icon svg { width: 20px; height: 20px; }
.hm-im-tab__body { flex: 1; min-width: 0; padding-top: 9px; }
.hm-im-tab__top { display: flex; align-items: baseline; justify-content: space-between; }
.hm-im-tab__title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.hm-im-tab__step { flex: none; padding-left: 12px; font-size: .8125rem; color: var(--hm-on-dark); font-variant-numeric: tabular-nums; }
.hm-im-tab__desc {
  display: block; max-height: 0; opacity: 0; overflow: hidden;
  font-size: .9375rem; line-height: 1.55; color: var(--hm-on-dark);
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.hm-im-tab[aria-selected="true"] { background: rgba(255,255,255,.08); border-color: rgba(249,178,51,.45); }
.hm-im-tab[aria-selected="true"] .hm-im-tab__icon { background: rgba(249,178,51,.16); color: var(--signal); }
.hm-im-tab[aria-selected="true"] .hm-im-tab__desc { max-height: 120px; opacity: 1; margin-top: 4px; }

.hm-im-controls { display: flex; align-items: center; margin-top: 22px; font-size: .875rem; color: var(--hm-on-dark); }
.hm-im-controls b { color: #fff; font-weight: 500; }

/* Stage: only the active panel is rendered; showing a panel restarts its animations. */
.hm-im-stage {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 520px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(8,26,41,.45);
}
.hm-im-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hm-im-panel { position: relative; flex: 1; display: flex; flex-direction: column; padding: 32px; color: #fff; animation: hm-im-in .45s ease both; }
.hm-im-panel[hidden] { display: none; }
@keyframes hm-im-in { from { opacity: 0; transform: translateY(10px); } }
.hm-im-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hm-im-panel__title { padding-right: 12px; font-size: .9375rem; font-weight: 600; }
.hm-im-live { flex: none; display: inline-flex; align-items: center; font-size: .8125rem; color: #45d19a; }
.hm-im-live::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; animation: hm-im-pulse 1.8s infinite; }
@keyframes hm-im-pulse { 0% { box-shadow: 0 0 0 0 rgba(69,209,154,.6); } 100% { box-shadow: 0 0 0 10px rgba(69,209,154,0); } }
.hm-im-box { position: relative; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(6,20,35,.55); }

/* Capture */
.hm-im-capture { flex: 1; display: flex; align-items: center; }
.hm-im-device { width: 47.6%; padding-right: 22px; }
.hm-im-device svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.hm-im-waves path { opacity: 0; animation: hm-im-wave 2.4s infinite; }
.hm-im-waves path:nth-child(2) { animation-delay: .3s; }
.hm-im-waves path:nth-child(3) { animation-delay: .6s; }
@keyframes hm-im-wave { 0% { opacity: 0; } 30% { opacity: 1; } 80%, 100% { opacity: 0; } }
.hm-im-readings { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-im-reading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding: 14px 16px; }
.hm-im-reading:last-child { margin-bottom: 0; }
.hm-im-reading span { padding-right: 10px; font-size: .8125rem; color: var(--hm-on-dark); }
.hm-im-reading b { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-im-reading small { margin-left: 3px; font-size: .75rem; font-weight: 500; color: var(--hm-on-dark); }
.hm-im-reading em { width: 100%; padding-top: 2px; font-size: .75rem; font-style: normal; color: #7f93a8; }
.hm-im-uplink { display: flex; flex-wrap: wrap; margin-top: 18px; font-size: .8125rem; color: var(--hm-on-dark); }
.hm-im-uplink span { margin-right: 18px; }
.hm-im-uplink b { color: #fff; font-weight: 500; }

/* Analyse */
.hm-im-kpis { display: flex; margin: 0 -5px 12px; }
.hm-im-kpi { flex: 1; min-width: 0; margin: 0 5px; padding: 14px 16px; font-size: .875rem; color: var(--hm-on-dark); }
.hm-im-kpi span { display: block; margin-bottom: 4px; font-size: .75rem; }
.hm-im-kpi b { font-size: 1.375rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.hm-im-kpi i { margin-left: 6px; font-size: .75rem; font-style: normal; white-space: nowrap; }
.hm-im-up { color: var(--signal); }
.hm-im-down { color: #45d19a; }
.hm-im-chart { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 16px; }
.hm-im-chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; font-size: .8125rem; color: var(--hm-on-dark); }
.hm-im-legend { display: flex; }
.hm-im-legend span { margin-left: 14px; }
.hm-im-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }
.hm-im-plot { position: relative; flex: 1; display: flex; min-height: 180px; }
.hm-im-plot svg { display: block; flex: 1; width: 100%; min-height: 180px; }
.hm-im-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: hm-im-draw 1.6s .2s ease-out forwards; }
@keyframes hm-im-draw { to { stroke-dashoffset: 0; } }
.hm-im-marker {
  position: absolute; left: 50%; top: 30%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 6px rgba(249,178,51,.2);
}
.hm-im-flag {
  position: absolute; left: calc(50% + 18px); top: calc(30% - 44px); padding: 5px 10px; white-space: nowrap;
  border: 1px solid rgba(249,178,51,.5); border-radius: 8px; background: var(--navy);
  font-size: .8125rem; font-weight: 500; color: var(--signal);
}
.hm-im-days { display: flex; justify-content: space-between; padding-top: 6px; font-size: .6875rem; color: #7f93a8; }

/* Respond */
.hm-im-respond { flex: 1; display: flex; align-items: center; }
.hm-im-rule { flex: 1; min-width: 0; margin-right: 24px; padding: 18px; }
.hm-im-rule__label { margin-bottom: 10px; font-size: .75rem; color: var(--hm-on-dark); }
.hm-im-rule__row { display: flex; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; line-height: 1.45; }
.hm-im-rule__label + .hm-im-rule__row { padding-top: 0; border-top: 0; }
.hm-im-rule__row > span { flex: none; width: 52px; padding: 2px 10px 0 0; font-size: .75rem; font-weight: 600; color: var(--signal); }
:lang(de) .hm-im-rule__row > span { width: 76px; } /* "Außerdem" is longer than "Also" */
.hm-im-rule__row > div { flex: 1; min-width: 0; }
.hm-im-channels { display: flex; flex-wrap: wrap; margin-top: 4px; }
.hm-im-channels i { margin: 0 6px 0 0; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .75rem; font-style: normal; color: #d4e1ec; }
.hm-im-phone {
  flex: none; width: 220px; height: 400px; padding: 10px; border-radius: 34px;
  background: #0a1622; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.hm-im-screen {
  position: relative; height: 100%; overflow: hidden; padding: 34px 10px 10px; border-radius: 26px;
  background: linear-gradient(180deg, #2b5a7e, #13324f 60%, var(--navy));
}
.hm-im-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 70px; height: 18px; border-radius: 10px; background: #0a1622; transform: translateX(-50%); }
.hm-im-clock { margin-bottom: 2px; text-align: center; font-size: 2.5rem; font-weight: 400; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hm-im-date { margin-bottom: 12px; text-align: center; font-size: .6875rem; color: #c9d6e3; }
.hm-im-notif {
  margin-bottom: 6px; padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,.92); color: var(--navy);
  opacity: 0; transform: translateY(-12px); animation: hm-im-drop .5s ease-out forwards;
}
.hm-im-notif:nth-of-type(2) { animation-delay: .7s; }
.hm-im-notif:nth-of-type(3) { animation-delay: 1.4s; }
@keyframes hm-im-drop { to { opacity: 1; transform: none; } }
.hm-im-notif--ok { background: rgba(225,248,238,.95); }
.hm-im-notif__top { display: flex; align-items: center; margin-bottom: 3px; font-size: .625rem; color: #5b6f84; }
.hm-im-notif__top time { margin-left: auto; }
.hm-im-app { display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 6px; border-radius: 4px; background: var(--wasser); color: #fff; }
.hm-im-app--ok { background: #2fa77a; }
.hm-im-app svg { width: 9px; height: 9px; }
.hm-im-notif strong { display: block; font-size: .75rem; }
.hm-im-notif p { margin: 1px 0 0; font-size: .6875rem; line-height: 1.35; color: #34495e; }

/* narrow two-column range: the Respond panel wraps taller, so all panels share its height */
@media (min-width: 1001px) and (max-width: 1200px) {
  .hm-im-stage { min-height: 600px; }
  .hm-im-panel { padding: 28px; }
  .hm-im-rule { margin-right: 18px; }
  .hm-im-phone { width: 200px; height: 400px; border-radius: 30px; }
  .hm-im-screen { padding-top: 30px; border-radius: 22px; }
  .hm-im-clock { font-size: 2rem; }
  .hm-im-date { margin-bottom: 10px; }
  .hm-im-notif { margin-bottom: 6px; padding: 8px 10px; }
}
@media (max-width: 1000px) {
  .hm-im__intro, .hm-im__stage-col { width: 100%; }
  .hm-im__stage-col { padding-top: 36px; }
}
@media (max-width: 620px) {
  .hm-im { margin: 0 -18px; }
  .hm-im__intro, .hm-im__stage-col { padding-left: 18px; padding-right: 18px; }
  .hm-im-panel { padding: 20px; }
  .hm-im-capture { flex-direction: column; align-items: stretch; }
  .hm-im-device { width: 100%; padding: 0 0 16px; }
  .hm-im-device svg { max-width: 150px; }
  .hm-im-kpis { flex-wrap: wrap; margin-bottom: 2px; }
  .hm-im-kpi { flex: 1 1 40%; margin-bottom: 10px; }
  .hm-im-kpi:last-child { flex-basis: 100%; }
  .hm-im-flag { left: 50%; top: calc(30% - 50px); transform: translateX(-50%); }
  .hm-im-respond { flex-direction: column; }
  .hm-im-rule { width: 100%; margin: 0 0 20px; }
  .hm-im-phone { width: 200px; height: 386px; border-radius: 30px; }
  .hm-im-screen { padding-top: 30px; border-radius: 22px; }
  .hm-im-clock { font-size: 1.75rem; }
  .hm-im-date { margin-bottom: 10px; }
  .hm-im-notif { margin-bottom: 6px; padding: 8px 10px; }
  /* every panel gets the Respond panel's height, so autoplay never shifts the page */
  .hm-im-stage { min-height: 790px; }
  .hm-im-capture { justify-content: center; }
  .hm-im-readings { flex: none; }
}
@media (max-width: 360px) { .hm-im-stage { min-height: 900px; } }

/* ---------- About ---------- */
.hm-about__img { display: block; width: 100%; height: auto; border-radius: var(--hm-radius); box-shadow: 0 24px 48px -28px rgba(13, 36, 55, .45); }
.hm-about__text .hm-h2 { margin-bottom: 18px; }
.hm-message { position: relative; margin: 0 0 26px; padding: 4px 0 0 30px; border-left: 3px solid var(--signal); }
.hm-message blockquote { margin: 0; }
.hm-message blockquote p { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--navy); }
.hm-message blockquote p + p { margin-top: 12px; }
.hm-message blockquote p:first-child::before { content: "\201C"; margin-right: 2px; color: var(--signal); font-weight: 700; }
.hm-message blockquote p:last-child::after { content: "\201D"; margin-left: 2px; color: var(--signal); font-weight: 700; }
:lang(de) .hm-message blockquote p:first-child::before { content: "\201E"; }
:lang(de) .hm-message blockquote p:last-child::after { content: "\201C"; }
.hm-message figcaption { display: flex; flex-direction: column; margin-top: 16px; }
.hm-message figcaption strong { font-size: 1rem; font-weight: 600; color: var(--navy); }
.hm-message figcaption span { font-size: .875rem; color: var(--text-leise); }

/* ---------- Stories carousel (maps to Elementor's Nested/Loop Carousel) ---------- */
.hm-stories { padding-top: 0; }
.hm-track {
  position: relative; display: flex; overflow-x: auto; margin: 0 -12px; padding: 8px 0 12px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.hm-track::-webkit-scrollbar { display: none; }
.hm-track:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.hm-slide { display: flex; flex: 0 0 33.3333%; padding: 0 12px; scroll-snap-align: start; }
.hm-story__row { display: flex; align-items: center; gap: 14px; }
.hm-story__row > div { flex: 1; min-width: 0; }
.hm-story .hm-card__title { margin-bottom: 4px; font-size: 1rem; }
.hm-story .hm-card__text { font-size: .875rem; }
.hm-round {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--hm-line-strong);
  color: var(--wasser); transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hm-round svg { width: 15px; height: 15px; }
.hm-round:hover { background: var(--wasser); border-color: var(--wasser); color: #fff; }

.hm-dots { display: flex; justify-content: center; gap: 2px; margin-top: 14px; min-height: 24px; }
.hm-dot { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hm-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #cfe2ea; transition: background-color .2s ease, transform .2s ease; }
.hm-dot:hover::before { background: var(--hm-line-strong); }
.hm-dot[aria-current="true"]::before { background: var(--wasser); transform: scale(1.12); }

/* ---------- Contact ---------- */
.hm-contact { position: relative; overflow: hidden; background: linear-gradient(180deg, #e7f2f9 0%, #f3f8fc 100%); }
.hm-contact__wave { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: 140px; color: #fff; opacity: .55; }
.hm-contact__inner { position: relative; z-index: 1; padding-block: 76px 84px; }
.hm-contact-card { padding: 32px; border-radius: 14px; background: #fff; box-shadow: 0 22px 46px -30px rgba(13, 36, 55, .45); }
.hm-reach { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--hm-line); }
.hm-reach a { display: inline-flex; align-items: center; gap: 14px; font-size: 1.0625rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.hm-reach a:hover { color: var(--wasser); }
.hm-reach svg { width: 22px; height: 22px; flex: none; color: var(--wasser); }
.hm-addr { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.hm-addr > div { width: 50%; padding: 0 14px; }
.hm-addr h3 { margin: 0 0 6px; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.hm-addr p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--text-leise); }

/* ---------- Responsive ---------- */
/* Label + seven logos need ~1015px of viewport on one line; below 1060px the label sits above them. */
@media (max-width: 1060px) {
  .hm-strip__label { width: 100%; padding: 0 0 6px; text-align: center; }
  .hm-logos { flex-basis: 100%; justify-content: center; }
  .hm-logos li { padding: 10px 18px; }
}
@media (max-width: 1000px) {
  .hm-col--3 { width: 50%; }
  .hm-col--wide-t { width: 100%; }
  .hm-part, .hm-part--45, .hm-part--55 { width: 100%; }
  .hm-part + .hm-part { padding-top: 40px; }
  .hm-slide { flex-basis: 50%; }
  .hm-hero { min-height: 636px; }
}
@media (max-width: 860px) {
  .hm-hero { background-position: 72% center; }
  .hm-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 55%, rgba(255,255,255,.5) 100%); }
  .hm-hero__inner { padding-block: 52px 104px; }
  .hm-hero { min-height: 571px; }
}
@media (max-width: 640px) {
  .hm-section { padding-block: 60px; }
  .hm-col--3, .hm-col--2 { width: 100%; }
  .hm-slide { flex-basis: 86%; }
  .hm-hero { min-height: 0; }
  .hm-logos li { padding: 10px 14px; }
  .hm-logos .hm-logo { transform: scale(.85); }
  .hm-impact__inner { padding-block: 56px; }
  .hm-message { padding-left: 20px; }
  .hm-addr > div { width: 100%; }
  .hm-addr > div + div { padding-top: 18px; }
  .hm-contact-card { padding: 24px; }
  .hm-head-row > :first-child { padding-right: 0; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-track { scroll-behavior: auto; }
  .hm-impact *, .hm-impact *::before { animation: none !important; transition: none !important; }
  .hm-im-notif { opacity: 1; transform: none; }
  .hm-im-draw { stroke-dashoffset: 0; }
  .hm-im-waves path { opacity: 1; }
  .hm-card:hover, .hm-card:hover .hm-card__img { transform: none; }
  .hm-card__img--alt { animation: none !important; }
}

/* ---------- Dashboards marquee ----------
   Continuous one-row loop: the track holds two identical groups and slides by
   exactly half its width. Item spacing is padding (not gap) so both halves match. */
.hm-dash { background: linear-gradient(180deg, #e9f2f8 0%, #f5f9fc 100%); overflow: hidden; padding-bottom: 56px; }
.hm-dash .hm-head-row { margin-bottom: 4px; }
.hm-marquee {
  --h: 460px; --speed: 160s;
  overflow: hidden; padding: 30px 0 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hm-marquee__track { display: flex; width: max-content; animation: hm-marquee var(--speed) linear infinite; }
.hm-marquee:hover .hm-marquee__track,
.hm-marquee.is-paused .hm-marquee__track { animation-play-state: paused; }
.hm-marquee__group { display: flex; align-items: center; }
/* Script-driven (home.js): the CSS loop is replaced so the row can also be dragged, swiped and scrolled */
.hm-marquee.is-js { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hm-marquee.is-js .hm-marquee__track { animation: none; will-change: transform; }
.hm-marquee.is-dragging { cursor: grabbing; }
.hm-marquee.is-dragging .hm-shot { transform: none; }
.hm-marquee:focus-visible { outline: 2px solid var(--wasser); outline-offset: -2px; }
@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hm-shot { flex: none; margin: 0; padding: 0 14px; transition: transform .3s ease; }
.hm-shot:hover { transform: translateY(-6px); }
.hm-shot img { display: block; width: auto; max-width: none; height: var(--h); }
.hm-shot--desktop img { border-radius: 12px; box-shadow: 0 24px 46px -26px rgba(13, 36, 55, .55), 0 0 0 1px rgba(13, 36, 55, .08); }
.hm-bezel { display: block; background: #0e1a26; box-shadow: 0 24px 46px -24px rgba(13, 36, 55, .6), inset 0 0 0 1px rgba(255,255,255,.08); }
.hm-bezel--phone { padding: 10px; border-radius: 42px; }
.hm-bezel--phone img { height: calc(var(--h) - 20px); border-radius: 32px; }
.hm-bezel--tablet { padding: 14px; border-radius: 30px; }
.hm-bezel--tablet img { height: calc(var(--h) - 28px); border-radius: 16px; }

.hm-marquee__toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--hm-line-strong); background: #fff; color: var(--navy);
  font-family: var(--font-body); font-weight: 600; font-size: .8125rem; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.hm-marquee__toggle:hover { border-color: var(--wasser); color: var(--wasser); }
.hm-marquee__toggle svg { width: 14px; height: 14px; }
.hm-marquee__toggle .ic-play, .hm-marquee__toggle.is-paused .ic-pause { display: none; }
.hm-marquee__toggle.is-paused .ic-play { display: block; }

@media (max-width: 1000px) { .hm-marquee { --h: 360px; --speed: 130s; } }
@media (max-width: 640px) {
  .hm-marquee { --h: 230px; --speed: 100s; padding: 20px 0 26px; }
  .hm-shot { padding: 0 9px; }
  /* wide shots are sized by width so each one fits the screen completely */
  .hm-shot--desktop img { width: calc(100vw - 64px); height: auto; }
  .hm-bezel--phone { padding: 6px; border-radius: 26px; }
  .hm-bezel--phone img { height: calc(var(--h) - 12px); border-radius: 20px; }
  .hm-bezel--tablet { padding: 8px; border-radius: 18px; }
  .hm-bezel--tablet img { height: calc(var(--h) - 16px); border-radius: 10px; }
}
/* No motion: a still, swipeable row without the duplicate set or the toggle. */
@media (prefers-reduced-motion: reduce) {
  .hm-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hm-marquee__track { animation: none; }
  .hm-marquee__group[aria-hidden] { display: none; }
  .hm-marquee__toggle { display: none !important; }
  .hm-shot:hover { transform: none; }
}

/* ---------- Data path (icon steps joined by arrows) — shared by Real-time and Technology ----------
   Elementor: a row of Icon Box widgets with arrow Icon widgets between them. */
.hm-flow { display: flex; align-items: flex-start; }
.hm-flow__step {
  flex: none; display: flex; flex-direction: column; align-items: center; width: 84px;
  text-align: center; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--navy); text-decoration: none;
}
.hm-flow__icon {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px;
  border-radius: 50%; background: #fff; border: 1px solid var(--hm-line-strong); color: var(--wasser);
  box-shadow: 0 8px 18px -12px rgba(13, 36, 55, .35); transition: border-color .2s ease, color .2s ease;
}
.hm-flow__icon svg { width: 22px; height: 22px; }
.hm-flow__sep { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 16px; height: 52px; color: #7d9cb0; }
.hm-flow__sep svg { width: 16px; height: 16px; }
.hm-flow--dark .hm-flow__step { color: #fff; }
.hm-flow--dark .hm-flow__icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.hm-flow--dark .hm-flow__sep { color: rgba(255,255,255,.55); }
a.hm-flow__step:hover .hm-flow__icon, a.hm-flow__step:focus-visible .hm-flow__icon { border-color: var(--signal); color: var(--signal); }

/* ---------- Real-time data (dark, photo background) ---------- */
.hm-rt {
  background:
    linear-gradient(90deg, rgba(8,26,41,.95) 0%, rgba(8,26,41,.82) 45%, rgba(8,26,41,.5) 100%),
    var(--navy) url('../img/bg-mountain-lake.jpg') center / cover no-repeat;
}
.hm-rt__inner { display: flex; flex-wrap: wrap; align-items: center; padding-block: 80px; }
.hm-rt__text { width: 48%; padding-right: 48px; }
.hm-rt__text .hm-flow { margin-top: 34px; max-width: 540px; }
.hm-rt__card { width: 52%; }
.hm-rt__card img {
  display: block; width: 100%; height: auto; border-radius: 2.2% / 4.1%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(110,190,235,.18), 0 0 46px -8px rgba(63,169,224,.35);
}

/* ---------- Technology (light, mountain silhouette, radio-controlled slider) ---------- */
.hm-tech__main { padding-block: 80px 36px; background: url('../img/bg-mountains-light.svg') center bottom / 100% auto no-repeat, linear-gradient(180deg, #f6fafd 0%, #eaf2f8 100%); }
.hm-tech__foot { padding-bottom: 28px; background: #e9f2f8; } /* same colour as the front ridge of the SVG */
.hm-tech__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hm-tech__bar .hm-eyebrow { margin: 0; padding: 8px 24px 8px 0; }
.hm-radios { display: flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--hm-line); box-shadow: 0 10px 24px -18px rgba(13, 36, 55, .4); }
.hm-radio {
  display: inline-flex; align-items: center; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--navy); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.hm-radio:hover { background: #f0f7fb; }
.hm-radio:focus-visible { outline: 2px solid var(--wasser); outline-offset: 2px; }
.hm-radio__dot {
  flex: none; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%;
  border: 2px solid #9fc0d3; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.hm-radio[aria-checked="true"] { background: var(--wasser); color: #fff; }
.hm-radio[aria-checked="true"] .hm-radio__dot { border-color: #fff; box-shadow: inset 0 0 0 3px var(--wasser), inset 0 0 0 8px #fff; }

.hm-tech__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; position: relative;
}
.hm-tech__track::-webkit-scrollbar { display: none; }
.hm-tech__slide { flex: 0 0 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; scroll-snap-align: start; padding-block: 8px; }
.hm-tech__text { width: 38%; padding-right: 40px; }
.hm-tech__title { margin: 0; }
.hm-tech__visual { width: 62%; }
.hm-tech__visual .hm-flow { margin-bottom: 30px; }
.hm-facts { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.hm-fact { display: flex; align-items: flex-start; width: 33.333%; padding: 0 10px; }
.hm-fact__icon {
  flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 12px;
  border-radius: 10px; background: #fff; border: 1px solid var(--hm-line); color: var(--wasser);
}
.hm-fact__icon svg { width: 20px; height: 20px; }
.hm-fact__text { display: flex; flex-direction: column; min-width: 0; }
.hm-fact__text strong { font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--wasser); }
.hm-fact__text span { font-size: .8125rem; line-height: 1.4; color: var(--text-leise); }
.hm-tech__note { margin: 0; font-size: .75rem; color: var(--text-leise); }

@media (max-width: 1000px) {
  .hm-rt__text, .hm-rt__card { width: 100%; }
  .hm-rt__text { padding-right: 0; padding-bottom: 40px; }
  .hm-rt { background:
    linear-gradient(180deg, rgba(8,26,41,.94) 0%, rgba(8,26,41,.82) 55%, rgba(8,26,41,.6) 100%),
    var(--navy) url('../img/bg-mountain-lake.jpg') center / cover no-repeat; }
  .hm-tech__text, .hm-tech__visual { width: 100%; }
  .hm-tech__text { padding: 0 0 28px; }
}
@media (max-width: 640px) {
  .hm-rt__inner { padding-block: 60px; }
  .hm-tech__main { padding-block: 60px 28px; background-size: 220% auto, auto; }
  .hm-tech__foot { padding-bottom: 24px; }
  .hm-tech__bar .hm-eyebrow { width: 100%; padding-right: 0; }
  .hm-radios { width: 100%; }
  .hm-radio { flex: 1; justify-content: center; padding: 8px 6px; font-size: .8125rem; }
  .hm-radio__dot { width: 14px; height: 14px; margin-right: 6px; }
  .hm-fact { width: 100%; padding-bottom: 16px; }
  .hm-fact:last-child { padding-bottom: 0; }
}
/* Narrow screens: five steps share the width, joined by a line instead of arrows. */
@media (max-width: 560px) {
  .hm-flow { position: relative; }
  .hm-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 1px; background: var(--hm-line-strong); }
  .hm-flow--dark::before { background: rgba(255,255,255,.25); }
  .hm-flow__sep { display: none; }
  .hm-flow__step { position: relative; flex: 1 1 0; width: auto; min-width: 0; font-size: .75rem; }
  .hm-flow__icon { width: 42px; height: 42px; margin-bottom: 8px; }
  .hm-flow__icon svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-tech__track { scroll-behavior: auto; }
}
@media (max-width: 360px) { .hm-flow__step { font-size: .6875rem; } }

/* ---------- Reports & alerts ---------- */
.hm-report { background: #fff; }
.hm-report__inner { display: flex; flex-wrap: wrap; align-items: center; }
.hm-report__text { width: 44%; padding-right: 48px; }
.hm-report__media { width: 56%; }
.hm-report__media img { display: block; width: 100%; height: auto; }
.hm-report .hm-h2 span { color: var(--wasser); }
.hm-channels { display: flex; flex-wrap: wrap; margin: 22px 0 6px; padding: 0; list-style: none; }
.hm-channels li {
  display: inline-flex; align-items: center; margin: 0 8px 8px 0; padding: 7px 14px 7px 11px; border-radius: 999px;
  background: #f0f7fb; border: 1px solid var(--hm-line); font-size: .8125rem; font-weight: 600; color: var(--navy);
}
.hm-channels svg { width: 16px; height: 16px; margin-right: 7px; color: var(--wasser); }
.hm-report__block { padding-top: 22px; }
.hm-report__block h3 { margin: 0 0 6px; font-size: 1.1875rem; font-weight: 600; color: var(--navy); }
.hm-report__block p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-leise); }
.hm-report__block strong { font-weight: 600; color: var(--navy); }

@media (max-width: 1000px) {
  .hm-report__text, .hm-report__media { width: 100%; }
  .hm-report__text { padding: 0 0 36px; }
}
@media (max-width: 640px) {
  .hm-channels li { margin-right: 6px; padding: 6px 10px 6px 8px; font-size: .75rem; }
  .hm-channels svg { width: 14px; height: 14px; margin-right: 5px; }
}


/* ---------- Customers (static logo row; grey until hover, colour on touch screens) ---------- */
.hm-customers { background: var(--hm-strip); border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); }
.hm-customers__head { display: flex; flex-direction: column; align-items: center; max-width: 46rem; margin: 0 auto 40px; text-align: center; }
.hm-customers__head .hm-lead { margin-top: 12px; }
.hm-customers__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.hm-cust { display: flex; align-items: center; justify-content: center; padding: 14px 48px; }
.hm-cust img { display: block; width: auto; height: 52px; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.hm-cust:hover img { filter: none; opacity: 1; }
@media (hover: none) { .hm-cust img { filter: none; opacity: 1; } }
/* optical sizes */
.hm-cust--schoenbrunn-group img { height: 58px; }
.hm-cust--rewe-group img { height: 48px; }
.hm-cust--senecura img { height: 56px; }
.hm-cust--ecoplus img { height: 60px; }
.hm-cust--maschinenring img { height: 34px; }
.hm-cust--power-solution img { height: 62px; }
.hm-cust--stadtwerke-wolfsberg img { height: 50px; }

@media (max-width: 1000px) {
  .hm-customers__logos { justify-content: center; }
  .hm-cust { width: 33.333%; padding: 18px 12px; }
}
@media (max-width: 640px) {
  .hm-customers__head { margin-bottom: 24px; }
  .hm-cust { width: 50%; }
  .hm-cust img { max-width: 100%; height: auto; max-height: 46px; }
}
