/* Self-hosted Ober-Haus brand fonts; no third-party font requests. */
@font-face {
    font-family: "Axiforma";
    src: url("../fonts/Axiforma_SemiBold.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Axiforma";
    src: url("../fonts/Axiforma_ExtraBold.woff") format("woff");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MYRIADPRO-REGULAR.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MYRIADPRO-SEMIBOLD.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Myriad Pro";
    src: url("../fonts/MYRIADPRO-BOLD.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --font-body: "Myriad Pro", "Segoe UI", Arial, sans-serif;
    --font-heading: "Axiforma", "Segoe UI", Arial, sans-serif;
    --blue: #273f76;
    --blue-deep: #17284f;
    --blue-soft: #e9eef8;
    --red: #ae0d21;
    --red-dark: #8d0a1b;
    --ink: #17233d;
    --muted: #68738a;
    --line: #dfe4ec;
    --paper: #ffffff;
    --wash: #f5f7fb;
    --warm: #f4efe8;
    --success: #238565;
    --shadow: 0 24px 64px rgba(22, 40, 79, .13);
    --radius: 22px;
    --shell: 1220px;
    --motion-ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, .button, .brand-product, .header-nav a, .property-option strong, .faq-list summary { font-family: var(--font-heading); }
.leaflet-container { font-family: var(--font-body); }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.compact-shell { width: min(calc(100% - 40px), 930px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 10px 16px; color: #fff; background: var(--blue-deep); }
.skip-link:focus { top: 12px; }

.site-header { height: 82px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(39,63,118,.1); position: relative; z-index: 20; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 192px; height: auto; display: block; }
.brand-product { color: var(--blue); font-weight: 800; letter-spacing: -.03em; border-left: 1px solid var(--line); padding-left: 18px; }
.header-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(35,133,101,.12); }
.header-nav { display: flex; align-items: center; }
.header-nav a { position: relative; padding: 10px 2px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .28s ease; }
.header-nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 5px; height: 2px; border-radius: 999px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .32s cubic-bezier(.2,.75,.2,1); }
.header-nav a:hover,
.header-nav a:focus-visible { color: var(--blue); }
.header-nav a:hover::after,
.header-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.flow-progress { border-bottom: 1px solid var(--line); background: #fff; }
.progress-inner { display: grid; grid-template-columns: repeat(5, 1fr); height: 68px; align-items: center; }
.progress-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; color: #97a0b2; font-size: .84rem; font-weight: 700; }
.progress-item:not(:last-child)::after { content: ""; position: absolute; right: -16%; width: 32%; height: 1px; background: var(--line); }
.progress-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cdd4e0; font-size: .78rem; background: #fff; }
.progress-item.is-current { color: var(--blue); }
.progress-item.is-current .progress-number { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 5px 18px rgba(174,13,33,.24); }
.progress-item.is-done { color: var(--blue); }
.progress-item.is-done .progress-number { color: #fff; background: var(--blue); border-color: var(--blue); }

.hero { min-height: 680px; display: flex; align-items: center; position: relative; overflow: hidden; color: #fff; background: linear-gradient(126deg, var(--blue-deep) 0%, var(--blue) 58%, #334f89 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 75%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 80px; padding-block: 68px; }
.hero-copy { max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-size: .76rem; line-height: 1.2; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow span { width: 26px; height: 2px; background: #ef5e6f; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-heading); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { margin: 22px 0 24px; font-size: clamp(2.8rem, 4.7vw, 5.05rem); font-weight: 800; }
.lead { margin: 0; max-width: 590px; color: rgba(255,255,255,.77); font-size: 1.12rem; line-height: 1.7; }
.valuation-card { padding: 38px; color: var(--ink); background: rgba(255,255,255,.98); border-radius: 28px; box-shadow: 0 36px 85px rgba(5,15,38,.28); }
.card-kicker { padding-top: 8px; color: var(--red); font-weight: 800; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.valuation-card h2 { margin: 9px 0 6px; font-size: 1.72rem; }
.valuation-card > p { margin: 0 0 22px; color: var(--muted); }
.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.property-option { cursor: pointer; }
.property-option input { position: absolute; opacity: 0; pointer-events: none; }
.property-option-body { min-height: 114px; padding: 18px 42px 16px 18px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 13px; position: relative; border: 1px solid var(--line); border-radius: 15px; transition: transform .38s cubic-bezier(.2,.75,.2,1), border-color .38s ease, background-color .38s ease, box-shadow .38s ease; }
.property-option:hover .property-option-body { transform: translateY(-3px); border-color: #aab7d0; background-color: rgba(242,246,252,.94); box-shadow: 0 12px 28px rgba(23,40,79,.09); }
.property-option input:focus-visible + .property-option-body { outline: 3px solid rgba(39,63,118,.22); outline-offset: 2px; }
.property-option input:checked + .property-option-body { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.property-icon { grid-row: 1 / 3; display: grid; place-items: center; align-self: center; width: 38px; height: 38px; position: relative; color: var(--blue); background: #edf1f8; border-radius: 11px; }
.property-icon svg { width: 21px; height: 21px; display: block; fill: currentColor; }
.property-icon-apartment svg,
.property-icon-premises svg { width: 22px; height: 22px; }
.property-icon svg.property-premises-svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.property-option strong { align-self: end; font-size: .98rem; font-weight: 600; }
.property-option small { color: var(--muted); font-size: .76rem; }
.option-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aab2c2; transition: transform .38s cubic-bezier(.2,.75,.2,1), color .3s ease; }
.property-option input:checked + .property-option-body .option-arrow { color: var(--red); }
.button { min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, border .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 12px 26px rgba(174,13,33,.19); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--blue); border-color: #cbd3df; background: #fff; }
.button-secondary:hover { border-color: var(--blue); background: #f7f9fc; }
.button-wide { grid-column: 1 / -1; margin-top: 8px; }
.submit-label { display: grid; align-items: center; }
.submit-label > span { grid-area: 1 / 1; }
/* Both labels reserve space so the button does not jump when calculation starts. */
.submit-label > [hidden] { display: block; visibility: hidden; }
.submit-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; }
.submit-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: submit-spin .8s linear infinite; }
.submit-spinner[hidden] { display: none; }
.button[data-submit-loading][aria-busy="true"] { cursor: wait; transform: none; animation: none; }
.button[data-submit-loading][aria-busy="true"] > .submit-icon { transform: none; }
.submit-status { animation: field-feedback-in .35s ease-out; }
.submit-status:empty { display: none; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.microcopy { grid-column: 1 / -1; margin: 16px 0 0 !important; text-align: center; font-size: .74rem; }
.lock { color: var(--success); font-size: .62rem; }
.alert { margin: 12px 0; padding: 12px 14px; color: #8d0a1b; background: #fff0f2; border: 1px solid #f2c4ca; border-radius: 9px; font-size: .86rem; }
.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.orbit-one {
    width: 570px;
    height: 570px;
    right: -340px;
    top: -200px;
    animation: orbit-one-drift 14s ease-in-out infinite;
}
.orbit-two {
    width: 280px;
    height: 280px;
    left: 42%;
    bottom: -210px;
    animation: orbit-two-drift 11s -4s ease-in-out infinite;
}

@keyframes orbit-one-drift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .72; }
    25% { transform: translate3d(-24px, 14px, 0); opacity: 1; }
    50% { transform: translate3d(-5px, 32px, 0); opacity: .84; }
    75% { transform: translate3d(20px, 12px, 0); opacity: 1; }
}

@keyframes orbit-two-drift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .7; }
    25% { transform: translate3d(17px, -13px, 0); opacity: 1; }
    50% { transform: translate3d(31px, 4px, 0); opacity: .82; }
    75% { transform: translate3d(10px, 20px, 0); opacity: 1; }
}

/* Useful, crawlable answers without adding any fields to the valuation flow. */
.faq-section { padding: 88px 0; background: #fff; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.faq-intro h2 { margin: 16px 0 22px; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.16; }
.faq-intro p, .faq-list p { color: var(--muted); line-height: 1.75; }
.faq-contact { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--blue); font-weight: 700; }
.faq-contact > span { transition: transform .5s var(--motion-ease); }
.faq-contact:hover > span, .faq-contact:focus-visible > span { transform: translateX(6px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 23px 4px; cursor: pointer; color: var(--ink); font-weight: 600; }
.faq-list summary::marker { color: var(--red); }
.faq-list summary:focus-visible, .faq-contact:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.faq-list p { margin: 0; padding: 0 4px 24px; }
.faq-list p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-list details[open] > p { animation: faq-answer-in .4s var(--motion-ease); }
@keyframes faq-answer-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1000px) { .faq-grid { gap: 36px; } }
@media (max-width: 720px) {
    .faq-section { padding: 56px 0; }
    .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .faq-intro h2 { max-width: 520px; }
}

.step-page { min-height: 650px; padding: 66px 0 92px; background: linear-gradient(180deg, #f8f9fc 0, #fff 75%); }
.step-intro { margin-bottom: 34px; max-width: 690px; }
.step-intro.centered { margin-inline: auto; text-align: center; }
.step-intro h1 { margin: 12px 0 13px; font-size: clamp(2.15rem, 4vw, 3.7rem); }
.step-intro p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.form-map-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: stretch; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 13px 42px rgba(26,44,82,.07); }
.form-panel { padding: 34px; }
.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: flex; gap: 16px; }
.field-row.two > * { flex: 1; }
.field-row.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.field-row.three:has(> .field:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; align-items: start; margin-bottom: 20px; }
.property-fields > .field { margin-bottom: 0; }
.field-grow { flex: 1; }
.field-short { flex: 0 0 112px; }
.field label { display: block; margin-bottom: 7px; color: #37435a; font-size: .83rem; font-weight: 750; }
.field label span { color: var(--red); }
.field input, .field select { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--ink); border: 1px solid #cdd5e1; border-radius: 8px; background: #fff; outline: 0; transition: border .15s, box-shadow .15s; }
.field input:hover, .field select:hover { border-color: #9eabc1; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,63,118,.12); }
.field small, .field-hint { display: block; margin: 6px 0 0; color: var(--muted); font-size: .74rem; }
.field label small { display: inline; margin: 0; font-weight: 400; }
.field-error { display: block; margin: 8px 0 0; color: var(--red) !important; font-size: .78rem; font-weight: 600; line-height: 1.5; animation: field-feedback-in .35s ease-out both; }
.field-error[hidden] { display: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(174,13,33,.1); }
.floor-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.floor-inputs input { min-width: 0; padding-inline: 10px; }
.floor-separator { color: var(--muted); font-size: .85rem; }
.property-option input[aria-invalid="true"] + .property-option-body { border-color: rgba(174,13,33,.55); }
.property-type-error { grid-column: 1 / -1; margin: 0; }
.check-row input[aria-invalid="true"] { outline: 2px solid rgba(174,13,33,.55); outline-offset: 3px; }
.form-error { padding: 12px 14px; margin-top: 20px; border-radius: 8px; background: #fcf3f4; }
.feedback-updated { animation: field-feedback-in .35s ease-out both; }
@keyframes field-feedback-in { from { opacity: 0; } to { opacity: 1; } }
.input-with-icon { position: relative; }
.input-with-icon > span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.4rem; }
.input-with-icon input { padding-left: 43px; }
.autocomplete-field { position: relative; z-index: 5; padding-bottom: 19px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.suggestions { position: absolute; left: 0; right: 0; top: 83px; max-height: 245px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.suggestion { width: 100%; padding: 11px 12px; border: 0; border-radius: 7px; text-align: left; color: var(--ink); background: transparent; cursor: pointer; }
.suggestion:hover, .suggestion:focus { background: var(--blue-soft); outline: 0; }
.suggestion[aria-selected="true"] { background: var(--blue-soft); outline: 2px solid var(--blue); outline-offset: -2px; }
.suggestion-label { display: block; line-height: 1.35; }
.suggestion .suggestion-kind { display: block; margin-top: 4px; font-size: .7rem; color: var(--muted); }
.manual-address { margin: -8px 0 22px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; }
.manual-address summary { padding: 13px 15px; color: var(--blue); font-size: .8rem; font-weight: 750; cursor: pointer; }
.manual-address summary:hover, .manual-address summary:focus-visible { color: var(--red); }
.manual-address-fields { padding: 5px 15px 0; border-top: 1px solid var(--line); }
.manual-address-fields .field { margin-top: 14px; }
.manual-address select:disabled { cursor: not-allowed; color: var(--muted); background: #f0f3f8; opacity: .8; }
.manual-address select[aria-busy="true"] { cursor: progress; }
.manual-address optgroup { color: var(--blue); font-weight: 700; }
.manual-address option { color: var(--ink); font-weight: 400; }
.address-retry { margin-top: 8px; padding: 5px 0; border: 0; background: transparent; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; }
.address-retry[hidden] { display: none; }
.form-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.map-panel { min-height: 455px; overflow: hidden; position: relative; border-radius: var(--radius); background: #dce5ef; }
.map { width: 100%; height: 100%; min-height: 360px; background: radial-gradient(circle at center, rgba(39,63,118,.12), transparent 25%), linear-gradient(135deg, #dde7ed, #eff2ed); }
.map-caption { position: absolute; z-index: 450; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,.94); border-radius: 12px; box-shadow: 0 12px 34px rgba(23,40,79,.18); }
.map-caption strong, .map-caption small { display: block; }
.map-caption small { color: var(--muted); font-size: .72rem; }
.map-pin { width: 13px; height: 13px; margin-top: 4px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: 0 0 0 5px rgba(174,13,33,.14); }
.property-form { padding: 38px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-page { padding-bottom: 110px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.check-row { display: flex; gap: 11px; align-items: flex-start; margin: 22px 0 0; color: #455168; font-size: .8rem; cursor: pointer; }
.check-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.check-row b { color: var(--red); }
.check-row.optional { margin-top: 15px; color: var(--muted); }
.consent-error { display: block; margin: 6px 0 0 29px; }
.assurance-card { padding: 36px; color: #fff; background: linear-gradient(145deg, var(--blue-deep), var(--blue)); border-radius: var(--radius); box-shadow: var(--shadow); }
.assurance-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-weight: 850; }
.assurance-card h2 { font-size: 1.8rem; }
.assurance-card ul { list-style: none; padding: 0; margin: 26px 0; }
.assurance-card li { padding: 13px 0 13px 27px; position: relative; border-bottom: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.86); font-size: .86rem; }
.assurance-card li::before { content: "✓"; position: absolute; left: 0; color: #89dbc0; font-weight: 800; }
.assurance-card p { color: rgba(255,255,255,.62); font-size: .77rem; }

.result-hero { padding: 72px 0 95px; background: linear-gradient(180deg, var(--blue-deep) 0, var(--blue-deep) 400px, #f6f7fa 400px); }
.result-heading { max-width: 760px; margin: 0 auto 35px; color: #fff; text-align: center; }
.result-heading .eyebrow { color: #ff94a0; }
.result-heading h1 { margin: 13px 0 12px; font-size: clamp(2.35rem, 5vw, 4.4rem); }
.result-heading p { margin: 0; color: rgba(255,255,255,.65); }
.result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.price-card { padding: 46px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }
.result-card-title { margin: 0 0 24px; color: var(--ink); font-size: 1.35rem; line-height: 1.3; }
.price-label { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.price-value { margin: 10px 0 4px; color: var(--blue); font-size: clamp(3.4rem, 7vw, 6.8rem); font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.price-value span { color: var(--red); font-size: .42em; }
.price-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 26px 0; }
.price-range > div { min-width: 0; }
.price-range > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.price-range dt { margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.price-range dd { margin: 0; color: var(--blue); font-family: var(--font-heading); font-size: clamp(1.7rem, 2.8vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; overflow-wrap: anywhere; }
.price-range dd span { color: var(--red); font-size: .65em; }
@media (max-width: 520px) {
    .price-range { grid-template-columns: 1fr; gap: 18px; }
    .price-range > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
    .price-range dd { font-size: clamp(1.7rem, 8vw, 2.5rem); }
}
.price-value, .result-summary dd, .result-heading p { overflow-wrap: anywhere; }
.result-grid > *, .contact-grid > *, .form-map-grid > * { min-width: 0; }
.result-note { padding: 12px; border-radius: 8px; background: #fff5de; color: #634a13 !important; font-size: .84rem; }
.price-card > p { margin: 17px 0 25px; color: var(--muted); }
.confidence { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.confidence-bar { width: 76px; height: 7px; overflow: hidden; border-radius: 10px; background: #e5e9ef; }
.confidence-bar i { display: block; height: 100%; background: var(--success); }
.confidence-high { width: 100%; }.confidence-medium { width: 70%; }.confidence-low { width: 38%; }.confidence-insufficient { width: 8%; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.result-actions form { display: contents; }
.result-summary { padding: 46px 35px 35px; }
.result-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; margin: 0; }
.result-summary dl div { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-summary .summary-wide { grid-column: 1 / -1; }
.result-summary dt { color: var(--muted); font-size: .73rem; }
.result-summary dd { margin: 3px 0 0; color: var(--ink); font-weight: 750; }
@media (max-width: 420px) {
    .result-summary { padding: 26px 22px; }
    .result-summary dl { column-gap: 16px; }
}
.result-map-card { display: grid; grid-template-columns: .45fr .55fr; gap: 32px; padding: 28px 28px 28px 35px; margin-top: 22px; align-items: center; }
.result-map-card h2 { margin: 11px 0; font-size: 1.8rem; }
.result-map-card p { color: var(--muted); }
.result-map { min-height: 300px; border-radius: 15px; overflow: hidden; }
.disclaimer { margin-top: 22px; padding: 18px 22px; color: #5f6879; background: #eceff4; border-radius: 12px; font-size: .78rem; }

.legal-page, .error-page { min-height: 620px; padding: 80px 0 110px; background: var(--wash); }
.legal-shell { max-width: 820px; }
.legal-page h1 { margin: 15px 0 20px; font-size: clamp(2.3rem, 5vw, 4rem); }
.legal-page h2 { margin-top: 34px; font-size: 1.35rem; }
.legal-page p { color: #526078; }
.draft-badge { display: inline-flex; margin-bottom: 10px; padding: 7px 10px; color: #8d5c00; background: #fff1c7; border-radius: 6px; font-size: .74rem; font-weight: 750; }
.legal-page .button { margin-top: 30px; }
.error-card { max-width: 680px; margin: 30px auto; padding: 50px; text-align: center; }
.error-code { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; color: #fff; background: var(--red); border-radius: 50%; font-size: 2rem; font-weight: 800; }
.error-card p { color: var(--muted); }
.error-card pre { max-height: 180px; padding: 12px; overflow: auto; text-align: left; white-space: pre-wrap; color: #772330; background: #fff1f3; border-radius: 8px; font-size: .72rem; }

.site-footer { padding: 48px 0; color: #d9e2f4; background: #273f76; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
.footer-inner img { display: block; width: 231px; height: auto; }
.footer-inner p { margin: 9px 0 0; font-size: .77rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #fff; font-size: .78rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible { outline-color: #fff; }
.copyright { margin: 0 !important; }

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hero-copy { max-width: 680px; }
    .valuation-stage { width: 100%; max-width: 640px; min-width: 0; margin-inline: auto; }
    .hero h1 { font-size: 3.3rem; }
    .form-map-grid, .contact-grid, .result-grid { grid-template-columns: 1fr; }
    .map-panel { min-height: 360px; }
    .result-map-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .property-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .shell, .compact-shell { width: min(calc(100% - 28px), var(--shell)); }
    .site-header { height: 70px; }
    .brand img { width: 150px; }
    .brand-product { padding-left: 12px; font-size: .84rem; }
    .header-note { display: none; }
    .progress-inner { height: 58px; }
    .progress-item { font-size: 0; gap: 0; }
    .progress-item:not(:last-child)::after { right: -35%; width: 70%; }
    .progress-number { font-size: .72rem; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 50px; }
    .hero h1 { font-size: clamp(2.55rem, 13vw, 3.7rem); }
    .valuation-card { padding: 26px 20px; border-radius: 20px; }
    .property-grid { grid-template-columns: 1fr; }
    .property-option-body { min-height: 88px; }
    .step-page { padding: 46px 0 72px; }
    .step-intro h1 { font-size: 2.45rem; }
    .form-panel, .property-form { padding: 24px 18px; }
    .field-row, .field-row.three, .field-row.three:has(> .field:nth-child(2):last-child) { display: grid; grid-template-columns: 1fr; gap: 0; }
    .field-short { width: 100%; }
    .form-actions { align-items: stretch; }
    .form-actions .button { flex: 1; padding-inline: 12px; }
    .assurance-card { padding: 28px; }
    .result-hero { padding-top: 52px; background: linear-gradient(180deg, var(--blue-deep) 0, var(--blue-deep) 300px, #f6f7fa 300px); }
    .price-card { padding: 32px 23px; }
    .price-value { font-size: clamp(2rem, 9vw, 3.7rem); }
    .result-actions { display: grid; }
    .result-map-card { padding: 25px 18px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-links { flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
    .property-fields { grid-template-columns: minmax(0, 1fr); }
    .contact-page .form-actions { display: grid; grid-template-columns: 1fr; }
    .contact-page .form-actions .button-primary { order: -1; }
}

@media (max-width: 380px) {
    .brand { gap: 8px; }
    .brand img { width: 120px; }
    .brand-product { padding-left: 8px; font-size: .72rem; }
    .header-nav a { font-size: .8rem; }
    .form-actions { display: grid; grid-template-columns: 1fr; }
    .form-actions .button-primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Layered motion system inspired by the reference site's calm, premium energy. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 8%, rgba(39,63,118,.08), transparent 26%),
        radial-gradient(circle at 91% 18%, rgba(174,13,33,.055), transparent 22%),
        radial-gradient(circle at 74% 88%, rgba(69,117,165,.07), transparent 27%),
        #fff;
    animation: ambient-drift 22s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
    to { transform: scale(1.025) translate3d(-8px, 6px, 0); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(18px) saturate(1.25);
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header.is-scrolled {
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 42px rgba(23,40,79,.09);
}

.flow-progress {
    position: sticky;
    top: 82px;
    z-index: 900;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px) saturate(1.2);
    transition: transform .28s ease, opacity .2s ease, visibility 0s;
    will-change: transform;
}

.flow-progress.is-hidden {
    transform: translateY(calc(-100% - 2px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, opacity .2s ease, visibility 0s .28s;
}

.progress-item.is-current .progress-number {
    animation: progress-pulse 2.8s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { box-shadow: 0 5px 18px rgba(174,13,33,.24), 0 0 0 0 rgba(174,13,33,.2); }
    50% { box-shadow: 0 7px 24px rgba(174,13,33,.28), 0 0 0 8px rgba(174,13,33,0); }
}

.hero {
    min-height: min(780px, calc(100svh - 82px));
    isolation: isolate;
    background-color: #243f75;
    background-image:
        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAN8SURBVFhHXdVLktwwDANQL2aSzP0PrBRhPgXphaptiR8QgNzPOefPOefXOef38zy/zznfz/P8PM8z+/P8dc752fP5/bXn37NXueImL2v3psbEfM371J0+s7fr3ajGkzQrRRXZxrPEz9kUTt7GKx6w+z7nkz8xAbh1J+b7MXlNFMS7sqcRtrYwkBphIU03ftbsTf7EzS925v1nAGg2zbOJ8k0ctJliVybdIrMmBtjJN1ByNfcsF4MDYA5R/NLyBn1KECDFUOTac1IA0o2uf8pX3l8ArWGZkSwmRGFoXoYuQL7YhignwUv324cR32GKGlTzgSZ0+zSnSXK+RSMBjRtsGS8D7VkAoIZjoeTcNqWipsi0W1Sd64E9vz4x7MZeD0Ce5ujvtcVSaIsGFBn21y3qGJ65rNQ1f8FtgMkSWFeGPK7dvT7NnGb7nryNf432TzL+kBcAtDFta8lIik4RQDh89i+grYV2cl0W9/1fvUXfBlHUVWEgBTV/TbRAqjidUc1DZLvvW+t1fUlAJx+WaFsUB5hYDJRPUq/oJg/dAQP8fjjoD2GabRCJTALgnZrWfaWd76STF9OWoafu/c6jxeQKAkIGbNxitYdyEt5abkp7Y/PfK7ONBDJJmxArpmK6Bn8lKCbimRpo8pg8HkARTeeZXpPk2iigQYPBEkkuxVuH9p6Tu3FXi2uMnmSphbhBxKx13oWvkZc1tMsLs/kt1Jfu0jdaotsE5YGrK81p7GZUvamNnTynFprrPtMS9ZryStgwISrrepIN6PYOljJcwBfNXJkvWRmStpIZTmHUatK1WkL6k8WH7k6apEWe4rsmyXfA+5wzlo+N395rtgz1nwxuwXXnHjIQH4ROxWvvni1Insn71gsQ7DSDeS4KM9UeBvkm0DbUMZfpPkymSeSo4TJ1MRDgeS4jac6UV/ty+C1ecpjWbSEP/Sc3rJVv4rP0LAbahCnAiAr0FDtZzkrfyUF5dN9zhiM16SLBpb+LfLg/JvvU3PTldqDDZt2GSLR714DZ24B2PTr7dqCwjQYkl7dneoDcoGYCOwvqRflxR1EK7axrUPQXnUDzTFhQs6QkS4y4z//9W+VqtXNbmgaLrbrniWPMmpjEwKvxAqhNTdAM+ZWiZCBV4koCtyMxBQDASCEncUsRc12Kdsq87wRYMhHaSaGwq9YGFY9NrH39BQulavx0F3UoAAAAAElFTkSuQmCC"),
        linear-gradient(118deg, #162b55 0%, #21396b 38%, #2b477e 70%, #35588e 100%);
    background-image:
        radial-gradient(ellipse 68% 72% at 92% 7%, rgba(113,145,193,.16) 0%, rgba(113,145,193,.07) 38%, transparent 72%),
        radial-gradient(ellipse 55% 65% at 48% 108%, rgba(78,111,161,.11) 0%, transparent 72%),
        linear-gradient(115deg, #192f5a 0%, #213a6b 48%, #294679 76%, #304f82 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-copy { position: relative; z-index: 3; }
.hero-accent {
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.hero-accent::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 4%;
    bottom: .045em;
    height: .055em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(218,39,59,.9), rgba(239,91,106,.72));
    box-shadow: 0 2px 9px rgba(225,52,71,.16);
    transform-origin: left;
    animation: accent-draw 1s .45s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes accent-draw {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.valuation-stage {
    position: relative;
    z-index: 4;
    perspective: 1200px;
}

.valuation-stage::before {
    content: "";
    position: absolute;
    inset: -58px -68px;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(131,164,217,.22), transparent 66%);
    filter: blur(6px);
    animation: stage-breathe 8s ease-in-out infinite;
}

@keyframes stage-breathe {
    50% { transform: scale(1.06); opacity: .72; }
}

.valuation-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,250,254,.95));
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 38px 95px rgba(3,14,39,.3), inset 0 1px 0 rgba(255,255,255,.95);
    transform-style: preserve-3d;
    transition: transform .22s ease, box-shadow .3s ease;
}

.valuation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(430px circle at var(--mouse-x, 75%) var(--mouse-y, 18%), rgba(39,63,118,.12), transparent 42%);
    opacity: .8;
}

.valuation-card::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -40%;
    width: 34%;
    height: 220%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: rotate(19deg);
    animation: card-sheen 8s 1.4s ease-in-out infinite;
}

.valuation-card > * { position: relative; z-index: 1; }

@keyframes card-sheen {
    0%, 68% { transform: translateX(-180px) rotate(19deg); opacity: 0; }
    78% { opacity: .75; }
    100% { transform: translateX(920px) rotate(19deg); opacity: 0; }
}

.floating-data {
    position: absolute;
    z-index: 6;
    display: grid;
    grid-template-columns: 21px 1fr;
    gap: 0 9px;
    min-width: 150px;
    padding: 12px 15px;
    color: var(--blue);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 14px;
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(18px) saturate(1.08);
    box-shadow: 0 16px 42px rgba(9,24,55,.14);
    animation: data-float 6.5s ease-in-out infinite;
}

.floating-data svg {
    grid-row: 1 / 3;
    align-self: center;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.floating-data span { color: var(--muted); font-size: .63rem; font-style: normal; }
.floating-data strong { font-size: .76rem; }
.floating-data-one { top: -25px; right: 28px; }

@keyframes data-float {
    50% { transform: translate3d(0,-8px,0); }
}

.property-option-body {
    overflow: hidden;
    background: rgba(255,255,255,.68);
}
.property-option-body::after {
    content: "";
    position: absolute;
    inset: auto 14px 0;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transform: scaleX(0);
    transition: transform .35s ease;
}
.property-option:hover .property-option-body::after,
.property-option input:checked + .property-option-body::after { transform: scaleX(1); }
.property-icon { transition: transform .95s cubic-bezier(.16,.8,.22,1), background-color .86s ease, color .8s ease, box-shadow .86s ease; }
.property-option:hover .property-icon,
.property-option input:checked + .property-option-body .property-icon { transform: translateY(-2px) rotate(-3deg) scale(1.06); color: #fff; background-color: var(--blue); }
.property-option:hover .property-icon { box-shadow: 0 8px 18px rgba(39,63,118,.2); }
.property-option strong,
.property-option small { transition: color .32s ease, transform .38s cubic-bezier(.2,.75,.2,1); }
.property-option:hover strong { color: var(--blue); transform: translateX(2px); }
.property-option:hover small { color: #56647d; transform: translateX(2px); }
.property-option:hover .option-arrow { color: var(--red); transform: translate3d(4px, -50%, 0); }

.button { position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--motion-ease), background .35s ease, border-color .35s ease, box-shadow .4s ease; }
.button > span[aria-hidden="true"] { transition: transform .5s var(--motion-ease); }
.button:hover > span[aria-hidden="true"],
.button:focus-visible > span[aria-hidden="true"] { transform: translateX(5px); }
.button::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -90px;
    width: 62px;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: skewX(-20deg);
    transition: transform .75s ease;
}
.button:hover::after { transform: translateX(620px) skewX(-20deg); }
.button-primary { animation: cta-breathe 3.4s ease-in-out infinite; }

@keyframes cta-breathe {
    50% { box-shadow: 0 17px 34px rgba(174,13,33,.28); }
}

.step-page,
.legal-page,
.error-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(39,63,118,.08), transparent 25%),
        radial-gradient(circle at 93% 22%, rgba(174,13,33,.05), transparent 20%),
        linear-gradient(180deg, #f8f9fc 0, #fff 78%);
}

.step-page::before,
.legal-page::before,
.error-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    left: -250px;
    top: 25%;
    border: 1px solid rgba(39,63,118,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(39,63,118,.025), 0 0 0 144px rgba(39,63,118,.018);
    animation: orbit-drift 14s ease-in-out infinite;
}

@keyframes orbit-drift {
    50% { transform: translate3d(24px,-20px,0) rotate(8deg); }
}

.step-shell,
.compact-shell,
.legal-shell { position: relative; z-index: 1; }

.panel {
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(250,251,254,.88));
    border-color: rgba(39,63,118,.105);
    backdrop-filter: blur(16px) saturate(1.18);
    box-shadow: 0 22px 62px rgba(26,44,82,.095), inset 0 1px 0 rgba(255,255,255,.92);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.panel:hover { border-color: rgba(39,63,118,.18); box-shadow: 0 28px 72px rgba(26,44,82,.12), inset 0 1px 0 rgba(255,255,255,.95); }
.map-panel { box-shadow: 0 25px 64px rgba(26,44,82,.14); transition: transform .35s ease, box-shadow .35s ease; }
.map-panel:hover { transform: translateY(-3px); box-shadow: 0 32px 74px rgba(26,44,82,.18); }
.map-caption { backdrop-filter: blur(15px); }

.field input,
.field select {
    background: rgba(255,255,255,.82);
    transition: border .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus { transform: translateY(-1px); background: #fff; box-shadow: 0 0 0 4px rgba(39,63,118,.1), 0 10px 28px rgba(39,63,118,.08); }

.price-card { overflow: hidden; }
.price-value, .price-range { animation: price-arrive .85s .18s cubic-bezier(.2,.85,.25,1) both; }
@keyframes price-arrive {
    from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}
.result-heading::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 24px auto 0;
    background: linear-gradient(90deg, transparent, #f26a7a, transparent);
    animation: result-line 1s .2s ease both;
}
@keyframes result-line { from { transform: scaleX(0); opacity: 0; } }

/* Ober-Haus uses a 2.5s ease fade-up. Keep its pace with a gentler travel distance. */
html.motion-ready .reveal.is-reveal-pending {
    transition: opacity 2.5s ease var(--reveal-delay, 0ms), transform 2.5s ease var(--reveal-delay, 0ms);
}
html.motion-ready .reveal.is-reveal-pending:not(.visible) {
    transition: none;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
}
html.motion-ready .reveal.is-reveal-pending.visible { opacity: 1; transform: translate3d(0, 0, 0); }
html.motion-ready .reveal:focus-within { opacity: 1 !important; transform: none !important; }

@media (max-width: 1000px) {
    .valuation-card { transform: none !important; }
}

@media (max-width: 720px) {
    .flow-progress { top: 70px; }
    .hero { min-height: auto; }
    .hero::after { width: 360px; height: 360px; right: -210px; top: -100px; }
    .hero-accent::after { height: .06em; }
    .floating-data { min-width: 132px; padding: 9px 12px; border-radius: 12px; }
    .floating-data-one { right: 16px; top: -24px; }
    .valuation-stage::before { inset: -30px; }
    .valuation-card::after { display: none; }
    .panel:hover,
    .map-panel:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero::before,
    .hero::after,
    .hero-accent::after,
    .valuation-stage::before,
    .valuation-card::after,
    .floating-data,
    .button-primary,
    .progress-item.is-current .progress-number,
    .step-page::before,
    .legal-page::before,
    .error-page::before,
    .price-value,
    .price-range,
    .faq-list details[open] > p,
    .result-heading::after { animation: none !important; }
    .orbit-one { animation: orbit-one-drift 14s ease-in-out infinite !important; }
    .orbit-two { animation: orbit-two-drift 11s -4s ease-in-out infinite !important; }
    /* Preserve the requested fade without translation, zoom or staggered delays. */
    html.motion-ready .reveal { transform: none !important; }
    html.motion-ready .reveal.is-reveal-pending { transition: opacity 1.2s ease 0ms !important; }
    html.motion-ready .reveal.is-reveal-pending:not(.visible) { transition: none !important; }
    .valuation-card { transform: none !important; }
}
