/* Shared finishing layer: consistent typography, spacing, and brand components. */
.portal-dialog { width: min(1440px, calc(100% - 64px)); height: min(920px, calc(100dvh - 64px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--radius-surface); background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.portal-dialog[open] { display: flex; flex-direction: column; animation: portalIn .25s ease-out both; }
.portal-dialog::backdrop { background: rgba(10,10,12,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.portal-dialog__head { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.portal-dialog__head h2 { margin: 0 auto 0 0; font: 550 24px/1.2 var(--sans); letter-spacing: -.02em; }
.portal-dialog__head h2:focus { outline: none; }
.portal-dialog__external { font: 500 14px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.portal-dialog__close { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-control); background: var(--surface); color: var(--ink); cursor: pointer; }
.portal-dialog__close:hover { background: var(--yellow); }
.portal-dialog__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.portal-dialog__head :is(a,button):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.portal-dialog iframe { display: block; width: 100%; min-height: 0; flex: 1 1 0; border: 0; background: #fff; }
.portal-dialog__loading { margin: 0; padding: 16px 24px; color: var(--muted); font-size: 16px; }
@keyframes portalIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes portalSheetIn { from { transform: translateY(100%); } to { transform: none; } }
.foot .foot__cols > div:first-child { display: block; }
@media (min-width: 761px) { .foot .foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .portal-dialog { width: 100%; height: calc(100dvh - 20px); margin: auto 0 0; border-radius: var(--radius-surface) var(--radius-surface) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .portal-dialog[open] { animation: portalSheetIn .32s ease-out both; }
  .portal-dialog__head { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .portal-dialog__head h2 { font-size: 22px; }
  .portal-dialog__external { order: 3; flex-basis: 100%; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .portal-dialog[open] { animation: none; } }
:root {
  --tracking-hero: -.04em;
  --tracking-page-hero: -.035em;
  --tracking-heading: -.03em;
  --leading-hero: 1.04;
  --leading-heading: 1.08;
  --hero-heading-size: clamp(44px, 5.5vw, 80px);
  --hero-heading-width: 760px;
  --space-heading-copy: 24px;
  --shadow-sm: 0 1px 3px rgba(12,12,13,.035), 0 2px 8px -5px rgba(12,12,13,.07);
  --shadow-md: 0 8px 24px -14px rgba(12,12,13,.14), 0 2px 6px rgba(12,12,13,.035);
  --shadow-lg: 0 16px 40px -22px rgba(12,12,13,.2), 0 4px 12px -6px rgba(12,12,13,.06);
  --ui-shadow-control: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(12,12,13,.07);
  --ui-shadow-floating: 0 18px 48px -18px rgba(12,12,13,.2), 0 4px 12px -6px rgba(12,12,13,.1);
}

/* Optical rhythm: emphasis must not introduce a different letter spacing. */
.hero__h1,
.page-hero h1,
.page-main h1.section-heading,
.page-main .site-contact h1 { max-width: min(100%, var(--hero-heading-width)); font-size: var(--hero-heading-size); }
.hero__h1 { letter-spacing: var(--tracking-hero); line-height: var(--leading-hero); }
.page-hero h1,
.page-main h1.section-heading,
.page-main .site-contact h1 { font-weight: 560; letter-spacing: var(--tracking-page-hero); line-height: var(--leading-hero); }
.hero__h1-accent,
.page-hero h1 em,
.section-heading em,
.display em,
.display .accent-word { letter-spacing: inherit; }
.display,
.section-heading,
.body-copy h2,
.switch-process__head h2,
.switch-faq h2,
.site-contact :is(h1, h2) { letter-spacing: var(--tracking-heading); line-height: var(--leading-heading); }
.section-heading { overflow-wrap: break-word; hyphens: manual; }
.cookie-dialog__head h2,
.offer-dialog__head h2 { letter-spacing: var(--tracking-heading); line-height: 1.08; }
.section-copy,
.switch-process__head p { margin-top: var(--space-heading-copy); }
.section-head--action > .btn { margin-top: var(--space-heading-copy); }
.faq-hub__group > summary > span { letter-spacing: -.025em; }
.faq-hub .faq-item > summary { letter-spacing: -.015em; }
.faq-item:hover > summary,
.qa:hover > summary { padding-left: 4px; }
.faq-item > summary,
.qa > summary { transition: color .2s var(--ease); }
.faq-item > summary::after,
.qa__plus { transition: background .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease); }
.nav__links > a,
.nav__trigger,
.nav__mobile-direct,
.nav__mobile-trigger { letter-spacing: -.015em; }
.nav__dropdown small { line-height: 1.45; }

/* One shared content frame for navigation, text, images, and footer.
   Full-bleed backgrounds stay outside it; intentional card/column layouts remain. */
.nav__shell,
.container,
.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* Keep the original readable text measures, anchored to the shared left edge.
   Large glyph side bearings need a small optical correction against body/nav text. */
.display,
.section-heading,
.body-copy h2,
.switch-process__head h2,
.switch-faq h2,
.site-contact :is(h1, h2) { margin-inline-start: -.04em; }
/* Align the visible first glyph, not its invisible font side bearing.
   Values are measured centrally after the local fonts have loaded. */
.hero__h1 { margin-inline-start: 0; }
.hero__h1-line { position: relative; left: var(--hero-ink-edge, -.04em); }
.page-hero h1 { margin-inline-start: var(--hero-ink-edge, -.04em); }
.page-hero h1 > em { position: relative; left: calc(var(--hero-em-edge, -.04em) - var(--hero-ink-edge, -.04em)); }
.page-cta { text-align: left; }
.page-cta h2,
.page-cta p { margin-inline: 0; }
.page-cta__actions { justify-content: flex-start; }

/* Glass only in the floating navigation layer; opaque fallback stays legible. */
.nav,
.nav.is-scrolled,
.nav__dropdown,
.nav__mobile-sheet {
  background: #fbfbfc;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav { border-bottom-color: rgba(12,12,13,.06); }
.nav.is-scrolled { box-shadow: 0 4px 18px -10px rgba(12,12,13,.12); }
.nav__dropdown {
  border-radius: 0 0 var(--radius-surface) var(--radius-surface);
  box-shadow: var(--ui-shadow-floating), inset 0 1px 0 rgba(255,255,255,.75);
}
.nav__mobile-sheet { box-shadow: var(--ui-shadow-floating); }
.nav__mobile { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(250,250,251,.82); }
  .nav.is-scrolled { background: rgba(250,250,251,.92); }
  .nav__dropdown { background: rgba(255,255,255,.94); }
  .nav__mobile-sheet { background: rgba(255,255,255,.96); }
  .nav,
  .nav.is-scrolled,
  .nav__dropdown {
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
  }
  .nav__mobile-sheet { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* Quiet controls: retain the familiar pill shape without the yellow glow. */
.btn--accent,
.btn--solid,
.hero__ctas .btn--accent,
.nav__links > .nav__menu-portal { box-shadow: var(--ui-shadow-control); }
.btn--accent:hover,
.btn--solid:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.nav__dropdown a:hover,
.nav__mega-links a:hover { transform: none; }
.nav__dropdown a { transition: background .2s var(--ease), border-color .2s var(--ease); }
.nav__mobile-direct[aria-current="page"]::after,
.nav__mobile-panel a[aria-current="page"]::after { color: var(--ink); }

/* Content stays solid. Consistent, shallow elevation rather than moving cards. */
.property-card:hover,
.service-card:hover,
.team-card:hover,
.listing-card:hover,
.download-card:hover,
.contact-card:hover { transform: none; box-shadow: var(--shadow-md); }
.acard:hover { transform: none; box-shadow: var(--shadow-md); }
.property-card:hover .property-card__media img { transform: scale(1.02); }
.customer-service-card,
.reference-card,
.document-card,
.faq-hub__group,
.site-contact__card { box-shadow: var(--shadow-sm); }
a.site-contact__card:hover { transform: none; }
.property-filters { box-shadow: var(--shadow-md); }
@media (min-width: 681px) {
  .property-filters { border-radius: var(--radius-surface); }
}
.cookie-dialog,
.offer-dialog { box-shadow: var(--ui-shadow-floating); }

/* Visible keyboard focus without changing mouse/touch states. */
.nav__links > .nav__menu-portal { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; cursor: pointer; color: var(--ink); }
.nav__mobile-foot { padding-top: 24px; }
.service-coming-soon { display: inline-block; padding: 5px 9px; border-radius: var(--radius-control); background: var(--yellow); color: var(--ink); font: 500 12px/1.3 var(--mono); letter-spacing: 0; vertical-align: middle; }
.opening-hours { width: 100%; margin: 4px 0 8px; display: grid; gap: 12px; color: #fff; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.45; font-variant-numeric: tabular-nums; }
.opening-hours > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; }
.opening-hours dt { font-weight: 500; }
.opening-hours dd { margin: 0; display: grid; gap: 4px; }
.opening-hours dd span { white-space: nowrap; }
@media (max-width: 380px) { .opening-hours > div { grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; } }
:where(a, button, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nav__links > a:focus-visible,
.nav__trigger:focus-visible { outline-offset: -7px; }
.nav__dropdown a:focus-visible,
.nav__mobile-links a:focus-visible,
.nav__mobile-trigger:focus-visible,
.property-card__button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.property-field input:focus-visible,
.property-field select:focus-visible,
.property-sort select:focus-visible,
.inquiry-field input:focus-visible,
.inquiry-field textarea:focus-visible,
.inquiry-field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cookie-option input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Keep long German labels inside the smallest phone viewport. */
@media (max-width: 374px) {
  .document-card { min-width: 0; }
  .document-card h3,
  .legal-block h2 { overflow-wrap: anywhere; hyphens: auto; }
}
/* Phone typography: compact headings, without reducing copy or control labels. */
@media (max-width: 680px) {
  .hero__h1,
  .page-hero h1,
  .page-main h1.section-heading,
  .page-main .site-contact h1 {
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.06;
    letter-spacing: -.035em;
  }
  .display,
  .section-heading,
  .body-copy h2,
  .switch-process__head h2,
  .switch-faq h2,
  .site-contact :is(h1, h2),
  .page-cta h2,
  .contact-panel h2,
  .home-switch-link h2 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.1;
  }
  .property-detail-copy h1,
  .property-not-found h1 {
    font-size: clamp(30px, 8.2vw, 36px);
    line-height: 1.12;
    letter-spacing: -.03em;
    overflow-wrap: break-word;
  }
  .property-card h3,
  .listing-card h3 {
    font-size: 19px;
    line-height: 1.22;
    letter-spacing: -.02em;
  }
  .property-description h2,
  .inquiry-panel h2 {
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.16;
    letter-spacing: -.025em;
  }
}

/* Julia's final editorial corrections, 07.10.2026. */
.service-preview__icon { padding: clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 34px) 0; }
.service-preview__icon img { display: block; width: 80px; height: 80px; }
body[data-page="hausverwaltung"] .page-hero__media img { filter: grayscale(1); }
@media (max-width: 820px) {
  body[data-page="hausverwaltung"] .page-hero__media::after { background: linear-gradient(0deg, rgba(8,8,9,.9), rgba(8,8,9,.65) 88%); }
}
.page-hero.page-hero--plain { background: #e9e9e7; color: #0c0c0d; }
.page-hero--plain h1 em { color: #0c0c0d; }
.page-hero--plain .page-hero__lead { color: #444; }
.listing-contact { display: grid; gap: 8px; margin: 24px 0; font-style: normal; color: #0c0c0d; }
.listing-contact strong { font-size: 1.2em; }
.listing-contact a { color: inherit; width: fit-content; text-underline-offset: 4px; }

/* October typography pass: legible labels and a shared, quieter spacing scale. */
:root { --space-section: clamp(56px, 6vw, 88px); --space-grid: clamp(24px, 3vw, 36px); }
.nav__phone--menu { flex-direction: row; align-items: center; justify-content: center; gap: 0; }
.nav__phone--menu strong { font-size: 15px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-contact__eyebrow,
.site-contact__card > span,
.team-entry-card small,
.property-field > span,
.property-sort > span,
.property-tag-group > strong,
.property-detail-fact span,
.property-detail-agent span,
.inquiry-contact span,
.inquiry-field label,
.offer-dialog__head > span,
.legal-toc strong,
.legal-data-card span,
.document-card > span,
.reference-card small,
.faq-hub__group > summary > small { font-size: 14px; line-height: 1.35; letter-spacing: .01em; text-transform: none; }
.property-field input,
.property-field select,
.property-sort select,
.faq__search input { font-size: 16px; }
.site-contact__card > small { font-size: 15px; line-height: 1.55; }
.site-contact__eyebrow { margin-bottom: 16px; }
.foot__brand span { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.76); }
.foot__cols h4 { font: 600 18px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; }
.foot__bottom { gap: 20px; font-size: 13px; line-height: 1.6; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.68); }
.foot__bottom > span { min-width: 0; }
.page-section { padding-block: var(--space-section); }
.section-head { margin-bottom: var(--space-grid); }
.service-preview { display: flex; flex-direction: column; }
.service-preview__body { flex: 1; }
.service-preview__body > a { margin-top: auto; }
.team-card { display: flex; flex-direction: column; padding-bottom: 20px; }
.team-card__image { flex: 0 0 auto; }
.team-card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: break-word; }
.team-card p { font-size: 16px; line-height: 1.5; }
.team-card__phone { margin-top: auto; padding-top: 12px; min-height: 44px; align-items: center; font: 500 15px/1.4 var(--sans); white-space: nowrap; }
.team-toolbar .filter-chip { min-height: 44px; line-height: 1.3; }
.team-entry-card > span { min-width: 0; }
.team-entry-card strong { overflow-wrap: break-word; }
.switch-steps h3 { overflow-wrap: break-word; hyphens: auto; }
.page-hero--architecture .page-hero__media img { filter: grayscale(1); object-position: center 56%; transform: none; }
.page-hero--architecture .page-hero__media::after { background: linear-gradient(90deg, rgba(8,8,9,.79), rgba(8,8,9,.48)); }
.reveal-page,
.reveal-page--stagger > * { filter: none; }

@media (max-width: 680px) {
  .hstat { min-width: 0; padding-inline: clamp(4px, 1.2vw, 8px); }
  .hstat__num { font-size: clamp(22px, 6vw, 28px); line-height: 1.1; white-space: nowrap; }
  .hstat__lab { margin-top: 6px; font-size: clamp(10.5px, 2.85vw, 13px); line-height: 1.3; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow-wrap: normal; color: rgba(255,255,255,.78); }
  .page-section,
  .audience,
  .services,
  .faq,
  .site-contact,
  .switch-process,
  .switch-faq { padding-block: 56px; }
  .page-hero,
  .page-hero--compact { min-height: 0; }
  .page-hero__inner { padding-top: 72px; padding-bottom: 56px; }
  .page-hero__lead { font-size: 17px; line-height: 1.6; }
  .section-head,
  .team-directory .section-head { margin-bottom: 28px; }
  .section-copy { margin-top: 20px; }
  .team-principle__copy h2 { font-size: clamp(30px, 8vw, 36px); line-height: 1.1; letter-spacing: -.03em; }
  .team-entry-card { gap: 16px; min-height: 0; padding: 22px; }
  .team-entry-card strong { font-size: 21px; line-height: 1.25; }
  .team-entry-card img { width: 56px; height: 56px; }
  .team-toolbar { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 12px; margin-inline: -2px; scrollbar-width: thin; }
  .team-toolbar .filter-chip { flex: 0 0 auto; white-space: nowrap; }
  .service-card:nth-child(n),
  .document-card { min-height: 0; }
  .site-contact__grid { gap: 32px; }
  .site-contact__card { padding: 24px 20px; }
  .foot__inner { gap: 32px; }
  .foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot__cols > div:first-child { display: block; }
  .foot__cols a,
  .foot__cols button { min-height: 44px; padding-block: 10px; font-size: 15px; line-height: 1.5; }
  .foot__bottom { margin-top: 0; gap: 12px; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team-card__image { aspect-ratio: 1.08; }
  .team-card h3 { margin-top: 20px; font-size: 21px; }
  .team-card__phone { font-size: 16px; }
}
@media (max-width: 420px) {
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .switch-steps { grid-template-columns: minmax(0, 1fr); }
  .switch-steps li:not(:last-child)::after { display: none; }
}

/* Respect system preferences; menu positioning transforms remain intact. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .team-card__image img,
  .team-entry-card img { transition: none; }
  .btn:hover,
  .btn:hover svg,
  .acard:hover,
  .property-card:hover .property-card__media img,
  .reference-card:hover .reference-card__media img,
  .team-entry-card:hover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav,
  .nav.is-scrolled,
  .nav__dropdown,
  .nav__mobile-sheet { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__mobile { background: rgba(12,12,13,.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
