/* BaseStep: Schwebende Scrollleiste für Maus/Trackpad (js/scrollbar.js)
   Das Skript setzt .cs auf <html>, erst dann ist die native Leiste weg. Ohne JavaScript und auf
   Handy/Tablet (kein hover/pointer:fine) bleibt die normale Leiste des Browsers. */
html.cs{scrollbar-width:none}
html.cs::-webkit-scrollbar{display:none}

/* Greiffläche am rechten Rand, über Inhalt und Navigation (z-index 40) */
.cs-bar{position:fixed;top:0;right:0;bottom:0;width:16px;z-index:200;opacity:0;transition:opacity .3s}
.cs-bar.is-on,.cs-bar:hover,html.cs-drag .cs-bar{opacity:1}
.cs-bar.is-off{display:none}

/* Schieber ohne Schiene: hell und halbdurchsichtig, passt über Hero, Schwarz und Grün. Höhe und Lage setzt das Skript. */
.cs-thumb{position:absolute;top:0;right:3px;width:4px;min-height:40px;border-radius:99px;background:rgba(242,241,238,.5);
  transition:width .2s,background .2s;will-change:transform}
.cs-bar:hover .cs-thumb,html.cs-drag .cs-thumb{width:6px;background:rgba(242,241,238,.9)}

/* Während des Ziehens keine Textauswahl */
html.cs-drag,html.cs-drag body{user-select:none;-webkit-user-select:none}

@media (prefers-reduced-motion:reduce){
  .cs-bar,.cs-thumb{transition:none}
}
