/* com_bawmakler – Frontend Styles (Fangschleuse Tokens) */
.baw-makler {
  --baw-navy: var(--fs-navy, #28364b);
  --baw-gold: var(--fs-gold, #cebd88);
  --baw-cream: var(--fs-cream, #f1f0e8);
  --baw-muted: var(--fs-grey, #7a7a7a);
  --baw-line: #d9d7cc;
  --baw-side-gap: 1.25rem;
  --baw-side-col: 17.5rem;
  --baw-hero-h: 420px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--baw-navy);
  padding: 0 0 3rem;
}

.baw-makler *,
.baw-makler *::before,
.baw-makler *::after {
  box-sizing: border-box;
}

.baw-makler__intro p {
  margin: 1rem auto 0;
  max-width: 42rem;
  color: var(--baw-muted);
}

.baw-makler__back {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.baw-makler__back a {
  color: var(--baw-navy);
  text-decoration: none;
}

.baw-makler__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.baw-makler__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.15rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 28, 36, 0.12);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.baw-makler__card:hover,
.baw-makler__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 28, 36, 0.22);
}

.baw-makler__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #3a4650, #1d242a);
  overflow: hidden;
}

.baw-makler__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.baw-makler__badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--baw-navy);
  color: var(--baw-gold);
  line-height: 1.2;
}

.baw-makler__card-media .baw-makler__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.baw-makler__badge--inline {
  position: static;
  align-self: center;
  flex: 0 0 auto;
}

.baw-makler__badge--reserved {
  background: #8a6d3b;
  color: #fff;
}

.baw-makler__badge--sold {
  background: #6b7280;
  color: #fff;
}

.baw-makler__card-flags {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}

.baw-makler__flag {
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--baw-navy);
}

.baw-makler__card-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.baw-makler__card-body h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--baw-navy);
}

.baw-makler__specs {
  margin: 0;
  color: var(--baw-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.baw-makler__cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--baw-navy);
}

.baw-makler__hero-image {
  position: relative;
  margin: 0 0 1.75rem;
  border-radius: 0;
  overflow: hidden;
  background: #1d242a;
  height: var(--baw-hero-h, 420px);
  max-height: 52vh;
}

.baw-makler__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.baw-makler__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--baw-side-col);
  column-gap: var(--baw-side-gap);
  row-gap: 0;
  align-items: start;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.baw-makler__meta-row::before,
.baw-makler__meta-row::after {
  content: "";
  grid-column: 1 / -1;
  width: 100%;
  height: 20px;
  background-color: var(--baw-gold);
  -webkit-mask-image: var(--fs-rule, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E"));
  mask-image: var(--fs-rule, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E"));
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 28.3px 20px;
  mask-size: 28.3px 20px;
}

.baw-makler__meta-row--solo {
  grid-template-columns: minmax(0, 1fr);
}

.baw-makler__meta-row--solo .baw-makler__facts {
  grid-column: 1 / -1;
}

.baw-makler__facts {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.baw-makler__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.baw-makler__price {
  font-size: 2rem; /* legacy-edge-fallback */
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--baw-navy);
}

.baw-makler__fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.baw-makler__history {
  width: auto;
  min-width: 0;
}

.baw-makler__history h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--baw-navy);
}

.baw-makler__fact-list li span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--baw-muted);
}

.baw-makler__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  border: 0;
  border-radius: 0.35rem;
  background: var(--baw-navy);
  color: var(--baw-gold) !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.baw-makler__btn:hover,
.baw-makler__btn:focus-visible {
  background: var(--baw-gold);
  color: var(--baw-navy) !important;
}

.baw-makler__btn--ghost {
  background: transparent;
  color: var(--baw-navy) !important;
  border: 1px solid var(--baw-navy);
}

.baw-makler__btn--ghost:hover,
.baw-makler__btn--ghost:focus-visible {
  background: var(--baw-navy);
  color: var(--baw-gold) !important;
  border-color: var(--baw-navy);
}

.baw-makler__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}

.baw-makler__share-feedback {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--baw-muted);
}

/* Convert Forms Submit = gleicher Button wie CTA */
.baw-makler .convertforms .cf-control-group[data-type='submit'] button,
.baw-makler .convertforms button[type='submit'],
.baw-makler .convertforms .cf-btn {
  padding: 0.85em 1.6em !important;
  border-radius: 0.35rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* Boot-Feld: vorausgefüllt, nicht editierbar */
.baw-makler .convertforms .cf-control-group.is-readonly .cf-input,
.baw-makler .convertforms .cf-input.is-readonly,
.baw-makler .convertforms .cf-input[readonly],
.baw-makler .convertforms input[readonly] {
  background: #eceae2 !important;
  color: rgba(40, 54, 75, 0.78) !important; /* legacy-edge-fallback */
  color: rgb(40 54 75 / 78%) !important;
  border-style: dashed !important;
  cursor: default !important;
}

.baw-makler__section {
  margin: 2.5rem 0;
}

.baw-makler__section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.baw-makler__hint {
  color: var(--baw-muted);
  margin: -0.35rem 0 1rem;
}

.baw-makler__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.baw-makler__gallery figure {
  margin: 0;
}

.baw-makler__gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.baw-makler__pano-tour {
  background: #111;
  color: #fff;
  padding: 0.75rem;
}

.baw-makler__pano-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.baw-makler__pano-toolbar button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.baw-makler__pano-viewer {
  background: #000;
}

.baw-makler__pano-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.baw-makler__pano-thumb {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.baw-makler__pano-thumb.is-active {
  background: var(--baw-gold);
  color: var(--baw-navy);
  border-color: var(--baw-gold);
}

.baw-makler__videos {
  display: grid;
  gap: 1.25rem;
}

.baw-makler__video iframe,
.baw-makler__video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.baw-makler__docs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.baw-makler__docs li {
  border-bottom: 1px solid var(--baw-line);
  padding: 0.75rem 0;
}

.baw-makler__docs a {
  color: var(--baw-navy);
  font-weight: 600;
}

.baw-makler__timeline {
  --baw-timeline-pad: 1.25rem;
  --baw-timeline-line: 2px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--baw-timeline-pad);
  border-left: var(--baw-timeline-line) solid var(--baw-gold);
}

.baw-makler__timeline li {
  margin: 0 0 1.25rem;
  position: relative;
}

.baw-makler__timeline li::before {
  content: "";
  position: absolute;
  /* Mitte der Linie = -padding - halbe Linienstärke; Dot per translate zentrieren */
  left: calc(-1 * var(--baw-timeline-pad) - (var(--baw-timeline-line) / 2));
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--baw-gold);
  transform: translateX(-50%);
}

.baw-makler__timeline time {
  display: block;
  color: var(--baw-muted);
  font-size: 0.85rem;
}

.baw-makler__contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.baw-makler__contact-direct a {
  color: var(--baw-navy);
  font-weight: 700;
}

.baw-makler__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.baw-makler__filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.baw-makler__filters select,
.baw-makler__upload select,
.baw-makler__upload input[type="file"] {
  min-height: 2.5rem;
}

.baw-makler__wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.baw-makler__wizard-nav button {
  border: 1px solid var(--baw-line);
  background: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
  cursor: pointer;
  color: var(--baw-navy);
}

.baw-makler__wizard-nav button.is-active {
  background: var(--baw-navy);
  color: var(--baw-gold);
  border-color: var(--baw-navy);
}

.baw-makler__wizard-step {
  display: none;
}

.baw-makler__wizard-step.is-active {
  display: block;
}

.baw-makler__wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.baw-makler__upload {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 2px dashed var(--baw-line);
  background: var(--baw-cream);
}

.baw-makler__media-list,
.baw-makler__history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.baw-makler__media-list li,
.baw-makler__history-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--baw-line);
}

.baw-makler__media-list img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.baw-makler__pagination {
  margin-top: 2rem;
}

/* Hero-UX: Stage links, Mini-Thumbnails rechts */
.baw-makler__hero-media {
  margin: 0 0 1.75rem;
}

.baw-makler__hero-row {
  display: flex;
  gap: var(--baw-side-gap);
  align-items: flex-start;
}

.baw-makler__hero-stage {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0;
  background: #1d242a;
  position: relative;
  overflow: hidden;
  /* Einheitliche 4:3-Bühne für Fotos, Videos und Pläne */
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: min(72vh, 720px);
  min-height: 240px;
}

.baw-makler__hero-view {
  display: none;
  width: 100%;
  height: 100%;
}

.baw-makler__hero-view.is-active {
  display: block;
}

.baw-makler__hero-view--image.is-active {
  position: relative;
  height: 100%;
  background: #eceae2;
}

.baw-makler__hero-view--image picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

/* Alles vollständig in der 4:3-Bühne – nichts abschneiden */
.baw-makler .baw-makler__hero-view--image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.baw-makler__hero-thumb--floorplan {
  background: #eceae2;
}

.baw-makler__hero-thumb--floorplan img {
  object-fit: contain;
}

.baw-makler__hero-view--zoomable {
  cursor: zoom-in;
}

.baw-makler__hero-view--zoomable:focus-visible {
  outline: 2px solid var(--baw-gold, #cebd88);
  outline-offset: 2px;
}

#baw-hero-video {
  width: 100%;
  height: 100%;
  background: #000;
  line-height: 0;
}

.baw-makler__hero-view--video.is-active,
.baw-makler__hero-view--pano.is-active {
  height: 100%;
}

#baw-hero-video iframe,
#baw-hero-video video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

#baw-hero-pano {
  width: 100%;
  height: 100%;
}

.baw-makler__hero-thumbs {
  width: var(--baw-side-col);
  flex: 0 0 auto;
}

/* Fotos + Videos + Panos: gemeinsames Square-Grid */
.baw-makler__hero-thumb-list[data-kind="tiles"],
.baw-makler__hero-thumb-list[data-kind="pano"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0;
}

/* Abstand zwischen den beiden Listen = Grid-Gap (wirkt wie ein Raster) */
.baw-makler__hero-thumb-list[data-kind="tiles"] + .baw-makler__hero-thumb-list[data-kind="pano"] {
  margin-top: 0.45rem;
}

.baw-makler__hero-thumb-list[data-kind="tiles"] .baw-makler__hero-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Panos: 2 Spalten breit, eine Zeile hoch (= 2×1 im Grid) */
.baw-makler__hero-thumb-list[data-kind="pano"] .baw-makler__hero-thumb {
  width: 100%;
  height: auto;
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.baw-makler__hero-thumb--pano .baw-makler__thumb-360 {
  top: auto; /* legacy-edge-fallback */
  right: auto; /* legacy-edge-fallback */
  bottom: auto; /* legacy-edge-fallback */
  left: auto; /* legacy-edge-fallback */
  inset: auto;
  top: 0.35rem;
  right: 0.35rem;
  left: auto;
  bottom: auto;
  width: auto;
  padding: 0.2rem 0.35rem;
  gap: 0.3rem;
  background: rgba(18, 28, 36, 0.55);
  border-radius: 0.3rem;
}

.baw-makler__hero-thumb--pano .baw-makler__thumb-360-sphere {
  width: 0.85rem;
  height: 0.85rem;
}

.baw-makler__hero-thumb--pano .baw-makler__thumb-360-label {
  font-size: 0.65rem;
}

.baw-makler__hero-thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(18, 28, 36, 0.82));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baw-makler__hero-thumb {
  position: relative;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--baw-line);
  background: #1d242a;
  padding: 0;
  cursor: pointer;
}

.baw-makler__hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.baw-makler__hero-thumb.is-active {
  outline: 2px solid var(--baw-gold);
  outline-offset: 2px;
}

.baw-makler__hero-thumb-placeholder {
  position: absolute;
  top: 0; /* legacy-edge-fallback */
  right: 0; /* legacy-edge-fallback */
  bottom: 0; /* legacy-edge-fallback */
  left: 0; /* legacy-edge-fallback */
  inset: 0;
  background: linear-gradient(135deg, #3a4650, #1d242a);
}

.baw-makler__hero-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1d242a;
  pointer-events: none;
}

.baw-makler__thumb-play {
  position: absolute;
  top: 0; /* legacy-edge-fallback */
  right: 0; /* legacy-edge-fallback */
  bottom: 0; /* legacy-edge-fallback */
  left: 0; /* legacy-edge-fallback */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.baw-makler__thumb-play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid rgba(206, 189, 136, 0.98);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  margin-left: 2px;
}

.baw-makler__thumb-360 {
  position: absolute;
  top: 0; /* legacy-edge-fallback */
  right: 0; /* legacy-edge-fallback */
  bottom: 0; /* legacy-edge-fallback */
  left: 0; /* legacy-edge-fallback */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 14, 20, 0.55));
}

.baw-makler__thumb-360-sphere {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6d8 0%, #cebd88 32%, #7a6a3d 62%, #28364b 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset -2px -2px 4px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.baw-makler__thumb-360-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--baw-gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1100px) {
  .baw-makler__hero-thumb-list[data-kind="tiles"],
  .baw-makler__hero-thumb-list[data-kind="pano"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .baw-makler__meta-row {
    grid-template-columns: 1fr;
  }

  .baw-makler__history {
    width: 100%;
  }

  .baw-makler__fact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .baw-makler__hero-row {
    flex-direction: column;
  }

  .baw-makler__hero-stage,
  .baw-makler__hero-image {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: min(58vh, 520px);
    min-height: 200px;
  }

  .baw-makler__hero-thumbs {
    width: 100%;
    max-width: none;
  }

  .baw-makler__hero-thumb-list[data-kind="tiles"],
  .baw-makler__hero-thumb-list[data-kind="pano"] {
    grid-template-columns: repeat(4, 1fr);
  }

  .baw-makler__fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.baw-makler-lightbox {
  position: fixed;
  top: 0; /* legacy-edge-fallback */
  right: 0; /* legacy-edge-fallback */
  bottom: 0; /* legacy-edge-fallback */
  left: 0; /* legacy-edge-fallback */
  inset: 0;
  z-index: 10000;
  background: rgba(10, 14, 20, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem 4.5rem;
  gap: 0.75rem;
}

.baw-makler-lightbox.is-fit-contain {
  background: rgba(236, 234, 226, 0.97);
}

.baw-makler-lightbox.is-fit-contain .baw-makler-lightbox__img {
  background: #eceae2;
}

.baw-makler-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.baw-makler-lightbox__img {
  max-width: 96vw; /* legacy-edge-fallback */
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.baw-makler-lightbox.is-zoomed .baw-makler-lightbox__img {
  transition: none;
}

.baw-makler-lightbox__close,
.baw-makler-lightbox__nav,
.baw-makler-lightbox__zoom {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.baw-makler-lightbox__close:hover,
.baw-makler-lightbox__nav:hover,
.baw-makler-lightbox__zoom:hover {
  background: rgba(255, 255, 255, 0.22);
}

.baw-makler-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.75rem;
  z-index: 2;
}

.baw-makler-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  z-index: 2;
}

.baw-makler-lightbox__nav--prev {
  left: 0.75rem;
}

.baw-makler-lightbox__nav--next {
  right: 0.75rem;
}

.baw-makler-lightbox__toolbar {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.baw-makler-lightbox__zoom {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.baw-makler-lightbox__counter {
  color: #fff;
  font-size: 0.9rem;
  min-width: 3.5rem;
  text-align: center;
  opacity: 0.9;
}

.baw-makler-lightbox__caption {
  position: absolute;
  bottom: 3.6rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-width: 90vw; /* legacy-edge-fallback */
  max-width: min(90vw, 40rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  z-index: 2;
}

@media (max-width: 760px) {
  .baw-makler-lightbox {
    padding: 3rem 0.5rem 4rem;
  }

  .baw-makler-lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .baw-makler-lightbox__nav--prev {
    left: 0.35rem;
  }

  .baw-makler-lightbox__nav--next {
    right: 0.35rem;
  }
}

@media (max-width: 760px) {
  .baw-makler__grid {
    grid-template-columns: 1fr;
  }

  .baw-makler__pano-viewer {
    height: 55vh !important;
  }
}

/* Nadir-Logo: am Boden fixiert, Billboard (face viewer). Keine Negativ-Margins –
   Pannellum zentriert über offsetWidth/Height; Margins würden um die Achse driften. */
.pnlm-hotspot-base.baw-makler-nadir,
.baw-makler-nadir {
  width: 180px !important;
  height: 180px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none !important;
  overflow: visible;
}

.baw-makler-nadir__spot img,
.baw-makler-nadir img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 760px) {
  .pnlm-hotspot-base.baw-makler-nadir,
  .baw-makler-nadir {
    width: 130px !important;
    height: 130px !important;
  }
}
