.msr-dachneigung {
    --msr-dachneigung-primary: #084985;
    --msr-dachneigung-primary-dark: #092c4d;
    --msr-dachneigung-border: #084985;
    --msr-dachneigung-error: #db0c15;
    --msr-dachneigung-muted: #e6e6e6;
    color: #3b3b3b;
    margin: 0 auto;
    max-width: 1320px;
    padding-right: 15px;
    padding-left: 15px;
}

.msr-dachneigung__headline {
    margin: 0 0 12px;
    color: var(--msr-dachneigung-primary-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.msr-dachneigung__text {
    margin: 0 0 28px;
    color: #3b3b3b;
    font-size: 17px;
    line-height: 1.55;
}

.msr-dachneigung__form {
    display: grid;
    gap: 16px;
}

.msr-dachneigung__visual {
    position: relative;
}

.msr-dachneigung__image {
    display: block;
    width: 100%;
    height: auto;
}

.msr-dachneigung__configurator-button {
    position: absolute;
    right: 0;
    bottom: 0;
}

.msr-dachneigung__configurator-button .configurator {
    display: inline-flex;
    min-height: 44px;
    background: var(--msr-dachneigung-primary);
    text-decoration: none;
}

.msr-dachneigung__configurator-button .configurator:hover,
.msr-dachneigung__configurator-button .configurator:focus {
    background: var(--msr-dachneigung-primary-dark);
    text-decoration: none;
}

.msr-dachneigung__configurator-button .configurator .text {
    color: #fff;
}

.msr-dachneigung__legend {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, .5);
    color: #3b3b3b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    list-style-position: inside;
}

.msr-dachneigung__legend li {
    font-size: 14px;
    font-weight: 400;
}

.msr-dachneigung__field,
.msr-dachneigung__actions {
    min-width: 0;
}

.msr-dachneigung__label {
    display: block;
    margin-bottom: 4px;
    color: #3b3b3b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.msr-dachneigung__input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--msr-dachneigung-border);
    border-radius: 2px;
    padding: 8px 10px;
    color: #000;
    font-size: 18px;
    line-height: 1.3;
    background: #fff;
}

.msr-dachneigung__input:focus {
    border-color: var(--msr-dachneigung-primary-dark);
    box-shadow: 0 0 0 2px rgba(8, 73, 133, 0.18);
    outline: none;
}

.msr-dachneigung__input--result {
    background: var(--msr-dachneigung-muted);
}

.msr-dachneigung__button {
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    border: 0;
    border-radius: 2px;
    padding: 10px 20px;
    background: linear-gradient(to right, var(--msr-dachneigung-primary-dark), var(--msr-dachneigung-primary));
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.msr-dachneigung__button:hover,
.msr-dachneigung__button:focus {
    background: linear-gradient(to left, var(--msr-dachneigung-primary-dark), var(--msr-dachneigung-primary));
}

.msr-dachneigung__error {
    min-height: 20px;
    margin: 4px 0 0;
    color: var(--msr-dachneigung-error);
    font-size: 14px;
    line-height: 1.35;
}

.msr-dachneigung__input[aria-invalid="true"] {
    border-color: var(--msr-dachneigung-error);
}

@media (max-width: 767px) {
    .msr-dachneigung__headline {
        font-size: 26px;
    }

    .msr-dachneigung__legend {
        position: static;
        margin-top: 14px;
    }
}
