.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.calculator-header h3 {
    margin-top: 5px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.running-costs {
    margin-bottom: 5px;
    margin-left: 15px;
}

.running-costs span {
    font-size: 16px;
    font-weight: normal;
    color: #000;
}

.input-group {
    display: flex;
    border-bottom: 1px solid #000;
    width: 100%;
    margin-bottom: 5px;
    color: #000;
    font-size: 16px;
}

.input-group:last-child {
    border-bottom: none;
}

.input-group input,
.input-group select {
    border: 1px solid #000;
    border-radius: 5px;
    margin-left: 10%;
    margin-bottom: 5px;
    align-self: flex-end;
    padding: 5px 5px;
    box-sizing: border-box;
    width: 25%;
    text-align: right;
    font-size: 16px;
}
.input-group select {
    width: 30%;
    text-align: left;
}

.input-group label {
    display: inline-block;
    width: 250px;
    margin-bottom: 5px;
    font-size: 16px;
}

.input-group .merged-input {
    display: flex;
    border: 1px solid #000;
    border-radius: 5px;
    width: 25%;
    margin-left: 10%;
    margin-bottom: 5px;
    padding: 0;
    font-size: 16px;
}

.input-group .merged-input input {
    border: none;
    outline: none;
    padding: 5px;
    width: 50%;
    text-align: right;
    margin-bottom: 0;
    font-size: 16px;
}

.input-group .merged-input .unit {
    width: 50%;
    text-align: left;
    margin-bottom: 0px;
    background-color: #f0f0f0;
    padding: 5px;
    font-size: 16px;
    color: #000;
}

.input-group label.unit {
    width: auto;
    margin-left: 5px;
    font-size: 16px;
    color: #000;
}

:root {
    --slider-width: 90%;
    --result-color: #C00000;
}

.slider-container {
    position: relative;
    width: var(--slider-width);
    margin-bottom: 50px;
    left: 5%;
}

.slider-track {
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(to right, #C00000 50%, #548235 50%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.indicator {
    position: absolute;
    bottom: -22px;
    transform: translateX(-50%);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #000;
    margin-bottom: 5px;
}

.sliderValue {
    position: absolute;
    width: 400px;
    transform: translateX(-50%);
    bottom: -20px;
    text-align: center;
    color: #000;
}

.bewertung-text {
    align-items: center;
    color: white;
    text-align: center;
    padding: 4px;
    font-weight: bold;
}

.nettoeffekt {
    width: 100%;
    height: 2rem;
    padding-top: 4px;
    border: 1px solid var(--result-color);
    border-radius: 10px;
    background-color: var(--result-color);
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.bewertung {
    display: flex;
    width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 25%;
    height: 2rem;
    border: 1px solid color-mix(in srgb, var(--result-color) 10%, white);
    border-radius: 30px;
    background-color: color-mix(in srgb, var(--result-color) 10%, white);
    text-align: center;
    font-weight: bold;
    color: var(--result-color);
    align-items: center;
}

.bewertung::before {
    content: '';
    background-color: var(--result-color);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 15%;
    margin-left: 10%;
    margin-top: 1.5px;
}

.bewertung-long {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    color: #000;
}

.result-line {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    width: 100%;
    margin-bottom: 5px;
    color: #000;
}

.result-line:last-child {
    border-bottom: none;
}

.result-line span {
    width: 50%;
    margin-left: 0;
    margin-bottom: 5px;
    align-self: center;
    text-align: fill;
    font-weight: bold;
}

.result-line span:nth-child(2) {
    text-align: right;
}

@media (max-width: 768px) {
    .input-group:not(.pdf-export-mode *) {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 5px 0;
    }

    .input-group label:not(.unit):not(.pdf-export-mode *) {
        width: 100%;
        margin-bottom: 4px;
    }


    .input-group input:not(.pdf-export-mode *),
    .input-group select:not(.pdf-export-mode *) {
        width: 75%;
        margin-left: 0;
        margin-bottom: 10px;
        align-self: center;
        text-align: left;
    }

    .input-group select:last-child:not(.pdf-export-mode *) {
        width: 100%;
    }

    .input-group label.unit:not(.pdf-export-mode *) {
        width: 20%;
        margin-left: 5%;
        margin-bottom: 4px;
        text-align: left;
        display: inline-block;
    }

    .input-group .merged-input:not(.pdf-export-mode *) {
        width: 100%;
        margin-left: 0;
        margin-bottom: 4px;
        align-self: center;
    }

    .input-group .merged-input input:not(.pdf-export-mode *) {
        width: 60%;
        margin-bottom: 0;
    }

    .input-group .merged-input .unit:not(.pdf-export-mode *) {
        width: 40%;
        margin-bottom: 0;
    }

    .bewertung:not(.pdf-export-mode *) {
        display: flex;
        width: 80%;
        margin-left: 10%;
    }
}