.lauschablick-apartments {
  background: #f5f1ed;
  box-sizing: border-box;
  color: #17272c;
  padding: max(1.25rem, 5vw) max(1.25rem, 5vw) clamp(3.5rem, 8vw, 7rem);
}

/* The block theme puts all page content in a padded, constrained column.
   This module is intentionally a full-width landing section. */
.entry-content.has-global-padding > .lauschablick-apartments {
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem)) !important;
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem)) !important;
  max-width: none !important;
  width: auto !important;
}

.lauschablick-apartments__intro {
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  max-width: 74rem;
}

/* The surroundings page starts with a concise decision hub. Its detailed,
   existing directory remains available immediately below until the themed
   guide pages are ready. */
.lauschablick-surroundings-hub {
  background: #f5f1ed;
  box-sizing: border-box;
  color: #17272c;
  padding: clamp(2.5rem, 6vw, 5.5rem) max(1.25rem, 5vw);
}

.entry-content.has-global-padding > .lauschablick-surroundings-hub {
  margin-left: calc(-1 * var(--wp--style--root--padding-left, 1.5rem)) !important;
  margin-right: calc(-1 * var(--wp--style--root--padding-right, 1.5rem)) !important;
  max-width: none !important;
  width: auto !important;
}

.lauschablick-surroundings-hub__inner {
  margin: 0 auto;
  max-width: 74rem;
}

.lauschablick-surroundings-hub__eyebrow {
  color: #9c382f;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 .6rem;
  text-transform: uppercase;
}

.lauschablick-surroundings-hub h1,
.lauschablick-surroundings-hub h2 {
  color: #17272c;
}

.lauschablick-surroundings-hub h1 {
  font-family: "Colonna MT", serif;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.lauschablick-surroundings-hub__intro {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 1rem 0 2rem;
  max-width: 45rem;
}

.lauschablick-surroundings-hub__cards {
  display: grid;
  gap: 1rem;
}

.lauschablick-surroundings-hub__card {
  background: #fff;
  color: #17272c;
  box-shadow: 0 1rem 2.5rem rgba(25, 31, 25, .08);
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.lauschablick-surroundings-hub__card:hover,
.lauschablick-surroundings-hub__card:focus-visible {
  box-shadow: 0 1.25rem 2.75rem rgba(25, 31, 25, .16);
  color: #17272c;
  transform: translateY(-.2rem);
}

.lauschablick-surroundings-hub__card img {
  display: block;
  height: 12rem;
  object-fit: cover;
  width: 100%;
}

.lauschablick-surroundings-hub__card > div {
  padding: 1.25rem;
}

.lauschablick-surroundings-hub__card h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
}

.lauschablick-surroundings-hub__card p {
  line-height: 1.5;
  margin: .65rem 0 0;
}

.lauschablick-surroundings-hub__continue {
  color: #126f8d;
  display: inline-flex;
  font-weight: 800;
  gap: .5rem;
  margin-top: 1.75rem;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.lauschablick-surroundings-hub__continue:hover,
.lauschablick-surroundings-hub__continue:focus-visible {
  color: #0b536b;
}

.lauschablick-surroundings-guide {
  box-sizing: border-box;
  color: #17272c;
  margin: 0 auto;
  max-width: 74rem;
  padding: clamp(2rem, 5vw, 4rem) max(1.25rem, 5vw) clamp(3rem, 7vw, 5rem);
}

.lauschablick-surroundings-guide h1,
.lauschablick-surroundings-guide h2 {
  color: #17272c;
}

.lauschablick-surroundings-guide h1 {
  font-family: "Colonna MT", serif;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.lauschablick-surroundings-guide__intro {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin: 1rem 0 2.25rem;
  max-width: 48rem;
}

.lauschablick-surroundings-guide__list {
  display: grid;
  gap: 1rem;
}

.lauschablick-surroundings-guide__item {
  background: #f5f1ed;
  border-left: .25rem solid #126f8d;
  padding: 1.35rem;
}

.lauschablick-surroundings-guide__meta {
  color: #9c382f;
  font-size: .85rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}

.lauschablick-surroundings-guide__item h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
  margin: 0;
}

.lauschablick-surroundings-guide__item > p:not(.lauschablick-surroundings-guide__meta) {
  line-height: 1.55;
  margin: .65rem 0;
}

.lauschablick-surroundings-guide__item a {
  color: #126f8d;
  font-weight: 800;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.lauschablick-surroundings-guide__cta {
  margin-top: 2rem;
  max-width: 28rem;
}

/* A concise return route from the calendar to the description that answers
   the visitor's remaining questions before they book. */
.lauschablick-apartment-info-link {
  margin: 0 0 1.25rem;
}

.lauschablick-apartment-info-link a {
  align-items: center;
  color: #126f8d;
  display: inline-flex;
  font-weight: 700;
  gap: .35rem;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.lauschablick-apartment-info-link a:hover,
.lauschablick-apartment-info-link a:focus-visible {
  color: #0b536b;
}

.lauschablick-apartment-detail-target {
  scroll-margin-top: 1.5rem;
}

/* The block theme adds its "large" spacing before every page's main element.
   That spacing sits below the actual header and reads as a second, empty
   header row. Individual content sections already provide their own breathing
   room, so remove only this duplicate top gap globally. */
main#wp--skip-link--target {
  padding-top: 0 !important;
}

/* Keep WordPress' skip-link target for keyboard users, but calendar pages do
   not need the theme's large hero-sized main padding before the availability
   information. */
main#wp--skip-link--target:has(.wpbs-main-wrapper) {
  padding-bottom: 2rem !important;
  padding-top: 0 !important;
}

.lauschablick-apartments h2,
.lauschablick-apartment-card h3 {
  color: #17272c;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.lauschablick-apartments h2 {
  /* Defined in the site's Global Styles as an @font-face rule. */
  font-family: "Colonna MT", serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  max-width: none;
}

/* Decorative fonts need more physical size than a sans-serif font. Keep the
   legacy page headings legible on the primarily-mobile audience. */
@media (max-width: 43.9375rem) {
  main .wp-block-heading {
    color: #17272c;
    text-wrap: balance;
  }

  main h2.wp-block-heading {
    font-size: clamp(2.05rem, 8.5vw, 2.65rem) !important;
    line-height: 1.12 !important;
  }

  main h3.wp-block-heading {
    font-size: clamp(1.55rem, 6.5vw, 1.95rem) !important;
    line-height: 1.18 !important;
  }
}

.lauschablick-apartments__grid {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 74rem;
}

.lauschablick-apartment-card {
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(25, 31, 25, .08);
  display: grid;
  overflow: hidden;
}

.lauschablick-apartment-card__media {
  background: #e7e1dc;
  display: grid;
  gap: .2rem;
  overflow: hidden;
}

.lauschablick-apartment-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lauschablick-apartment-card__media--1 img {
  aspect-ratio: 16 / 10;
}

.lauschablick-apartment-card__media--2,
.lauschablick-apartment-card__media--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lauschablick-apartment-card__media--2 img,
.lauschablick-apartment-card__media--3 img {
  aspect-ratio: 4 / 3;
}

.lauschablick-apartment-card__media--3 img:nth-child(3) {
  display: none;
}

.lauschablick-booking-bar__button svg {
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.25rem;
}

.lauschablick-apartment-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem;
}

.lauschablick-apartment-card h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin: 0;
}

.lauschablick-apartment-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lauschablick-apartment-card__facts li {
  font-size: .95rem;
}

.lauschablick-apartment-card__facts li::before {
  color: #9c382f;
  content: "\2022";
  margin-right: .35rem;
}

.lauschablick-apartment-card__footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
}

.lauschablick-apartment-card__footer p {
  font-size: .86rem;
  margin: 0;
}

.lauschablick-apartment-card__footer strong {
  font-size: 1.3rem;
}

.lauschablick-apartment-card__cta {
  align-items: center;
  background: #126f8d;
  color: #fff !important;
  display: inline-flex;
  font-weight: 700;
  gap: .75rem;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1rem;
  text-decoration: none;
  width: 100%;
}

.lauschablick-apartment-card__cta:hover,
.lauschablick-apartment-card__cta:focus-visible {
  background: #0b536b;
}

.lauschablick-booking-bar {
  display: none;
}

/* Old hand-coded floating booking button in the legacy homepage content. */
body :is(.cta-deutsch, .cta-nederlands, .cta-english) {
  display: none !important;
}

.lauschablick-booking-dialog:not([open]) {
  display: none;
}

@media (min-width: 44rem) {
  .lauschablick-surroundings-hub__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lauschablick-surroundings-hub__card img {
    height: 13rem;
  }

  .lauschablick-surroundings-guide__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The next legacy block is a full-width hero image. Keep one modest visual
     breath below the apartment cards, then let that image begin cleanly
     instead of creating a second, white-looking separator. */
  .lauschablick-apartments {
    padding-bottom: 1.5rem;
  }

  .lauschablick-apartments + .wp-block-image.alignfull {
    margin-block: 0 !important;
  }

  header a.lauschablick-header-booking {
    align-items: center !important;
    background: #126f8d !important;
    color: #fff !important;
    display: inline-flex;
    font-weight: 800;
    justify-content: center !important;
    line-height: 1.2;
    box-sizing: border-box;
    height: 3rem;
    min-height: 0;
    padding: 0 1rem !important;
    text-decoration: none;
    white-space: nowrap;
  }

  header .wp-block-navigation-item:has(> a.lauschablick-header-booking) {
    align-items: center;
    align-self: center;
    display: flex;
  }

  header .wp-block-navigation__container:has(> .wp-block-navigation-item > a.lauschablick-header-booking) {
    align-self: center;
    margin: 0;
  }

  header a.lauschablick-header-booking .lauschablick-header-booking__label {
    display: none;
  }

  header a.lauschablick-header-booking::after {
    align-items: center;
    display: flex;
    font-size: 1rem;
    height: 100%;
    line-height: 1;
  }

  html[lang^="de"] header a.lauschablick-header-booking::after {
    content: "Verfügbarkeit & Preise";
  }

  html[lang^="nl"] header a.lauschablick-header-booking::after {
    content: "Beschikbaarheid & prijzen";
  }

  html[lang^="en"] header a.lauschablick-header-booking::after {
    content: "Availability & prices";
  }

  header a.lauschablick-header-booking:hover,
  header a.lauschablick-header-booking:focus-visible {
    background: #0b536b !important;
    color: #fff !important;
  }

  .lauschablick-booking-dialog[open] {
    background: #f5f1ed;
    border: 0;
    box-sizing: border-box;
    color: #17272c;
    max-width: min(38rem, calc(100vw - 2rem));
    padding: 2rem;
    width: 100%;
  }

  .lauschablick-booking-dialog::backdrop {
    background: rgba(10, 20, 23, .55);
  }

  .lauschablick-booking-dialog__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
  }

  .lauschablick-booking-dialog h2 {
    font-size: 1.8rem;
    margin: 0;
  }

  .lauschablick-booking-dialog__close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: .25rem .5rem;
  }

  .lauschablick-booking-dialog__choices {
    display: grid;
    gap: .75rem;
  }

  .lauschablick-booking-dialog__choices a {
    background: #fff;
    color: #17272c;
    display: grid;
    gap: .25rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
  }

  .lauschablick-booking-dialog__choices a:hover,
  .lauschablick-booking-dialog__choices a:focus-visible {
    background: #e9f2f4;
  }

  .lauschablick-booking-dialog__apartment,
  .lauschablick-booking-dialog__name,
  .lauschablick-booking-dialog__price {
    display: block;
  }

  .lauschablick-apartments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lauschablick-apartment-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  }

  .lauschablick-apartment-card--featured .lauschablick-apartment-card__body {
    padding: clamp(2rem, 4vw, 4rem);
  }

  .lauschablick-apartment-card__media--3 {
    aspect-ratio: 16 / 10;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  /* The copy length differs per language. Let the featured photo collage
     stretch to the same row height as its text column, rather than exposing
     a white remainder below the photographs. */
  .lauschablick-apartment-card--featured .lauschablick-apartment-card__media--3 {
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 0;
  }

  .lauschablick-apartment-card__media--3 img {
    aspect-ratio: auto;
  }

  .lauschablick-apartment-card__media--3 img:first-child {
    grid-row: 1 / -1;
  }

  .lauschablick-apartment-card__media--3 img:nth-child(3) {
    display: block;
  }
}

@media (max-width: 43.9375rem) {
  body.lauschablick-has-booking-bar {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  /* Replaced by the clearer horizontal route below on mobile. */
  .lauschablick-booking-bar {
    background: rgba(255, 255, 255, .96);
    bottom: 0;
    box-shadow: 0 -0.5rem 1.5rem rgba(23, 39, 44, .18);
    display: block;
    left: 0;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 9999;
  }

  .lauschablick-booking-bar__button {
    align-items: center;
    background: #126f8d;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    gap: .65rem;
    justify-content: center;
    min-height: 3.35rem;
    width: 100%;
  }

  .lauschablick-booking-bar__button:hover,
  .lauschablick-booking-bar__button:focus-visible {
    background: #0b536b;
  }

  .lauschablick-booking-dialog {
    background: #f5f1ed;
    border: 0;
    bottom: 0;
    box-sizing: border-box;
    color: #17272c;
    inset: auto 0 0;
    margin: 0;
    max-height: min(85dvh, 42rem);
    max-width: none;
    overflow-y: auto;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    position: fixed;
    width: 100%;
  }

  .lauschablick-booking-dialog::backdrop {
    background: rgba(10, 20, 23, .55);
  }

  .lauschablick-booking-dialog__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .lauschablick-booking-dialog h2 {
    font-size: 1.35rem;
    margin: 0;
  }

  .lauschablick-booking-dialog__close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: .25rem .5rem;
  }

  .lauschablick-booking-dialog__choices {
    display: grid;
    gap: .7rem;
  }

  .lauschablick-booking-dialog__choices a {
    background: #fff;
    color: #17272c;
    display: grid;
    gap: .25rem;
    padding: 1rem;
    text-decoration: none;
  }

  .lauschablick-booking-dialog__apartment {
    color: #9c382f;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .lauschablick-booking-dialog__name {
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .lauschablick-booking-dialog__price {
    font-size: .83rem;
  }
}

/* WordPress ships this header with a two-line navigation glyph. Replace it
   visually with the familiar three-line hamburger; the button behaviour and
   accessible label remain WordPress' own. */
@media (max-width: 781px) {
  /* Every page currently uses the same ingredients, but the homepage adds a
     sticky wrapper around them. Target the ingredients, rather than either
     template wrapper, so this remains one mobile header everywhere. */
  header .wp-block-group.is-content-justification-space-between:has(.wp-block-site-logo) {
    align-items: center;
    flex-wrap: nowrap !important;
    gap: .5rem;
  }

  header .wp-block-group.is-content-justification-space-between:has(.wp-block-site-logo) > .wp-block-group:has(.wp-block-site-logo) {
    flex: 1 1 auto;
    gap: .45rem;
    min-width: 0;
  }

  header .wp-block-site-logo img {
    height: 3.6rem !important;
    max-width: none;
    width: 3.6rem !important;
  }

  header .wp-block-site-title {
    font-size: 1.1rem !important;
    min-width: 0;
    white-space: nowrap;
  }

  header .wp-block-group.is-content-justification-space-between:has(.wp-block-site-logo) > .trp-block-container {
    flex: 0 0 auto;
    order: 2;
  }

  header .wp-block-group.is-content-justification-space-between:has(.wp-block-site-logo) > .wp-block-group:has(.wp-block-navigation) {
    flex: 0 0 auto;
    order: 3;
  }

  header .wp-social-links,
  header .wp-block-group.is-content-justification-space-between:has(.wp-block-site-logo) > p:empty {
    display: none !important;
  }

  /* Mobile already has the persistent booking CTA. Remove the separate,
     language-cloned booking menu row rather than leaving an empty line. */
  .wp-block-navigation__responsive-container-content .wp-block-navigation__container:has(> .wp-block-navigation-item > a[href*="#kalender"]) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container-open {
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
  }

  .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .wp-block-navigation__responsive-container-open::before {
    background: linear-gradient(
      to bottom,
      currentColor 0 2px,
      transparent 2px 7px,
      currentColor 7px 9px,
      transparent 9px 14px,
      currentColor 14px 16px
    );
    content: "";
    display: block;
    height: 16px;
    width: 22px;
  }
}
