/* ─────────────────────────────────────────────────────────────
   "Nach oben"-Button — global für alle Seiten
   Wird von back-to-top.js eingebunden. Fest codierte Werte statt
   Seiten-Variablen, damit die Komponente überall gleich aussieht.
   ───────────────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fafafa;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, visibility 0.25s;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.18);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #8b1a2f;
}

.back-to-top:focus-visible {
  outline: 2px solid #8b1a2f;
  outline-offset: 3px;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

.back-to-top svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01ms, visibility 0.01ms;
  }
}
