/* QRA-Locator */
.lc-head { padding-top: 28px; padding-bottom: 6px; }
.lc-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.lc-head p { max-width: 70ch; }
.lc-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lc-form input { flex: 1 1 220px; min-width: 0; font-family: var(--mono); font-size: 1.1rem; letter-spacing: .06em; }
.lc-error { color: var(--err); min-height: 1.4em; margin: 8px 0 10px; }

.lc-map { height: min(62vh, 620px); min-height: 360px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.leaflet-container { font-family: var(--font); background: var(--panel-2); }
:root:not([data-theme="light"]) .lc-map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.9) contrast(.88) saturate(.55); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .lc-map .leaflet-tile-pane { filter: none; } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); }
.leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }

/* Gitterbeschriftung: in Kartenfarbe, mit Halo fuer Lesbarkeit auf beiden Themen */
.grid-label {
  background: none; border: none; white-space: nowrap; pointer-events: none;
  font: 600 12px/1 var(--mono); color: var(--dial);
  text-shadow: 0 0 3px var(--ink), 0 0 3px var(--ink), 0 0 2px var(--ink);
}

.lc-results {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 0;
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
}
.lc-results div { padding: 16px 20px; background: var(--panel); border-right: 1px solid var(--line); }
.lc-results div:last-child { border-right: 0; }
.lc-results dt { font-size: .85rem; color: var(--muted); }
.lc-results dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 600; word-break: break-word; }
.lc-relais { margin: 16px 0 56px; }
.lc-relais[hidden] + * { margin-top: 0; }
main > .wrap:last-child { padding-bottom: 48px; }

@media (max-width: 860px) {
  .lc-results { grid-template-columns: 1fr 1fr; }
  .lc-results div:nth-child(2) { border-right: 0; }
  .lc-results div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
