/* =============== WebKit-Browser (Chrome, Safari, Edge) =============== */
/* Gesamte Scrollbar */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
  overflow: visible;
}

/* Pfeile ausblenden */
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Ecke (wenn horizontale + vertikale Scrollbar zusammentreffen) */
body::-webkit-scrollbar-corner {
  background-clip: padding-box;
  background-color: #f5f5f5;
  border: solid #fff;
  border-width: 3px 0 0 3px;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.14);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Track (Hintergrund) */
::-webkit-scrollbar-track {
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 4px;
}
body::-webkit-scrollbar-track-piece {
  background-clip: padding-box;
  background-color: #f5f5f5;
  border: solid #fff;
  border-width: 0 0 0 3px;
  box-shadow:
    inset 1px 0 0 rgba(0,0,0,0.14),
    inset -1px 0 0 rgba(0,0,0,0.07);
}

/* Thumb (der bewegliche Balken) */
::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  background-clip: padding-box;
  border: solid transparent;
  border-width: 1px 1px 1px 6px;
  min-height: 28px;
  padding-top: 100px; /* Abschnitt für runden Abschluss */
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.07);
  transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.4);
}

/* Anpassung für Firefox */
/* schmale Leiste + Farbe des Thumbs */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}
