   
   
  
        #root { display: flex; justify-content: center; align-items: center; }
        .container { max-width: 500px; margin: auto; padding: 20px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); background: white; }
        label, select, button { width: 98%; padding: 8px; margin-top: 15px; border-radius: 5px;font-weight: bold;margin-bottom: 15px;}
        .button-berechnen {
            background-color: #007bff;
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            border: none;
            padding: 15px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        span {
            color: #181515
        }
        .button-calculate:hover {
            background-color: #0056b3;
        }

        .result { margin-top: 15px; font-weight: bold; text-align: center; }
        .hidden { display: none; }

       

        .slider-container {
            position: relative;
            width: 100%;
            margin-bottom: 25px;
        }

        .slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 8px;
            background: blue;
            border-radius: 5px;
            outline: none;
            cursor: pointer;
            position: relative;
            margin-top: 50px;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: rgb(0, 0, 0);
            border-radius: 50%;
            cursor: pointer;
            position: relative;
            z-index: 2;
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: rgb(0, 0, 0);
            border-radius: 50%;
            cursor: pointer;
        }

        .value-bubble {
            position: absolute;
            top: 10px;
            background-color: rgb(255, 255, 255);
            color: rgb(0, 0, 0);
            padding: 5px 10px;
            border-radius: 10px;
            font-size: 14px;
            white-space: nowrap;
            transform: translateX(-50%);
            transition: left 0.1s;
            border: 1px solid black;
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            margin-bottom: 25px;
        }

        .slider-value {
            margin-top: 5px;
            font-weight: bold;
        }

 


        .hidden {
    display: none;
}


h2 {
    font-size: 26px;
}

#ergebnisContainer {
    display: none; /* Container ist anfangs versteckt */
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.diagramm-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
}

label {
    padding-left: 0px;
}


p#baunebenkosten {
    font-weight: bold;
}
p#hauspreis {
    font-weight: bold;
}
p#gesamt {
    font-weight: bold;
}


h2 {
            text-align: center;
        }

        /* Überschrift für Bildschirmgrößen ab 450px und kleiner */
        @media (max-width: 450px) {
            #large-title {
                display: none; /* Versteckt die große Überschrift */
            }
            #small-title {
                display: block; /* Zeigt die kleine Überschrift */
                text-align: center;
            }
            .diagramm-container canvas {
                width: 250px; /* Verkleinert das Diagramm */
                height: 250px;
            }
        }

        /* Überschrift für größere Bildschirme */
        @media (min-width: 451px) {
            #small-title {
                display: none; /* Versteckt die kleine Überschrift */
            }
            #large-title {
                display: block; /* Zeigt die große Überschrift */
                text-align: center;
            }
        }