  
       
        #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;padding-left: 0px; margin-top: 15px; border-radius: 5px;font-weight: bold; font-size: 22px;}
        .button-calculate {
            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: gray
        }

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

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

        .checkbox-grundstueck-besitz {
            margin-top: 10px;
        }

        .checkbox-grundstueck-besitz label {
            display: inline-block;
            margin-right: 10px;
        }

        .checkbox-grundstueck-besitz input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-bottom: 25px;
        }

        .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: 25;
        }

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

 

/* Jede Kachel mit fester Größe */
.kachel {
    width: 158px;  /* Feste Breite für jede Kachel */
    height: 120px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 90px;
            height: 90px;
        }

        .kachel:hover {
            background-color: #ddd;
        }

        .kachel.selected {
            background-color: #007bff;
            color: white;
            border-color: #0056b3;
        }
        .hidden {
    display: none;
}

.text-info {
    margin-top: 12px;
    margin-left: 10px;
    padding-top: 0 px;
    margin-bottom: 25px;
    margin-right: 10px;
}

h2 {
    font-size: 26px;
}

.text-content-hinweis p {
    /* Deine CSS-Regeln hier */
    margin-top: 15px;
    font-size: 13px;
    padding: 20px;
    
}
.text-content p {
    padding-left: 5px;
    padding-right: 5px; 
}

.text-content h2 {
    font-size: 22;
}
@media screen and (max-width: 442px) {

   
    .kachel {
    width: 140px;  /* Feste Breite für jede Kachel */
    height: 90px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 70px;
            height: 70px;
        }
        svg {
    width: 70px;
    height: 70px;
    
  }
}

@media screen and (max-width: 407px) {
    .kachel {
    width: 130px;  /* Feste Breite für jede Kachel */
    height: 90px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 70px;
            height: 70px;
        }
        svg {
    width: 70px;
    height: 70px;
    
  }
}

@media screen and (max-width: 387px) {
    .kachel {
    width: 120px;  /* Feste Breite für jede Kachel */
    height: 90px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 70px;
            height: 70px;
        }
        svg {
    width: 70px;
    height: 70px;
    
  }
}

@media screen and (max-width: 367px) {
    .kachel {
    width: 110px;  /* Feste Breite für jede Kachel */
    height: 90px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 70px;
            height: 70px;
        }
        svg {
    width: 70px;
    height: 70px;
    
  }
}

@media screen and (max-width: 347px) {
    .kachel {
    width: 110px;  /* Feste Breite für jede Kachel */
    height: 90px;  /* Feste Höhe für jede Kachel */
    padding: 0px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 10px;
}

        .kachel img {
            width: 70px;
            height: 70px;
        }
        svg {
    width: 70px;
    height: 70px;
    
  }
}

#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#hauspreisAnzeige {
    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) {
            
            .diagramm-container canvas {
                width: 250px; /* Verkleinert das Diagramm */
                height: 250px;
            }
        }