.energy-savings-widget{
    display: grid;
    grid-template-columns: 8fr 20fr;
    background: var(--color-heavy);
    background: var(--color-custom);
    color: white;
    padding: 30px 30px 25px 30px;
    border-radius: 20px;
    gap: 20px;
}

@media (min-width: 768px){
    .d-mt40{
        margin-top: 40px;
    }
}
.energy-savings-widget .icon{
    max-width: 50px;
}

.energy-savings-widget :is(h2, p, span, h3){
    color: white;
}

.energy-savings-widget h3{
    margin-bottom: 10px;
}

.energy-savings-widget .infotext{
    margin-top: 20px;
    font-size: 12px;
    font-style: italic;
}

.energy-savings-widget h2{
    margin-top: 10px;
    margin-bottom: 0;
}

p.esw-introtext{
    font-size: 13px !important;
    margin-top: 10px !important;
}

ul.esw-list{
    list-style: none;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.esw-list li{
    border: solid 1px white;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    min-width: 150px;
    font-size: 18px;
    font-weight: 400;
    transition: all 250ms;
    flex: 1 1 0px;
}
.esw-list-4{
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.esw-list-3{
    grid-template-columns: 1fr 1fr 1fr;
}
.esw-list li:hover{
    background: rgba(255,255,255,0.1);
    cursor: pointer;
}
.esw-list li img{
    max-width: 60px;
    display: block;
    margin: auto;
}

.esw-list li span{
    display: block;
    font-size: 12px;
    margin-top: 10px;
}

.esw-price{
    font-size: 90px;
    font-weight: 600;
    line-height: 1em;
}

.energy-savings-widget a.esw-to-nerd-calc{
    background: transparent;
    color: white;
    text-decoration: underline;
    text-transform: uppercase;
    font-weight: 600;
}

.energy-savings-widget button.esw-try-again{
    background: transparent;
    color: white;
    text-decoration: underline;
}

.energy-savings-widget button.esw-try-again:hover{
}

.energy-savings-widget .flex-buttons{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.esw-icon-list{
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    list-style: none;
    margin-bottom: 24px;
}
.esw-icon-list img{
    max-width: 30px;
}

/*
    Responsive Anpassungen
*/
@media (max-width: 768px){
    .energy-savings-widget{
        grid-template-columns: 1fr;
    }

    .esw-list{
        display: grid;
    }
    .esw-list.esw-list-sm-1{
        grid-template-columns: 1fr;
    }

    .esw-list li{
        min-width: auto;
        font-size: 15px;
    }

    .esw-price {
        font-size: 70px;
    }
}

@media (max-width: 1024px){
    .esw-list.esw-list-sm-2{
        grid-template-columns: 1fr 1fr;
    }
}

/* Result page: user input left, calculation card right */
.esw-result-layout{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}
@media (min-width: 640px){
    .esw-result-layout{
        flex-wrap: nowrap;
    }
}

.esw-result-summary{
    flex: 0 1 240px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.esw-result-summary h4{
    margin: 0 0 12px 0;
    font-size: 1em;
    font-weight: 600;
    color: white;
}
.esw-summary-list{
    margin: 0;
    padding: 0;
    list-style: none;
}
.esw-summary-list dt{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
}
.esw-summary-list dt:first-child{
    margin-top: 0;
}
.esw-summary-list dd{
    margin: 4px 0 0 0;
    font-size: 15px;
    font-weight: 500;
    color: white;
}

.esw-recommendation{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Single product: card next to summary */
.esw-recommendation--single{
    grid-template-columns: 1fr;
    flex: 1 1 320px;
    max-width: 380px;
}
@media (max-width: 639px){
    .esw-recommendation--single{
        margin-left: auto;
        margin-right: auto;
    }
}

.esw-recommendation__card{
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.esw-recommendation img{
    max-width: 80px;
}

.esw-recommendation--single .esw-recommendation__card img{
    max-width: 120px;
    display: block;
    margin-bottom: 12px;
}

.esw-recommendation p{
    margin-bottom: 0;
}

.esw-r-title{
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 16px;
}

.energy-savings-widget ul.ews-r-details{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.ews-r-details li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ews-r-details li:last-child{
    border-bottom: none;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: bold;
}

.esw-icon-list{
    display: none;
}

.esw-icon-list,
.esw-price{
    display: none;
}



input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;

    /* Hides the slider so custom styles can be added */
    background: transparent;
    border-color: transparent;
    color: transparent;
}



/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}



input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: white;
    border-radius: 1.3px;
    border: 0.2px solid #010101;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #367ebd;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: #3071a9;
    border-radius: 1.3px;
    border: 0.2px solid #010101;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: #2a6495;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]:focus::-ms-fill-lower {
    background: #3071a9;
}
input[type=range]::-ms-fill-upper {
    background: #3071a9;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]:focus::-ms-fill-upper {
    background: #367ebd;
}

/*
    Gewinnspiel
*/
.esw-gewinnspiel{
    background: var(--color-main);
    color: black;
    border-radius: 15px;
    padding: 1em;
    margin-bottom: 10px;
}
.esw-gewinnspiel h2{
    color: black;
}

.esw-gewinnspiel div.wpforms-container-full .wpforms-form .wpforms-field {
    padding:0;
    padding-top: 5px;
}
.esw-gewinnspiel div.wpforms-container-full {
    margin: 0;
}
.esw-gewinnspiel div.wpforms-container-full .wpforms-form button[type=submit]{
    background: #222;
    color: white;
    width: 100%;
    border-radius: 8px;
}

.esw-gewinnspiel label a{
    color: black;
    text-decoration: underline !important;
}
