
/*Sarah******/
.calculator2 {padding: 75px 48px 75px 48px; background-color: #F5F7F9 !important; border-radius:20px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);margin-bottom:48px;max-width:1080px; justify-self:center;}
h2 {margin-bottom:48px;}
.range-slider {margin:0 0 0 0 !important; padding:0 0 0 0 !important;}
.range-slider__value {margin:0 0 0 0 !important; padding:0 0 0 0 !important;}
.range-slider__tick {display:none;}
.range-slider__tick:first-child, .range-slider__tick:last-child {
  display: block;
}
.eingabe input {
    border-radius: var(--Rounded-Corners, 36px);
    border: 1px solid var(--White, #FFF);
    background: var(--White, #FFF);
    box-shadow: 0px -2px 2px 0px rgba(255, 255, 255, 0.10) inset, 0px 2px 2px 2px rgba(0, 0, 0, 0.07) inset;
    font-size: 15px; height:48px;
    padding-left:15px; padding-right:15px;
}

.eingabe input {font-size:18px;}

.eingabe input.input-error {
  border: 1px solid red; 
}

.eingabe input:focus-visible {
  outline: none;
}
.eingabe input {min-width:250px;}
.part__copy {line-height:1.25;}

h3 {margin-bottom:10px;}
.input:focus-visible {border: 1px solid grey !Important;}
@media (max-width: 900px) {padding: 24px 18px; }

/*Sarah******/

.calculator2 .calculations {
   gap: var(--grid-gap);
}

.calculator2 .calculations .calculations__part {
  padding: var(--inner-padding);
}

@media screen and (min-width: 768px) {
 .calculator2 .calculations {
   grid-template-columns: 1fr 1fr;
  }
}

section.calculator2 hr {
  height: 0;
  border: 2px solid var(--border-color);
  margin-top: var(--grid-gap);
}

/* Typography */

section.calculator2 h2 {
  font-size: var(--h2-mobile-size);
  color: var(--h2-color);
}  

section.calculator2 h3 {
  font-size: var(--h3-mobile-size);
  color: var(--h3-color);
}

section.calculator2 .part__copy {
  font-size: var(--copy-mobile-size);
  color: var(--copy-color);
  margin-bottom: 18px;
}

section.calculator2 .result__value {
  font-size: var(--price-mobile-size);
}

@media screen and (min-width: 768px) {
  section.calculator2 h2 { 
    font-size: var(--h2-size); 
  }
  section.calculator2 h3 { 
    font-size: var(--h3-size); 
  }

  section.calculator2 .part__copy { 
    font-size: var(--copy-size); 
  }

  section.calculator2 .select-text {
    font-size: var(--copy-size);
    font-weight: 700;
  }
  
  section.calculator2 .result__value {
    font-size: var(--price-size);
  }
}

/* Custom Select Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #DEDFDE;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  color: inherit;
}

.custom-select-trigger svg{
  width: 18px;
  height: 18px;
  margin-right: 13px;
  transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 105%;
  left: 0;
  padding-left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0px 4px 8px 0px #31323114;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-option::after {
  content: '';
  display: inline-block;
  margin-right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-image: radial-gradient(circle, transparent 40%, var(--primary-color) 41%);
  opacity: 0;
}

.custom-option.selected::after {
  opacity: 1;
}

.custom-option:not(.selected):hover::after {
  opacity: 0.5;
}

/* Range Slider */
.range-slider {
  position: relative;
  width: calc(100% - 20px);
  margin-left: 10px;
}

.range-slider input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 3;
  cursor: pointer;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.range-slider input[type=range]:focus {
  outline: none;
}

/* Thumb Styles */
.range-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  transform: translateY(4px);
  background: var(--primary-color, #ffffff);
  cursor: pointer;
  position: relative;
  z-index: 4;
}

.range-slider input[type=range]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border: none;
  border-radius: 50%;
  transform: translateY(4px);
  background: var(--primary-color, #ffffff);
  cursor: pointer;
  position: relative;
  z-index: 4;
}

/* Thumb Value Styles */
.calculation .range-slider__value {
  height: 24px;
  padding: 0 15px;
}

.calculation .range-slider__value .value {
  display: inline-block;
  position: relative;
  left: calc(var(--progress) * 1%);
  transform: translateX(calc(var(--progress) * -1%));
}

/* Track Styles */
.range-slider__ticks::before,
.range-slider__ticks::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  z-index: 1;
}

.range-slider__ticks::before {
  left: 0;
  right: 0;
  background: var(--secondary-color, #cccccc);
}

.range-slider__ticks::after {
  left: 0;
  background: var(--primary-color, #ffffff);
  width: calc(var(--progress, 50) * 1%);
}

.range-slider__ticks {
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: space-between;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;
  margin: 0 6px;
}

.range-slider__tick {
  width: 8px;
  height: 8px;
  background: var(--secondary-color, #cccccc);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
}

.range-slider__tick:first-child,
.range-slider__tick:last-child {
  width: 12px;
  height: 12px;
}

/* Active tick */
.range-slider__tick.active {
  background: var(--primary-color, #ffffff);
}


section.calculator2 .calculations__part input[type=range]:focus {
  outline: none;
}

section.calculator2 .calculations__part.hidden {
  display: none;
}

section.calculator2 .result__value {
  margin-bottom: 30px;
}

section.calculator2 .calculations__cta button { 
  background: var(--button-color, --primary-color);
}

[popover] {
  margin: auto auto;
  padding: 60px;
  border-radius: 20px;
  overflow-y: auto;
  border: none;
  display: none;
  max-height: 90%;
}

[popover]::backdrop {
  background-color: black;
  opacity: 0.1;
}

[popover]:popover-open {
display: flex;
    flex-direction: column; max-width: 1000px;
}
}

@media screen and (min-width: 768px) {
  [popover] {
    max-width: 80%;
    margin: 30px auto;
  }

  [popover]:popover-open {
    grid-gap: 10px;
  }
}

html, body {
  height: 100%;
}