/* ═══════════════════════════════════════════════════
   SmartHomeAssist – Shared Animations
   Verwendung: alle Seiten
═══════════════════════════════════════════════════ */

/* ── SCROLL REVEAL ── */
.sha-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  .75s cubic-bezier(.22,1,.36,1),
    transform .75s cubic-bezier(.22,1,.36,1);
}
.sha-reveal.sha-in {
  opacity: 1;
  transform: none;
}

/* Stagger-Varianten (per JS als sha-d-N zugewiesen) */
.sha-d-1 { transition-delay:  80ms; }
.sha-d-2 { transition-delay: 160ms; }
.sha-d-3 { transition-delay: 240ms; }
.sha-d-4 { transition-delay: 320ms; }
.sha-d-5 { transition-delay: 400ms; }
.sha-d-6 { transition-delay: 480ms; }

/* Zeilen-Reveal (slide from left) – area-rows */
.sha-reveal-row {
  opacity: 0;
  transform: translateX(-22px);
  transition:
    opacity  .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
}
.sha-reveal-row.sha-in {
  opacity: 1;
  transform: none;
}

/* ── CARD HOVER LIFT ── */
.sha-lift {
  transition:
    transform     .3s cubic-bezier(.34,1.56,.64,1),
    border-color  .3s ease,
    box-shadow    .3s ease !important;
  will-change: transform;
}
.sha-lift:hover {
  transform:    translateY(-5px) !important;
  border-color: rgba(62,180,137,.32) !important;
  box-shadow:   0 16px 44px rgba(62,180,137,.11) !important;
}

/* ── WORD STAGGER ── */
.sha-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  animation: shaWordUp .72s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes shaWordUp { to { opacity:1; transform:none; } }

/* ── GRADIENT SHIMMER TEXT ── */
.sha-shimmer {
  font-style: normal;
  background: linear-gradient(100deg, #3eb489 0%, #01696f 38%, #6ee8b8 56%, #3eb489 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shaShimmer 5s ease-in-out infinite;
}
@keyframes shaShimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* ── CHIP ENTRANCE ── */
.sha-chip-anim {
  opacity: 0;
  transform: translateX(18px);
  animation: shaChipIn .6s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes shaChipIn { to { opacity:1; transform:none; } }

/* ── CTA PULS-RING ── */
.sha-pulse {
  position: relative;
  overflow: hidden;
}
.sha-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: shaPulse 2.6s ease-out infinite;
}
@keyframes shaPulse {
  0%   { box-shadow: 0 0 0 0    rgba(1,105,111,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(1,105,111, 0);  }
  100% { box-shadow: 0 0 0 0    rgba(1,105,111, 0);  }
}

/* ── HERO AKKZENTLINIE SWEEP ── */
.sha-line-sweep {
  transform-origin: left;
  transform: scaleX(0);
  animation: shaLineSweep .8s cubic-bezier(.22,1,.36,1) .15s forwards;
}
@keyframes shaLineSweep { to { transform: scaleX(1); } }

/* ── HERO BADGE FLOAT ── */
.sha-float {
  animation: shaFloat 5s ease-in-out infinite;
}
@keyframes shaFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ── MARQUEE ── */
.sha-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: #1e1e1e;
  padding: 16px 0;
  user-select: none;
}
.sha-marquee-track {
  display: flex;
  width: max-content;
  animation: shaMarquee 28s linear infinite;
}
.sha-marquee-wrap:hover .sha-marquee-track {
  animation-play-state: paused;
}
@keyframes shaMarquee { to { transform: translateX(-50%); } }
.sha-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(240,240,240,.45);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sha-marquee-item svg {
  width: 14px; height: 14px;
  stroke: #3eb489; fill: none;
  stroke-width: 1.7; opacity: .7;
  flex-shrink: 0;
}

/* ── PROZESS-LINIE ── */
.sha-proc-bar {
  height: 2px;
  background: linear-gradient(90deg, #01696f, #3eb489);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.22,1,.36,1);
}
.sha-proc-bar.sha-in { transform: scaleX(1); }

/* ── NAV-LINKS STAGGER (Index) ── */
.sha-nav-stagger .nav-links li {
  opacity: 0;
  transform: translateY(-7px);
  animation: shaNavLi .5s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes shaNavLi { to { opacity:1; transform:none; } }
.sha-nav-stagger .nav-links li:nth-child(1)  { animation-delay: .10s }
.sha-nav-stagger .nav-links li:nth-child(2)  { animation-delay: .17s }
.sha-nav-stagger .nav-links li:nth-child(3)  { animation-delay: .24s }
.sha-nav-stagger .nav-links li:nth-child(4)  { animation-delay: .31s }
.sha-nav-stagger .nav-links li:nth-child(5)  { animation-delay: .38s }
.sha-nav-stagger .nav-links li:nth-child(6)  { animation-delay: .45s }
.sha-nav-stagger .nav-links li:nth-child(7)  { animation-delay: .52s }
.sha-nav-stagger .nav-links li:nth-child(8)  { animation-delay: .59s }
.sha-nav-stagger .nav-links li:nth-child(9)  { animation-delay: .66s }
.sha-nav-stagger .nav-links li:nth-child(10) { animation-delay: .73s }
.sha-nav-stagger .nav-links li:nth-child(11) { animation-delay: .80s }
.sha-nav-stagger .nav-links li:nth-child(12) { animation-delay: .87s }

/* ── NEUE SEKTIONEN (index.html Zusatz-Inhalt) ── */

/* Prozess-Sektion */
.sha-process {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 32px;
}
.sha-process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  position: relative;
  margin-top: 52px;
}
.sha-proc-connector {
  position: absolute;
  top: 30px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  z-index: 0;
  overflow: hidden;
}
.sha-proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}
.sha-process.sha-in .sha-proc-step:nth-child(2) { opacity:1; transform:none; transition-delay: .3s; }
.sha-process.sha-in .sha-proc-step:nth-child(3) { opacity:1; transform:none; transition-delay: .6s; }
.sha-process.sha-in .sha-proc-step:nth-child(4) { opacity:1; transform:none; transition-delay: .9s; }
.sha-process.sha-in .sha-proc-step:nth-child(5) { opacity:1; transform:none; transition-delay:1.2s; }
.sha-proc-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #1e1e1e;
  border: 2px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: border-color .4s, background .4s;
}
.sha-process.sha-in .sha-proc-step .sha-proc-icon {
  border-color: rgba(62,180,137,.45);
  background: rgba(62,180,137,.07);
}
.sha-proc-icon svg {
  width: 22px; height: 22px;
  stroke: rgba(240,240,240,.45); fill: none; stroke-width:1.7;
  transition: stroke .4s;
}
.sha-process.sha-in .sha-proc-step .sha-proc-icon svg { stroke: #3eb489; }
.sha-proc-num {
  position: absolute;
  top: -6px; left: calc(50% + 14px);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #01696f;
  color: #fff;
  font-size: .63rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sha-proc-title { font-size: .88rem; font-weight: 700; color: #f0f0f0; margin-bottom: 7px; }
.sha-proc-desc  { font-size: .78rem; color: rgba(240,240,240,.5); line-height: 1.6; max-width: 16ch; }

/* Eyebrow + Headline (für neue Sektionen) */
.sha-eye {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3eb489;
  margin-bottom: 12px;
}
.sha-sec-h {
  font-size: clamp(26px,3.2vw,40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 0;
  max-width: 26ch;
  text-wrap: balance;
}

/* CTA-Sektion */
.sha-cta {
  padding: 100px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sha-cta::before {
  content: '';
  position: absolute;
  width: 70vw; height: 70vw;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1,105,111,.08), transparent 62%);
  pointer-events: none;
  animation: shaAmbient 16s ease-in-out infinite alternate;
}
@keyframes shaAmbient {
  from { transform: translate(-50%,-50%) scale(1);    }
  to   { transform: translate(-50%,-52%) scale(1.09); }
}
.sha-cta-inner {
  position: relative; z-index:1;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.sha-cta-h {
  font-size: clamp(28px,4vw,50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.sha-cta-sub {
  font-size: .95rem;
  color: rgba(240,240,240,.5);
  line-height: 1.7;
  max-width: 38ch;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .sha-process-steps { grid-template-columns: 1fr 1fr; }
  .sha-proc-connector { display: none; }
  .sha-process { padding: 64px 20px; }
  .sha-cta { padding: 72px 20px; }
}
@media (max-width: 500px) {
  .sha-process-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .sha-reveal,
  .sha-reveal-row,
  .sha-word,
  .sha-chip-anim,
  .sha-line-sweep,
  .sha-proc-step   { opacity:1 !important; transform:none !important; transition:none !important; animation:none !important; }
  .sha-shimmer     { animation: none !important; }
  .sha-pulse::after,
  .sha-float,
  .sha-marquee-track { animation: none !important; }
  .sha-nav-stagger .nav-links li { opacity:1 !important; transform:none !important; animation:none !important; }
}
