.erbschaftsrechner-container {
    display: grid;
     grid-template-columns: 1fr 2fr;
     justify-items: center;
    max-width: 70%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

.erbschaftsrechner-form{
    margin-top: 5em;
}


.erbschaftsrechner-form .form-group {
    margin-bottom: 15px;
}

.erbschaftsrechner-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.erbschaftsrechner-form .checkbox-group label {
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
}

.erbschaftsrechner-form input[type="number"],
.erbschaftsrechner-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.btn.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.result-container.result {
    grid-column: 1 / 3;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #007bff;
    background: #e9f7ff;
}


.erbschaftsrechner-image {
    width: 65%;
    height: auto;
    order: 0;
}

.erb-submit{
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #007bff;
    background: #e9f7ff;
    max-width: 300px;
    text-align: center;
    margin-block: auto;
}

.erbsvg{
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .erbschaftsrechner-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .erbschaftsrechner-image {
        order: -1;
        width: 100%;
    }

    .result-container.result {
        grid-column: 1 / 2;
    }

    .erbschaftsrechner-form{
        margin-top: -1em;
    }

    .erb-submit{
        margin-top: 2em;
    }

    .erbsvg{
        width: 100%;
        height: auto;
    }

    text {
        font-family: Arial, sans-serif;
        font-size: 11px!important;
    }
    
}