/* Aqualina Verkaufsplan 14 – Modal (Entwurf) */
.aq-draft-bar {
  position: sticky; top: 0; z-index: 10000;
  background: #f59e0b; color: #1A2E52;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.8rem; font-weight: 600;
  text-align: center; padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}
.aq-plan-open {
  appearance: none; border: 0; cursor: pointer;
  font-family: Inter, Arial, sans-serif;
}
.aq-modal[hidden] { display: none !important; }
.aq-modal {
  position: fixed; inset: 0; z-index: 10100;
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem;
}
.aq-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 46, 82, 0.62);
}
.aq-modal__dialog {
  position: relative;
  width: min(1240px, 100%);
  height: min(94vh, 920px);
  max-height: 94vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(26, 46, 82, 0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
  color: #1A2E52;
}
.aq-modal__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.1rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.aq-modal__titles h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem; font-weight: 700; line-height: 1.25;
  margin: 0 0 0.2rem; color: #1A2E52;
}
.aq-modal__stand {
  margin: 0; font-size: 0.78rem; color: #64748b;
}
.aq-modal__close {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 0; border-radius: 8px;
  background: #f1f5f9; color: #1A2E52;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.aq-modal__close:hover, .aq-modal__close:focus-visible {
  background: #1A2E52; color: #fff; outline: none;
}
.aq-modal__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.85rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.aq-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.aq-filters__label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #64748b; margin-right: 0.15rem;
}
.aq-chip {
  appearance: none; border: 1px solid #cbd5e1; background: #fff;
  border-radius: 999px; padding: 0.28rem 0.7rem;
  font-size: 0.75rem; font-weight: 600; color: #1A2E52;
  cursor: pointer; font-family: inherit;
}
.aq-chip[aria-pressed="true"] {
  background: #1A2E52; color: #fff; border-color: #1A2E52;
}
.aq-chip:focus-visible { outline: 2px solid #0891B2; outline-offset: 2px; }
.aq-price-opt {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: #1A2E52;
  background: #fff7ed; border: 1px dashed #fdba74;
  border-radius: 8px; padding: 0.28rem 0.65rem;
}
.aq-price-opt input { width: 1rem; height: 1rem; accent-color: #0891B2; }
.aq-price-opt__hint { color: #9a3412; font-weight: 600; font-size: 0.7rem; }
.aq-modal__body {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  grid-template-rows: 1fr auto;
}
.aq-map-col {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #eef2f6;
}
.aq-map-tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem; color: #475569;
  flex-shrink: 0;
}
.aq-zoom {
  width: 32px; height: 32px; border: 1px solid #cbd5e1;
  background: #fff; border-radius: 6px; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; color: #1A2E52;
}
.aq-zoom:hover, .aq-zoom:focus-visible { border-color: #0891B2; outline: none; }
.aq-legend { margin-left: auto; display: flex; gap: 0.7rem; align-items: center; }
.aq-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 0.25rem; vertical-align: -1px; }
.aq-swatch--frei { background: #4ade80; border: 1px solid #16a34a; }
.aq-swatch--verkauft { background: #94a3b8; border: 1px solid #64748b; }
.aq-viewport {
  flex: 1; min-height: 0;
  overflow: auto;
  touch-action: pan-x pan-y;
  background: #e8eef4;
  position: relative;
}
.aq-stage {
  position: relative;
  width: 100%;
  line-height: 0;
}
.aq-stage img {
  width: 100%; height: auto; display: block;
  user-select: none; -webkit-user-drag: none;
}
.aq-stage svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.aq-poly { cursor: pointer; transition: fill 0.12s, stroke-width 0.12s, opacity 0.12s; }
.aq-poly--frei { fill: rgba(34, 197, 94, 0.38); stroke: #15803d; stroke-width: 1.2; }
.aq-poly--verkauft { fill: rgba(100, 116, 139, 0.38); stroke: #475569; stroke-width: 1.2; }
.aq-poly.is-dim { opacity: 0.12; pointer-events: none; }
.aq-poly:hover, .aq-poly:focus-visible { stroke-width: 2.4; stroke: #0891B2; outline: none; }
.aq-poly.is-selected { fill: rgba(8, 145, 178, 0.42); stroke: #0e7490; stroke-width: 3; }
.aq-tip {
  position: absolute; z-index: 2;
  background: #1A2E52; color: #fff;
  border-radius: 8px; padding: 0.5rem 0.7rem;
  font-size: 0.78rem; line-height: 1.4;
  pointer-events: none; max-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transform: translate(-10%, -110%);
}
.aq-tip[hidden] { display: none !important; }
.aq-tip b { display: block; font-size: 0.85rem; }
.aq-list-col {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: #fff;
}
.aq-list-meta {
  padding: 0.5rem 0.85rem 0.3rem;
  font-size: 0.75rem; color: #64748b; flex-shrink: 0;
}
.aq-list {
  flex: 1; overflow: auto;
  padding: 0 0.55rem 0.55rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.aq-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.15rem 0.55rem;
  align-items: center;
  width: 100%; text-align: left;
  border: 1px solid #e2e8f0; background: #fff;
  border-radius: 8px; padding: 0.45rem 0.55rem;
  cursor: pointer; font-family: inherit; color: inherit;
}
.aq-item:hover, .aq-item:focus-visible { border-color: #0891B2; outline: none; }
.aq-item.is-selected { border-color: #0e7490; background: #ecfeff; box-shadow: 0 0 0 1px #0e7490; }
.aq-item.is-hidden { display: none; }
.aq-dot { width: 10px; height: 10px; border-radius: 50%; }
.aq-dot--frei { background: #22c55e; }
.aq-dot--verkauft { background: #94a3b8; }
.aq-item__id { font-weight: 700; font-size: 0.82rem; }
.aq-item__meta { font-size: 0.72rem; color: #64748b; }
.aq-item__price { font-size: 0.78rem; font-weight: 600; color: #1A2E52; white-space: nowrap; }
.aq-item__price.is-off { display: none; }
.aq-detail {
  grid-column: 1 / -1;
  border-top: 1px solid #e2e8f0;
  padding: 0.7rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem;
  background: #f8fafc;
  min-height: 3.2rem;
}
.aq-detail[hidden] { display: none !important; }
.aq-detail__text { flex: 1; min-width: 180px; font-size: 0.85rem; line-height: 1.4; }
.aq-detail__text b { font-family: "Playfair Display", Georgia, serif; font-size: 1rem; }
.aq-btn {
  appearance: none; border: 0; border-radius: 7px;
  padding: 0.55rem 1rem; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem;
  white-space: nowrap;
}
.aq-btn--primary { background: #1A2E52; color: #fff; }
.aq-btn--primary:hover, .aq-btn--primary:focus-visible { background: #0891B2; outline: none; }
.aq-btn--ghost { background: #fff; color: #1A2E52; border: 1px solid #cbd5e1; }
.aq-btn--ghost:hover, .aq-btn--ghost:focus-visible { border-color: #0891B2; outline: none; }
.aq-page-cta { /* used on object page */ }
@media (max-width: 820px) {
  .aq-modal { padding: 0; align-items: stretch; }
  .aq-modal__dialog {
    width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .aq-modal__header { padding: 0.65rem 0.8rem 0.5rem; }
  .aq-modal__toolbar { padding: 0.45rem 0.8rem; }
  .aq-modal__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.9fr) auto;
  }
  .aq-map-col { border-right: 0; border-bottom: 1px solid #e2e8f0; min-height: 0; }
  .aq-list-col { min-height: 0; }
  .aq-detail { flex-shrink: 0; }
  .aq-price-opt { margin-left: 0; width: 100%; }
  .aq-modal__titles h2 { font-size: 1.05rem; }
  .aq-legend { display: none; }
}
button.cta { border: 0; cursor: pointer; font-family: inherit; }

.aq-plan-switch { display:flex; gap:0.3rem; flex-wrap:wrap; }
.aq-plan-switch .aq-chip { font-size:0.72rem; }
.aq-item__src { font-size:0.66rem; color:#0369a1; font-weight:600; }
.aq-poly--master { stroke-dasharray: 4 3; }
