.building-card { transition: transform .1s ease, box-shadow .1s ease; }
.building-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important; }

.floorplan-viewport {
  overflow: auto;
  max-height: 75vh;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #f8f9fa;
}
.floorplan-wrapper {
  position: relative;
  width: 100%;
}
.floorplan-img { width: 100%; display: block; }

.ap-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.ap-marker svg { display: block; }

.raum-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  z-index: 1; /* unter AP-Markern, falls beide an derselben Stelle sitzen */
}

.floorplan-wrapper.platzier-modus {
  cursor: crosshair;
}
.floorplan-wrapper.platzier-modus .floorplan-img {
  outline: 2px dashed #0d6efd;
  outline-offset: -2px;
}

.floorplan-wrapper.massstab-modus {
  cursor: crosshair;
}
.floorplan-wrapper.massstab-modus .floorplan-img {
  outline: 2px dashed #fd7e14;
  outline-offset: -2px;
}
.massstab-punkt {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid #fd7e14;
  border-radius: 50%;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}

.heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* unter AP-/Raum-Markern, ueber dem Grundriss-Bild */
  pointer-events: none;
}
.heatmap-swatch {
  display: inline-block;
  width: .8em;
  height: .8em;
  border-radius: 2px;
  vertical-align: -1px;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.schema-room {
  border: 1px dashed #adb5bd;
  border-radius: .375rem;
  padding: .5rem .75rem;
  background: #f8f9fa;
}
.schema-room-title {
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .35rem;
}
.schema-ap {
  display: inline-block;
  font-size: .8rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  padding: .1rem .4rem;
  margin: .1rem .2rem .1rem 0;
  cursor: default;
}
