[data-any-map] {
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: inherit;
  background: #eef0f2;
}

[data-any-map] .any-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: inherit;
  padding: 1rem;
  font: 14px/1.4 system-ui, sans-serif;
  color: #555;
  text-align: center;
}

/* Vorschaubild als erstes Kind bleibt stehen, bis die Karte gezeichnet ist. */
[data-any-map] > img:first-child {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

[data-any-map].is-live > img:first-child {
  opacity: 0;
}

.any-map-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--any-map-label, #111);
  white-space: nowrap;
}

.any-map-marker--left {
  flex-direction: row-reverse;
}

.any-map-marker > i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--any-map-marker, #111);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--any-map-marker, #111) 30%, transparent);
}

.any-map-marker > span {
  text-shadow: 0 0 3px var(--any-map-halo, #fff), 0 0 6px var(--any-map-halo, #fff);
}

@media (prefers-reduced-motion: reduce) {
  [data-any-map] > img:first-child {
    transition: none;
  }
}

[data-any-scene] {
  position: relative;
}

[data-any-scene] > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

[data-any-scene] > .any-scene-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Breakdance 3 setzt .button-atom--* ohne das frühere .breakdance-Präfix; der Formular-Reset
 * .breakdance-form input (0,1,1) nimmt <input type="submit"> (z. B. im Kommentarformular) dann das Padding.
 * Spezifität (0,1,2): schlägt den Reset, unterliegt aber Button-Einstellungen am Element (ab 0,2,0).
 */
body .breakdance-form input:where(.button-atom--primary, .button-atom--secondary, .button-atom--custom) {
  padding: var(--bde-button-padding-base);
  border-width: var(--bde-button-border-width);
  border-style: solid;
}
