.homes {
  background: var(--color-sage);
}
.homes__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}
.homes__status {
  margin-left: auto;
  font-size: var(--text-min);
  font-weight: 600;
}
.homes__stand {
  color: var(--color-text);
  font-size: var(--text-min);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filters button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 2rem;
  background: var(--color-white);
  font-size: var(--text-min);
}
.filters button span {
  color: var(--color-text);
}
.filters button[aria-pressed="true"] {
  border-color: var(--color-ink);
  color: var(--color-white);
  background: var(--color-ink);
}
.filters button[aria-pressed="true"] span {
  color: inherit;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-sm);
}
.unit-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--duration), transform var(--duration);
}
.unit-card:has(.unit-card__link:hover, .unit-card__action:hover) {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}
.unit-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.unit-card__plan {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
}
.unit-card__plan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.unit-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-sm) var(--space-md) var(--space-xs);
}
.unit-card__title {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.unit-card__meta {
  color: var(--color-text);
  font-size: var(--text-min);
}
/* Availability badge (card, plan dialog, unit page, «Im Haus zeigen»): the word on the state's colour (Qemal, 23.10.2026).
   Text colours as on the house marks (meine-wohnung.css); each pair reaches at least 4.5:1. */
.unit-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius);
  color: var(--color-white);
  background: var(--color-ink);
  font: 600 var(--text-min) / 1.4 var(--font-body);
  letter-spacing: 0;
}
.unit-status[data-status="frei"] {
  background: var(--status-frei);
}
.unit-status[data-status="reserviert"] {
  color: var(--color-cta-text);
  background: var(--status-reserviert);
}
.unit-status[data-status="verkauft"] {
  background: var(--status-verkauft);
}
.unit-status[hidden] {
  display: none;
}
/* In a card the badge is a band flush with the card's top edge, its text in line with the title. */
.unit-card .unit-status {
  display: block;
  align-self: stretch;
  width: auto;
  margin: -1px -1px 0;
  padding: 0.375rem var(--space-md);
  border-radius: var(--radius) var(--radius) 0 0;
}
.unit-card__area {
  font-size: 1.75rem;
  letter-spacing: -0.05em;
  line-height: 1.3;
}
.unit-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: var(--space-xs);
  font-size: var(--text-min);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.unit-card__more span {
  font-size: 1.25rem;
  text-decoration: none;
}
.unit-card__funding {
  margin: 0 var(--space-md) var(--space-xs);
  padding: 0.25rem 0 0.25rem var(--space-xs);
  border-left: 3px solid var(--color-accent);
  color: var(--color-ink);
  font-size: var(--text-min);
  font-weight: 600;
  line-height: 1.35;
}
.unit-card__funding-deadline {
  display: block;
  color: var(--color-text);
  font-weight: 400;
}
.unit-card__funding:has(.deadline-days:not([hidden])) .unit-card__funding-deadline {
  display: none;
}
.unit-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--space-md) var(--space-md);
}
.unit-card__action {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  font: 600 var(--text-min) / 1.25 var(--font-body);
  cursor: pointer;
}
.unit-card__action span {
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
}
.unit-card__inquiry {
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-cta);
  border-radius: var(--radius);
  color: var(--color-cta-text);
  background: var(--color-cta); /* every «Gespräch anfragen» in gold (Qemal, 13.10.2026) */
  text-align: center;
  text-wrap: balance;
  transition: background var(--duration);
}
.unit-card__inquiry:hover {
  border-color: var(--color-cta-hover);
  background: var(--color-cta-hover);
}
.inquiry-bar {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.625rem var(--page-gutter) calc(0.625rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-line);
  background: var(--color-white);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--duration), visibility var(--duration);
}
.inquiry-bar.is-visible {
  transform: none;
  visibility: visible;
}
/* Keyboard focus stays above the visible bar (111 px on phones plus the focus ring). */
html:has(.inquiry-bar.is-visible) {
  scroll-padding-bottom: 8rem;
}
.inquiry-bar__button {
  width: 100%;
}
.inquiry-bar__note {
  margin-bottom: 0.375rem;
  color: var(--color-ink);
  font-size: var(--text-min);
  font-weight: 600;
  text-align: center;
}
.inquiry-bar__note .deadline-days {
  display: inline;
}
.inquiry-bar__note .deadline-days::before {
  content: "·" / "";
  margin: 0 0.4em;
}
.deadline-days {
  display: block;
  color: var(--color-accent);
  font-weight: 600;
}
.unit-page {
  padding-top: var(--space-lg);
}
.unit-page__back {
  margin-bottom: var(--space-sm);
}
/* Name and key figures come first and the CTA before the room list; wide screens keep the plan on the left. */
.unit-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "plan head" "plan info";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: var(--space-sm) var(--space-lg); /* the info's first block brings its own top margin */
}
.unit-page__head {
  grid-area: head;
}
.unit-page__plan {
  grid-area: plan;
}
.unit-page__info {
  grid-area: info;
}
.unit-page__plan img {
  width: 100%;
  height: auto;
}
.unit-page__head h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
.unit-page__head .detail-facts {
  margin-bottom: 0;
}
.unit-page__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-block: var(--space-md);
}
.unit-page__more h2 {
  margin-bottom: var(--space-md);
}
.unit-page__more .unit-grid {
  margin-bottom: var(--space-md);
}
.homes__empty {
  padding: var(--space-lg);
  border: 1px solid var(--color-line);
  background: var(--color-white);
}
.section-note {
  max-width: 74ch;
  margin-top: var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-min);
  line-height: 1.7;
}
.location {
  background: var(--color-paper);
}
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 8rem);
}
.location__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.location__list li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.6fr) minmax(0, 1.4fr);
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-top: 1px solid var(--color-line);
}
.location__list li:last-child {
  border-bottom: 1px solid var(--color-line);
}
.location__list strong {
  font-weight: 600;
}
.location__list span {
  color: var(--color-text);
}
.location__list .location__num,
.location__mark--number {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-ink);
  font-size: var(--text-min);
  font-weight: 600;
  line-height: 1;
}
.location__num {
  margin-right: 0.6rem;
}
/* Map: marks sit in percent of the image, their text keeps its CSS size on every screen. */
.location__map {
  margin-top: var(--space-xl);
}
.location__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.location__frame img {
  display: block;
  width: 100%;
  height: auto;
}
.location__overlay {
  position: absolute;
  inset: 0;
}
.location__overlay--hoch {
  display: none;
}
.location__overlay svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.location__overlay polygon {
  fill: var(--color-highlight-faint);
  stroke: var(--color-highlight);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}
.location__overlay ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.location__mark {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: var(--text-min);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.location__mark--number {
  display: grid;
  box-shadow: var(--shadow-marker);
}
.location__mark--plot {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  color: var(--color-ink);
  background: var(--color-highlight);
  box-shadow: var(--shadow-marker);
  transform: translate(-50%, calc(-100% - 0.75rem));
}
.location__mark--word {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  color: var(--color-ink);
  background: var(--color-white);
}
.location__mark--start {
  transform: translate(0, -50%);
}
.location__mark--end {
  transform: translate(-100%, -50%);
}
.location__map figcaption {
  margin-top: 0.6rem;
  color: var(--color-muted);
  font-size: var(--text-min);
  line-height: 1.5;
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-xl);
}
.faq details {
  border-top: 1px solid var(--color-line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--color-line);
}
.faq summary {
  position: relative;
  padding: var(--space-md) 2.5rem var(--space-md) 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  content: "+" / ""; /* visible sign, not part of the question's accessible name */
  position: absolute;
  top: 1.2rem;
  right: 0.5rem;
  font-size: 1.75rem;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
  content: "−" / "";
}
.faq details p {
  padding: 0 2rem var(--space-md) 0;
  color: var(--color-text);
  font-size: var(--text-min);
}
.contact {
  padding-block: var(--space-xl);
  color: var(--color-white);
  background: var(--color-ink);
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-xl);
}
.contact h2 {
  max-width: 20ch;
}
.contact__inner > div > p:not(.eyebrow) {
  max-width: 55ch;
  margin-top: var(--space-md);
}
.contact__action {
  justify-self: end;
}
/* The accent ring has only 2.5:1 on the dark contact area; the highlight colour keeps 5.4:1. */
.contact :focus-visible {
  outline-color: var(--color-highlight);
}
.contact__action p {
  font-size: var(--text-min);
}
.site-footer {
  padding-top: var(--space-xl);
  background: var(--color-paper);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-min);
}
.footer-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.footer-inner p {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-style: italic;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: var(--text-min);
}
.legal {
  min-height: 55vh;
  padding-block: var(--space-xl);
}
.legal h1 {
  margin-bottom: var(--space-md);
  font-size: var(--title-section);
  letter-spacing: -0.04em;
}
.legal .container {
  max-width: 56rem;
}
.legal h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--text-lead);
}
.legal p {
  margin-bottom: var(--space-md);
}
@media (max-width: 68rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-md);
  }
  .hero h1 {
    font-size: clamp(2.75rem, 6.2vw, 4.5rem);
  }
  .navigation {
    gap: 1.25rem;
  }
  .features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features__list li:nth-child(3) {
    border-left: 0;
  }
  .features__list li:nth-child(n + 3) {
    border-top: 1px solid var(--color-line);
  }
  .faq__grid {
    gap: var(--space-lg);
  }
  .footer-inner p {
    display: none;
  }
}
@media (max-width: 48rem) {
  .funding-bar__long,
  .funding-bar__more-label,
  .funding-bar__link:has(.deadline-days:not([hidden])) .funding-bar__deadline {
    display: none;
  }
  /* Two calm lines on phones: the offer, then the counter (or the date without JavaScript). */
  .funding-bar__short {
    display: inline;
    flex-basis: 100%;
  }
  .funding-bar__deadline::before,
  .funding-bar .deadline-days::before {
    content: none;
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
  }
  .brand__name {
    font-size: 2.15rem;
  }
  .brand__descriptor {
    letter-spacing: 0.075em;
  }
  .brand--mark {
    gap: 0.6rem;
  }
  .brand__mark {
    height: 3rem;
  }
  .menu-toggle {
    min-height: 48px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    font-size: var(--text-min);
  }
  .has-js .menu-toggle {
    display: inline-flex;
  }
  .menu-lines {
    position: relative;
    width: 1.35rem;
    height: 0.65rem;
  }
  .menu-lines::before,
  .menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform var(--duration) ease;
  }
  .menu-lines::before {
    top: 0;
  }
  .menu-lines::after {
    bottom: 0;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__closed {
    display: none;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__open {
    display: inline;
  }
  .menu-toggle[aria-expanded="true"] .menu-lines::before {
    transform: translateY(0.3rem) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-lines::after {
    transform: translateY(-0.3rem) rotate(-45deg);
  }
  .navigation {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: var(--space-md);
  }
  .navigation > a:not(.button) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .has-js .navigation {
    display: none;
  }
  .has-js .navigation.is-open {
    display: flex;
  }
  /* With scripting the menu starts closed before app.js runs, so the first screen does not jump;
     the .has-js rules above do the same where this media feature is unknown. */
  @media (scripting: enabled) {
    .menu-toggle {
      display: inline-flex;
    }
    .navigation {
      display: none;
    }
    .navigation.is-open {
      display: flex;
    }
  }
  /* Premium phone menu (Qemal, 13.10.2026): a full-screen sheet in the brand ink, large serif items with gold
     numbers, the inquiry button and the address. The header stays on top with the close control. */
  html.menu-open {
    overflow: hidden;
  }
  html.menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 60;
    color: var(--color-white);
    background: transparent;
  }
  html.menu-open .brand,
  html.menu-open .menu-toggle {
    position: relative;
    z-index: 2;
    color: var(--color-white);
  }
  .has-js .navigation.is-open {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: auto;
    padding: calc(72px + var(--space-xs)) var(--page-gutter) calc(var(--space-lg) + env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--color-white);
    background:
      radial-gradient(110% 55% at 100% 0%, rgb(212 162 76 / 18%), transparent 62%),
      linear-gradient(160deg, rgb(23 56 61 / 82%), rgb(12 34 38 / 90%));
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    counter-reset: menu;
    transform-origin: 0% 50%;
    animation: menu-door 520ms cubic-bezier(0.33, 1, 0.68, 1) backwards; /* No lasting 3D transform after the swing. */
  }
  /* The gold hinge on the left edge of the door. */
  .has-js .navigation.is-open::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(transparent, rgb(230 194 122 / 85%) 30%, rgb(230 194 122 / 85%) 70%, transparent);
  }
  .has-js .navigation.is-open.is-closing {
    animation: menu-door-close 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  .has-js .navigation.is-open > .navigation__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-md);
    color: var(--color-white);
    animation: menu-emblem 520ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both;
  }
  .navigation__brand img {
    width: auto;
    height: 5.5rem;
    filter: drop-shadow(0 6px 18px rgb(0 0 0 / 35%));
  }
  .navigation__brand > span {
    margin-top: var(--space-xs);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 1;
  }
  .navigation__brand > span span {
    font-weight: 400;
  }
  .navigation__brand small {
    margin-top: 0.35rem;
    color: rgb(255 255 255 / 80%);
    font-size: 0.8125rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
  }
  .has-js .navigation.is-open > a:not(.button) {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid rgb(255 255 255 / 16%);
    color: var(--color-white);
    font-family: var(--font-accent);
    font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-decoration: none;
    counter-increment: menu;
    animation: menu-item 380ms cubic-bezier(0.23, 1, 0.32, 1) 180ms both;
  }
  .has-js .navigation.is-open > a:first-of-type {
    border-top: 1px solid rgb(255 255 255 / 16%);
  }
  .has-js .navigation.is-open > a:not(.button)::before {
    content: counter(menu, decimal-leading-zero);
    min-width: 2.25rem;
    color: #e6c27a;
    font-family: var(--font-body);
    font-size: var(--text-min);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
  }
  .has-js .navigation.is-open > a:not(.button)::after {
    content: "→";
    margin-left: auto;
    color: #e6c27a;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-style: normal;
  }
  .has-js .navigation.is-open > .button {
    width: 100%;
    min-height: 58px;
    margin-top: var(--space-lg);
    border-color: var(--color-cta);
    color: var(--color-cta-text);
    background: var(--color-cta);
    font-size: var(--text-body);
    animation: menu-item 380ms cubic-bezier(0.23, 1, 0.32, 1) 360ms both;
  }
  .has-js .navigation.is-open > .navigation__meta {
    display: block;
    margin-top: auto;
    padding-top: var(--space-lg);
    color: rgb(255 255 255 / 78%);
    font-size: var(--text-min);
    line-height: 1.5;
    animation: menu-item 380ms cubic-bezier(0.23, 1, 0.32, 1) 420ms both;
  }
  .has-js .navigation.is-open > a:nth-of-type(2) {
    animation-delay: 240ms;
  }
  .has-js .navigation.is-open > a:nth-of-type(3) {
    animation-delay: 300ms;
  }
  html.menu-open .brand {
    visibility: hidden;
  }
  html.menu-open .inquiry-bar {
    visibility: hidden;
  }
  .hero {
    padding-top: 0;
    padding-bottom: var(--space-lg);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
  .hero__content {
    padding-block: var(--space-md) 0;
  }
  .hero .eyebrow {
    margin-bottom: var(--space-sm);
  }
  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.75rem, 15vw, 4rem); /* «in Geesthacht.» stays one line down to 320 px */
  }
  .hero__lead {
    max-width: 42ch;
    margin-top: var(--space-sm);
    font-size: 1.125rem;
  }
  /* Phones keep one benefit line (it names the room range), so the flight's start image shows in the first screen. */
  .hero__lead-more,
  .flight__intro .hero__facts {
    display: none;
  }
  .flight__intro .hero__content {
    padding-block: var(--space-xs) var(--space-sm);
  }
  .flight__intro .eyebrow {
    margin-bottom: var(--space-xs);
    letter-spacing: 0.02em;
  }
  .flight__intro .hero__offer {
    margin-bottom: 0.25em;
  }
  .flight__intro .hero__lead {
    margin-top: var(--space-xs);
    line-height: 1.5;
  }
  .flight__intro .hero__actions {
    margin-top: var(--space-sm);
  }
  /* The end card of the flight links to the 37 homes again. */
  .flight__intro .hero__actions .text-link {
    display: none;
  }
  .hero__image {
    aspect-ratio: 4 / 3;
    object-position: 38% 50%;
    border-bottom-left-radius: 3rem;
  }
  .hero figcaption {
    max-width: 35ch;
    line-height: 1.5;
  }
  .features__list li {
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 0;
  }
  .features__list li:nth-child(even) {
    padding-left: var(--space-sm);
  }
  .section-intro,
  .location__grid,
  .faq__grid,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
  .section-intro {
    gap: 0;
    margin-bottom: var(--space-lg);
  }
  .section-intro > .eyebrow {
    padding: 0;
    margin-bottom: var(--space-sm);
  }
  .homes__status {
    margin-left: 0;
  }
  .hero__facts {
    gap: var(--space-sm) var(--space-md);
  }
  .hero__facts dd {
    font-size: 1.625rem;
  }
  .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
  .unit-card__plan {
    padding: 0.375rem;
  }
  .unit-card__body {
    padding: var(--space-xs) var(--space-xs) var(--space-sm);
  }
  .unit-card .unit-status {
    padding-inline: var(--space-xs);
  }
  .unit-card__title {
    font-size: 1.125rem;
  }
  .unit-card__area {
    font-size: 1.375rem;
  }
  .unit-card__more {
    display: none;
  }
  .unit-card__funding {
    margin: 0 var(--space-xs) var(--space-xs);
    padding-left: 0.5rem;
  }
  .unit-card__actions {
    padding: 0 var(--space-xs) var(--space-xs);
  }
  .unit-card__inquiry {
    padding: 0.5rem;
  }
  .unit-page {
    padding-top: var(--space-md);
  }
  .unit-page__back {
    margin-bottom: var(--space-xs);
  }
  .unit-page__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "plan" "info";
    grid-template-rows: none;
    gap: var(--space-md);
  }
  .unit-page__head .eyebrow {
    margin-bottom: var(--space-xs);
  }
  /* Filters wrap onto further rows, so every option stays in view without sideways scrolling. */
  .homes__toolbar .filters {
    width: 100%;
  }
  .filters button {
    flex: none;
    padding-inline: 0.75rem;
  }
  .location__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .location__overlay--quer {
    display: none;
  }
  .location__overlay--hoch {
    display: block;
  }
  .contact__action {
    justify-self: start;
  }
  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: var(--space-lg);
  }
  .footer-note {
    flex-direction: column;
  }
}
@media (min-width: 48.0625rem) {
  .inquiry-bar {
    right: var(--space-md);
    bottom: var(--space-md);
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    padding: 0;
    border: 0;
    background: none;
  }
  .inquiry-bar__note {
    margin: 0;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-overlay);
  }
  .inquiry-bar__button {
    width: auto;
    box-shadow: var(--shadow-overlay);
  }
}
/* Short windows (phone landscape, 200–400 % zoom): the fixed CTA must not take the reading area (WCAG 1.4.10).
   Up to 30rem height the KfW line (at most two lines) and the button share one compact row; only very narrow short
   windows drop the line, and below 18rem the bar steps back. The page CTAs and the KfW bar at the top remain. */
@media (max-height: 30rem) {
  html:has(.inquiry-bar.is-visible) {
    scroll-padding-bottom: 5.5rem;
  }
  .inquiry-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
  }
  .inquiry-bar__note {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    line-height: 1.4; /* two lines stay within the button's height */
    text-align: left;
  }
  .inquiry-bar__note .deadline-days {
    white-space: nowrap;
  }
  .inquiry-bar__button {
    flex: none;
    width: auto;
    min-height: 3rem;
    padding: 0.5rem 1rem;
  }
}
@media (max-height: 30rem) and (max-width: 30rem) {
  .inquiry-bar__note {
    display: none;
  }
}
@media (max-height: 30rem) and (max-width: 48rem) {
  .inquiry-bar {
    padding-block: 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
  }
}
@media (max-height: 18rem) {
  html:has(.inquiry-bar.is-visible) {
    scroll-padding-bottom: 0;
  }
  .inquiry-bar {
    display: none;
  }
}
/* Short phones: a smaller emblem and tighter rows keep the open menu on one screen. */
@media (max-width: 48rem) and (max-height: 44rem) {
  .has-js .navigation.is-open > .navigation__brand {
    margin-bottom: var(--space-sm);
  }
  .navigation__brand img {
    height: 3.5rem;
  }
  .navigation__brand > span {
    font-size: 1.5rem;
  }
  .has-js .navigation.is-open > a:not(.button) {
    min-height: 4rem;
  }
  .has-js .navigation.is-open > .button {
    margin-top: var(--space-md);
  }
}
@media (prefers-reduced-motion: reduce) {
  .unit-card {
    transform: none !important; /* The :has() hover rule is more specific; reduced motion must still win. */
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important; /* Respect reduced-motion preference for every component. */
    animation: none !important; /* Reduced-motion preference also overrides animation declarations. */
  }
}
@keyframes menu-door {
  from {
    opacity: 0.15;
    transform: perspective(1600px) rotateY(-84deg);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg);
  }
}
@keyframes menu-door-close {
  from {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg);
  }
  to {
    opacity: 0;
    transform: perspective(1600px) rotateY(-84deg);
  }
}
@keyframes menu-emblem {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes menu-item {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
