.iq-kartensuche {
  font-family: Calibri, system-ui, sans-serif;
  color: #485358;
  background: #f2f3f8;
}

.iq-ks-header {
  padding: 1rem 1rem 0;
}
.iq-ks-header__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #485358;
}

.iq-ks-pdf-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  border-top: 1px solid #9ca0a2;
}

.iq-ks-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  color: #1560ab;
  border: 1px solid #1560ab;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.iq-ks-pdf__icon {
  display: inline-flex;
}
.iq-ks-pdf__icon svg {
  display: block;
  width: 1.05em;
  height: 1.05em;
}
.iq-ks-pdf:hover {
  background: #1560ab;
  color: #fff;
}
.iq-ks-pdf:focus-visible {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}

.iq-ks-controls {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.iq-ks-controls > input, .iq-ks-controls > select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #9ca0a2;
  border-radius: 6px;
  font: inherit;
}
.iq-ks-controls > input:focus, .iq-ks-controls > select:focus {
  outline: 2px solid #1560ab;
  outline-offset: 1px;
}

.iq-ks-ebene {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.iq-ks-ebene[hidden] {
  display: none;
}
.iq-ks-ebene__lbl {
  color: #6b7176;
  font-size: 0.9rem;
}
.iq-ks-ebene__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #9ca0a2;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.1;
}
.iq-ks-ebene__opt input {
  margin: 0;
}
.iq-ks-ebene__opt:has(input:checked) {
  border-color: #1560ab;
  background: rgba(21, 96, 171, 0.08);
  color: #1560ab;
  font-weight: 600;
}
.iq-ks-ebene__opt:focus-within {
  outline: 2px solid #1560ab;
  outline-offset: 1px;
}

.iq-ks-split {
  display: flex;
  gap: 1rem;
  padding: 0 1rem 1rem;
  align-items: flex-start;
}

.iq-ks-mapcol {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iq-ks-list {
  flex: 0 0 42%;
  max-height: calc(60vh + 240px);
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iq-ks-list .iq-ks-card {
  background: #fff;
  padding-left: 0;
  margin-bottom: 0;
  line-height: 1.4;
}

.iq-ks-map {
  min-height: 60vh;
  border-radius: 8px;
}

.iq-ks-card {
  display: flex;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.iq-ks-card:hover {
  border-color: #1560ab;
}
.iq-ks-card:focus {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}
.iq-ks-card:focus-visible {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}
.iq-ks-card__bar {
  flex: 0 0 6px;
  background: #485358;
}
.iq-ks-card__body {
  padding: 0.75rem 0.85rem;
  min-width: 0;
  flex: 1;
}
.iq-ks-card__title {
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  color: #485358;
  overflow-wrap: anywhere;
}
.iq-ks-card__traeger {
  font-size: 0.8rem;
  margin: 0 0 0.35rem;
  color: #6b7176;
  overflow-wrap: anywhere;
}
.iq-ks-card__rel {
  font-size: 0.78rem;
  margin: 0 0 0.4rem;
  color: #6b7176;
  overflow-wrap: anywhere;
}
.iq-ks-card__loc {
  font-size: 0.8rem;
  color: #6b7176;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}
.iq-ks-card__sum {
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iq-ks-card__cta {
  display: inline-block;
  background: #1560ab;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background-color 0.15s ease;
}
.iq-ks-card__cta:hover, .iq-ks-card__cta:focus, .iq-ks-card__cta:focus-visible, .iq-ks-card__cta:visited, .iq-ks-card__cta:active {
  color: #fff;
  text-decoration: none;
}
.iq-ks-card__cta:hover, .iq-ks-card__cta:active {
  background: #104e88;
}
.iq-ks-card__cta:focus-visible {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}

.iq-ks-chip {
  display: inline-block;
  background: #eef0f4;
  color: #485358;
  border: 1px solid #d6dae0;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.iq-ks-card--RINWA .iq-ks-card__bar {
  background: #004f9f;
}

.iq-ks-card--RINIA .iq-ks-card__bar {
  background: #afcb38;
}

.iq-ks-card--BBQA .iq-ks-card__bar {
  background: #5FBBBA;
}

.iq-ks-card--AQB .iq-ks-card__bar {
  background: #afcb38;
}

.iq-ks-card--FACHSTELLE .iq-ks-card__bar {
  background: var(--iq-fs, #485358);
}

.iq-ks-popup__typ {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #485358;
  margin-bottom: 0.15rem;
}
.iq-ks-popup__typ-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #1b1f22;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.iq-ks-popup__typ--rinwa .iq-ks-popup__typ-swatch {
  background: #004f9f;
  border-color: #004f9f;
}
.iq-ks-popup__typ--rinia .iq-ks-popup__typ-swatch {
  background: #afcb38;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-popup__typ--bbqa .iq-ks-popup__typ-swatch {
  background: #5FBBBA;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-popup__typ--aqb .iq-ks-popup__typ-swatch {
  background: #afcb38;
  border-radius: 2px;
  transform: rotate(45deg);
}
.iq-ks-popup__typ--fachstelle .iq-ks-popup__typ-swatch {
  background: var(--iq-fs, #485358);
  border: 0;
  border-radius: 2px;
}

.iq-ks-sym {
  display: inline-block;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  vertical-align: middle;
  margin-right: 0.4rem;
  border-radius: 50%;
  border: 2px solid #1b1f22;
}
.iq-ks-sym--rinwa {
  background: #004f9f;
  border-color: #004f9f;
}
.iq-ks-sym--rinia {
  background: #afcb38;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-sym--bbqa {
  background: #5FBBBA;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-sym--aqb {
  background: #afcb38;
  border-radius: 2px;
  transform: rotate(45deg);
}
.iq-ks-sym--fachstelle {
  background: var(--iq-fs, #485358);
  border: 0;
  border-radius: 2px;
}
.iq-ks-sym--sonstige {
  background: #9ca0a2;
  border-color: #9ca0a2;
}

.iq-ks-pin span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.iq-ks-pin--square span {
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 1.5px rgba(0, 0, 0, 0.55);
}

.iq-ks-pin--pentagon span {
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  box-shadow: none;
  filter: drop-shadow(1px 0 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(-1px 0 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(0 1px 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(0 -1px 0 var(--iq-pin-edge, #1b1f22));
}

.iq-ks-pin--diamond span {
  border-radius: 2px;
  transform: rotate(45deg);
}

.iq-ks-pin--triangle span {
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow: none;
  filter: drop-shadow(1px 0 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(-1px 0 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(0 1px 0 var(--iq-pin-edge, #1b1f22)) drop-shadow(0 -1px 0 var(--iq-pin-edge, #1b1f22));
}

.iq-ks-pin--active span {
  box-shadow: 0 0 0 4px rgba(0, 79, 159, 0.4);
}

.iq-ks-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 83, 88, 0.92);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-weight: 700;
  font-family: Calibri, system-ui, sans-serif;
}
.iq-ks-cluster span {
  line-height: 1;
}
.iq-ks-cluster--s {
  font-size: 0.8rem;
}
.iq-ks-cluster--m {
  font-size: 0.9rem;
}
.iq-ks-cluster--l {
  font-size: 1rem;
}

.iq-ks-rel-link {
  color: #1560ab;
  text-decoration: underline;
  cursor: pointer;
}
.iq-ks-rel-link:hover, .iq-ks-rel-link:focus {
  color: #104e88;
}
.iq-ks-rel-link:focus-visible {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}

.iq-ks-popup {
  font-family: Calibri, system-ui, sans-serif;
  color: #485358;
}
.iq-ks-popup__title {
  display: block;
  font-size: 0.95rem;
  color: #485358;
}
.iq-ks-popup__sub {
  font-size: 0.85rem;
  color: #6b7176;
  margin-top: 0.1rem;
}
.iq-ks-popup__rel {
  font-size: 0.8rem;
  color: #6b7176;
  margin-top: 0.3rem;
  line-height: 1.35;
}
.iq-ks-popup__kinder {
  margin-top: 0.3rem;
  font-size: 0.8rem;
}
.iq-ks-popup__kinder > summary {
  cursor: pointer;
  color: #1560ab;
  list-style-position: inside;
}
.iq-ks-popup__kinder > summary:focus-visible {
  outline: 2px solid #1560ab;
  outline-offset: 2px;
}
.iq-ks-popup__kinder-list {
  margin: 0.25rem 0 0;
  padding-left: 0;
  list-style: none;
  color: #6b7176;
  line-height: 1.35;
}
.iq-ks-popup__kinder-list li {
  margin: 0.18rem 0;
}
.iq-ks-popup__addr {
  font-size: 0.8rem;
  color: #6b7176;
  margin-top: 0.4rem;
  line-height: 1.35;
}
.iq-ks-popup__sum {
  font-size: 0.8rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}
.iq-ks-popup__contact {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.iq-ks-popup__contact a {
  color: #1560ab;
}
.iq-ks-popup__foot {
  position: sticky;
  bottom: 0;
  padding-top: 0.35rem;
  background: linear-gradient(to top, #fff 62%, rgba(255, 255, 255, 0));
}
.iq-ks-popup__cta {
  display: inline-block;
  margin-top: 0.6rem;
  background: #1560ab;
  color: #fff !important;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
}

.leaflet-popup-content .iq-ks-popup__cta {
  color: #fff !important;
}

.iq-ks-legend {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: start;
  gap: 0.5rem 0.7rem;
  padding: 0.25rem 0 0.5rem;
  font-size: 0.8rem;
  color: #485358;
}
.iq-ks-legend__head {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.iq-ks-legend__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #485358;
}
.iq-ks-legend__total {
  font-size: 0.78rem;
  color: #6b7176;
}
.iq-ks-legend__item {
  display: contents;
}
.iq-ks-legend__swatch {
  margin-top: 0.12rem;
}
.iq-ks-legend__abbr {
  font-weight: 700;
  white-space: nowrap;
}
.iq-ks-legend__name {
  color: #6b7176;
  line-height: 1.35;
}
.iq-ks-legend__name--fs {
  grid-column: 2/4;
  font-weight: 700;
  color: #485358;
}
.iq-ks-legend__count {
  text-align: right;
  color: #6b7176;
  font-variant-numeric: tabular-nums;
}
.iq-ks-legend__swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #1b1f22;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.iq-ks-legend__swatch--rinwa {
  background: #004f9f;
  border-color: #004f9f;
}
.iq-ks-legend__swatch--rinia {
  background: #afcb38;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-legend__swatch--bbqa {
  background: #5FBBBA;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  filter: drop-shadow(1px 0 0 #1b1f22) drop-shadow(-1px 0 0 #1b1f22) drop-shadow(0 1px 0 #1b1f22) drop-shadow(0 -1px 0 #1b1f22);
}
.iq-ks-legend__swatch--aqb {
  background: #afcb38;
  border-radius: 2px;
  transform: rotate(45deg);
}
.iq-ks-legend__swatch--square {
  background: var(--iq-fs, #485358);
  border: 0;
  border-radius: 2px;
}
.iq-ks-legend__note {
  grid-column: 1/-1;
  font-size: 0.75rem;
  color: #6b7176;
}

.iq-ks-empty {
  padding: 1rem;
  color: #6b7176;
  font-style: italic;
}

@media (max-width: 768px) {
  .iq-ks-split {
    flex-direction: column;
  }
  .iq-ks-list {
    flex-basis: auto;
  }
}
