/* Functional styling;
 * These styles are required for noUiSlider to function.
 * You don't need to change these rules to apply your design.
 */

@font-face {
  font-family: "ABCWalter";
  src: url("../fonts/ABCWalterNeue-Fett.woff2") format("woff2");
  font-weight: 900;
  font-style: bold;
  font-display: swap;
}

.noUi-target,
.noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -ms-touch-action: none;
  font-family: "ABCWalter";
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-target {
  position: relative;
}
.noUi-base,
.noUi-connects {
  width: calc(100% - 1.5vw);
  height: 100%;
  position: relative;
  z-index: 1;
}
/* Wrapper for all connect elements.
 */
.noUi-connects {
  overflow: hidden;
  z-index: 0;
}
.noUi-connect,
.noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  right: -1.5vw;
  height: 100%;
  width: calc(100% - 1.5vw);
  -ms-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  -webkit-transform-style: preserve-3d;
  transform-origin: 0 0;
  transform-style: flat;
}
/* Offset direction
 */
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  left: 0;
  right: auto;
}
/* Give origins 0 height/width so they don't interfere with clicking the
 * connect elements.
 */
.noUi-vertical .noUi-origin {
  top: -100%;
  width: 0;
}
.noUi-horizontal .noUi-origin {
  height: 0;
}
.noUi-handle {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
}
.noUi-touch-area {
  height: calc(100% - 0px);
  width: calc(1vw + 3px);
  background-color: rgb(154, 155, 144);
  position: relative;
  animation: background-colr 0.3s ease;
}

/* Drei vertikale Streifen in der Mitte - alle gleiche Höhe */
.noUi-touch-area::before,
.noUi-touch-area::after {
  /* content: '';
  position: absolute;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: black; */
}
.noUi-touch-area:hover{
  /* background: #9a9b906e; */
  background-color: #bfbfbf;
}

.noUi-touch-area::before {
  left: calc(50% - calc(0.25vw + 1.25px));
}

.noUi-touch-area::after {
  left: calc(50% + 0.25vw);
}

/* Mittlerer Streifen mit background-image begrenzt auf 20%-80% */
.noUi-touch-area {
    /* background-image: linear-gradient(to right, transparent calc(50% - 0.5px), black calc(50% - 0.5px), black calc(50% + 0.5px), transparent calc(50% + 0.5px)); */
    background-size: 100% 50%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
}
.noUi-horizontal .noUi-base .noUi-origin:nth-child(2) .noUi-handle .noUi-touch-area {
    margin-left: 3vw;
}
.noUi-horizontal .noUi-base .noUi-origin:nth-child(3) .noUi-handle .noUi-touch-area {
        margin-left: calc(-1vw - 3px);
}

.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  -webkit-transition: transform 0.1s;
  transition: transform 0.1s;
}
.noUi-state-drag * {
  cursor: inherit !important;
}
/* Slider size and handle placement;
 */
.noUi-horizontal {
  height: 3vw;
}
.noUi-horizontal .noUi-handle {
  width: 3vw;
  height: 3vw;
  right: 0;
  top: 0;
}
.noUi-vertical {
  width: 18px;
}
.noUi-vertical .noUi-handle {
  width: 3vw;
  height: 3vw;
  right: 0;
  bottom: 0;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: -17px;
  right: auto;
}
/* Styling;
 * Giving the connect element a border radius causes issues with using transform: scale
 */
.noUi-target {
  background: #FFFFFF;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.noUi-connects {
  border-radius: 0;
}
.noUi-connect {
  background: #000000;
  position: relative;
  cursor: grab;
}
.noUi-connect:active {
  cursor: grabbing;
}
/* Handles and cursors;
 */
.noUi-draggable {
  cursor: ew-resize;
}
.noUi-vertical .noUi-draggable {
  cursor: ns-resize;
}
.noUi-handle {
  border-radius: 0;
  background: #ffffff;
  cursor: default;
  box-shadow: none;
  font-size: 1vw;
  color: grey;
}
.noUi-active {
  box-shadow: none;
}
/* Handle stripes;
 */
.noUi-handle:before,
.noUi-handle:after {
  display: none;
}
/* Disabled state;
 */
[disabled] .noUi-connect {
  background: #B8B8B8;
}
[disabled].noUi-target,
[disabled].noUi-handle,
[disabled] .noUi-handle {
  cursor: not-allowed;
}
/* Base;
 *
 */
.noUi-pips,
.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-pips {
  position: absolute;
  color: #999;
}
/* Values;
 *
 */
.noUi-value {
  position: absolute;
  white-space: nowrap;
  text-align: center;
}
.noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}
/* Markings;
 *
 */
.noUi-marker {
  position: absolute;
  background: #CCC;
}
.noUi-marker-sub {
  background: #AAA;
}
.noUi-marker-large {
  background: #AAA;
}
/* Horizontal layout;
 *
 */
.noUi-pips-horizontal {
  padding: 10px 0;
  height: 80px;
  top: 100%;
  left: 0;
  width: 100%;
}
.noUi-value-horizontal {
  -webkit-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
  -webkit-transform: translate(50%, 50%);
  transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}
/* Vertical layout;
 *
 */
.noUi-pips-vertical {
  padding: 0 10px;
  height: 100%;
  top: 0;
  left: 100%;
}
.noUi-value-vertical {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
}
.noUi-marker-vertical.noUi-marker {
  width: 5px;
  height: 2px;
  margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
  width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
  width: 15px;
}
.noUi-tooltip {
  display: block;
  position: absolute;
  /* border: 1px solid #D9D9D9; */
  /* border-radius: 3px; */
  color: black;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}
.noUi-horizontal .noUi-tooltip {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
left: 50%;
    bottom: 27.5%;
}
.noUi-vertical .noUi-tooltip {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  top: 50%;
  right: 120%;
}
.noUi-horizontal .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(50%, 0);
  transform: translate(50%, 0);
  left: auto;
  bottom: 10px;
}
.noUi-vertical .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(0, -18px);
  transform: translate(0, -18px);
  top: auto;
  right: 28px;
}

/* Custom text in slider range */
.noUi-connect::after {
  /* content: "ReferenzBibliothek"; */
      /* font-family: "ABCWalter", sans-serif; */

  position: absolute;
  top: 50%;
  left: calc(50% - 2vw);
  transform: translate(calc(-50% + 2vw), -50%);
  color: white;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: center;
  font-size: 2vw;
}

/* Mobile Responsive */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  /* Slider size and handle placement - Mobile 3x */
  .noUi-horizontal {
    height: 9vw;
  }
  
  .noUi-horizontal .noUi-handle {
    width: 9vw;
    height: 9vw;
  }
  
  .noUi-vertical .noUi-handle {
    width: 9vw;
    height: 9vw;
  }
  
  .noUi-touch-area {
    height: calc(100% - 0px);
    width: calc(3vw + 9px);
  }
  
  .noUi-horizontal .noUi-base .noUi-origin:nth-child(2) .noUi-handle .noUi-touch-area {
    margin-left: 9vw;
  }
  
  .noUi-horizontal .noUi-base .noUi-origin:nth-child(3) .noUi-handle .noUi-touch-area {
    margin-left: calc(-3vw - 9px);
  }
  
  .noUi-handle {
    font-size: 3vw;
  }
  
  .noUi-tooltip {
    padding: 0;
  }
  
  .noUi-horizontal .noUi-tooltip {
    /* bottom: 82.5%; */
  }
  
  .noUi-horizontal .noUi-origin > .noUi-tooltip {
    bottom: 30px;
  }
  
  .noUi-vertical .noUi-origin > .noUi-tooltip {
    right: 84px;
  }
  
  /* Custom text in slider range - Mobile */
  .noUi-connect::after {
    left: calc(50% - 6vw);
    transform: translate(calc(-50% + 6vw), -50%);
    font-size: 4vw;
  }
  
  .noUi-base,
  .noUi-connects {
    width: calc(100% - 4.5vw);
  }
  
  .noUi-connect,
  .noUi-origin {
    right: -4.5vw;
    width: calc(100% - 4.5vw);
  }
  
  .noUi-connects {
    width: calc(100% + 4.5vw);
  }

  .noUi-touch-area::after {
    width: 5vw !important; 
    height: 8vw  !important; 
  }
}
