/* ==========================================================================
   Hero-Animation im Startbereich
   Abstrakte Endlosschleife im Stil der Keynote: Nacht-Grund, Punktraster,
   blaues Leuchten, wenige Farben. Bühne in 640 × 480 Design-Pixeln,
   skaliert per --k (wird vom Skript gesetzt).
   ========================================================================== */

.ha-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 28px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
}

.ha-hero h1 {
  font-size: clamp(2.5rem, 4.3vw, 3.9rem);
}

.ha-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

.ha-copy .lead {
  max-width: 520px;
  margin-top: 26px;
}

/* --- Bühne ---------------------------------------------------------------- */

.ha-stage-wrap {
  position: relative;
}

.ha-caption {
  min-height: 28px;
  margin-bottom: 12px;
  color: var(--grey);
  font-size: 0.98rem;
  font-weight: 600;
  transition: opacity 300ms var(--ease);
}

.ha-caption.is-swapping {
  opacity: 0;
}

.ha-stage {
  --k: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 45%, rgb(47 111 191 / 42%), rgb(47 111 191 / 8%) 45%, transparent 70%),
    var(--dots),
    var(--night);
  border-radius: var(--radius-l);
  box-shadow:
    0 40px 80px -36px rgb(24 79 144 / 55%),
    0 14px 30px -18px rgb(28 31 36 / 45%);
}

.ha-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 640px;
  height: 480px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  font-family: var(--font);
}

.ha-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 600ms var(--ease),
    visibility 0s linear 600ms;
}

.ha-scene.is-on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 600ms var(--ease),
    visibility 0s;
}

.ha-scene * {
  position: absolute;
  box-sizing: border-box;
}

.ha-scene svg,
.ha-scene svg * {
  position: static;
}

/* Zurücksetzen ohne sichtbare Rückwärts-Übergänge */
.ha-reset,
.ha-reset * {
  transition: none !important;
  animation: none !important;
}

.ha-scene svg.ha-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 640px;
  height: 480px;
  overflow: visible;
}

/* Weiße Karte mit blauem Kopf */
.ha-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 75%);
  font-size: 13px;
}

.ha-card * {
  position: static;
}

.ha-card-head {
  display: block;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.ha-card-foot {
  display: block;
  padding: 9px 14px;
  color: var(--grey);
  border-top: 1px solid var(--line);
  font-size: 12px;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.ha-card-foot.on {
  opacity: 1;
}

.ha-card-foot b {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* Gemeinsame Bausteine */
.ha-in {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 500ms var(--ease),
    transform 600ms var(--ease);
}

.ha-in.on {
  opacity: 1;
  transform: none;
}

/* --- Szene 1 · IT aufbauen ----------------------------------------------- */

.ha-rack {
  top: 60px;
  left: 60px;
  width: 180px;
  height: 340px;
  border: 2px solid rgb(141 182 232 / 55%);
  border-radius: 12px;
  background: rgb(255 255 255 / 2%);
  clip-path: inset(100% 0 0 0 round 12px);
  transition: clip-path 900ms var(--ease);
}

.ha-rack.on {
  clip-path: inset(0 0 0 0 round 12px);
}

.ha-rack::before,
.ha-rack::after {
  position: absolute;
  bottom: -14px;
  width: 22px;
  height: 12px;
  background: rgb(141 182 232 / 40%);
  border-radius: 0 0 4px 4px;
  content: "";
}

.ha-rack::before { left: 18px; }
.ha-rack::after { right: 18px; }

.ha-unit {
  left: 14px;
  width: 148px;
  height: 38px;
  background: #262b33;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 7px;
  opacity: 0;
  transform: translateX(240px);
  transition:
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 300ms var(--ease);
}

.ha-unit.on {
  opacity: 1;
  transform: none;
}

.ha-unit:nth-child(1) { top: 14px; }
.ha-unit:nth-child(2) { top: 62px; }
.ha-unit:nth-child(3) { top: 110px; }
.ha-unit:nth-child(4) { top: 158px; }
.ha-unit:nth-child(5) { top: 206px; }
.ha-unit:nth-child(6) { top: 254px; }

.ha-unit b {
  top: 15px;
  left: 14px;
  width: 64px;
  height: 6px;
  background: rgb(255 255 255 / 10%);
  border-radius: 3px;
}

.ha-unit i {
  top: 15px;
  width: 7px;
  height: 7px;
  background: rgb(255 255 255 / 15%);
  border-radius: 50%;
}

.ha-unit i:nth-of-type(1) { right: 40px; }
.ha-unit i:nth-of-type(2) { right: 27px; }
.ha-unit i:nth-of-type(3) { right: 14px; }

.ha-unit.on i {
  animation: ha-led 1.8s steps(1) infinite;
}

.ha-unit.on i:nth-of-type(1) { background: var(--pastel); animation-delay: 0.3s; }
.ha-unit.on i:nth-of-type(2) { background: var(--white); animation-duration: 2.6s; }
.ha-unit.on i:nth-of-type(3) { background: var(--blue-mid); animation-duration: 1.1s; animation-delay: 0.6s; }
.ha-unit:nth-child(even).on i:nth-of-type(1) { animation-duration: 2.3s; }
.ha-unit:nth-child(3n).on i:nth-of-type(3) { animation-duration: 1.7s; }

.ha-switch {
  top: 70px;
  left: 330px;
  width: 250px;
  height: 46px;
  background: #262b33;
  border: 1px solid rgb(141 182 232 / 30%);
  border-radius: 9px;
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition:
    opacity 500ms var(--ease),
    transform 600ms var(--ease);
}

.ha-switch.on {
  opacity: 1;
  transform: none;
}

.ha-switch i {
  top: 14px;
  width: 13px;
  height: 16px;
  background: #14171b;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 2px;
}

.ha-switch i.lit {
  border-color: var(--pastel);
  box-shadow: 0 0 10px rgb(141 182 232 / 80%);
}

.ha-wires {
  position: absolute;
  inset: 0;
  width: 640px;
  height: 480px;
  overflow: visible;
}

.ha-wire {
  fill: none;
  stroke: var(--pastel);
  stroke-width: 1.6;
  stroke-opacity: 0.55;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 900ms var(--ease);
}

.ha-wire.on {
  stroke-dashoffset: 0;
}

.ha-ws {
  top: 330px;
  width: 74px;
  height: 70px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 500ms var(--ease),
    transform 600ms var(--ease);
}

.ha-ws.on {
  opacity: 1;
  transform: none;
}

.ha-ws-1 { left: 328px; }
.ha-ws-2 { left: 418px; }
.ha-ws-3 { left: 508px; }

.ha-ws::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 48px;
  background: #262b33;
  border: 1.5px solid rgb(141 182 232 / 55%);
  border-radius: 7px;
  content: "";
}

.ha-ws::after {
  position: absolute;
  top: 52px;
  left: 27px;
  width: 20px;
  height: 10px;
  background: rgb(141 182 232 / 40%);
  border-radius: 0 0 3px 3px;
  content: "";
}

.ha-ws b {
  z-index: 1;
  top: 10px;
  left: 10px;
  width: 54px;
  height: 28px;
  background: linear-gradient(135deg, rgb(47 111 191 / 70%), rgb(141 182 232 / 25%));
  border-radius: 3px;
  opacity: 0;
  transition: opacity 600ms var(--ease) 400ms;
}

.ha-ws.on b {
  opacity: 1;
}

.ha-packet {
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgb(141 182 232 / 90%);
  opacity: 0;
  offset-rotate: 0deg;
}

.ha-packet.on {
  animation: ha-travel 1.7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* --- Szene 2 · KI hört zu ------------------------------------------------- */

.ha-mic {
  top: 46px;
  left: 60px;
  width: 64px;
  height: 64px;
  background: var(--blue);
  border: 1px solid rgb(141 182 232 / 45%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgb(47 111 191 / 70%);
}

.ha-mic svg {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.ha-ring {
  inset: -1px;
  border: 2px solid var(--pastel);
  border-radius: 50%;
  opacity: 0;
}

.on > .ha-ring {
  animation: ha-ring 2s ease-out infinite;
}

.on > .ha-ring + .ha-ring {
  animation-delay: 1s;
}

.ha-rec {
  top: 52px;
  left: 142px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 75%);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ha-rec i {
  position: static;
  width: 8px;
  height: 8px;
  background: #e5484d;
  border-radius: 50%;
  animation: ha-blink 1.2s ease-in-out infinite;
}

.ha-rec span {
  position: static;
  font-variant-numeric: tabular-nums;
}

.ha-wave {
  top: 76px;
  left: 142px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 440px;
  height: 40px;
}

.ha-wave i {
  position: static;
  flex: 1;
  height: 100%;
  background: linear-gradient(var(--pastel), var(--blue-mid));
  border-radius: 3px;
  transform: scaleY(0.08);
}

.ha-wave.on i {
  animation: ha-wave 0.9s ease-in-out infinite alternate;
}

.ha-wave.on i:nth-child(3n) { animation-duration: 0.62s; }
.ha-wave.on i:nth-child(4n+1) { animation-duration: 1.1s; animation-delay: -0.3s; }
.ha-wave.on i:nth-child(5n+2) { animation-duration: 0.74s; animation-delay: -0.5s; }
.ha-wave.on i:nth-child(7n) { animation-duration: 1.3s; animation-delay: -0.2s; }

.ha-wave.is-quiet i {
  animation-play-state: paused;
  transform: scaleY(0.08);
  transition: transform 400ms var(--ease);
}

.ha-transcript {
  top: 138px;
  left: 60px;
  width: 520px;
  min-height: 112px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 70%);
  font-size: 17px;
  line-height: 1.45;
}

.ha-transcript p {
  position: static;
  margin: 0;
}

.ha-transcript span {
  position: static;
  opacity: 0;
  transition:
    opacity 200ms var(--ease),
    color 300ms var(--ease),
    background 300ms var(--ease);
}

.ha-transcript span.on {
  opacity: 1;
}

.ha-transcript span.key {
  color: var(--blue);
  background: rgb(24 79 144 / 10%);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgb(24 79 144 / 10%);
}

.ha-fields {
  top: 270px;
  left: 60px;
  display: grid;
  gap: 6px;
  width: 520px;
}

.ha-field {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 400ms var(--ease),
    transform 500ms var(--ease);
}

.ha-field.on {
  opacity: 1;
  transform: none;
}

.ha-field * {
  position: static;
}

.ha-field small {
  color: var(--pastel);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ha-field b {
  font-weight: 600;
}

.ha-field.ok b {
  color: var(--pastel);
}

/* --- Szene 3 · KI bedient den Computer ----------------------------------- */

.ha-prompt {
  top: 34px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 520px;
  height: 56px;
  padding: 0 16px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(141 182 232 / 25%);
  border-radius: 14px;
  font-size: 14.5px;
  white-space: nowrap;
}

.ha-prompt * {
  position: static;
}

.ha-prompt .ha-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--blue-mid);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.ha-prompt [data-ha-type] {
  overflow: hidden;
  text-overflow: clip;
}

.ha-caret {
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 1px;
  background: var(--pastel);
  animation: ha-blink 1s steps(1) infinite;
}

.ha-app {
  top: 108px;
  left: 60px;
  width: 520px;
  height: 278px;
  overflow: hidden;
  background: #f5f7f6;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 75%);
}

.ha-app-bar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: #e3e7e5;
}

.ha-app-bar * {
  position: static;
}

.ha-app-bar i {
  width: 9px;
  height: 9px;
  background: #c6ccc9;
  border-radius: 50%;
}

.ha-app-bar span {
  margin-left: 10px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
}

.ha-app-side {
  top: 32px;
  left: 0;
  bottom: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  width: 124px;
  padding: 12px 10px;
  background: #e9eceb;
}

.ha-app-side span {
  position: static;
  padding: 6px 10px;
  color: var(--grey);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.ha-app-side span.on {
  color: var(--white);
  background: var(--blue);
}

.ha-app-title {
  top: 44px;
  left: 144px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.ha-label {
  left: 144px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 600;
}

.ha-input {
  left: 144px;
  width: 352px;
  height: 30px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d9dedc;
  border-radius: 7px;
  font-size: 13.5px;
  transition:
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.ha-input.focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(24 79 144 / 16%);
}

.ha-l1 { top: 74px; }
.ha-i1 { top: 88px; }
.ha-l2 { top: 126px; }
.ha-i2 { top: 140px; }
.ha-l3 { top: 178px; }
.ha-i3 { top: 192px; width: 160px; }

.ha-app-btn {
  top: 236px;
  left: 144px;
  height: 30px;
  padding: 0 16px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 30px;
  transition: transform 150ms var(--ease), background 150ms var(--ease);
}

.ha-app-btn.press {
  background: #123c6e;
  transform: scale(0.95);
}

.ha-pdf {
  top: 190px;
  left: 330px;
  width: 92px;
  height: 118px;
  padding: 14px 12px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 20px 40px -14px rgb(0 0 0 / 70%);
  font-size: 11px;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 300ms var(--ease),
    transform 900ms cubic-bezier(0.5, 0, 0.2, 1);
}

.ha-pdf * {
  position: static;
}

.ha-pdf b {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 6px;
  color: var(--white);
  background: #e5484d;
  border-radius: 4px;
  font-size: 10px;
}

.ha-pdf span {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.ha-pdf i {
  display: block;
  height: 4px;
  margin-top: 6px;
  background: #e3e7e5;
  border-radius: 2px;
}

.ha-pdf.on {
  opacity: 1;
  transform: none;
}

.ha-pdf.fly {
  opacity: 0;
  transform: translate(150px, 210px) scale(0.25) rotate(8deg);
  transition:
    opacity 500ms var(--ease) 500ms,
    transform 1000ms cubic-bezier(0.5, 0, 0.2, 1);
}

.ha-folder {
  top: 402px;
  left: 430px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  color: var(--white);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(141 182 232 / 30%);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.ha-folder * {
  position: static;
}

.ha-folder svg {
  width: 20px;
  height: 20px;
  fill: var(--pastel);
}

.ha-folder.hit {
  border-color: var(--pastel);
  box-shadow: 0 0 24px rgb(141 182 232 / 55%);
}

.ha-cursor {
  top: 0;
  left: 0;
  z-index: 5;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translate(600px, 460px);
  transition:
    transform 700ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 300ms var(--ease);
}

.ha-cursor svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 50%));
}

.ha-cursor.on {
  opacity: 1;
}

.ha-click {
  top: -10px;
  left: -10px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue-mid);
  border-radius: 50%;
  opacity: 0;
}

.ha-click.go {
  animation: ha-click 450ms ease-out;
}


/* --- Szene 3 · Touren planen (ländliche Karte) ----------------------------- */

.ha-map {
  top: 48px;
  left: 40px;
  width: 360px;
  height: 384px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
    0 30px 60px -28px rgb(0 0 0 / 85%),
    0 0 0 1px rgb(255 255 255 / 12%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.ha-map.on {
  opacity: 1;
}

.ha-map > svg {
  display: block;
  width: 360px;
  height: 384px;
}

.hm-land { fill: #efe6d2; }
.hm-field { stroke: rgb(140 115 75 / 18%); stroke-width: 1; }
.hm-f1 { fill: #e7dbc0; }
.hm-f3 { fill: #ece2cc; }
.hm-plow { fill: url(#hm-acker); }
.hm-plow2 { fill: url(#hm-acker2); }
.hm-plow-bg { fill: #e4d6b8; }
.hm-plow-bg2 { fill: #eadfc6; }
.hm-furrow { stroke: rgb(140 110 70 / 24%); stroke-width: 1; }
.hm-forest { fill: url(#hm-baeume); }
.hm-forest-bg { fill: #d6d2b2; }
.hm-tree { fill: #bdb893; }
.hm-contour { fill: none; stroke: rgb(140 105 60 / 32%); stroke-width: 1; }
.hm-river { fill: none; stroke: #b6cde2; stroke-width: 7; stroke-linecap: round; }
.hm-lake { fill: #b6cde2; }
.hm-road-case { fill: none; stroke: #d5c4a0; stroke-width: 8; stroke-linecap: round; }
.hm-road { fill: none; stroke: #fbf7ee; stroke-width: 3; stroke-linecap: round; }
.hm-road-main { stroke-width: 5; }
.hm-houses { fill: #b7a585; }

.hm-place {
  fill: #6b5b40;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #efe6d2;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.hm-route {
  fill: none;
  stroke: var(--blue-mid);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgb(255 255 255 / 95%));
}

.hm-home {
  top: 186px;
  left: 166px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(45 45 43 / 35%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.hm-home.on {
  opacity: 1;
}

.hm-home svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
}

.hm-pin {
  width: 22px;
  height: 22px;
  color: transparent;
  background: #fbf7ee;
  border: 2px solid #9a8763;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 300ms var(--ease),
    transform 450ms cubic-bezier(0.3, 1.5, 0.5, 1),
    background 300ms var(--ease),
    border-color 300ms var(--ease),
    color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

.hm-pin.on {
  opacity: 1;
  transform: none;
}

.hm-pin.set {
  color: var(--white);
  background: var(--blue-mid);
  border-color: var(--white);
  box-shadow: 0 4px 12px rgb(24 79 144 / 50%);
  transform: scale(1.12);
}

.hm-car {
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--blue);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(47 111 191 / 30%);
  opacity: 0;
  offset-rotate: 0deg;
}

.hm-car.on {
  animation: ha-drive 6s linear infinite;
}

.ha-ai {
  top: 48px;
  left: 424px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--blue-mid);
  border-radius: 999px;
  box-shadow: 0 0 24px rgb(47 111 191 / 70%);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ha-ai.press {
  background: var(--blue);
  transform: scale(0.95);
}

.ha-tour {
  top: 100px;
  left: 424px;
  width: 176px;
}

.ha-stop {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 350ms var(--ease),
    transform 450ms var(--ease);
}

.ha-stop.on {
  opacity: 1;
  transform: none;
}

.ha-stop b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--white);
  background: var(--blue-mid);
  border-radius: 50%;
  font-size: 10.5px;
}

.ha-stop span {
  font-weight: 600;
}

.ha-stop em {
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- Szene 4 · Aufmaß aus dem Grundriss ------------------------------------ */

.hp-sheet {
  top: 40px;
  left: 40px;
  width: 330px;
  height: 400px;
  overflow: hidden;
  background:
    linear-gradient(rgb(24 79 144 / 5%) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, rgb(24 79 144 / 5%) 1px, transparent 1px) 0 0 / 10px 10px,
    #fbfcfb;
  border-radius: 8px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 85%);
}

.hp-sheet > svg {
  display: block;
  width: 330px;
  height: 400px;
}

.hp-room { fill: rgb(47 111 191 / 0%); }
.hp-room.on { fill: rgb(47 111 191 / 15%); transition: fill 500ms var(--ease); }
.hp-outer { fill: none; stroke: var(--ink); stroke-width: 6; }
.hp-inner { fill: none; stroke: var(--ink); stroke-width: 3; }
.hp-gap { fill: none; stroke: #fbfcfb; stroke-width: 8; }
.hp-door { fill: none; stroke: var(--ink); stroke-width: 1; }
.hp-win { fill: #fbfcfb; stroke: var(--ink); stroke-width: 1; }

.hp-door.on,
.hp-win.on {
  stroke: var(--blue-mid);
  stroke-width: 2;
  transition: stroke 300ms var(--ease);
}

.hp-win.on { fill: #e3eefb; }
.hp-dimline { fill: none; stroke: rgb(45 45 43 / 55%); stroke-width: 1; }

.hp-dimtext {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.hp-hit {
  fill: rgb(141 182 232 / 0%);
  stroke: rgb(47 111 191 / 0%);
  stroke-width: 1.5;
}

.hp-hit.on {
  fill: rgb(141 182 232 / 45%);
  stroke: var(--blue-mid);
  transition: fill 300ms var(--ease), stroke 300ms var(--ease);
}

.hp-roomname {
  fill: var(--grey);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
}

.hp-areatext {
  fill: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  opacity: 0;
}

.hp-areatext.on {
  opacity: 1;
  transition: opacity 400ms var(--ease);
}

.hp-titleblock { fill: none; stroke: rgb(45 45 43 / 55%); stroke-width: 1; }
.hp-title { fill: var(--ink); font-size: 10.5px; font-weight: 700; }
.hp-scale { fill: var(--grey); font-size: 9px; }

.hp-scan {
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  background: linear-gradient(rgb(47 111 191 / 0%), rgb(47 111 191 / 22%));
  border-bottom: 2px solid var(--blue-mid);
  box-shadow: 0 8px 18px -4px rgb(47 111 191 / 45%);
  opacity: 0;
  transform: translateY(-46px);
}

.hp-scan.on {
  animation: hp-scan 2600ms linear forwards;
}

.hp-list {
  top: 56px;
  left: 392px;
  width: 212px;
}

.ha-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 350ms var(--ease);
}

.ha-calc-row.on {
  opacity: 1;
}

.ha-calc-row span {
  color: var(--grey);
}

.ha-calc-row b {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.ha-calc-row.hp-sum {
  border-top: 2px solid var(--line);
  border-bottom: 0;
}

.ha-calc-row.hp-sum span {
  color: var(--ink);
  font-weight: 700;
}

.hp-list .ha-card-foot {
  color: var(--blue);
  font-weight: 600;
}

/* --- Szene 6 · Telefonie --------------------------------------------------- */

.ht-line {
  fill: none;
  stroke: rgb(141 182 232 / 22%);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  transition: stroke 300ms var(--ease);
}

.ht-line.on {
  stroke: var(--pastel);
  stroke-dasharray: none;
}

.ht-line.fail {
  stroke: rgb(229 72 77 / 45%);
  stroke-dasharray: 4 6;
}

.ht-line.ok {
  stroke: var(--white);
  stroke-dasharray: none;
}

.ht-caller {
  top: 200px;
  left: 40px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-content: center;
  width: 164px;
  height: 80px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(141 182 232 / 28%);
  border-radius: 16px;
}

.ht-caller > * {
  position: static;
}

.ht-caller .ht-icon {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue-mid);
  border-radius: 50%;
}

.ht-icon svg,
.ht-hub svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-icon .ha-ring {
  position: absolute;
  border-color: var(--pastel);
}

.ht-caller strong {
  align-self: end;
  font-size: 14px;
}

.ht-caller small {
  color: var(--on-dark);
  font-size: 12px;
}

.ht-hub {
  top: 194px;
  left: 264px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  background: var(--blue);
  border: 1px solid rgb(141 182 232 / 45%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgb(47 111 191 / 70%);
}

.ht-hub svg {
  position: static;
  width: 32px;
  height: 32px;
}

.ht-hub small {
  top: 102px;
  left: 50%;
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ht-end {
  left: 456px;
  display: grid;
  align-content: center;
  gap: 3px;
  width: 150px;
  height: 58px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(141 182 232 / 28%);
  border-radius: 14px;
  transition:
    border-color 300ms var(--ease),
    box-shadow 300ms var(--ease),
    opacity 500ms var(--ease),
    transform 600ms var(--ease);
}

.ht-end > * {
  position: static;
}

.ht-end-1 { top: 70px; }
.ht-end-2 { top: 211px; }
.ht-end-3 { top: 352px; }

.ht-end strong {
  font-size: 13.5px;
}

.ht-end small {
  color: var(--on-dark-quiet);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ht-end.ringing {
  border-color: var(--pastel);
  animation: ht-ringing 0.9s ease-in-out infinite;
}

.ht-end.ringing small {
  color: var(--pastel);
}

.ht-end.busy {
  border-color: rgb(229 72 77 / 50%);
}

.ht-end.busy small {
  color: #ff8a8e;
}

.ht-end.ok {
  border-color: var(--pastel);
  box-shadow: 0 0 26px rgb(141 182 232 / 40%);
}

.ht-end.ok small {
  color: var(--white);
}

/* --- Szene 7 · Zeiterfassung ----------------------------------------------- */

.hz-terminal {
  top: 70px;
  left: 60px;
  width: 180px;
  height: 290px;
  background: #262b33;
  border: 1.5px solid rgb(141 182 232 / 35%);
  border-radius: 24px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 80%);
}

.hz-screen {
  top: 18px;
  left: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  height: 130px;
  background: linear-gradient(160deg, #2a4d78, #1b2c44);
  border-radius: 14px;
  transition: background 400ms var(--ease);
}

.hz-screen * {
  position: static;
}

.hz-screen b {
  color: var(--white);
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hz-screen small {
  color: rgb(255 255 255 / 75%);
  font-size: 12.5px;
  font-weight: 600;
}

.hz-screen.ok {
  background: linear-gradient(160deg, #3b80d0, #1f5ba3);
}

.hz-reader {
  top: 190px;
  left: 56px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 2px solid rgb(141 182 232 / 45%);
  border-radius: 50%;
}

.hz-reader svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--pastel);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hz-chip {
  top: 392px;
  left: 92px;
  display: grid;
  place-items: center;
  width: 116px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  border: 1px solid rgb(141 182 232 / 50%);
  border-radius: 10px;
  box-shadow: 0 16px 30px -12px rgb(0 0 0 / 70%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 400ms var(--ease),
    transform 800ms cubic-bezier(0.45, 0, 0.2, 1);
}

.hz-chip.on {
  opacity: 1;
  transform: none;
}

.hz-chip.tap {
  opacity: 1;
  transform: translateY(-121px);
}

.hz-week {
  top: 70px;
  left: 290px;
  width: 300px;
}

.hz-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: end;
  height: 170px;
  padding: 14px 18px 12px;
}

.hz-bars > span {
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  justify-items: center;
  height: 100%;
}

.hz-bars em {
  grid-row: 1;
  align-self: end;
  color: var(--grey);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 300ms var(--ease) 400ms;
}

.hz-bars i {
  grid-row: 2;
  align-self: end;
  width: 100%;
  background: linear-gradient(var(--blue-mid), var(--blue));
  border-radius: 6px 6px 3px 3px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 700ms var(--ease);
}

.hz-bars > span:nth-child(1) i { height: 92%; }
.hz-bars > span:nth-child(2) i { height: 97%; }
.hz-bars > span:nth-child(3) i { height: 83%; }
.hz-bars > span:nth-child(4) i { height: 100%; }
.hz-bars > span:nth-child(5) i { height: 48%; background: linear-gradient(var(--pastel), var(--blue-mid)); }

.hz-bars small {
  grid-row: 3;
  align-self: end;
  color: var(--grey);
  font-size: 11px;
  font-weight: 700;
}

.hz-bars > span.on i {
  transform: none;
}

.hz-bars > span.on em {
  opacity: 1;
}

.hz-bars > span.today.on i {
  animation: ha-blink 1.6s ease-in-out infinite;
}

/* --- Szene 8 · Speicher und Backup ----------------------------------------- */

.hb-line {
  fill: none;
  stroke: var(--pastel);
  stroke-width: 1.8;
  stroke-opacity: 0.55;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.hb-line.on {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 800ms var(--ease);
}

.hb-src {
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 144px;
  height: 52px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(141 182 232 / 28%);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.hb-src svg,
.hb-off svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pastel);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hb-src-1 { top: 110px; }
.hb-src-2 { top: 214px; }
.hb-src-3 { top: 318px; }

.hb-src.ok {
  border-color: var(--pastel);
  box-shadow: 0 0 24px rgb(141 182 232 / 40%);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.hb-nas {
  top: 130px;
  left: 262px;
  width: 120px;
  height: 220px;
  background: #262b33;
  border: 1.5px solid rgb(141 182 232 / 40%);
  border-radius: 16px;
  box-shadow: 0 0 40px rgb(47 111 191 / 35%);
}

.hb-bay {
  left: 14px;
  right: 14px;
  height: 30px;
  background: #14171b;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 6px;
}

.hb-bay:nth-child(1) { top: 18px; }
.hb-bay:nth-child(2) { top: 58px; }
.hb-bay:nth-child(3) { top: 98px; }
.hb-bay:nth-child(4) { top: 138px; }

.hb-bay i {
  top: 11px;
  left: 8px;
  width: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-mid), var(--pastel));
  border-radius: 3px;
}

.hb-bay.on i {
  transition: width 2400ms var(--ease);
}

.hb-bay:nth-child(1).on i { width: 62px; }
.hb-bay:nth-child(2).on i { width: 48px; }
.hb-bay:nth-child(3).on i { width: 70px; }
.hb-bay:nth-child(4).on i { width: 36px; }

.hb-nas small {
  top: 186px;
  left: 0;
  right: 0;
  color: var(--pastel);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.hb-off {
  top: 140px;
  left: 460px;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-content: center;
  width: 150px;
  height: 72px;
  padding: 0 14px;
  color: var(--white);
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(141 182 232 / 28%);
  border-radius: 14px;
}

.hb-off > * {
  position: static;
}

.hb-off svg {
  grid-row: span 2;
  align-self: center;
}

.hb-off strong {
  font-size: 13px;
}

.hb-off small {
  color: var(--on-dark-quiet);
  font-size: 11.5px;
}

.hb-off.ok {
  border-color: var(--pastel);
  transition: border-color 300ms var(--ease);
}

.hb-off.ok small {
  color: var(--white);
}

.hb-snaps {
  top: 232px;
  left: 460px;
  display: grid;
  gap: 6px;
  width: 150px;
}

.hb-snaps span {
  position: static;
  padding: 5px 10px;
  color: var(--on-dark);
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 350ms var(--ease),
    transform 450ms var(--ease);
}

.hb-snaps span::before {
  position: static;
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--pastel);
  border-radius: 50%;
  content: "";
}

.hb-snaps span.on {
  opacity: 1;
  transform: none;
}

.hb-block {
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 0 10px 3px rgb(141 182 232 / 85%);
  opacity: 0;
  offset-rotate: 0deg;
}

.hb-block.on {
  animation: ha-travel 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hb-block.back {
  background: var(--pastel);
  box-shadow: 0 0 12px 4px rgb(141 182 232 / 95%);
}

/* --- Szene 9 · Webseiten --------------------------------------------------- */

.hw-browser {
  top: 32px;
  left: 40px;
  width: 384px;
  height: 250px;
  overflow: hidden;
  background: #f5f7f6;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 80%);
}

.hw-bar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #e3e7e5;
}

.hw-bar * {
  position: static;
}

.hw-bar i {
  width: 9px;
  height: 9px;
  background: #c6ccc9;
  border-radius: 50%;
}

.hw-bar span {
  min-width: 150px;
  height: 18px;
  margin-left: 10px;
  padding: 0 10px;
  color: var(--grey);
  background: var(--white);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}

.hw-page {
  top: 30px;
  left: 0;
  right: 0;
  bottom: 0;
}

.hw-b,
.hw-p {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 400ms var(--ease),
    transform 500ms var(--ease);
}

.hw-b.on,
.hw-p.on {
  opacity: 1;
  transform: none;
}

.hw-nav { top: 14px; left: 18px; width: 348px; height: 12px; background: linear-gradient(90deg, var(--ink) 0 52px, transparent 52px 210px, #d5dbd8 210px 250px, transparent 250px 262px, #d5dbd8 262px 302px, transparent 302px 314px, var(--blue) 314px); border-radius: 4px; }
.hw-title { top: 44px; left: 18px; width: 190px; height: 18px; background: var(--ink); border-radius: 5px; }
.hw-title2 { top: 66px; left: 18px; width: 150px; height: 18px; background: var(--blue); border-radius: 5px; }
.hw-text { top: 94px; left: 18px; width: 180px; height: 26px; background: repeating-linear-gradient(#d5dbd8 0 6px, transparent 6px 11px); border-radius: 3px; }
.hw-btn { top: 128px; left: 18px; width: 92px; height: 22px; background: var(--blue); border-radius: 12px; }
.hw-img { top: 44px; left: 226px; width: 140px; height: 104px; background: radial-gradient(circle at 70% 30%, rgb(141 182 232 / 90%), transparent 55%), linear-gradient(135deg, var(--blue-mid), var(--blue)); border-radius: 10px; }
.hw-card { top: 164px; width: 108px; height: 42px; background: var(--white); border: 1px solid #dfe4e2; border-radius: 8px; box-shadow: 0 8px 16px -12px rgb(0 0 0 / 40%); }
.hw-c1 { left: 18px; }
.hw-c2 { left: 138px; }
.hw-c3 { left: 258px; }

.hw-phone {
  top: 32px;
  left: 452px;
  width: 148px;
  height: 250px;
  overflow: hidden;
  background: #f5f7f6;
  border: 6px solid #2a3038;
  border-radius: 26px;
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 80%), 0 0 0 1px rgb(141 182 232 / 30%);
}

.hw-p-nav { top: 14px; left: 12px; width: 112px; height: 10px; background: linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 96px, var(--blue) 96px); border-radius: 3px; }
.hw-p-img { top: 32px; left: 12px; width: 112px; height: 58px; background: radial-gradient(circle at 70% 30%, rgb(141 182 232 / 90%), transparent 55%), linear-gradient(135deg, var(--blue-mid), var(--blue)); border-radius: 8px; }
.hw-p-title { top: 100px; left: 12px; width: 96px; height: 12px; background: var(--ink); border-radius: 4px; }
.hw-p-text { top: 120px; left: 12px; width: 112px; height: 22px; background: repeating-linear-gradient(#d5dbd8 0 5px, transparent 5px 10px); border-radius: 3px; }
.hw-p-btn { top: 150px; left: 12px; width: 70px; height: 18px; background: var(--blue); border-radius: 10px; }
.hw-p-card { top: 180px; left: 12px; width: 112px; height: 44px; background: var(--white); border: 1px solid #dfe4e2; border-radius: 8px; }

.hw-search {
  top: 298px;
  left: 40px;
  width: 278px;
  padding: 12px 14px 12px;
}

.hw-ai {
  top: 298px;
  left: 332px;
  width: 268px;
  padding: 12px 14px 14px;
}

.hw-label {
  display: block;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hw-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}

.hw-field svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--grey);
  stroke-width: 2;
  stroke-linecap: round;
}

.hw-result {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 400ms var(--ease),
    transform 500ms var(--ease),
    background 400ms var(--ease),
    border-color 400ms var(--ease);
}

.hw-result.on {
  opacity: 1;
  transform: none;
}

.hw-result.hit {
  background: rgb(24 79 144 / 6%);
  border-left-color: var(--blue);
}

.hw-result small {
  color: var(--grey);
  font-size: 11px;
}

.hw-result strong {
  color: var(--blue);
  font-size: 13px;
}

.hw-result span {
  color: var(--grey);
  font-size: 11.5px;
}

.hw-ai p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.hw-ai p span {
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

.hw-ai p span.on {
  opacity: 1;
}

.hw-source {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgb(24 79 144 / 7%);
  border: 1px solid rgb(24 79 144 / 22%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition:
    opacity 400ms var(--ease),
    box-shadow 500ms var(--ease);
}

.hw-source.on {
  opacity: 1;
  box-shadow: 0 0 0 4px rgb(141 182 232 / 35%);
}

/* --- Keyframes -------------------------------------------------------------- */

@keyframes ha-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes ha-led {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.25; }
}

@keyframes ha-travel {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes ha-ring {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes ha-wave {
  0% { transform: scaleY(0.12); }
  100% { transform: scaleY(1); }
}

@keyframes ha-drive {
  0% { offset-distance: 0%; opacity: 0; }
  4%, 96% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes hp-scan {
  0% { opacity: 0; transform: translateY(-46px); }
  6%, 92% { opacity: 1; }
  100% { opacity: 0; transform: translateY(400px); }
}

@keyframes ht-ringing {
  0%, 100% { box-shadow: 0 0 0 0 rgb(141 182 232 / 0%); }
  50% { box-shadow: 0 0 0 6px rgb(141 182 232 / 22%); }
}

@keyframes ha-click {
  0% { opacity: 1; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* --- Responsiv ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .ha-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .ha-hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-wave.on i,
  .ha-packet.on,
  .hb-block.on,
  .hm-car.on,
  .hp-scan.on,
  .ht-end.ringing,
  .hz-bars > span.today.on i,
  .on > .ha-ring {
    animation: none !important;
  }
}

.ha-transcript p::before { content: "„"; }
.ha-transcript p::after { content: "“"; }
