.mhv-rechner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font-family: inherit;
}

.mhv-kicker {
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.mhv-rechner h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.mhv-intro,
.mhv-disclaimer {
    color: #5f6b7a;
}

.mhv-form {
    display: grid;
    gap: 16px;
    margin-top: 0;
}

.mhv-step-form {
    display: block;
}

.mhv-step-progress {
    width: 100%;
    height: 6px;
    margin: 0 0 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.mhv-step-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: currentColor;
    border-radius: inherit;
    transition: width 220ms ease;
}

.mhv-step[hidden] {
    display: none !important;
}

.mhv-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.mhv-step.is-active {
    opacity: 1;
    transform: translateX(0);
}

.mhv-step.is-leaving {
    opacity: 0;
    transform: translateX(-18px);
}

.mhv-step.is-entering {
    opacity: 0;
    transform: translateX(18px);
}

.mhv-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 18px;
}

.mhv-step-actions [data-mhv-step-next],
.mhv-step-actions [data-mhv-step-submit] {
    margin-left: auto;
}

.mhv-step-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.mhv-step-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #0f766e;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.mhv-step-dot.is-active,
.mhv-step-dot.is-complete {
    background: #0f766e;
}

.mhv-step-dot:disabled,
.mhv-step-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mhv-help {
    color: #667085;
    font-weight: 400;
}

.mhv-sidebar-menu {
    position: fixed;
    top: 50%;
    left: 18px;
    z-index: 999;
    transform: translateY(-50%);
    font-family: inherit;
}

.mhv-sidebar-menu__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mhv-sidebar-menu__item {
    margin: 0;
    padding: 0;
}

.mhv-sidebar-menu__link {
    position: relative;
    display: flex;
    align-items: center;
    width: 10px;
    min-height: 22px;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.mhv-sidebar-menu__dot {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
    opacity: 0.58;
    transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.mhv-sidebar-menu__label {
    position: absolute;
    left: 20px;
    max-width: min(260px, calc(100vw - 64px));
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: currentColor;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.mhv-sidebar-menu__link:hover .mhv-sidebar-menu__dot,
.mhv-sidebar-menu__link:focus-visible .mhv-sidebar-menu__dot,
.mhv-sidebar-menu__item.is-active .mhv-sidebar-menu__dot {
    border-color: #0f766e;
    background: #0f766e;
    opacity: 1;
    transform: scale(1.18);
}

.mhv-sidebar-menu__link:hover .mhv-sidebar-menu__label,
.mhv-sidebar-menu__link:focus-visible .mhv-sidebar-menu__label,
.mhv-sidebar-menu__item.is-active .mhv-sidebar-menu__label {
    opacity: 1;
    transform: translateX(0);
}

.mhv-section-title {
    margin: 16px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
}

.mhv-section-title:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.mhv-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.mhv-analysis {
    position: relative;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 360px;
    padding: 34px;
    overflow: hidden;
}

.mhv-analysis__orb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.22), rgba(15, 118, 110, 0.02) 64%),
        conic-gradient(from 120deg, rgba(15, 118, 110, 0), rgba(15, 118, 110, 0.95), rgba(74, 177, 211, 0.75), rgba(15, 118, 110, 0));
    animation: mhv-analysis-orb 1.9s linear infinite;
}

.mhv-analysis__orb span {
    position: absolute;
    inset: 13px;
    border-radius: inherit;
    background: #fff;
}

.mhv-analysis__title {
    margin: 0 0 22px;
}

.mhv-analysis__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mhv-analysis__item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    opacity: 0.58;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.mhv-analysis__item.is-active,
.mhv-analysis__item.is-complete {
    opacity: 1;
    transform: translateY(0);
}

.mhv-analysis__check {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef6f7;
    color: transparent;
}

.mhv-analysis__check::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 2px solid rgba(15, 118, 110, 0.18);
    border-top-color: rgba(15, 118, 110, 0.92);
    border-radius: inherit;
    opacity: 0;
}

.mhv-analysis__item.is-active .mhv-analysis__check::before {
    opacity: 1;
    animation: mhv-analysis-spin 760ms linear infinite;
}

.mhv-analysis__item.is-complete .mhv-analysis__check {
    background: #16a34a;
    color: #fff;
}

.mhv-analysis__item.is-complete .mhv-analysis__check::before {
    opacity: 0;
}

.mhv-analysis__text {
    font-weight: 700;
}

@keyframes mhv-analysis-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mhv-analysis-orb {
    to {
        transform: rotate(360deg);
    }
}

.mhv-alert {
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
}

.mhv-result {
    margin-top: 0;
}

.mhv-form:not([hidden]) + .mhv-result {
    margin-top: 26px;
}

.mhv-result h3 {
    margin-top: 0;
}

.mhv-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.mhv-result-report {
    min-width: 0;
}

.mhv-result-report__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.mhv-result-report__photo {
    min-height: 120px;
}

.mhv-range {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
    text-align: center;
}

.mhv-price-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.mhv-price-card {
    min-height: 110px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mhv-price-card--middle {
    min-height: 150px;
}

.mhv-price-card__value {
    display: block;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
}

.mhv-price-card--min .mhv-price-card__value,
.mhv-price-card--max .mhv-price-card__value {
    font-size: clamp(20px, 2.6vw, 34px);
}

.mhv-price-card__value.is-blurred {
    filter: blur(8px);
    user-select: none;
}

.mhv-price-card__label {
    display: block;
    margin-top: 8px;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.25;
}

.mhv-details {
    margin-top: 16px;
    padding-top: 12px;
}

.mhv-result-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 767px) {
    .mhv-result-layout,
    .mhv-result-report__top {
        grid-template-columns: 1fr;
    }

    .mhv-result-report__top {
        align-items: stretch;
    }
}

.mhv-lead-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    background: #fff;
}

.mhv-lead-panel h3 {
    margin-top: 0;
}

.mhv-lead-subtitle {
    margin: 8px 0 0;
    color: #0f4f4a;
    font-size: 16px;
}

.mhv-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mhv-address-search {
    position: relative;
}

.mhv-address-suggestions {
    display: block;
    max-height: 280px;
    overflow: auto;
    margin-top: 10px;
    border: 1px solid #c8d0d9;
    border-radius: 6px;
    background: #fff;
}

.mhv-address-suggestions__list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mhv-address-suggestions__item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2933;
    cursor: pointer;
}

.mhv-address-suggestions__item:last-child {
    border-bottom: 0;
}

.mhv-address-suggestions__item:hover,
.mhv-address-suggestions__item:focus {
    background: #f3f8f7;
    outline: none;
}

.mhv-address-suggestions__empty,
.mhv-address-suggestions__loading {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    color: #5f6b7a;
}

.mhv-address-suggestions__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mhv-spin 0.7s linear infinite;
}

@keyframes mhv-spin {
    to {
        transform: rotate(360deg);
    }
}

.mhv-lead-address-preview {
    display: grid;
    gap: 14px;
    width: 100%;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mhv-lead-address-preview[hidden] {
    display: none !important;
}

.mhv-lead-address-preview.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mhv-lead-address-preview.is-fading-out {
    opacity: 0;
    transform: translateY(8px);
}

.mhv-fields[hidden],
.mhv-map-check[hidden] {
    display: none !important;
}

.mhv-map-check {
    transition: opacity 180ms ease, transform 180ms ease;
}

.mhv-map-check.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mhv-map-check.is-fading-out {
    opacity: 0;
    transform: translateY(8px);
}

.mhv-lead-address-preview__map {
    min-height: 180px;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    background: #f2f8fb;
    overflow: hidden;
}

.mhv-lead-address-preview__box {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    background: #fff;
}

.mhv-lead-address-preview__meta {
    display: grid;
    gap: 4px;
    color: #5f6b7a;
    font-size: 14px;
}

.mhv-lead-address-preview__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhv-lead-form__header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.mhv-lead-form__header h3,
.mhv-lead-form__header p {
    margin: 0;
}

.mhv-consents {
    display: grid;
    gap: 10px;
}

.mhv-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #334155;
    font-weight: 400;
}

.mhv-alert-success {
    border-left-color: #0f766e;
    background: #f0fdfa;
}

.mhv-debug {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
}

.mhv-debug summary {
    cursor: pointer;
    font-weight: 700;
}

.mhv-dev-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 18px;
    margin-top: 12px;
}

.mhv-dev-grid h4 {
    margin: 0 0 8px;
}

.mhv-dev-grid ol,
.mhv-dev-grid ul {
    margin: 0;
    padding-left: 18px;
}

.mhv-dev-grid li {
    margin-bottom: 7px;
}

.mhv-dev-grid span {
    display: inline-block;
    margin-left: 6px;
    font-weight: 700;
}

.mhv-dev-grid small {
    display: block;
    color: #667085;
}

.mhv-map {
    min-height: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f6;
}

.mhv-map-header {
    border-radius: 0;
}

.mhv-map .leaflet-popup-content {
    margin: 8px 10px;
    font: inherit;
    font-weight: 700;
}

.mhv-map-empty {
    padding: 12px 14px;
    border-left: 4px solid #d97706;
    background: #fffbeb;
    color: #92400e;
    font-weight: 700;
}

.mhv-map-note {
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 251, 235, 0.94);
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.mhv-price-chart {
    width: 100%;
}

.mhv-price-chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.mhv-price-chart__axis {
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.2;
}

.mhv-price-chart__line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mhv-price-chart__point {
    fill: currentColor;
}

.mhv-price-chart__point-wrap {
    cursor: help;
}

.mhv-price-chart__label,
.mhv-price-chart__year {
    fill: currentColor;
    font-size: 12px;
    opacity: 0.65;
}

.mhv-price-chart__table {
    width: 100%;
    border-collapse: collapse;
}

.mhv-price-range {
    --mhv-price-range-height: 20px;
    --mhv-price-range-min: #cf2f2f;
    --mhv-price-range-basis: #f59e0b;
    --mhv-price-range-max: #16a34a;
    --mhv-price-range-line: currentColor;
    position: relative;
    width: 100%;
    padding-top: 64px;
    padding-bottom: 54px;
    color: inherit;
}

.mhv-price-range__track {
    position: relative;
    width: 100%;
}

.mhv-price-range__bar {
    width: 100%;
    height: var(--mhv-price-range-height);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mhv-price-range-min) 0%, var(--mhv-price-range-basis) 50%, var(--mhv-price-range-max) 100%);
}

.mhv-price-range__marker {
    position: absolute;
    top: 0;
    z-index: 2;
    display: grid;
    min-width: 96px;
    text-align: center;
    transform: translateX(-50%);
    justify-items: center;
}

.mhv-price-range--value-near-min .mhv-price-range__marker {
    text-align: left;
    transform: none;
    justify-items: start;
}

.mhv-price-range--value-near-max .mhv-price-range__marker {
    text-align: right;
    transform: translateX(-100%);
    justify-items: end;
}

.mhv-price-range__marker-value,
.mhv-price-range__label strong {
    display: block;
    white-space: nowrap;
    font-weight: 700;
}

.mhv-price-range__marker-label,
.mhv-price-range__label span {
    display: block;
    font-size: 0.85em;
    line-height: 1.25;
    opacity: 0.75;
}

.mhv-price-range__marker-line {
    display: block;
    width: 2px;
    height: 30px;
    margin-top: 6px;
    background: var(--mhv-price-range-line);
    opacity: 0.75;
}

.mhv-price-range__labels {
    position: relative;
    min-height: 44px;
    margin-top: 14px;
}

.mhv-price-range__label {
    position: absolute;
    top: 0;
    display: grid;
    gap: 2px;
}

.mhv-price-range__label--min {
    left: 0;
    text-align: left;
}

.mhv-price-range__label--max {
    right: 0;
    text-align: right;
}

@media (max-width: 767px) {
    .mhv-rechner {
        padding: 20px;
    }

    .mhv-sidebar-menu {
        display: none;
    }

    .mhv-rechner h2 {
        font-size: 24px;
    }

    .mhv-range {
        grid-template-columns: 1fr;
    }

    .mhv-price-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mhv-price-card,
    .mhv-price-card--middle {
        min-height: 110px;
    }

    .mhv-lead-grid {
        grid-template-columns: 1fr;
    }

    .mhv-dev-grid {
        grid-template-columns: 1fr;
    }

    .mhv-analysis {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
        padding: 24px 0;
    }

    .mhv-analysis__orb {
        width: 76px;
        height: 76px;
    }

    .mhv-price-range {
        padding-top: 72px;
        padding-bottom: 78px;
    }

    .mhv-price-range__marker {
        min-width: 82px;
        font-size: 0.9em;
    }

    .mhv-price-range__labels {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-height: 0;
    }

    .mhv-price-range__label,
    .mhv-price-range__label--max {
        position: static;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mhv-analysis__orb,
    .mhv-analysis__item.is-active .mhv-analysis__check::before {
        animation: none;
    }
}

.mhv-property-search__location {
    position: relative;
}

.mhv-property-search__results {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(18, 63, 73, 0.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 63, 73, 0.14);
    list-style: none;
}

.mhv-property-search__result {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(18, 63, 73, 0.08);
    color: inherit;
    text-decoration: none;
}

.mhv-property-search__result:hover,
.mhv-property-search__result:focus {
    background: rgba(18, 63, 73, 0.06);
    outline: none;
}

.mhv-influence {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6em;
    font-weight: 700;
    line-height: 1.2;
}

.mhv-influence-positive-1,
.mhv-influence-positive-2,
.mhv-influence-positive-3 {
    color: #0f766e;
}

.mhv-influence-neutral {
    color: #667085;
}

.mhv-influence-negative-1,
.mhv-influence-negative-2,
.mhv-influence-negative-3 {
    color: #b42318;
}

.mhv-calculation-influence-legend {
    margin-top: 14px;
    font-size: 0.9em;
}

.mhv-calculation-result-table td:last-child,
.mhv-calculation-result-table th:last-child {
    text-align: right;
}
