/* Schritt 16: klare Vektoren, Lichtakzente, animierter Ablauf und Mauszeiger. */
.whatsapp-float {
  min-height: 60px;
}

.whatsapp-float > .whatsapp-brand {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: none;
  transform: none;
}

.home-page .accent-title {
  --accent-idle: #49a2ff;
  text-shadow: 0 0 16px rgba(49, 159, 255, .12);
}

.home-page .hero .accent-title {
  --accent-idle: #147cff;
}

.home-page .accent-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-page .accent-card > * {
  position: relative;
  z-index: 1;
}

.home-page .accent-card::before,
.home-page .accent-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.home-page .accent-card::before {
  background: linear-gradient(110deg, transparent 35%, rgba(103, 219, 255, .025) 44%, rgba(130, 230, 255, .19) 49%, rgba(103, 219, 255, .025) 54%, transparent 63%);
  opacity: 0;
  transform: translateX(-115%);
}

.home-page .accent-card::after {
  border: 1px solid rgba(101, 211, 255, .72);
  background: radial-gradient(ellipse at 100% 0%, rgba(51, 176, 255, .15), transparent 65%);
  box-shadow: inset 0 0 22px rgba(35, 153, 255, .12);
  opacity: .1;
}

.home-page .accent-action {
  position: relative;
  isolation: isolate;
}

.home-page .accent-action::after {
  content: "";
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #a4edff, transparent);
  box-shadow: 0 0 12px 2px rgba(56, 178, 255, .62);
  opacity: .12;
  pointer-events: none;
}

.home-page .main-nav a::after {
  box-shadow: 0 0 12px rgba(42, 162, 255, .45);
}

.home-page :is(.services-eyebrow, .about-eyebrow, .process-eyebrow, .contact-eyebrow)::before {
  box-shadow: 0 0 12px rgba(35, 153, 255, .5);
}

/* Der vorhandene senkrechte Ablauf bleibt vollständig erhalten. */
.home-page #ablauf .process-timeline {
  position: relative;
  max-width: 1120px;
  margin-top: 44px;
}

.home-page #ablauf .process-timeline .process-steps {
  position: relative;
  margin-top: 0;
}

.home-page #ablauf .process-number {
  position: relative;
  z-index: 2;
  transition: color .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.home-page #ablauf .process-flow-rail {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, #147cff, #48bfff 65%, #147cff);
  box-shadow: 0 0 9px rgba(20, 124, 255, .25);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-page #ablauf .process-flow-rail[hidden] {
  display: none;
}

.home-page #ablauf .has-process-flow .process-step::after {
  opacity: 0;
}

.home-page #ablauf .process-traveller {
  position: absolute;
  top: -4.5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcfaff;
  box-shadow: 0 0 7px #a4edff, 0 0 20px 5px rgba(37, 148, 255, .64);
  opacity: 0;
  transform: translate3d(-50%, 0, 0);
}

.home-page #ablauf .process-step.is-current .process-number {
  border-color: #82dbff;
  background: #0d2e51;
  color: #e4faff;
  box-shadow: 0 0 0 5px rgba(39, 151, 255, .07), 0 0 24px rgba(40, 154, 255, .46);
}

/* Eine ruhige Pause zwischen den Leuchtphasen. Nur sichtbare Elemente laufen. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .accent-title {
    animation: makoe-title-light 14s ease-in-out var(--accent-delay, 0s) infinite;
    animation-play-state: paused;
  }

  .home-page .accent-card::before {
    animation: makoe-card-sweep 16s ease-in-out var(--accent-delay, 0s) infinite;
    animation-play-state: paused;
  }

  .home-page .accent-card::after {
    animation: makoe-frame-light 16s ease-in-out var(--accent-delay, 0s) infinite;
    animation-play-state: paused;
  }

  .home-page .accent-action::after {
    animation: makoe-action-light 18s ease-in-out var(--accent-delay, 0s) infinite;
    animation-play-state: paused;
  }

  .home-page.accents-running .accent-visible,
  .home-page.accents-running .accent-visible::before,
  .home-page.accents-running .accent-visible::after {
    animation-play-state: running;
  }
}

@keyframes makoe-title-light {
  0%, 58%, 100% { color: var(--accent-idle); text-shadow: 0 0 16px rgba(49, 159, 255, .12); }
  73% { color: #82dcff; text-shadow: 0 0 10px rgba(70, 192, 255, .56), 0 0 30px rgba(20, 124, 255, .33); }
  85% { color: #5ebcff; text-shadow: 0 0 18px rgba(49, 159, 255, .25); }
}

@keyframes makoe-card-sweep {
  0%, 62% { opacity: 0; transform: translateX(-115%); }
  66% { opacity: 1; transform: translateX(-115%); }
  81% { opacity: 1; transform: translateX(115%); }
  84%, 100% { opacity: 0; transform: translateX(115%); }
}

@keyframes makoe-frame-light {
  0%, 58%, 100% { opacity: .1; }
  73% { opacity: .9; }
  85% { opacity: .22; }
}

@keyframes makoe-action-light {
  0%, 62%, 100% { opacity: .12; }
  77% { opacity: .95; }
  88% { opacity: .22; }
}

@media (hover: hover) and (pointer: fine) {
  .home-page #leistungen .services-goal:hover,
  .home-page #kontakt .contact-book:hover {
    border-color: #63caff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18), 0 0 25px rgba(39, 151, 255, .14);
  }
}

.process-motion-controls { display: contents; }
.process-motion-controls[hidden] { display: none; }

.motion-toggle {
  position: fixed;
  z-index: 30;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #254363;
  border-radius: 999px;
  background: #09192b;
  color: #bdcadb;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
  font: 600 12px/1.5 Inter, Arial, Helvetica, sans-serif;
}

.motion-toggle[hidden],
.motion-toggle .motion-icon-play { display: none; }
.motion-toggle > span {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  padding: 8px 12px;
  border: 1px solid #254363;
  border-radius: 7px;
  background: #0b1e34;
  color: #f6f8fc;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.motion-toggle:focus-visible > span { opacity: 1; visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover > span { opacity: 1; visibility: visible; }
}
.motion-toggle[aria-pressed="true"] .motion-icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-icon-play { display: block; }
.motion-toggle svg { flex: 0 0 18px; color: #78caff; }
.motion-toggle:hover { border-color: #49a2ff; color: #f6f8fc; }
.motion-toggle:focus-visible { outline: 2px solid #49a2ff; outline-offset: 5px; }

html.effects-paused { scroll-behavior: auto; }
.home-page.motion-paused :is(.services-goal, .contact-book, .about-portrait, .button, .header-cta, .process-number) { transition: none; }
.home-page.motion-paused :is(.services-goal, .contact-book, .button, .header-cta):hover,
.home-page.motion-paused .about-person:hover .about-portrait { transform: none; }

@media (max-width: 620px) {
  .home-page #ablauf .process-timeline { margin-top: 32px; }
  .home-page #ablauf .process-flow-rail { left: 19px; }
  .whatsapp-float { width: 60px; min-width: 60px; height: 60px; padding: 14px; }
}

@media (max-width: 820px) {
  .process-motion-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
  }

  .motion-toggle {
    position: static;
    width: auto;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
  }

  .motion-toggle > span {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #ablauf .process-number { transition: none; }
  .home-page #ablauf .process-traveller,
  .motion-toggle { display: none; }
}

@media print {
  .home-page .accent-title,
  .home-page .accent-card::before,
  .home-page .accent-card::after,
  .home-page .accent-action::after { animation: none; }
  .home-page #ablauf .process-traveller,
  .motion-toggle { display: none; }
}
