/* Interaktiver Grundriss für Etagenansichten */
.content.content--zimmer-floorplan{
  max-width:min(1760px, calc(100vw - 36px));
  margin:0 auto;
  padding:0 18px 22px;
}
.fp-header{
  margin:-8px 0 .65rem;
}
.fp-header h1{
  margin:0;
  line-height:1.05;
}
.fp-layout{
  display:grid;
  grid-template-columns:max-content 640px;
  justify-content:start;
  gap:12px;
  align-items:stretch;
}
.fp-card,
.fp-sidebar-box,
.fp-fallback-card,
.fp-lightbox-dialog{
  background:#f7faf7;
  border:1px solid #d4ddd4;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.fp-card{
  padding:12px;
}
.fp-stage{
  --fp-ratio: calc(1293 / 1122);
  position:relative;
  width:calc((100vh - 250px) * var(--fp-ratio));
  max-width:100%;
  aspect-ratio:var(--fp-aspect-ratio, 1293 / 1122);
  margin:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #d7dfd7;
  background:#fff;
}
.fp-base,
.fp-gray,
.fp-overlay,
.fp-hotspot-layer{
  position:absolute;
  inset:2.5%;
  width:95%;
  height:95%;
}
.fp-base,
.fp-gray,
.fp-overlay{
  object-fit:contain;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}
.fp-gray,
.fp-overlay{
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
.fp-stage.is-detail .fp-gray{ opacity:1; }
.fp-stage.is-detail .fp-base{ opacity:0; }
.fp-stage.is-detail .fp-overlay.is-active{ opacity:1; }
.fp-hotspot-layer{ z-index:5; }
.fp-hotspot{
  position:absolute;
  display:block;
  background:rgba(255,255,255,.01);
  border:0;
  cursor:pointer;
  border-radius:10px;
  outline:none;
}
.fp-hotspot:hover,
.fp-hotspot:focus-visible{
  box-shadow:inset 0 0 0 3px rgba(45,92,45,.55);
  background:rgba(45,92,45,.08);
}
.fp-sidebar{
  display:block;
  height:100%;
  min-width:0;
}
.fp-sidebar-content{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:12px;
  align-items:stretch;
  height:100%;
}
.fp-detail-column{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:12px;
  align-items:start;
  min-height:100%;
  min-width:0;
}
.fp-sidebar-box{ padding:14px; }
.fp-select-wrap{
  display:grid;
  gap:8px;
}
.fp-select-label{
  font-size:14px;
  font-weight:700;
  color:#314231;
}
.fp-room-select{
  width:100%;
  min-height:52px;
  padding:0 16px;
  border:1px solid #d1dbd1;
  border-radius:12px;
  background:#fff;
  color:#1f2a1f;
  font:inherit;
  font-weight:700;
  outline:none;
}
.fp-room-select:focus{
  border-color:#8cab8c;
  box-shadow:0 0 0 3px rgba(45,92,45,.12);
}
.fp-gallery-panel{
  display:block;
  align-self:stretch;
  height:100%;
  min-height:100%;
}
.fp-gallery-grid{
  display:grid;
  grid-template-rows:repeat(3, minmax(0, 1fr));
  gap:12px;
  align-content:stretch;
  align-self:stretch;
  min-height:100%;
  height:100%;
}
.fp-gallery-empty{
  margin:0;
  color:#5b645b;
  line-height:1.55;
}
.fp-gallery-empty-wrap{
  grid-row:1 / 4;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:14px;
  border:1px dashed #d8e0d8;
  border-radius:14px;
  background:#fff;
}
.fp-gallery-button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  min-height:0;
  padding:10px;
  background:#fff;
  border:1px solid #d8e0d8;
  border-radius:14px;
  cursor:pointer;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.fp-gallery-button:hover,
.fp-gallery-button:focus-visible{
  transform:translateY(-1px);
  border-color:#8cab8c;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  outline:none;
}
.fp-gallery-thumb-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}
.fp-gallery-thumb{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}
.fp-gallery-caption{
  display:none;
}
.fp-detail-head,
.fp-detail-head h2,
.fp-detail-summary,
.fp-detail-kicker,
.fp-meta,
.fp-detail-summary.is-empty,
.fp-meta.is-empty{
  display:none !important;
}
.fp-price-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #d8e0d8;
  border-radius:14px;
  background:#fff;
  font-size:15px;
}
.fp-price-table th,
.fp-price-table td{
  padding:10px 12px;
  border-bottom:1px solid #e3e9e3;
  text-align:right;
  vertical-align:top;
}
.fp-price-table thead th{
  background:#eef5ee;
  color:#314231;
  font-size:13px;
  font-weight:700;
}
.fp-price-table th:first-child,
.fp-price-table td:first-child{
  text-align:left;
}
.fp-price-table tbody th{
  font-weight:700;
  color:#263526;
}
.fp-price-table tr:last-child th,
.fp-price-table tr:last-child td{
  border-bottom:0;
}
.fp-section + .fp-section{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #d9e1d9;
}
.fp-section h3{
  margin:0 0 10px;
  font-size:17px;
}
.fp-list{
  margin:.1rem 0 0 1.1rem;
  padding:0;
  line-height:1.55;
}
.fp-list li{ margin:.18rem 0; }
.fp-areas{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.fp-area-card{
  background:#fff;
  border:1px solid #d8e0d8;
  border-radius:14px;
  padding:12px;
}
.fp-area-card span{
  display:block;
  color:#5b645b;
  font-size:13px;
  margin-bottom:4px;
}
.fp-area-card strong{
  display:block;
  font-size:19px;
  color:#2d5c2d;
}
.fp-note{
  margin:0;
  color:#5b645b;
  line-height:1.55;
}
.fp-lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(18, 23, 18, .72);
  padding:20px;
  z-index:10000;
}
.fp-lightbox.is-open{ display:flex; }
.fp-lightbox-dialog{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:min(92vw, 960px);
  max-height:92vh;
  padding:16px;
  background:#ffffff;
}
.fp-lightbox-close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgba(34, 51, 34, .08);
  color:#223322;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.fp-lightbox-close:hover,
.fp-lightbox-close:focus-visible{
  background:rgba(34, 51, 34, .14);
  outline:none;
}
.fp-lightbox-image{
  display:block;
  width:auto;
  height:auto;
  max-width:min(92vw, 800px);
  max-height:min(88vh, 800px);
  object-fit:contain;
  border-radius:12px;
}
.fp-lightbox-caption{ display:none; }
.fp-fallback-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.fp-fallback-card{ padding:18px; }
.fp-fallback-card h2{ margin:0 0 .45rem; font-size:24px; }
.fp-fallback-card p{ margin:.35rem 0 0; line-height:1.55; }
@media (min-width: 1800px){
  .fp-stage{ width:calc((100vh - 230px) * var(--fp-ratio)); }
}
@media (max-width: 1600px){
  .fp-layout{ grid-template-columns:minmax(0,1fr) 600px; }
  .fp-sidebar-content{ grid-template-columns:minmax(0, 1fr) 260px; }
  .fp-stage{ width:min(100%, calc((100vh - 250px) * var(--fp-ratio))); }
}
@media (max-width: 1400px){
  .fp-layout{ grid-template-columns:minmax(0,1fr) 540px; }
  .fp-sidebar-content{ grid-template-columns:minmax(0, 1fr) 240px; }
}
@media (max-width: 1280px){
  .fp-layout{ grid-template-columns:1fr; }
  .fp-stage{ width:100%; }
  .fp-sidebar-content{ grid-template-columns:1fr; height:auto; }
  .fp-gallery-stack{
    grid-template-columns:repeat(3, minmax(0,1fr));
    grid-template-rows:none;
    display:grid;
    height:auto;
    min-height:0;
  }
  .fp-gallery-button,
  .fp-gallery-button.is-single,
  .fp-gallery-button.is-double{ height:clamp(120px, 22vw, 180px); }
  .fp-gallery-empty-wrap{ grid-row:auto; }
}
@media (max-width: 720px){
  .content.content--zimmer-floorplan{ max-width:100%; padding:4px 12px 20px; }
  .fp-header{ margin:0 0 .65rem; }
  .fp-card, .fp-sidebar-box{ padding:12px; }
  .fp-areas{ grid-template-columns:1fr; }
  .fp-gallery-stack{ grid-template-columns:1fr; }
}
