/* karte.css — Karte der Linien und Haltestellen (Modul hopon, partials/_karte.php). Quelle: site-werkzeuge/hopon/dateien/karte/assets/karte/karte.css */
.hk { margin: 1.5rem 0 2.5rem; }
.hk h2 { margin: 0 0 .5rem; }
.hk-intro { margin: 0 0 1rem; max-width: 60em; }
.hk-legende { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.hk-chip { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; background: #fff; cursor: pointer; font-size: .92rem; line-height: 1.2; user-select: none; }
.hk-chip:has(input:not(:checked)) { opacity: .5; background: #f3f3f3; }
.hk-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--hp-brand, #B3271F); }
.hk-name { font-weight: 600; }
.hk-farbe { display: none; width: 10px; height: 10px; border-radius: 50%; border: 3px solid; background: #fff; }
.hk-linien { display: inline-flex; gap: 8px; flex-wrap: wrap; color: #555; font-size: .85rem; }
.hk-linie { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hk-linie i { display: inline-block; width: 16px; height: 4px; border-radius: 2px; }
.hk-linie i.hk-gestrichelt { background-image: linear-gradient(90deg, transparent 50%, #fff 50%) !important; background-size: 6px 4px; }
.hk-punkt { width: 9px !important; height: 9px !important; border-radius: 50% !important; background: #1B1F2A; }
.hk-karte { position: relative; height: 560px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); background: #EEF0F0; }
.hk-nojs { padding: 2rem; margin: 0; }
.hk-fuss { font-size: .85rem; opacity: .8; margin: .6rem 0 0; max-width: 60em; }
.hk .maplibregl-popup-content { max-height: 300px; overflow-y: auto; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: .9rem; line-height: 1.4; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.hk .maplibregl-popup-content h3 { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.25; }
.hk .maplibregl-popup-content p { margin: .25rem 0; }
.hk .maplibregl-popup-content ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.hk .maplibregl-popup-content li { margin: .25rem 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.hk .maplibregl-popup-content small { color: #666; }
.hk-pop-op { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #666; }
.hk-pop-zu { color: #B3271F; font-weight: 600; }
.hk-pop-lin { display: flex; gap: 10px; flex-wrap: wrap; }
.hk-pop-unter { font-weight: 600; margin-top: .4rem !important; }
.hk-tupf { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 3px solid; background: #fff; flex: 0 0 auto; transform: translateY(1px); }
@media (max-width: 640px) {
  .hk-karte { height: 440px; border-radius: 8px; }
  .hk-chip { font-size: .85rem; padding: 6px 10px; }
  .hk-linien { display: none; }
  .hk-farbe { display: inline-block; }
  .hk .maplibregl-popup-content { max-height: 220px; }
}
