/* === Profi Upgrade: Floating WhatsApp, Reveal, Back-to-top === */
/* Nach assets/site.css laden */

.floating-wa{
  position:fixed;
  right:1rem;
  bottom:5.5rem;
  z-index:500;
  display:inline-flex;
  align-items:center;
  gap:.7rem;
  padding:.78rem 1rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(135deg, #35c759, #23a946);
  color:#fff;
  text-decoration:none;
  box-shadow:0 18px 34px rgba(20,80,30,.28);
  font-weight:700;
  line-height:1;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.floating-wa:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 40px rgba(20,80,30,.34);
  text-decoration:none;
}
.floating-wa:active{
  transform:scale(.98);
}
.floating-wa__icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
}
.floating-wa__text{
  white-space:nowrap;
}

.back-to-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  z-index:450;
  width:48px;
  height:48px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--text);
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.back-to-top:hover{
  background:#fff;
}
.back-to-top__icon{
  width:20px;
  height:20px;
  fill:currentColor;
}

.reveal-on-scroll{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .45s ease, transform .45s ease;
}
.reveal-on-scroll.is-visible{
  opacity:1;
  transform:translateY(0);
}

img[loading="lazy"]{
  background:linear-gradient(180deg,#f4faea,#eef6df);
}

:root[data-theme="dark"] .back-to-top{
  background:rgba(29,43,24,.94);
  color:var(--text);
  border-color:var(--border);
}
:root[data-theme="dark"] .floating-wa{
  border-color:rgba(255,255,255,.08);
}

@media (max-width:780px){
  .floating-wa{
    right:.75rem;
    bottom:6rem;
    padding:.74rem .92rem;
  }
  .floating-wa__text{
    display:none;
  }
  .back-to-top{
    right:.75rem;
    bottom:.75rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .floating-wa,
  .back-to-top,
  .reveal-on-scroll{
    transition:none !important;
  }
}
