/* Demenznetz Wegweiser — Filter + Karte (CI, barrierefrei, list-first) */

.dn-wegweiser__filter {
  background: var(--wp--preset--color--paper, #FBF7EE);
  border: 1px solid var(--wp--preset--color--bone, #E6DAB8);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem 1rem;
  align-items: end;
}
@media (min-width: 720px) {
  .dn-wegweiser__filter { grid-template-columns: 2fr 1.3fr 1.3fr auto; }
}
.dn-wegweiser__field { display: grid; gap: .3rem; min-width: 0; }
.dn-wegweiser__field label {
  font-family: var(--wp--preset--font-family--sans, sans-serif);
  font-weight: 600; font-size: .9rem;
  color: var(--wp--preset--color--loden, #293A23);
}
.dn-wegweiser__filter input[type="search"],
.dn-wegweiser__filter select {
  box-sizing: border-box; width: 100%; height: 48px;
  padding: 0 .75rem; font: inherit; font-size: 1.02rem; border-radius: 8px;
  background: #fff; color: var(--wp--preset--color--ink, #1B1714);
  border: 1px solid var(--wp--preset--color--khaki, #B8A86A);
}
.dn-wegweiser__filter input:focus,
.dn-wegweiser__filter select:focus {
  outline: 3px solid var(--wp--preset--color--copper, #B6562A); outline-offset: 1px;
  border-color: var(--wp--preset--color--loden, #293A23);
}
.dn-wegweiser__reset {
  height: 48px; padding: 0 1.1rem; border-radius: 8px; cursor: pointer;
  font: inherit; font-family: var(--wp--preset--font-family--sans, sans-serif); font-weight: 600;
  background: #fff; color: var(--wp--preset--color--loden, #293A23);
  border: 1px solid var(--wp--preset--color--khaki, #B8A86A);
}
.dn-wegweiser__reset:hover, .dn-wegweiser__reset:focus {
  border-color: var(--wp--preset--color--loden, #293A23);
}

.dn-wegweiser__count {
  font-family: var(--wp--preset--font-family--sans, sans-serif); font-weight: 600;
  color: var(--wp--preset--color--rust, #7A3E22); margin: 0 0 1rem;
}

.dn-wegweiser__layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) {
  .dn-wegweiser__layout { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .dn-wegweiser__map { position: sticky; top: 1rem; }
}

.dn-wegweiser__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.dn-wegweiser__list > li {
  background: #fff; border: 1px solid var(--wp--preset--color--bone, #E6DAB8);
  border-left: 6px solid var(--wp--preset--color--copper, #B6562A);
  border-radius: 8px; padding: 1rem 1.2rem; cursor: pointer;
}
.dn-wegweiser__list > li.is-active {
  outline: 3px solid var(--wp--preset--color--copper, #B6562A); outline-offset: 1px;
}
/* Gefilterte Anlaufstellen sicher ausblenden. !important, damit eine Theme-Regel
   mit display: (Author-CSS) das [hidden]-Attribut nicht überschreibt. */
.dn-wegweiser__list > li[hidden] { display: none !important; }
.dn-wegweiser__list h3 { margin: .1rem 0 .4rem; font-size: 1.2rem; }
.dn-wegweiser__list h3 a { color: var(--wp--preset--color--loden, #293A23); text-decoration: none; }
.dn-wegweiser__list h3 a:hover, .dn-wegweiser__list h3 a:focus { text-decoration: underline; }
.dn-wegweiser__list .dn-a__meta { margin: .2rem 0; font-size: .95rem; color: var(--wp--preset--color--rust, #7A3E22); }
.dn-wegweiser__list p { margin: .2rem 0; }
.dn-wegweiser__list a { color: var(--wp--preset--color--rust, #7A3E22); }

/* Karte */
.dn-wegweiser__mapbox {
  background: var(--wp--preset--color--linen, #EFE9D6);
  border: 1px solid var(--wp--preset--color--bone, #E6DAB8);
  border-radius: 12px; overflow: hidden;
}
.dn-wegweiser__mapload {
  width: 100%; min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem; text-align: center;
  padding: 2rem 1.25rem; border: 0; cursor: pointer;
  background: var(--wp--preset--color--linen, #EFE9D6); color: var(--wp--preset--color--loden, #293A23);
  font-family: var(--wp--preset--font-family--sans, sans-serif);
}
.dn-wegweiser__mapload strong { font-size: 1.15rem; }
.dn-wegweiser__mapload span { font-size: .9rem; color: var(--wp--preset--color--brown, #4A3318); max-width: 34ch; }
.dn-wegweiser__mapload:hover, .dn-wegweiser__mapload:focus { background: var(--wp--preset--color--bone, #E6DAB8); }
.dn-wegweiser__mapload .dn-wegweiser__pin {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--wp--preset--color--copper, #B6562A); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.dn-wegweiser__canvas { width: 100%; height: 520px; }
@media (max-width: 900px) { .dn-wegweiser__canvas { height: 380px; } }

/* Leaflet-Popups an die CI angleichen */
.leaflet-popup-content { font-family: var(--wp--preset--font-family--serif, Georgia, serif); }
.leaflet-popup-content strong { font-family: var(--wp--preset--font-family--sans, sans-serif); color: var(--wp--preset--color--loden, #293A23); }
.leaflet-container a.leaflet-popup-close-button { color: var(--wp--preset--color--loden, #293A23); }
