/* Shared spacing and component geometry; page content and colour roles stay intact. */
:root {
  --vr-section-space: clamp(3.5rem, 7vw, 6rem);
  --vr-heading-space: clamp(1.5rem, 3vw, 2.5rem);
  --vr-layout-gap: clamp(1.5rem, 4vw, 4rem);
  --vr-page-gutter: max(1.25rem, calc((100% - var(--vr-content-width)) / 2));
  --vr-section-heading: clamp(2rem, 3.8vw, 3.5rem);
  --vr-button-height: 3.25rem;
}

body :is(.vr-section, .vr-process, .vr-proof, .vr-market, .vr-contact,
  .vr-sale-intro, .vr-sale-process, .vr-sale-principles, .vr-sale-region, .vr-sale-faq, .vr-sale-cta,
  .vr-value-intro, .vr-value-factors, .vr-value-process, .vr-value-result, .vr-value-region, .vr-value-faq, .vr-value-cta,
  .vr-about-intro, .vr-about-principles, .vr-about-focus, .vr-about-region, .vr-about-cta,
  .vr-offers-section, .vr-offers-owner, .vr-offers-finance, .vr-offers-offmarket,
  .vr-contact-section, .vr-finance-strip, .vr-offmarket-process, .vr-offmarket-boundaries, .vr-offmarket-owner,
  .vr-detail-section, .vr-detail-contact) {
  padding-block: var(--vr-section-space);
}

body :is(.vr-sale-process, .vr-sale-principles, .vr-sale-faq, .vr-sale-cta,
  .vr-value-factors, .vr-value-result, .vr-value-faq, .vr-value-cta,
  .vr-about-principles, .vr-about-cta, .vr-offers-owner, .vr-offers-offmarket,
  .vr-contact-section, .vr-finance-strip, .vr-offmarket-hero, .vr-offmarket-process,
  .vr-offmarket-boundaries, .vr-offmarket-owner, .vr-detail-breadcrumb, .vr-detail-section, .vr-detail-contact) {
  padding-inline: var(--vr-page-gutter);
}

body :is(.vr-sale-intro, .vr-sale-region, .vr-value-intro, .vr-value-process, .vr-value-region,
  .vr-about-intro, .vr-about-focus, .vr-about-region, .vr-offers-section, .vr-offers-finance) {
  width: min(var(--vr-content-width), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-inline: 0;
}

body :is(.vr-section, .vr-process, .vr-proof, .vr-market, .vr-contact,
  .vr-sale-intro, .vr-sale-section-head, .vr-sale-region, .vr-sale-cta,
  .vr-value-intro, .vr-value-section-head, .vr-value-result, .vr-value-region, .vr-value-cta,
  .vr-about-intro, .vr-about-section-head, .vr-about-focus, .vr-about-region, .vr-about-cta,
  .vr-offers-heading, .vr-offers-owner, .vr-offers-finance, .vr-offers-offmarket,
  .vr-contact-section__head, .vr-finance-strip, .vr-offmarket-section-head, .vr-offmarket-boundaries,
  .vr-offmarket-owner, .vr-detail-section__head, .vr-detail-copy-grid > article,
  .vr-detail-location-grid, .vr-detail-contact) h2 {
  margin: 0;
  font-size: var(--vr-section-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
  hyphens: manual;
}

body :is(.vr-header h1, .vr-offmarket-hero h1, .vr-detail-hero h1, .vr-legal-content h1, .vr-management-main h1) {
  text-wrap: balance;
  hyphens: manual;
}

body :is(.vr-sale-intro, .vr-sale-region, .vr-value-intro, .vr-value-result, .vr-value-region,
  .vr-about-intro, .vr-about-focus, .vr-about-region, .vr-offers-heading, .vr-offmarket-section-head) {
  gap: var(--vr-layout-gap);
}

body :is(.vr-service-grid, .vr-sale-steps, .vr-sale-principles__grid, .vr-value-factors__grid,
  .vr-value-steps, .vr-about-principles__grid, .vr-offmarket-steps) { margin-top: var(--vr-heading-space); }
body .vr-contact-section__head { margin-bottom: var(--vr-heading-space); }
body .vr-detail-section__head { margin-bottom: var(--vr-heading-space); }

body .vr-button, body .vr-management-main .Button, body .vr-reference-more button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 0;
  max-width: 100%;
  min-height: var(--vr-button-height);
  margin-bottom: 0;
  padding: .875rem 1.5rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

body :is(.vr-actions, .vr-contact-hero__actions, .vr-market__actions, .vr-contact__actions,
  .vr-sale-cta__actions, .vr-value-cta__actions, .vr-about-cta__actions, .vr-offers-owner__actions,
  .vr-detail-actions, .vr-detail-contact__actions, .management-cta-actions) { gap: .75rem; }
body .vr-form-submit { flex-wrap: wrap; gap: .75rem; }
body .vr-form-submit .vr-button { flex-shrink: 0; }
body .vr-form-submit > p { flex: 1 1 14rem; min-width: 0; }
body .vr-offmarket-owner { grid-template-columns: minmax(0, 1fr) auto; }
body .vr-offmarket-owner > .vr-button { width: 15.5rem; max-width: 100%; }

body :is(.vr-sale-cta__actions, .vr-value-cta__actions, .vr-about-cta__actions,
  .vr-offers-owner__actions, .vr-detail-contact__actions) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 15.5rem;
  min-width: 0;
  max-width: 100%;
}

/* The finance component is also used by property pages without contact-page CSS. */
body .vr-finance-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--vr-layout-gap);
  background: var(--vr-blue-soft);
}
body .vr-finance-strip > div { min-width: 0; }
body .vr-finance-strip p:not(.vr-kicker) { max-width: 42rem; margin: 1rem 0 0; color: var(--vr-muted); line-height: 1.7; }
body :is(.vr-finance-strip__partner, .vr-offers-finance__partner) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--vr-white);
}
body :is(.vr-finance-strip__partner, .vr-offers-finance__partner) img { display: block; width: 11.5rem; max-width: 100%; height: auto; }
body :is(.vr-finance-strip__partner, .vr-offers-finance__partner) a { color: var(--vr-blue); font-weight: 700; }

body .vr-offmarket-hero { position: relative; display: block; min-height: 40rem; padding-block: 5.5rem 4.75rem; }
body .vr-offmarket-hero__top { position: absolute; right: var(--vr-page-gutter); bottom: 1rem; }
body .vr-offmarket-hero__top img { display: none; }
body .vr-offmarket-hero__content h1 {
  max-width: 52.5rem;
  margin: 0 0 1.5rem;
  font-size: clamp(3.5rem, 5.6vw, 5.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.045em;
}
body .vr-offmarket-hero__content > p:not(.vr-kicker) { max-width: 47.5rem; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.58; }
body .vr-offmarket-hero__content > .vr-kicker { margin: 0 0 .9rem; color: #b2e1ff; }

/* Reference cards have five body rows rather than the six used for active offers. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 721px) {
    body .vr-reference-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; }
    body .vr-reference-card .vr-property-card__body { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
    body .vr-reference-card .vr-property-type { grid-row: 1; }
    body .vr-reference-card h3 { grid-row: 2; }
    body .vr-reference-card .vr-property-location { grid-row: 3; }
    body .vr-reference-card .vr-property-facts { grid-row: 4; }
    body .vr-reference-card .vr-reference-context { grid-row: 5; }
    body .vr-reference-card .vr-property-facts { margin-top: 0; }
  }
}

body.management-page .vr-management-main { padding: var(--vr-section-space) var(--vr-page-gutter); }
body .vr-management-main :is(.management-intro, .management-grid) { gap: var(--vr-layout-gap); }
body .vr-management-main .management-grid > .columns { display: grid; align-content: start; gap: 1.5rem; }
body .vr-management-main .contact-panel { margin-bottom: 0; }
body .vr-management-main :is(.contact-panel h2, .contact-panel h3) { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.25; text-wrap: balance; hyphens: manual; }
body .vr-management-main .Button { color: var(--vr-navy); border-color: var(--vr-line); background: var(--vr-white); }
body .vr-management-main .Button.Button-blue { color: var(--vr-navy); border-color: var(--vr-orange); background: var(--vr-orange); }
body .vr-management-main .Button i.align-right { float: none; margin: 0; padding: 0; }
body .vr-management-main .Button:hover { border-color: var(--vr-blue); }
body .vr-management-main .management-action-list { display: grid; gap: .75rem; }
body .vr-management-main .management-cta { margin-top: var(--vr-layout-gap); padding: clamp(2rem, 4vw, 3rem); border-radius: 1rem; background: var(--vr-navy); }
body .vr-management-main .management-cta .columns { text-align: left; }
body .vr-management-main .management-cta h2 { color: var(--vr-white); font-size: var(--vr-section-heading); line-height: 1.12; text-wrap: balance; }
body .vr-management-main .management-cta :is(.contact-kicker, .management-cta-lead) { color: rgba(255,255,255,.85); }
body .vr-management-main .management-cta-lead { margin-inline: 0; }
body .vr-management-main .management-cta-actions { justify-content: flex-start; }
body .vr-management-main .management-cta .Button:not(.Button-blue) { color: var(--vr-white); background: transparent; border-color: rgba(255,255,255,.65); }

body :is(.vr-management-main h1, .vr-legal-content h1, .vr-retired-property-page h1) { max-width: 28ch; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; }
body .vr-legal-content h1 small { display: inline-block; margin-top: .65rem; font-size: 1rem; line-height: 1.5; }
body .vr-legal-content :is(h2,h3) { hyphens: manual; text-wrap: balance; }
body .vr-concern-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .vr-concern-grid .vr-choice > span { height: 100%; }
body .vr-concern-link { display: flex; flex-direction: column; justify-content: center; gap: .3rem; margin: 0; padding: 1rem; min-height: 5.25rem; border: 1px solid var(--vr-line); border-radius: .75rem; background: var(--vr-surface); color: var(--vr-navy); text-decoration: none; font-size: .875rem; line-height: 1.35; }
body .vr-concern-link small { color: var(--vr-muted); font-size: .75rem; }
body .vr-concern-link:hover { border-color: var(--vr-blue); }

@media (max-width: 960px) {
  body :is(.vr-sale-cta, .vr-value-cta, .vr-about-cta, .vr-offers-owner, .vr-detail-contact, .vr-offmarket-owner, .vr-finance-strip) { grid-template-columns: minmax(0,1fr); gap: 2rem; align-items: start; }
}
@media (max-width: 720px) {
  body .vr-offmarket-hero { min-height: 0; padding-block: 3rem 5rem; }
  body .vr-offmarket-hero__content h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.08; }
  body .vr-offmarket-hero__content > p:not(.vr-kicker) { font-size: 1rem; line-height: 1.6; }
  body :is(.vr-actions, .vr-contact-hero__actions, .vr-market__actions, .vr-contact__actions,
    .vr-sale-cta__actions, .vr-value-cta__actions, .vr-about-cta__actions, .vr-offers-owner__actions,
    .vr-detail-actions, .vr-detail-contact__actions, .management-cta-actions) { flex-direction: column; align-items: stretch; width: 100%; }
  body :is(.vr-actions, .vr-contact-hero__actions, .vr-detail-actions) .vr-button { width: 100%; }
  body .vr-offmarket-owner .vr-button { justify-self: stretch; width: 100%; }
  body .vr-concern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  body .vr-concern-grid .vr-choice > span, body .vr-concern-link { min-height: 4rem; padding: .75rem .5rem; font-size: .875rem; text-align: center; }
  body .vr-concern-link small { display: none; }
}

/* Volksbank-style hover feedback without changing the navigation geometry. */
body .vr-navigation a {
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

@media (hover: hover) and (pointer: fine) {
  body .vr-navigation a:not([aria-current="page"]):hover {
    border-radius: .25rem;
    background-color: var(--vr-blue-soft);
    box-shadow: 0 0 0 .375rem var(--vr-blue-soft);
    color: var(--vr-navy);
  }
}

body .vr-navigation a:focus-visible {
  outline: 2px solid var(--vr-blue);
  outline-offset: .375rem;
}

body .vr-navigation a:not([aria-current="page"]):focus-visible {
  border-radius: .25rem;
  background-color: var(--vr-blue-soft);
  color: var(--vr-navy);
}

@media (prefers-reduced-motion: reduce) {
  body .vr-navigation a { transition: none; }
}

/* Preserve whole words in the valuation headline on every viewport. */
body .vr-value-hero h1 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Quiet offer feedback; keep card dimensions and price/button alignment stable. */
body .vr-property-card {
  transition: border-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  body .vr-property-card:not(.vr-reference-card):hover {
    border-color: var(--vr-blue);
    box-shadow: 0 18px 44px rgba(15, 39, 71, .13);
  }
}
body .vr-property-card:focus-within {
  border-color: var(--vr-blue);
  box-shadow: 0 18px 44px rgba(15, 39, 71, .13);
}

/* Native details keep their keyboard and expanded-state semantics. */
body :is(.vr-sale-faq, .vr-value-faq) summary {
  position: relative;
  padding-right: 3rem;
  list-style: none;
}
body :is(.vr-sale-faq, .vr-value-faq) summary::-webkit-details-marker {
  display: none;
}
body :is(.vr-sale-faq, .vr-value-faq) summary::marker { content: ""; }
body :is(.vr-sale-faq, .vr-value-faq) summary::before,
body :is(.vr-sale-faq, .vr-value-faq) summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .75rem;
  width: 1rem;
  height: 2px;
  background: var(--vr-blue);
  transform: translateY(-50%);
}
body :is(.vr-sale-faq, .vr-value-faq) summary::after {
  transform: translateY(-50%) rotate(90deg);
}
body :is(.vr-sale-faq, .vr-value-faq) details[open] > summary::after {
  opacity: 0;
}
body :is(.vr-sale-faq, .vr-value-faq) summary:focus-visible {
  outline: 2px solid var(--vr-blue);
  outline-offset: -.25rem;
  border-radius: .25rem;
}
@media (hover: hover) and (pointer: fine) {
  body :is(.vr-sale-faq, .vr-value-faq) summary:hover { color: var(--vr-blue); }
}
@media (prefers-reduced-motion: reduce) {
  body .vr-property-card,
  body .vr-property-card__image img,
  body :is(.vr-sale-faq, .vr-value-faq) summary::after { transition: none; }
}

/* Reference cards have no detail link; avoid suggesting a click action. */
body .vr-reference-card:hover .vr-property-card__image img { transform: none; }

/* Keep object headlines readable instead of automatic syllable breaks. */
body.vr-property-detail-page .vr-detail-hero h1 { hyphens: none; overflow-wrap: normal; word-break: normal; }

@media (max-width: 43rem) {
  body.vr-property-detail-page .vr-detail-hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
}

/* Keep short archive pages anchored at the bottom. */
body.vr-retired-property-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.vr-retired-property-page > main { flex: 1; }

.vr-offers-page .vr-offers-finance[hidden] { display: none; }
@media (min-width: 61rem) {
  .vr-offers-page .vr-property-grid:has(.vr-property-card:nth-child(4):not([hidden])):not(:has(.vr-property-card:nth-child(5):not([hidden]))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.vr-detail-room-list {
  padding-inline-start: 1.35rem;
  color: var(--vr-muted);
  line-height: 1.65;
}
.vr-privacy-index {
  padding: 1rem 1.25rem;
  margin-block: 1.5rem 2rem;
  border-radius: .5rem;
  background: var(--vr-blue-soft);
}
.vr-privacy-index h2 { margin-top: 0; }

/* Shared brand and review adjustments. */
:root {
  --vr-blue: #0066b3;
  --vr-navy: #002d67;
  --vr-orange: #f19100;
  --vr-orange-text: #a85a00; /* ≥ 4,68 : 1 auf Weiß, #f5f8fb, #f2f6f9 */
}
body [hidden] { display: none !important; }
body :is(.vr-main, .vr-contact-main, .vr-offmarket-main, .vr-property-detail-main, .vr-management-main) :is(h2, h3) + p:not(.vr-kicker) {
  margin-top: .65rem;
}
body :is(.vr-card-number, .vr-card-step) { margin-bottom: .5rem; }
body .vr-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .vr-market { display: block; }
body .vr-market .vr-property-grid { margin-block: 1.5rem; }
body .vr-market__actions { justify-content: flex-start; }
body :is(.vr-proof, .vr-sale-region, .vr-value-region, .vr-about-region) { grid-template-columns: minmax(0, 1fr); }
body .vr-finance-strip[data-finance] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) var(--vr-page-gutter);
}
body .vr-finance-strip h2 { font-size: clamp(1.5rem, 2.4vw, 2.15rem); }
body .vr-finance-strip .vr-finance-strip__partner { padding: 0; background: transparent; gap: .25rem; }
body .vr-finance-strip .vr-finance-strip__partner img { width: 10rem; }
body .vr-property-card {
  position: relative;
  isolation: isolate;
  border-radius: .625rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}
body .vr-property-card:is(:hover, :focus-within) { box-shadow: 0 6px 14px rgba(0, 0, 0, .13); }
body .vr-property-link::after { content: ""; position: absolute; inset: 0; }
body .vr-property-card:has(.vr-property-link:focus-visible) { outline: 2px solid var(--vr-blue); outline-offset: 3px; }
body :is(.vr-footer nav a, .vr-text-link, .vr-service-card a, .vr-property-link, .vr-finance-strip__partner a) {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
}
body .vr-property-link { position: static; }
body .vr-nav-phone { display: none; }

@media (min-width: 60rem) {
  body .vr-nav-phone { display: flex; align-items: center; }
  body .vr-nav-phone a { color: var(--vr-muted); font-weight: 600; }
  body .vr-topbar-call { display: none; }
}
body .vr-direct-contact {
  padding: clamp(2.5rem, 6vw, 4rem) var(--vr-page-gutter);
  background: var(--vr-navy);
  color: #fff;
}
body .vr-direct-contact__inner { margin-inline: auto; width: min(100%, var(--vr-content-width)); }
body .vr-direct-contact h2 { color: #fff; margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
body .vr-direct-contact__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
body .vr-direct-contact__actions a {
  display: grid;
  align-content: center;
  gap: .15rem;
  padding: .85rem 1rem;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: .625rem;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body .vr-direct-contact__actions a:is(:hover, :focus-visible) { background: rgba(255,255,255,.14); }
body .vr-contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem var(--vr-page-gutter);
  padding: 1rem;
  background: var(--vr-blue-soft);
  border-radius: .625rem;
}
body .vr-contact-person img { width: 5rem; aspect-ratio: 1; object-fit: cover; border-radius: .625rem; }
body .vr-contact-person h2 { margin: 0; font-size: 1.25rem; }
body .vr-contact-person a { display: block; min-height: 44px; align-content: center; overflow-wrap: anywhere; }
body .vr-contact-direct {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  width: min(var(--vr-content-width), calc(100% - 2.5rem));
  margin: clamp(1.5rem, 4vw, 3.5rem) auto 0;
}
body .vr-contact-direct .vr-contact-aside__body { grid-column: 1; grid-row: 1; min-width: 0; }
body .vr-contact-direct .vr-contact-person { margin-inline: 0; }
body .vr-contact-layout { grid-template-columns: minmax(0, 1fr); }
body .vr-form-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
body .vr-concern-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .vr-form-block legend { margin-bottom: .65rem; }
body .vr-choice-grid { margin-top: 0; }
body .vr-form-notice {
  margin: 0 0 1rem;
  padding: 1rem;
  border-left: 4px solid var(--vr-blue);
  background: var(--vr-blue-soft);
}
body [data-form-paused] [data-form-action-row] { display: none; }
body.management-page .vr-management-overview { padding: 0; }
body .vr-management-overview :is(.management-page-shell, .management-cta) { width: min(75rem, calc(100% - 2.5rem)); }
body .vr-management-overview .vr-direct-contact { margin-top: var(--vr-layout-gap); }
body .management-hero-band { background: var(--vr-navy); }
body .management-hero-band .contact-meta i { color: #b5e4ff; }
body .management-hero-band :is(h1, .contact-lead, .contact-meta span) { color: #fff; }
body .management-hero-band .contact-kicker { color: #b5e4ff; }
body .management-hero-band .contact-meta span { background: rgba(255,255,255,.12); }
body .vr-detail-data-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--vr-white);
  border-radius: .625rem;
}
body .vr-detail-data-grid > div { flex: 1 1 25%; box-shadow: inset 0 0 0 .5px var(--vr-line); }
body .vr-detail-data-grid--compact > div { flex-basis: 50%; }
body .vr-detail-gallery:not(:has(.vr-detail-gallery__item:nth-child(3))) { grid-template-rows: minmax(0, 1fr); }
body .vr-detail-gallery:not(:has(.vr-detail-gallery__item:nth-child(2))) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 59.99rem) {
  body .vr-navigation .vr-nav-phone { display: block; }
  body .vr-topbar .vr-navigation a { justify-content: flex-start; text-align: left; }
  body .vr-topbar .vr-navigation a.vr-nav-cta { justify-content: flex-start; padding-inline: .8rem; }
  body .vr-detail-data-grid > div { flex-basis: 50%; }
}
@media (max-width: 43rem) {
  body :is(main, header) :is(h1, h2, h3) { hyphens: manual; }
  body :is(.vr-service-grid, .vr-direct-contact__actions, .vr-contact-direct) { grid-template-columns: minmax(0, 1fr); }
  body .vr-contact-hero__lead { margin-top: .75rem; }
  body .vr-contact-hero__actions { margin-top: 1rem; }
  body .vr-contact-hero__actions .vr-button { min-width: 0; }
  body .vr-concern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .vr-form-block .vr-choice strong { white-space: nowrap; }
  body .vr-form-block .vr-choice > span { padding-inline: .45rem; font-size: .85rem; }
  body .vr-detail-data-grid > div { flex-basis: 100%; }
  body .vr-detail-gallery:has(.vr-detail-gallery__item:nth-child(2)):not(:has(.vr-detail-gallery__item:nth-child(3))) { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  body .vr-offer-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .vr-offer-filters button { grid-column: auto; width: 100%; min-height: 44px; }
}

/* Keep the mastheads aligned while allowing content to grow with larger text. */
:root {
  --vr-page-hero-height: 37.5rem;
  --vr-page-hero-padding: clamp(1.75rem, 3.5vw, 3rem);
  --vr-page-hero-heading: clamp(2.6rem, 4.5vw, 4.2rem);
}

body :is(.vr-hero, .vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero,
  .vr-contact-hero, .vr-offmarket-hero, .management-hero-band, .vr-page-title-band,
  .vr-retired-property-page [aria-labelledby="archive-title"]) {
  display: flex;
  align-items: center;
  min-block-size: var(--vr-page-hero-height);
}

body :is(.vr-hero, .vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero, .vr-contact-hero)
  > :is(.vr-hero__inner, .vr-sale-hero__inner, .vr-value-hero__inner, .vr-offers-hero__inner,
    .vr-about-hero__copy, .vr-contact-hero__content) {
  padding-block: var(--vr-page-hero-padding);
}

body.home .vr-hero h1,
body :is(.vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero, .vr-contact-hero,
  .vr-offmarket-hero, .management-hero-band, .vr-page-title-band,
  .vr-retired-property-page [aria-labelledby="archive-title"]) h1 {
  max-width: 52rem;
  font-size: var(--vr-page-hero-heading);
  line-height: 1.06;
}

body.home .vr-hero h1 { max-width: 100%; }
body .vr-offmarket-hero { padding-block: var(--vr-page-hero-padding) max(3rem, var(--vr-page-hero-padding)); }
body .management-hero-band .management-intro {
  display: block;
  width: min(var(--vr-content-width), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: var(--vr-page-hero-padding);
}
.management-hero-copy { max-width: 52rem; }
body .management-grid .management-hero-card { margin-bottom: var(--vr-heading-space); }

body .vr-page-title-band,
body.vr-retired-property-page [aria-labelledby="archive-title"] {
  padding: var(--vr-page-hero-padding) var(--vr-page-gutter);
  background: var(--vr-navy);
  color: var(--vr-white);
}
body .vr-page-title-band { box-sizing: border-box; }
.vr-page-title-band__inner::after {
  content: "";
  display: block;
  width: 4rem;
  height: .25rem;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: var(--vr-orange);
}
body .vr-page-title-band h1,
body.vr-retired-property-page [aria-labelledby="archive-title"] h1 {
  margin: 0;
  color: var(--vr-white);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
body :is(.vr-page-title-band, .vr-retired-property-page [aria-labelledby="archive-title"]) .vr-kicker { color: #b2e1ff; }
body.vr-retired-property-page [aria-labelledby="archive-title"] {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
body.vr-retired-property-page [aria-labelledby="archive-title"] > p:not(.vr-kicker) { max-width: 48rem; margin-top: 1.35rem; }
body.vr-retired-property-page [aria-labelledby="archive-title"] .vr-button:not(.vr-button--primary) {
  border-color: currentColor;
  background: transparent;
  color: var(--vr-white);
}

body .vr-detail-hero { min-block-size: var(--vr-page-hero-height); }
body .vr-detail-gallery { min-block-size: 0; }
body .vr-detail-hero__content { padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem); }
body .vr-detail-status { margin-bottom: .65rem; }
body.vr-property-detail-page .vr-detail-hero h1 {
  max-width: 25ch;
  margin-block: .25rem .65rem;
  font-size: clamp(1.65rem, 2.55vw, 2.4rem);
}
body .vr-detail-key-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-block: .85rem;
  padding-block: .65rem;
}
body .vr-detail-prices {
  gap: .85rem 1.35rem;
  margin-bottom: 1rem;
}
body .vr-detail-prices strong {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.2;
}
.vr-detail-prices small {
  color: var(--vr-white);
  font-size: .8125rem;
  line-height: 1.45;
  max-width: 22rem;
}

@media (min-width: 62.01rem) {
  body .vr-detail-gallery { contain: size; }
}

@media (max-width: 62rem) {
  body .vr-detail-hero { min-block-size: 0; }
  body .vr-detail-hero__content { min-block-size: var(--vr-page-hero-height); }
  body .vr-detail-gallery { height: clamp(20rem, 60vw, 32rem); }
}

@media (max-width: 45rem) {
  :root {
    --vr-page-hero-padding: 1.5rem;
    --vr-page-hero-heading: clamp(1.85rem, 7.6vw, 2.6rem);
  }

  body :is(.vr-hero, .vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero,
    .vr-contact-hero, .vr-offmarket-hero) h1 { margin-bottom: .8rem; }
  body :is(.vr-hero__lead, .vr-sale-hero__lead, .vr-value-hero__lead, .vr-offers-hero__lead,
    .vr-about-hero__copy > p:not(.vr-kicker), .vr-contact-hero__lead, .vr-offmarket-hero__content > p:not(.vr-kicker)) {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
  }
  body :is(.vr-hero, .vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero,
    .vr-contact-hero, .vr-offmarket-hero) :is(.vr-actions, .vr-contact-hero__actions, .vr-trustline, .vr-offmarket-trust) {
    margin-top: 1rem;
  }
  body :is(.vr-hero, .vr-sale-hero, .vr-value-hero, .vr-offers-hero, .vr-about-hero) .vr-trustline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .3rem .75rem;
  }
  body .vr-about-hero.vr-about-hero--team-photo {
    justify-content: center;
    padding-block: .75rem;
  }
  body .vr-about-hero--team-photo .vr-about-hero__image { width: min(calc(100% - 2.5rem), 17rem); }
  body .vr-about-hero--team-photo .vr-about-hero__image img { border-radius: .65rem; }
  body .vr-about-hero--team-photo .vr-about-hero__copy { padding-block: 0 1rem; }
  body .vr-detail-gallery:has(.vr-detail-gallery__item:nth-child(3)) { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
  body .vr-detail-gallery__item:nth-child(n + 2) { min-block-size: 0; }
}

@media (max-width: 23rem) {
  body .vr-about-hero--team-photo .vr-about-hero__image { width: min(calc(100% - 2.5rem), 14rem); }
}

@media (max-width: 22rem) {
  :root { --vr-page-hero-height: 40rem; }
}

body .vr-legal-main { padding: 0; }
body .vr-legal-main > article {
  padding: clamp(1rem, 7vw, 5.5rem) var(--vr-page-gutter);
}
body .vr-legal-content > h2:first-child { margin-top: 0; }

/* P1.5 – Kontrast (axe-core wcag2aa color-contrast) und Mindestschriftgröße 13 px. */
body .vr-detail-date a { color: var(--vr-orange-text); }
body .vr-management-note small { color: var(--vr-muted); font-size: 13px; }

/* P1.7d – Off-Market-Hero bündig mit dem Seitenraster. Die geteilte Hero-Regel
   weiter oben setzt align-items: center für alle Heroes; bei .vr-offmarket-hero
   (flex-direction: column) zentriert das __content in der Breite statt es
   bündig zu lassen (≈ 174px Einrückung bei 1280px Breite). */
body.vr-offmarket-page .vr-offmarket-hero { align-items: stretch; }

@media print {
  body .vr-page-title-band {
    display: block;
    min-block-size: 0;
    padding: 0 0 1rem;
    background: #fff;
  }

  body .vr-page-title-band :is(h1, .vr-kicker) { color: #000; }
  .vr-page-title-band__inner::after { display: none; }
  body .vr-legal-main > article { padding: 0; }
}

body .vr-topbar .vr-navigation a[aria-current="page"] {
  background: transparent;
  color: var(--vr-navy);
  text-decoration: underline 2px;
  text-underline-offset: .35em;
}
body .vr-topbar .vr-navigation a.vr-nav-cta,
body .vr-topbar .vr-navigation .vr-nav-mobile-call a {
  background: #0066b3;
  color: #fff;
}
body .vr-nav-mobile-call { display: none; }
@media (min-width: 64rem) {
  body .vr-header:has(> .vr-topbar):not(:has(> section)) { position: sticky; top: 0; z-index: 20; }
  body .vr-header--scrolled > .vr-topbar { box-shadow: 0 3px 14px #002d671a; }
  body .vr-topbar { min-height: 0; padding-block: .45rem; }
  body .vr-topbar .vr-brand img { max-height: 52px; object-fit: contain; }
}
@media (max-width: 63.99rem) {
  body .vr-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body .vr-topbar .vr-menu-toggle { display: inline-flex; }
  body .vr-mobile-nav-ready .vr-navigation:not(.is-open) { display: none; }
  body .vr-topbar .vr-navigation { grid-column: 1 / -1; width: 100%; }
  body .vr-topbar .vr-navigation ul { display: grid; grid-template-columns: 1fr; }
  body .vr-topbar .vr-navigation a { font-size: 18px; }
  body .vr-nav-mobile-call { display: block; }
  body .vr-topbar .vr-navigation .vr-nav-mobile-call a { width: 100%; justify-content: center; }
}
body .vr-topbar .vr-navigation a.vr-nav-cta { border-radius: 999px; padding-inline: .8rem; }
@media (min-width: 64rem) {
  body .vr-topbar .vr-navigation a:not(.vr-nav-cta) {
    padding-inline: .5rem;
    font-weight: 700;
  }
}

/* Regional partnership and footer share the original bank mark. */
.vr-region-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .65fr);
  align-items: center;
  gap: var(--vr-layout-gap);
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--vr-page-gutter);
  background: var(--vr-surface);
}
.vr-region-facts h2 {
  margin: 0 0 .65rem;
  color: var(--vr-navy);
  font-size: var(--vr-section-heading);
  font-weight: 700;
  text-wrap: balance;
}
.vr-region-facts p { margin: 0; }
.vr-region-facts__bank {
  display: grid;
  justify-items: start;
  gap: .55rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--vr-line);
  border-radius: .75rem;
  background: #fff;
}
.vr-region-facts__bank img { display: block; width: 175px; max-width: 100%; height: auto; }
.vr-region-facts__bank p { font-size: .875rem; color: var(--vr-muted); }

body .vr-footer .vr-footer__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem 1.25rem;
  padding-block: .9rem;
}
.vr-footer__marks {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  padding: .35rem .65rem;
  border-radius: .45rem;
  background: #fff;
}
.vr-footer__marks a { min-width: 0; }
.vr-footer__marks .vr-footer__brand,
.vr-footer__marks .vr-footer__bank img { display: block; max-width: 100%; height: auto; }
.vr-footer__marks .vr-footer__brand { width: 132px; }
.vr-footer__marks .vr-footer__bank img { width: 127px; } /* gleiche Höhe wie das VR-Logo (132 px breit) */
.vr-footer__identity p { margin: .35rem 0 0; font-size: .875rem; }
body .vr-footer__services { flex-wrap: wrap; gap: .2rem 1rem; }
body .vr-footer__legal { grid-column: 1 / -1; flex-wrap: wrap; gap: .2rem .85rem; white-space: normal; }
body .vr-footer__legal p { margin: 0; }
body .vr-footer .vr-footer__legal nav { gap: .75rem; }
body.vr-contact-mode-buyer .vr-contact-profile--card { display: none; }
body.vr-contact-mode-buyer .vr-contact-main { display: flex; flex-direction: column; }
body.vr-contact-mode-buyer .vr-contact-direct { order: 1; }
body.vr-contact-mode-buyer .vr-contact-promises[hidden] { display: none; }
body.vr-contact-mode-buyer .vr-owner-form > .vr-actions textarea { flex-basis: 100%; min-width: 0; }

@media (max-width: 63.99rem) {
  body .vr-footer .vr-footer__inner,
  .vr-region-facts { grid-template-columns: minmax(0, 1fr); }
}

/* Keep both portrait variants rectangular on the contact page. */
body.vr-contact-page .vr-contact-profile--compact .vr-contact-profile__picture {
  aspect-ratio: 4 / 5;
  border-radius: .45rem;
}

@media (max-width: 45rem) {
  body .vr-footer .vr-footer__inner { gap: .35rem; }
  body .vr-footer__services { gap: 0 .65rem; font-size: .875rem; }
}

/* === Optimierungen 15.11.2026 === */
.vr-actions.vr-section-cta { flex-wrap: wrap; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.vr-sale-faq .vr-section-cta, .vr-value-faq .vr-section-cta { justify-content: flex-start; }

/* Region: Fakten statt Einzelsatz */
.vr-region-facts__list { display: grid; gap: .45rem; margin: .25rem 0 1.1rem; padding: 0; list-style: none; }
.vr-region-facts__list li { position: relative; padding-left: 1.1rem; color: var(--vr-navy); }
.vr-region-facts__list li::before { content: ""; position: absolute; top: .62em; left: 0; width: .4rem; height: .4rem; border-radius: 50%; background: var(--vr-orange); }

/* Verkaufen: Provision sichtbar */
.vr-fee-note { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--vr-layout-gap); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) var(--vr-page-gutter); }
.vr-fee-note h2 { margin: .35rem 0 .75rem; color: var(--vr-navy); font-size: var(--vr-section-heading); line-height: 1.1; }
.vr-fee-note__head > p:last-child { margin: 0; color: var(--vr-muted); }
.vr-fee-note__list { display: grid; gap: .75rem; margin: 0; }
.vr-fee-note__list > div { padding: 1.1rem 1.25rem; border: 1px solid var(--vr-line); border-radius: .75rem; background: #fff; }
.vr-fee-note__list dt { margin-bottom: .3rem; color: var(--vr-navy); font-weight: 700; }
.vr-fee-note__list dd { margin: 0; color: var(--vr-muted); }
.vr-fee-note__hint { margin: .25rem 0 0; color: var(--vr-muted); font-size: .9375rem; }
.vr-region-facts__list a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 63.99rem) { .vr-fee-note { grid-template-columns: minmax(0, 1fr); } }

/* Unterlagen- und Zielgruppenkarten: keine Karte ohne Grund hervorheben */
.vr-sale-principles article:first-child { color: inherit; border-color: #d7e2ea; background: #fff; }
.vr-sale-principles article:first-child p:last-child { color: var(--vr-muted); }
.vr-sale-principles article:first-child .vr-card-number { color: var(--vr-orange-text); font-size: 13px; }
.vr-sale-principles article:first-child h3 { color: var(--vr-navy); }

/* Über uns: Ansprechpartner mit Foto, Team am Seitenraster */
.vr-about-team__lead { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 1.25rem 0 1rem; padding: 1.25rem; border: 1px solid var(--vr-line); border-radius: .75rem; background: #fff; }
.vr-about-team__lead img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .5rem; }
.vr-about-team__lead h3 { margin: .25rem 0 .2rem; color: var(--vr-navy); font-size: 1.5rem; }
.vr-about-team__lead p { margin: 0; color: var(--vr-muted); }
.vr-about-team__contact { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; }
.vr-about-team__contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--vr-navy); font-weight: 700; }
.vr-about-team { width: min(1180px, calc(100% - 2.5rem)); }
.vr-about-team__names { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
@media (max-width: 45rem) { .vr-about-team__lead { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; } .vr-about-team__lead picture { width: 120px; } .vr-about-team__lead h3 { font-size: 1.25rem; } .vr-about-team__lead p { hyphens: auto; } }

/* Objektseiten: am Handy zuerst das Foto, Kennzahlen lesbar */
@media (max-width: 62rem) { .vr-detail-hero__content { order: 0; } }
@media (max-width: 43rem) {
  .vr-detail-gallery { min-height: 0; grid-template-rows: 15rem 6rem; }
  .vr-detail-gallery__item:nth-child(2), .vr-detail-gallery__item:nth-child(3) { min-height: 6rem; }
  .vr-detail-key-facts dt { font-size: .75rem; }
}

/* Off-Market/Suchprofil: ruhigerer Kopf, Eigentümer-Abschnitt breiter */
.vr-offmarket-hero { min-height: clamp(24rem, 55vh, 32rem); justify-content: center; }
.vr-offmarket-owner h2 { max-width: 22ch; }
body .vr-offmarket-owner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; } body .vr-offmarket-owner > .vr-button { justify-self: start; }

/* Angebote und Referenzen: niedrigerer Kopfbereich */
.vr-offers-hero { min-height: 0; }
.vr-offers-hero__inner { padding-block: clamp(3rem, 7vw, 5rem); }

/* Impressum: lange Begriffe trennen */
.vr-imprint-data dt { hyphens: auto; overflow-wrap: anywhere; }

/* Footer: Links am Handy lesbar */
@media (max-width: 45rem) { body .vr-footer .vr-footer__legal, body .vr-footer .vr-footer__legal a { font-size: .8125rem; } }

/* Kopf: keine Telefonnummer in der Desktop-Leiste; Nummer steht dezent im Hero (Vorgabe 16.11.2026) */
body .vr-hero-call {
  margin: .9rem 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: .9375rem;
  font-weight: 600;
}
body .vr-hero-call a { color: #fff; font-weight: 700; text-decoration: underline 1px; text-underline-offset: .25em; white-space: nowrap; }
body .vr-hero-call a:hover, body .vr-hero-call a:focus-visible { text-decoration-thickness: 2px; }
body :is(.vr-about-hero, .vr-offmarket-hero) p.vr-hero-call { margin-top: .9rem; font-size: .9375rem; line-height: 1.5; max-width: none; }
