/* Pflicht-Bausteine (bausteine.js): Knopf „nach oben“ und dezente Animationen */

.bs-nach-oben {
  position: fixed; right: 20px; bottom: 24px; z-index: 45;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(24, 28, 36, .78); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background-color .2s ease;
}
.bs-nach-oben.bs-sichtbar { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
.bs-nach-oben:hover { background: rgba(24, 28, 36, .92); }
.bs-nach-oben:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(24, 28, 36, .6); }
.bs-nach-oben svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* am Handy über der Aktionsleiste (und der Leiste der Vorschau) */
@media (max-width: 860px) {
  .bs-nach-oben { right: 14px; width: 42px; height: 42px; }
}

/* Einblenden beim Scrollen: nur wenn bausteine.js läuft (Klasse am <html>) */
.bs-bewegung .bs-ein { opacity: 0; transform: translateY(14px); }
.bs-bewegung .bs-ein.bs-da { opacity: 1; transform: none; transition: opacity .6s ease var(--bs-verzug, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--bs-verzug, 0ms); }
.bs-bewegung-mehr .bs-ein { transform: translateY(28px) scale(.985); }
.bs-bewegung-mehr .bs-ein.bs-da { transition-duration: .8s; }

/* Knöpfe und Karten reagieren leicht beim Darüberfahren */
.bs-bewegung main a[class*="btn"], .bs-bewegung main a[class*="knopf"], .bs-bewegung main button { transition: transform .18s ease, box-shadow .18s ease; }
.bs-bewegung main a[class*="btn"]:hover, .bs-bewegung main a[class*="knopf"]:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .bs-bewegung .bs-ein { opacity: 1; transform: none; }
  .bs-nach-oben { transition: none; }
}
@media print { .bs-nach-oben { display: none; } .bs-bewegung .bs-ein { opacity: 1; transform: none; } }
