
/*styling der slider für alle browser mit progressbar*/
input[type=range].styled-slider {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    border-color: transparent;
}

/*progress support*/
input[type=range].styled-slider.slider-progress {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--value) - var(--min)) / var(--range));
    --sx: calc(0.5 * 20px + var(--ratio) * (100% - 20px));
}

/*webkit*/
input[type=range].styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #af368c;
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: calc(max((0.7em - 1px - 1px) * 0.5,0px) - 20px * 0.5);
}
input[type=range].styled-slider::-webkit-slider-runnable-track {
    height: 10px;
    border: transparent;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-slider::-webkit-slider-thumb:hover {
    background: #af368c;
}
input[type=range].styled-slider:hover::-webkit-slider-runnable-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-slider::-webkit-slider-thumb:active {
    background: #af368c;
}
input[type=range].styled-slider:active::-webkit-slider-runnable-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-slider.slider-progress:hover::-webkit-slider-runnable-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-slider.slider-progress:active::-webkit-slider-runnable-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*mozilla*/
input[type=range].styled-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    background: #af368c;
    border: none;
    box-shadow: 0 0 2px #000000;
}
input[type=range].styled-slider::-moz-range-track {
    height: max(calc(0.75em - 1px - 1px),0px);
    border: none;
    border-radius: 0.5em;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-slider::-moz-range-thumb:hover {
    background: #af368c;
}
input[type=range].styled-slider:hover::-moz-range-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-slider::-moz-range-thumb:active {
    background: #af368c;
}
input[type=range].styled-slider:active::-moz-range-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-slider.slider-progress::-moz-range-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-slider.slider-progress:hover::-moz-range-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-slider.slider-progress:active::-moz-range-track {
    background: linear-gradient(#af368c,#af368c) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*ms*/
input[type=range].styled-slider::-ms-fill-upper {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-slider::-ms-fill-lower {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #af368c;
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: 0;
    box-sizing: border-box;
}
input[type=range].styled-slider::-ms-track {
    height: 1em;
    border-radius: 0.5em;
    background: #ffffff;
    border: 1px solid #b2b2b2;
    box-shadow: none;
    box-sizing: border-box;
}
input[type=range].styled-slider::-ms-thumb:hover {
    background: #ffffff;
}
input[type=range].styled-slider:hover::-ms-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-slider::-ms-thumb:active {
    background: #ffffff;
}
input[type=range].styled-slider:active::-ms-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-slider.slider-progress::-ms-fill-lower {
    height: max(calc(1em - 1px - 1px),0px);
    border-radius: 0.5em 0 0 0.5em;
    margin: -1px 0 -1px -1px;
    background: #af368c;
    border: 1px solid #b2b2b2;
    border-right-width: 0;
}
input[type=range].styled-slider.slider-progress:active::-ms-fill-lower {
    background: #af368c;
    border-color: #c1c1c1;
}


/*styling des PEM-sliders für alle browser mit progressbar*/
input[type=range].styled-sliderPEM {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    border-color: transparent;
}
  
/*progress support*/
input[type=range].styled-sliderPEM.slider-progressPEM {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--value) - var(--min)) / var(--range));
    --sx: calc(0.5 * 20px + var(--ratio) * (100% - 20px));
}

/*webkit*/
input[type=range].styled-sliderPEM::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--th_orange);
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: calc(max((0.7em - 1px - 1px) * 0.5,0px) - 20px * 0.5);
}
input[type=range].styled-sliderPEM::-webkit-slider-runnable-track {
    height: 10px;
    border: transparent;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-sliderPEM::-webkit-slider-thumb:hover {
    background: var(--th_orange);
}
input[type=range].styled-sliderPEM:hover::-webkit-slider-runnable-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderPEM::-webkit-slider-thumb:active {
    background: var(--th_orange);
}
input[type=range].styled-sliderPEM:active::-webkit-slider-runnable-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderPEM.slider-progressPEM::-webkit-slider-runnable-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-sliderPEM.slider-progressPEM:hover::-webkit-slider-runnable-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-sliderPEM.slider-progressPEM:active::-webkit-slider-runnable-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*mozilla*/
input[type=range].styled-sliderPEM::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    background: var(--th_orange);
    border: none;
    box-shadow: 0 0 2px #000000;
}
input[type=range].styled-sliderPEM::-moz-range-track {
    height: max(calc(0.75em - 1px - 1px),0px);
    border: none;
    border-radius: 0.5em;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-sliderPEM::-moz-range-thumb:hover {
    background: var(--th_orange);
}
input[type=range].styled-sliderPEM:hover::-moz-range-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderPEM::-moz-range-thumb:active {
    background: var(--th_orange);
}
input[type=range].styled-sliderPEM:active::-moz-range-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderPEM.slider-progressPEM::-moz-range-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-sliderPEM.slider-progressPEM:hover::-moz-range-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-sliderPEM.slider-progressPEM:active::-moz-range-track {
    background: linear-gradient(var(--th_orange),var(--th_orange)) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*ms*/
input[type=range].styled-sliderPEM::-ms-fill-upper {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-sliderPEM::-ms-fill-lower {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-sliderPEM::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--th_orange);
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: 0;
    box-sizing: border-box;
}
input[type=range].styled-sliderPEM::-ms-track {
    height: 1em;
    border-radius: 0.5em;
    background: #ffffff;
    border: 1px solid #b2b2b2;
    box-shadow: none;
    box-sizing: border-box;
}
input[type=range].styled-sliderPEM::-ms-thumb:hover {
    background: #ffffff;
}
input[type=range].styled-sliderPEM:hover::-ms-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderPEM::-ms-thumb:active {
    background: #ffffff;
}
input[type=range].styled-sliderPEM:active::-ms-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderPEM.slider-progress::-ms-fill-lower {
    height: max(calc(1em - 1px - 1px),0px);
    border-radius: 0.5em 0 0 0.5em;
    margin: -1px 0 -1px -1px;
    background: var(--th_orange);
    border: 1px solid #b2b2b2;
    border-right-width: 0;
}
input[type=range].styled-sliderPEM.slider-progressPEM:active::-ms-fill-lower {
    background: var(--th_orange);
    border-color: #c1c1c1;
}


/*slider konfiguration für wirtschaftlichkeit*/
input[type=range].styled-sliderP {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    border-color: transparent;
}

/*progress support*/
input[type=range].styled-sliderP.slider-progressP {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--value) - var(--min)) / var(--range));
    --sx: calc(0.5 * 20px + var(--ratio) * (100% - 20px));
}

/*webkit*/
input[type=range].styled-sliderP::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--secondary-text-color);
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: calc(max((0.7em - 1px - 1px) * 0.5,0px) - 20px * 0.5);
}
input[type=range].styled-sliderP::-webkit-slider-runnable-track {
    height: 10px;
    border: transparent;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-sliderP::-webkit-slider-thumb:hover {
    background: var(--secondary-text-color);
}
input[type=range].styled-sliderP:hover::-webkit-slider-runnable-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderP::-webkit-slider-thumb:active {
    background: var(--secondary-text-color);
}
input[type=range].styled-sliderP:active::-webkit-slider-runnable-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderP.slider-progressP::-webkit-slider-runnable-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-sliderP.slider-progressP:hover::-webkit-slider-runnable-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-sliderP.slider-progressP:active::-webkit-slider-runnable-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*mozilla*/
input[type=range].styled-sliderP::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 10px;
    background: var(--secondary-text-color);
    border: none;
    box-shadow: 0 0 2px #000000;
}
input[type=range].styled-sliderP::-moz-range-track {
    height: max(calc(0.75em - 1px - 1px),0px);
    border: none;
    border-radius: 0.5em;
    background: #ffffff;
    box-shadow: none;
}
input[type=range].styled-sliderP::-moz-range-thumb:hover {
    background: var(--secondary-text-color);
}
input[type=range].styled-sliderP:hover::-moz-range-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderP::-moz-range-thumb:active {
    background: var(--secondary-text-color);
}
input[type=range].styled-sliderP:active::-moz-range-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderP.slider-progressP::-moz-range-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #ffffff;
}
input[type=range].styled-sliderP.slider-progressP:hover::-moz-range-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #e5e5e5;
}
input[type=range].styled-sliderP.slider-progressP:active::-moz-range-track {
    background: linear-gradient(var(--secondary-text-color),var(--secondary-text-color)) 0/var(--sx) 100% no-repeat, #f5f5f5;
}

/*ms*/
input[type=range].styled-sliderP::-ms-fill-upper {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-sliderP::-ms-fill-lower {
    background: transparent;
    border-color: transparent;
}
input[type=range].styled-sliderP::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--secondary-text-color);
    border: none;
    box-shadow: 0 0 2px #000000;
    margin-top: 0;
    box-sizing: border-box;
}
input[type=range].styled-sliderP::-ms-track {
    height: 1em;
    border-radius: 0.5em;
    background: #ffffff;
    border: 1px solid #b2b2b2;
    box-shadow: none;
    box-sizing: border-box;
}
input[type=range].styled-sliderP::-ms-thumb:hover {
    background: #ffffff;
}
input[type=range].styled-sliderP:hover::-ms-track {
    background: #e5e5e5;
    border-color: #9a9a9a;
}
input[type=range].styled-sliderP::-ms-thumb:active {
    background: #ffffff;
}
input[type=range].styled-sliderP:active::-ms-track {
    background: #f5f5f5;
    border-color: #c1c1c1;
}
input[type=range].styled-sliderP.slider-progress::-ms-fill-lower {
    height: max(calc(1em - 1px - 1px),0px);
    border-radius: 0.5em 0 0 0.5em;
    margin: -1px 0 -1px -1px;
    background: var(--secondary-text-color);
    border: 1px solid #e9ecef;
    border-right-width: 0;
}
input[type=range].styled-sliderP.slider-progressP:active::-ms-fill-lower {
    background: var(--secondary-text-color);
    border-color: #e9ecef;
}

/* Disabled state for styled-slider */
input[type=range].styled-slider:disabled::-webkit-slider-thumb {
    background: #808080;
    cursor: not-allowed;
}

input[type=range].styled-slider:disabled::-moz-range-thumb {
    background: #808080;
    cursor: not-allowed;
}

input[type=range].styled-slider:disabled::-ms-thumb {
    background: #808080;
    cursor: not-allowed;
}

input[type=range].styled-slider:disabled::-webkit-slider-runnable-track {
    background: #d3d3d3;
    cursor: not-allowed;
}

input[type=range].styled-slider:disabled::-moz-range-track {
    background: #d3d3d3;
    cursor: not-allowed;
}

input[type=range].styled-slider:disabled::-ms-track {
    background: #d3d3d3;
    cursor: not-allowed;
}