.dtkv-vk {
  --dtkv-vk-primary: #a9936f;
  --dtkv-vk-primary-soft: #f3efe8;
  --dtkv-vk-text: #1f1f1f;
  --dtkv-vk-muted: #66615a;
  --dtkv-vk-line: #e8e4de;
  --dtkv-vk-bg: #f6f4f1;
  --dtkv-vk-white: #fff;
  --dtkv-vk-radius: 12px;
  color: var(--dtkv-vk-text);
  font: inherit;
}

.dtkv-vk *,
.dtkv-vk *::before,
.dtkv-vk *::after {
  box-sizing: border-box;
}

.dtkv-vk__toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: var(--dtkv-vk-radius);
  background: var(--dtkv-vk-white);
}

.dtkv-vk__search {
  position: relative;
  display: block;
}

.dtkv-vk__search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.dtkv-vk__search-input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px 9px 43px;
  border: 1px solid #cec8bf;
  border-radius: 8px;
  background: var(--dtkv-vk-white);
  color: var(--dtkv-vk-text);
  font: inherit;
  box-shadow: none;
}

.dtkv-vk__search-input:focus {
  border-color: var(--dtkv-vk-primary);
  outline: 2px solid rgba(169, 147, 111, 0.23);
  outline-offset: 1px;
}

.dtkv-vk__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.dtkv-vk__filter-button,
.dtkv-vk__view-button {
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: 999px;
  background: var(--dtkv-vk-white);
  color: var(--dtkv-vk-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.dtkv-vk__filter-button:hover,
.dtkv-vk__view-button:hover {
  border-color: var(--dtkv-vk-primary);
  background: var(--dtkv-vk-primary-soft);
}

.dtkv-vk__filter-button:focus-visible,
.dtkv-vk__view-button:focus-visible,
.dtkv-vk-marker:focus-visible,
.dtkv-vk-card__button:focus-visible {
  outline: 3px solid rgba(169, 147, 111, 0.35);
  outline-offset: 2px;
}

.dtkv-vk__filter-button.is-active,
.dtkv-vk__view-button.is-active {
  border-color: var(--dtkv-vk-primary);
  background: var(--dtkv-vk-primary);
  color: #fff;
}

.dtkv-vk__view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: 999px;
  background: var(--dtkv-vk-bg);
}

.dtkv-vk__view-button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
}

.dtkv-vk__summary {
  min-height: 24px;
  margin: 0 0 8px;
  color: var(--dtkv-vk-muted);
  font-size: 14px;
  font-weight: 600;
}

.dtkv-vk__stage {
  position: relative;
  min-height: var(--dtkv-vk-height, 620px);
  overflow: hidden;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: var(--dtkv-vk-radius);
  background: var(--dtkv-vk-bg);
}

.dtkv-vk__map,
.dtkv-vk__list {
  width: 100%;
  height: var(--dtkv-vk-height, 620px);
}

.dtkv-vk__map[hidden],
.dtkv-vk__list[hidden] {
  display: none !important;
}

.dtkv-vk__map--neutral .maplibregl-canvas {
  filter: grayscale(0.86) saturate(0.48) sepia(0.08) brightness(1.035) contrast(0.94);
}

.dtkv-vk__message {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 40px));
  padding: 18px 22px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--dtkv-vk-line);
  border-radius: var(--dtkv-vk-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--dtkv-vk-text);
  text-align: center;
  box-shadow: 0 12px 38px rgba(31, 31, 31, 0.12);
}

.dtkv-vk__message[hidden] {
  display: none;
}

.dtkv-vk-marker {
  display: block;
  width: var(--dtkv-vk-marker-size, 42px);
  height: var(--dtkv-vk-marker-size, 42px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dtkv-vk-marker[hidden] {
  display: none !important;
}

.dtkv-vk-marker:hover,
.dtkv-vk-marker.is-active {
  z-index: 3;
}

.dtkv-vk-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.dtkv-vk .maplibregl-popup {
  z-index: 5;
}

.dtkv-vk .maplibregl-popup-content {
  min-width: min(330px, calc(100vw - 42px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: var(--dtkv-vk-radius);
  background: var(--dtkv-vk-white);
  box-shadow: 0 14px 40px rgba(31, 31, 31, 0.18);
}

.dtkv-vk .maplibregl-popup-close-button {
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(246, 244, 241, 0.92);
  color: var(--dtkv-vk-text);
  font-size: 22px;
  line-height: 30px;
}

.dtkv-vk .maplibregl-popup-close-button:hover {
  background: var(--dtkv-vk-primary-soft);
}

.dtkv-vk .maplibregl-popup-tip {
  border-top-color: var(--dtkv-vk-white);
  border-bottom-color: var(--dtkv-vk-white);
}

.dtkv-vk-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: var(--dtkv-vk-radius);
  background: var(--dtkv-vk-white);
}

.dtkv-vk-card--popup {
  gap: 12px;
  padding: 18px;
  border: 0;
  border-radius: 0;
}

.dtkv-vk-card__header {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding-right: 22px;
}

.dtkv-vk-card__logo {
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: 10px;
  background: #fff;
}

.dtkv-vk-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dtkv-vk-card__heading {
  min-width: 0;
}

.dtkv-vk-card__title {
  margin: 0;
  color: var(--dtkv-vk-text);
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dtkv-vk-card__location {
  margin: 4px 0 0;
  color: var(--dtkv-vk-muted);
  font-size: 14px;
  line-height: 1.4;
}

.dtkv-vk-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dtkv-vk-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--dtkv-vk-primary-soft);
  color: #4e4434;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.dtkv-vk-card__description {
  margin: 0;
  color: #423f3a;
  font-size: 14px;
  line-height: 1.55;
}

.dtkv-vk-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.dtkv-vk-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--dtkv-vk-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--dtkv-vk-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.dtkv-vk-card__button:hover {
  background: var(--dtkv-vk-primary-soft);
  color: var(--dtkv-vk-text);
}

.dtkv-vk-card__button--primary {
  background: var(--dtkv-vk-primary);
  color: #fff;
}

.dtkv-vk-card__button--primary:hover {
  background: #8f7a5b;
  color: #fff;
}

.dtkv-vk__list {
  padding: 20px;
  overflow: auto;
  background: var(--dtkv-vk-bg);
}

.dtkv-vk__list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dtkv-vk .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.12);
}

.dtkv-vk .maplibregl-ctrl-attrib {
  color: #4f4c47;
  font-size: 10px;
}

@media (max-width: 1024px) {
  .dtkv-vk__toolbar {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .dtkv-vk__view-toggle {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .dtkv-vk__list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dtkv-vk__toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .dtkv-vk__filters {
    flex-wrap: nowrap;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .dtkv-vk__filter-button {
    flex: 0 0 auto;
  }

  .dtkv-vk__view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .dtkv-vk__stage {
    min-height: var(--dtkv-vk-height-mobile, 520px);
  }

  .dtkv-vk__map,
  .dtkv-vk__list {
    height: var(--dtkv-vk-height-mobile, 520px);
  }

  .dtkv-vk__list {
    padding: 14px;
  }

  .dtkv-vk__list-grid {
    grid-template-columns: 1fr;
  }

  .dtkv-vk .maplibregl-popup-content {
    min-width: min(310px, calc(100vw - 30px));
  }

  .dtkv-vk-card__header {
    padding-right: 18px;
  }
}

/* Version 0.2.0: clearly marked preview mode. */
.dtkv-vk__preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid var(--dtkv-vk-primary);
  border-radius: 999px;
  background: var(--dtkv-vk-primary-soft);
  color: var(--dtkv-vk-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.dtkv-vk__preview-badge[hidden] {
  display: none;
}

.dtkv-vk.is-demo .dtkv-vk__stage {
  outline: 2px dashed var(--dtkv-vk-primary);
  outline-offset: 3px;
}

.dtkv-vk-card__header--without-logo {
  padding-right: 22px;
}

.dtkv-vk-card__header--without-logo .dtkv-vk-card__heading {
  width: 100%;
}

.dtkv-vk-card__button--primary:hover {
  background: var(--dtkv-vk-primary);
  filter: brightness(0.9);
}

/* Version 0.2.1: UI-Abgleich mit den DTKV-Downloadfiltern. */
.dtkv-vk .dtkv-vk__search {
  color: var(--dtkv-vk-primary);
}

.dtkv-vk .dtkv-vk__search svg {
  z-index: 2;
  left: 15px;
  width: 18px;
  height: 18px;
}

.dtkv-vk .dtkv-vk__search-input[type="search"] {
  min-height: 44px;
  padding: 8px 14px 8px 47px !important;
  border-color: var(--dtkv-vk-line);
  border-radius: 8px;
  color: var(--dtkv-vk-text);
  font-size: 15px;
  line-height: 1.35;
  text-indent: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.dtkv-vk .dtkv-vk__search-input::placeholder {
  color: var(--dtkv-vk-muted);
  opacity: 0.82;
}

.dtkv-vk .dtkv-vk__filter-button,
.dtkv-vk .dtkv-vk__view-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  background: var(--dtkv-vk-primary-soft);
  color: var(--dtkv-vk-text) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none !important;
  text-transform: none;
}

.dtkv-vk .dtkv-vk__filter-button:hover,
.dtkv-vk .dtkv-vk__filter-button:focus-visible,
.dtkv-vk .dtkv-vk__view-button:hover:not(.is-active),
.dtkv-vk .dtkv-vk__view-button:focus-visible:not(.is-active) {
  border-color: var(--dtkv-vk-primary);
  background: var(--dtkv-vk-white) !important;
  color: var(--dtkv-vk-primary) !important;
}

.dtkv-vk .dtkv-vk__filter-button.is-active,
.dtkv-vk .dtkv-vk__view-button.is-active,
.dtkv-vk .dtkv-vk__filter-button.is-active:hover,
.dtkv-vk .dtkv-vk__view-button.is-active:hover {
  border-color: var(--dtkv-vk-primary);
  background: var(--dtkv-vk-primary) !important;
  color: #fff !important;
}

.dtkv-vk .dtkv-vk__view-toggle {
  gap: 2px;
  padding: 3px;
  background: var(--dtkv-vk-primary-soft);
}

.dtkv-vk .dtkv-vk__view-button {
  min-height: 32px;
  padding-inline: 13px;
  background: transparent;
}

/* Theme-sichere Kartenmarker ohne rechteckigen Button-Hover. */
.dtkv-vk .dtkv-vk-marker,
.dtkv-vk .dtkv-vk-marker:hover,
.dtkv-vk .dtkv-vk-marker:active,
.dtkv-vk .dtkv-vk-marker:focus {
  position: absolute !important;
  top: 0;
  left: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.dtkv-vk .dtkv-vk-marker:hover {
  z-index: 4;
}

.dtkv-vk .dtkv-vk-marker.is-active {
  z-index: 5;
}

.dtkv-vk .dtkv-vk-marker img {
  position: relative;
  z-index: 2;
}

/* Vereinslogo innerhalb eines einheitlichen DTKV-Sechsecks. */
.dtkv-vk .dtkv-vk-marker.has-club-logo::before,
.dtkv-vk .dtkv-vk-marker.has-club-logo::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: polygon(50% 0, 89% 19%, 89% 62%, 50% 100%, 11% 62%, 11% 19%);
}

.dtkv-vk .dtkv-vk-marker.has-club-logo::before {
  z-index: 0;
  inset: 0;
  background: var(--dtkv-vk-primary);
}

.dtkv-vk .dtkv-vk-marker.has-club-logo::after {
  z-index: 1;
  inset: 3px;
  background: var(--dtkv-vk-white);
}

.dtkv-vk .dtkv-vk-marker.has-club-logo .dtkv-vk-marker__club-logo {
  position: absolute;
  top: 18%;
  left: 20%;
  z-index: 2;
  width: 60%;
  height: 55%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .dtkv-vk .dtkv-vk__filter-button,
  .dtkv-vk .dtkv-vk__view-button {
    font-size: 13px;
  }
}


/* Version 0.2.2: ruhigere Logos, zuverlässige Marker-Interaktion und kompaktere Chips. */
.dtkv-vk.is-demo .dtkv-vk__stage {
  outline: none;
  outline-offset: 0;
}

.dtkv-vk .dtkv-vk__filter-button,
.dtkv-vk .dtkv-vk__view-button {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

.dtkv-vk .dtkv-vk__view-button {
  min-height: 30px;
  padding-inline: 12px;
}

/* MapLibre positioniert das äußere Element selbst. Animationen laufen nur auf dem inneren Visual. */
.dtkv-vk .dtkv-vk-marker {
  filter: none;
  transition: none;
}

.dtkv-vk .dtkv-vk-marker__visual {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform: translateY(0) scale(1);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 3px 4px rgba(31, 31, 31, 0.2));
  transition: transform 180ms cubic-bezier(.2, .75, .25, 1), filter 180ms ease;
}

.dtkv-vk .dtkv-vk-marker:hover .dtkv-vk-marker__visual,
.dtkv-vk .dtkv-vk-marker:focus-visible .dtkv-vk-marker__visual {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 7px 8px rgba(31, 31, 31, 0.28));
}

.dtkv-vk .dtkv-vk-marker.is-active .dtkv-vk-marker__visual {
  transform: translateY(-4px) scale(1.12);
  filter: drop-shadow(0 8px 10px rgba(31, 31, 31, 0.31));
}

/* Ein vorhandenes Vereinslogo erscheint als neutrale Logo-Plakette, nicht als Logo im Pin. */
.dtkv-vk .dtkv-vk-marker.has-club-logo::before,
.dtkv-vk .dtkv-vk-marker.has-club-logo::after {
  display: none;
}

.dtkv-vk .dtkv-vk-marker.has-club-logo .dtkv-vk-marker__visual {
  overflow: hidden;
  padding: 5px;
  border: 2px solid var(--dtkv-vk-primary);
  border-radius: 50%;
  background: var(--dtkv-vk-white);
}

.dtkv-vk .dtkv-vk-marker.has-club-logo .dtkv-vk-marker__club-logo {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Logo in Listen- und Popupkarten rechts platzieren; Vereinsname bleibt als Einheit lesbar. */
.dtkv-vk .dtkv-vk-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: start;
  padding-right: 0;
}

.dtkv-vk .dtkv-vk-card__heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.dtkv-vk .dtkv-vk-card__logo {
  grid-column: 2;
  grid-row: 1;
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dtkv-vk .dtkv-vk-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dtkv-vk .dtkv-vk-card__header--without-logo {
  grid-template-columns: minmax(0, 1fr);
  padding-right: 0;
}

.dtkv-vk .dtkv-vk-card__title {
  margin: 0 !important;
  color: var(--dtkv-vk-text) !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__header {
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 12px;
}

.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__logo {
  width: 54px;
  height: 54px;
}

.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__title {
  font-size: 18px !important;
}

@media (max-width: 767px) {
  .dtkv-vk .dtkv-vk__filter-button,
  .dtkv-vk .dtkv-vk__view-button {
    font-size: 12.5px !important;
  }

  .dtkv-vk .dtkv-vk-card__header {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .dtkv-vk .dtkv-vk-card__logo {
    width: 56px;
    height: 56px;
  }
}

/* Version 0.2.3: Logos im Standort-Pin, offene Listenhöhe und ruhige Karten-Hover. */
.dtkv-vk .dtkv-vk-marker.has-club-logo .dtkv-vk-marker__visual {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dtkv-vk .dtkv-vk-marker__shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dtkv-vk .dtkv-vk-marker__logo-frame {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: 21%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  height: 48%;
  padding: 1px;
  overflow: hidden;
  pointer-events: none;
}

.dtkv-vk .dtkv-vk-marker.has-club-logo .dtkv-vk-marker__club-logo {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 1px;
  object-fit: contain;
  object-position: center;
}

/* Vereinslogo links und vollständig innerhalb der Vereinskarte. */
.dtkv-vk .dtkv-vk-card__header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 0;
}

.dtkv-vk .dtkv-vk-card__logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--dtkv-vk-line);
  border-radius: 10px;
  background: var(--dtkv-vk-white);
}

.dtkv-vk .dtkv-vk-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.dtkv-vk .dtkv-vk-card__heading {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.dtkv-vk .dtkv-vk-card__header--without-logo {
  grid-template-columns: minmax(0, 1fr);
}

.dtkv-vk .dtkv-vk-card__header--without-logo .dtkv-vk-card__heading {
  grid-column: 1;
}

/* Im Popup bleibt rechts sicher Platz für das Schließen-Symbol. */
.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__header {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding-right: 34px;
}

.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__logo {
  width: 52px;
  height: 52px;
}

.dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__header--without-logo {
  grid-template-columns: minmax(0, 1fr);
}

.dtkv-vk .maplibregl-popup-close-button,
.dtkv-vk .maplibregl-popup-close-button:hover,
.dtkv-vk .maplibregl-popup-close-button:focus {
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--dtkv-vk-primary-soft) !important;
  color: var(--dtkv-vk-text) !important;
  font-size: 20px;
  line-height: 26px;
  box-shadow: none !important;
}

.dtkv-vk .maplibregl-popup-close-button:hover {
  background: var(--dtkv-vk-line) !important;
}

/* Die Listenansicht wächst mit den Treffern; gescrollt wird die Seite, nicht die Liste. */
.dtkv-vk.is-list-view .dtkv-vk__stage {
  min-height: 0;
  overflow: visible;
}

.dtkv-vk.is-list-view .dtkv-vk__list {
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

/* Gleicher ruhiger Karten-Hover wie bei den übrigen DTKV-Karten. */
.dtkv-vk .dtkv-vk__list .dtkv-vk-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .dtkv-vk .dtkv-vk__list .dtkv-vk-card:hover {
    transform: translateY(-3px);
    border-color: var(--dtkv-vk-primary);
    box-shadow: 0 10px 26px rgba(31, 31, 31, 0.1);
  }
}

.dtkv-vk .dtkv-vk-card__badge--link {
  text-decoration: none !important;
  transition: background-color 160ms ease, color 160ms ease;
}

.dtkv-vk .dtkv-vk-card__badge--link:hover,
.dtkv-vk .dtkv-vk-card__badge--link:focus-visible {
  background: var(--dtkv-vk-primary);
  color: #fff;
}

@media (max-width: 767px) {
  .dtkv-vk .dtkv-vk-card__header {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .dtkv-vk .dtkv-vk-card__logo {
    width: 52px;
    height: 52px;
  }

  .dtkv-vk .dtkv-vk-card__header--without-logo,
  .dtkv-vk .dtkv-vk-card--popup .dtkv-vk-card__header--without-logo {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Version 0.2.4: MapLibre-Positionierung, zentriertes Popup-X und kompakte Attribution. */
.dtkv-vk .maplibregl-marker.dtkv-vk-marker,
.dtkv-vk .maplibregl-marker.dtkv-vk-marker:hover,
.dtkv-vk .maplibregl-marker.dtkv-vk-marker:active,
.dtkv-vk .maplibregl-marker.dtkv-vk-marker:focus {
  position: absolute !important;
  top: 0;
  left: 0;
  margin: 0 !important;
}

.dtkv-vk .maplibregl-popup-close-button,
.dtkv-vk .maplibregl-popup-close-button:hover,
.dtkv-vk .maplibregl-popup-close-button:focus {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  text-indent: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.dtkv-vk .maplibregl-popup-close-button::before,
.dtkv-vk .maplibregl-popup-close-button::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 14px !important;
  height: 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--dtkv-vk-text) !important;
  transform-origin: center !important;
}

.dtkv-vk .maplibregl-popup-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.dtkv-vk .maplibregl-popup-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.dtkv-vk .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
  display: none !important;
}

/* Version 0.2.5: Punkt-Clustering und Auswahl für sehr enge Standorte. */
.dtkv-vk-cluster-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(280px, calc(100vw - 52px));
  max-height: min(420px, calc(100vh - 120px));
  padding: 18px;
  overflow: hidden;
  background: var(--dtkv-vk-white);
}

.dtkv-vk-cluster-card__title {
  margin: 0 !important;
  padding-right: 34px;
  color: var(--dtkv-vk-text) !important;
  font: inherit !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.dtkv-vk-cluster-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dtkv-vk .dtkv-vk-cluster-card__item,
.dtkv-vk .dtkv-vk-cluster-card__item:hover,
.dtkv-vk .dtkv-vk-cluster-card__item:focus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--dtkv-vk-line) !important;
  border-radius: 8px !important;
  background: var(--dtkv-vk-primary-soft) !important;
  color: var(--dtkv-vk-text) !important;
  text-align: left;
  box-shadow: none !important;
  cursor: pointer;
}

.dtkv-vk .dtkv-vk-cluster-card__item:hover,
.dtkv-vk .dtkv-vk-cluster-card__item:focus-visible {
  border-color: var(--dtkv-vk-primary) !important;
  background: var(--dtkv-vk-white) !important;
}

.dtkv-vk-cluster-card__name {
  font-size: 14px;
  line-height: 1.3;
}

.dtkv-vk-cluster-card__location {
  margin-top: 2px;
  color: var(--dtkv-vk-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Logos bleiben auch bei ungewöhnlichen SVG-ViewBoxes vollständig im Logo-Rahmen. */
.dtkv-vk .dtkv-vk-card__logo img,
.dtkv-vk .dtkv-vk-marker__club-logo {
  overflow: hidden;
  object-fit: contain;
  object-position: center;
}
