.wzmap{
  /* ---- Stellschrauben ---- */
  --wzmap-max: 1200px;        /* maximale Breite der Karte */
  --wzmap-ratio: 16 / 9;      /* Seitenverhältnis Desktop */
  --wzmap-ratio-mobil: 4 / 5; /* Seitenverhältnis Handy (< 640px) */
  --wzmap-radius: 16px;       /* Eckenradius */
  --wzmap-pin: 38px;          /* Pin-Größe */
  --wz-blau: #163756;
  --wz-blau-mittel: #1e4d78;
  --wz-gold: #d9a521;
  --wz-gold-dunkel: #b88a1a;
  --wz-grau: #4a5568;
  /* ------------------------ */
  position: relative; width: 100%; max-width: var(--wzmap-max); margin: 0 auto;
  aspect-ratio: var(--wzmap-ratio); border-radius: var(--wzmap-radius);
  overflow: hidden; isolation: isolate; background: #f1f2f2;
  box-shadow: 0 1px 2px rgba(22,55,86,.06), 0 10px 32px rgba(22,55,86,.10);
  font-family: inherit; line-height: 1.35; color: var(--wz-blau);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; cursor: grab; outline: none;
}
@media (max-width: 640px){ .wzmap{ aspect-ratio: var(--wzmap-ratio-mobil); --wzmap-pin: 28px; }
  .wzmap__dot{ box-shadow: 0 0 0 4px rgba(217,165,33,.28), 0 3px 8px rgba(22,55,86,.28); } }
.wzmap:focus-visible{ box-shadow: 0 0 0 3px var(--wz-gold), 0 10px 32px rgba(22,55,86,.10); }
.wzmap.is-dragging{ cursor: grabbing; }
.wzmap *, .wzmap *::before, .wzmap *::after{ box-sizing: border-box; }

.wzmap__stage{ position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.wzmap__stage img{ display: block; max-width: none !important; max-height: none !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.wzmap.is-loaded .wzmap__stage img{ opacity: 1; }

/* ---------- Entfernungsringe ---------- */
.wzmap__rings{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible;
  opacity: 1; transition: opacity .25s ease; }
.wzmap__rings.is-hidden{ opacity: 0; }
/* km-Angabe an den anderen Pins, sobald ein Standort gewählt ist */
.wzmap__km{ position: absolute; left: 50%; top: calc(50% + var(--wzmap-pin) / 2 + 4px); transform: translateX(-50%);
  padding: 1px 7px; border-radius: 99px; background: var(--wz-blau); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(22,55,86,.25); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.wzmap.has-selection .wzmap__pin:not(.is-active) .wzmap__km{ opacity: 1; }
.wzmap__km:empty{ display: none; }
.wzmap__rings ellipse{ fill: none; stroke: var(--wz-blau); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 6 6; }
.wzmap__rings text{ font-size: 11px; font-weight: 700; fill: var(--wz-blau); fill-opacity: .75;
  text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: #f1f2f2; stroke-width: 4px; stroke-linejoin: round; }

/* ---------- Pins ---------- */
.wzmap__pins{ position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wzmap__pin{ position: absolute; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; pointer-events: auto; text-decoration: none !important;
  border-radius: 50%; outline: none; cursor: pointer; }
.wzmap__dot{ position: relative; width: var(--wzmap-pin); height: var(--wzmap-pin); border-radius: 50%;
  display: grid; place-items: center; background: var(--wz-gold); color: #fff;
  box-shadow: 0 0 0 6px rgba(217,165,33,.28), 0 4px 12px rgba(22,55,86,.28);
  transition: transform .22s cubic-bezier(.3,1.4,.5,1), background-color .2s, color .2s, box-shadow .2s; }
.wzmap__dot svg{ width: 52%; height: 52%; display: block; fill: currentColor; }
.wzmap__dot::after{ content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--wz-gold); opacity: 0; pointer-events: none; }
.wzmap__pin:hover .wzmap__dot, .wzmap__pin:focus-visible .wzmap__dot, .wzmap__pin.is-active .wzmap__dot{
  transform: translateY(-3px) scale(1.12); background: var(--wz-blau); color: var(--wz-gold);
  box-shadow: 0 0 0 6px rgba(22,55,86,.18), 0 8px 18px rgba(22,55,86,.35); }
.wzmap__pin:hover .wzmap__dot::after, .wzmap__pin.is-active .wzmap__dot::after{ animation: wzmap-pulse 1.4s ease-out infinite; }
.wzmap__pin--bald .wzmap__dot{ background: #fff; color: var(--wz-gold-dunkel); box-shadow: 0 0 0 6px rgba(217,165,33,.22), 0 4px 12px rgba(22,55,86,.22); }
@keyframes wzmap-pulse{ 0%{ opacity: .9; transform: scale(1); } 100%{ opacity: 0; transform: scale(1.9); } }
.wzmap__sr{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Info-Karte ---------- */
.wzmap__card{ position: absolute; left: 0; top: 0; width: 252px; padding: 14px 16px 13px;
  background: #fff; border-radius: 12px; z-index: 8; cursor: default;
  box-shadow: 0 2px 4px rgba(22,55,86,.08), 0 14px 34px rgba(22,55,86,.20);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, calc(-100% - 22px)) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.wzmap__card.is-open{ opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, calc(-100% - 22px)); transition: opacity .18s ease, transform .18s ease; }
.wzmap__card.is-below{ transform: translate(-50%, 28px) translateY(-6px); }
.wzmap__card.is-below.is-open{ transform: translate(-50%, 28px); }
.wzmap__card::after{ content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -6px; width: 12px; height: 12px;
  margin-left: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.wzmap__card.is-below::after{ bottom: auto; top: -6px; }
.wzmap__card.is-docked{ transform: translate(-50%, 6px); max-height: calc(100% - 16px); overflow-y: auto; }
.wzmap__card.is-docked.is-open{ transform: translate(-50%, 0); }
.wzmap__card.is-docked::after{ display: none; }
.wzmap__eyebrow{ font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wz-gold-dunkel); }
.wzmap__title{ margin-top: 2px; font-size: 18px; font-weight: 700; color: var(--wz-blau); }
.wzmap__meta{ margin-top: 3px; font-size: 13px; color: var(--wz-grau); }
.wzmap__badge{ display: inline-block; margin-top: 7px; padding: 2px 8px; font-size: 11px; font-weight: 700;
  border-radius: 99px; background: #fdf8ee; color: var(--wz-gold-dunkel); }
.wzmap__cta{ display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 9px 12px;
  border-radius: 8px; background: var(--wz-blau); color: #fff !important; font-size: 14px; font-weight: 600;
  text-decoration: none !important; transition: background-color .15s; }
.wzmap__cta:hover, .wzmap__cta:focus-visible{ background: var(--wz-blau-mittel); }
.wzmap__cta span{ color: var(--wz-gold); transition: transform .15s; }
.wzmap__cta:hover span{ transform: translateX(3px); }

/* ---------- Baustellen-Modus ---------- */
.wzmap__from{ margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--wz-blau); }
.wzmap__nearlist{ margin-top: 4px; }
.wzmap__near{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 0;
  border-top: 1px solid #eef1f5; text-decoration: none !important; color: var(--wz-blau) !important; font-size: 14px; font-weight: 700; }
.wzmap__near:first-child{ border-top: 0; }
.wzmap__near span{ font-size: 12px; font-weight: 500; color: var(--wz-grau); white-space: nowrap; }
.wzmap__near:hover b, .wzmap__near:focus-visible b{ text-decoration: underline; }
.wzmap__near em{ display: inline-block; margin-left: 6px; padding: 1px 6px; font-style: normal; font-size: 10px; font-weight: 700;
  border-radius: 99px; background: #fdf8ee; color: var(--wz-gold-dunkel); vertical-align: 1px; text-decoration: none; }
.wzmap__remove{ all: unset; display: inline-block; margin-top: 8px; font-size: 12px; color: var(--wz-grau);
  text-decoration: underline; cursor: pointer; }
.wzmap__remove:focus-visible{ outline: 2px solid var(--wz-gold); outline-offset: 2px; }

.wzmap__site{ all: unset; position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: none; place-items: center; pointer-events: auto; cursor: pointer; z-index: 100000; border-radius: 50%; }
.wzmap__site.is-visible{ display: grid; }
.wzmap__site-dot{ position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--wz-blau);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--wz-blau), 0 4px 12px rgba(22,55,86,.35); box-sizing: border-box; }
.wzmap__site-dot::after{ content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--wz-blau); animation: wzmap-pulse 1.8s ease-out infinite; pointer-events: none; }
.wzmap__site:focus-visible .wzmap__site-dot{ box-shadow: 0 0 0 3px var(--wz-gold), 0 4px 12px rgba(22,55,86,.35); }

.wzmap__tip{ position: absolute; left: 12px; top: 12px; z-index: 5; max-width: calc(100% - 24px);
  padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--wz-blau);
  font-size: 12px; font-weight: 600; box-shadow: 0 2px 10px rgba(22,55,86,.15);
  pointer-events: none; transition: opacity .3s ease; }
.wzmap__tip.is-hidden{ opacity: 0; }

.wzmap__btn.is-busy svg{ animation: wzmap-spin 1s linear infinite; }
@keyframes wzmap-spin{ to{ transform: rotate(360deg); } }

/* ---------- Steuerung ---------- */
.wzmap__ctrl{ position: absolute; right: 14px; bottom: 14px; z-index: 6; display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(22,55,86,.18); }
.wzmap__btn{ all: unset; box-sizing: border-box; width: 38px; height: 38px; display: grid; place-items: center;
  background: #fff; color: var(--wz-blau); cursor: pointer; transition: background-color .15s, color .15s; }
.wzmap__btn + .wzmap__btn{ border-top: 1px solid #e6e9ee; }
.wzmap__btn:hover{ background: #eef3f9; }
.wzmap__btn:focus-visible{ background: var(--wz-gold); color: var(--wz-blau); }
.wzmap__btn:disabled{ color: #b9c2cd; cursor: default; background: #fff; }
.wzmap__btn svg{ width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.wzmap__hint{ position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%,-50%);
  padding: 10px 16px; border-radius: 99px; background: rgba(22,55,86,.88); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.wzmap__hint.is-visible{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .wzmap__dot, .wzmap__card, .wzmap__cta span{ transition: none !important; }
  .wzmap__dot::after{ animation: none !important; }
  .wzmap__site-dot::after{ animation: none !important; opacity: 0; }
  .wzmap__btn.is-busy svg{ animation: none !important; }
}

/* =================== Ortssuche (Panel über/unter der Karte) =================== */
.wzmap-suche{
  --wz-blau: #163756;
  --wz-gold: #d9a521;
  --wz-gold-dunkel: #b88a1a;
  --wz-grau: #4a5568;
  --wz-chip: #f5efe3;          /* Chip-Hintergrund (beige) */
  --wz-chip-hover: #ece2cd;
  width: 100%; margin: 0 auto 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: inherit; line-height: 1.35; color: var(--wz-blau);
}
.wzmap-suche--unten{ margin: 18px auto 0; }
.wzmap-suche *, .wzmap-suche *::before, .wzmap-suche *::after{ box-sizing: border-box; }

.wzmap-suche__feld{ position: relative; width: 100%; max-width: 560px; }
.wzmap-suche__feld > svg{ position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--wz-grau); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.wzmap-suche input[type="search"]{ width: 100% !important; height: 52px; margin: 0 !important; padding: 0 18px 0 46px !important;
  border: 1px solid #dde2e8 !important; border-radius: 14px !important; background: #fff !important;
  font: inherit; font-size: 16px !important; color: var(--wz-blau) !important;
  box-shadow: 0 1px 2px rgba(22,55,86,.05), 0 6px 20px rgba(22,55,86,.07); outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.wzmap-suche input[type="search"]::placeholder{ color: #8a94a3; opacity: 1; }
.wzmap-suche input[type="search"]:focus{ border-color: var(--wz-gold) !important; box-shadow: 0 0 0 3px rgba(217,165,33,.22), 0 6px 20px rgba(22,55,86,.07); }
.wzmap-suche input[type="search"]::-webkit-search-cancel-button{ cursor: pointer; }

.wzmap-suche__liste{ position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; margin: 0 !important; padding: 6px !important;
  list-style: none !important; background: #fff; border-radius: 12px; max-height: 320px; overflow-y: auto;
  box-shadow: 0 2px 4px rgba(22,55,86,.08), 0 14px 34px rgba(22,55,86,.18); }
.wzmap-suche__liste[hidden]{ display: none; }
.wzmap-suche__liste li{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0 !important; padding: 10px 12px !important; border-radius: 8px; cursor: pointer; font-size: 15px; list-style: none !important; }
.wzmap-suche__liste li::before{ display: none !important; }
.wzmap-suche__liste li b{ font-weight: 700; color: var(--wz-blau); }
.wzmap-suche__liste li span{ font-size: 12px; color: var(--wz-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wzmap-suche__liste li[aria-selected="true"]{ background: #fdf8ee; }
.wzmap-suche__liste li.wzmap-suche__leer{ cursor: default; color: var(--wz-grau); font-size: 14px; }
.wzmap-suche__liste li.wzmap-suche__quelle{ cursor: default; justify-content: flex-end; padding: 4px 12px 2px !important; font-size: 10px; color: #9aa3b0; }

.wzmap-suche__chips{ display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.wzmap-suche__chips > span{ margin-right: 4px; font-size: 14px; color: #7a8291; }
.wzmap-suche__chip{ all: unset; box-sizing: border-box; padding: 6px 16px; border-radius: 99px; background: var(--wz-chip);
  color: #3d3a35; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; }
.wzmap-suche__chip:hover{ background: var(--wz-chip-hover); }
.wzmap-suche__chip:focus-visible{ outline: 2px solid var(--wz-gold); outline-offset: 2px; }

.wzmap-suche__status{ all: unset; box-sizing: border-box; font-size: 14px; font-weight: 500; color: var(--wz-blau);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.wzmap-suche__status[hidden]{ display: none; }
.wzmap-suche__status:hover{ color: var(--wz-gold-dunkel); }
.wzmap-suche__status:focus-visible{ outline: 2px solid var(--wz-gold); outline-offset: 3px; border-radius: 2px; }
.wzmap-suche__status.is-busy{ cursor: progress; text-decoration: none; color: var(--wz-grau); }

/* Ort außerhalb der Karte */
.wzmap-suche__fern{ width: 100%; max-width: 560px; padding: 14px 16px; border-radius: 14px; background: #fdf8ee;
  border: 1px solid #f0e3c4; font-size: 14px; color: var(--wz-blau); }
.wzmap-suche__fern[hidden]{ display: none; }
.wzmap-suche__fern p{ margin: 0 0 6px !important; padding: 0 !important; font-size: 14px; line-height: 1.45; }
.wzmap-suche__fernliste a{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0;
  border-top: 1px solid #f0e3c4; color: var(--wz-blau) !important; text-decoration: none !important; font-size: 14px; }
.wzmap-suche__fernliste a:first-child{ border-top: 0; }
.wzmap-suche__fernliste a span{ font-size: 13px; color: var(--wz-grau); white-space: nowrap; }
.wzmap-suche__fernliste a:hover b, .wzmap-suche__fernliste a:focus-visible b{ text-decoration: underline; }
.wzmap-suche__fernliste em{ display: inline-block; margin-left: 6px; padding: 1px 6px; font-style: normal; font-size: 10px; font-weight: 700;
  border-radius: 99px; background: #fff; color: var(--wz-gold-dunkel); vertical-align: 1px; }

.wzmap-suche__live{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px){
  .wzmap-suche{ gap: 10px; margin-bottom: 14px; }
  .wzmap-suche__chip{ padding: 6px 13px; font-size: 13px; }
}
.wzmap-suche__fernlink{ display: inline-flex; gap: 6px; margin-top: 2px; font-size: 14px; font-weight: 600;
  color: var(--wz-blau) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.wzmap-suche__fernlink span{ color: var(--wz-gold-dunkel); }
