.bedrooms {
  position: relative;
  isolation: isolate;
  color: #493523;
  padding: clamp(100px, 12vw, 190px) clamp(24px, 7vw, 130px) clamp(90px, 12vw, 190px);
}
.bedroom-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.bedroom-connections path {
  fill: none;
  stroke: url(#bedroom-line-tone);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.bedroom-connections [data-line-bathroom] {
  stroke: var(--bathroom-line-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.bathroom-card .bedroom-anchor { background: var(--bathroom-line-color); }
.bedroom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(22px, 4vw, 70px);
  max-width: 1380px;
  margin: 0 auto;
}
.bedroom-card {
  position: relative;
  min-width: 0;
  scroll-margin-top: 40px;
}
.bedroom-card[data-bedroom="schlafzimmer-1"] { grid-column: 3; grid-row: 1; }
.bedroom-card[data-bedroom="schlafzimmer-2"] { grid-column: 2; grid-row: 1; margin-top: 86px; }
.bedroom-card[data-bedroom="schlafzimmer-3"] { grid-column: 1; grid-row: 1; margin-top: 172px; }
.bedroom-anchor {
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73583b;
}
.bedroom-content { opacity: 1; }
.bedrooms.is-enhanced .bedroom-content {
  opacity: var(--bedroom-reveal, 0);
  transform: translateY(calc((1 - var(--bedroom-reveal, 0)) * 26px));
}
.bedrooms.is-enhanced .bedroom-card:focus-within .bedroom-content { opacity: 1; transform: none; }
.bedroom-heading { padding: 23px 0 24px; text-align: center; }
.bedroom-number {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  opacity: .75;
  margin-bottom: 6px;
}
.bedroom-heading h2 {
  margin: 0;
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: clamp(35px, 3.4vw, 57px);
  line-height: 1.1;
  font-weight: 400;
}
.bedroom-heading h2:focus { outline: none; }
.bedroom-heading h2:focus-visible { outline: 1px solid #493523; outline-offset: 8px; border-radius: 4px; }
.bedroom-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: clamp(10px, 1vw, 16px);
  overflow: hidden;
  background: #c3aa89;
  box-shadow: 0 14px 36px -20px rgb(59 37 19 / 32%);
  transition: aspect-ratio .55s ease;
  touch-action: pan-y;
}
.bedroom-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s ease;
}
.bedroom-frame img.is-current { opacity: 1; }
.bedroom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
}
.bedroom-controls[hidden] { display: none; }
.bedroom-counter { font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.bedroom-arrows { display: flex; gap: 8px; }
.bedroom-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid rgb(73 53 35 / 35%);
  border-radius: 50%;
  background: transparent;
  color: #493523;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s ease, color .2s ease;
}
.bedroom-arrows button:hover { color: #fff9ef; background: #73583b; }
.bedroom-arrows button:focus-visible { outline: 2px solid #493523; outline-offset: 4px; }
.bedroom-note {
  min-width: 0;
  margin: 0;
  text-align: center;
}
.bedroom-note p { margin: 0; }
.bedroom-note-rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 36px;
  background: #73583b;
}
.bedroom-note-lead {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}
.bedroom-note-copy {
  display: block;
  max-width: 650px;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  text-wrap: pretty;
}
.bedrooms.is-enhanced .bedroom-note-content {
  opacity: var(--bedroom-reveal, 0);
  transform: translateY(calc((1 - var(--bedroom-reveal, 0)) * 22px));
}
.bathroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1380px;
  margin: clamp(140px, 16vw, 220px) auto 0;
}
@media (max-width: 999px) {
  .bathroom-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 110px; margin-top: 140px; }
  .bedroom-note-lead { font-size: clamp(25px, 4vw, 30px); }
  .bedroom-note-copy { font-size: 16px; }
}
@media (max-width: 760px) {
  .bedrooms { padding: 115px 28px 90px; }
  .bedroom-grid { display: flex; flex-direction: column; gap: 110px; max-width: 460px; }
  .bedroom-card[data-bedroom] { margin-top: 0; width: 100%; }
  .bedroom-heading h2 { font-size: 46px; }
  .bedroom-heading { padding-bottom: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .bedrooms.is-enhanced .bedroom-content,
  .bedrooms.is-enhanced .bedroom-note-content { opacity: 1; transform: none; }
  .bedroom-frame, .bedroom-frame img, .bedroom-arrows button { transition: none; }
}
