/* Scroll-Anzeige der Startseite (scroll-anzeige-v1.js): nur ab 1360 px (darunter beginnt der Text links zu nah am Rand), links fest, Tinte auf Wandfarbe, geschaffter Teil in Gold */
.sa { display: none; }
@media (min-width: 1360px) {
  .sa {
    display: block;
    position: fixed;
    left: calc(1.3vw - 20px);   /* Mitte genau zwischen Fensterrand und Kartenrand (2.6vw); Breite 40px */
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 9;                        /* unter dem Seitenwechsel-Dreieck (10), der Leiste (15), dem Menü (30) und dem Burger (40) */
    pointer-events: none;
    color: var(--tinte);
    transition: opacity 300ms ease;
  }
  html.menu-offen .sa { opacity: 0; }

  .sa-spur { position: absolute; left: 0; right: 0; top: 36vh; height: 30vh; }
  .sa-oben, .sa-unten { position: absolute; left: 50%; width: 1px; margin-left: -0.5px; }
  .sa-oben { top: 0; background: var(--gold); }
  .sa-unten { background: color-mix(in srgb, var(--tinte) 22%, transparent); }
  .sa-zahl {
    position: absolute; left: 0; right: 0; top: 0;
    text-align: center;
    font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    will-change: transform;
  }

  .sa-fuss { position: absolute; left: 0; right: 0; bottom: 6vh; height: 23vh; }
  .sa-hinweis, .sa-hoch {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
    transition: opacity 350ms ease, transform 350ms ease;
  }
  .sa-wort {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--sans); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  }
  .sa-pfeil { width: 10px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
  .sa-hinweis .sa-pfeil { animation: sa-wippen 2.4s ease-in-out infinite; }
  @keyframes sa-wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  /* am Ende: "Scroll" weicht, "Nach oben" (Pfeil oben, Wort darunter) erscheint und ist klickbar */
  .sa-hoch {
    margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
    flex-direction: column; opacity: 0; transform: translateY(8px); pointer-events: none;
  }
  .sa--ende .sa-hinweis { opacity: 0; transform: translateY(-8px); }
  .sa--ende .sa-hoch { opacity: 1; transform: none; pointer-events: auto; }
  .sa-hoch:hover { color: var(--gold-text); }
  .sa-hoch:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
}
@media (min-width: 1360px) and (prefers-reduced-motion: reduce) {
  .sa-hinweis .sa-pfeil { animation: none; }
  .sa-hinweis, .sa-hoch, .sa { transition: none; }
}
