/* BESSER-verreist – Tourkarte im Fenster (Touren & Etappen 1.2.4) */
.bv-tk {
  --tk-green: var(--bv-green, #1e3a2f);
  --tk-paper: var(--bv-paper, #f2ede3);
  --tk-muted: var(--bv-muted, #6f6d60);
  --tk-line: var(--bv-line, #ddd5c4);
  --tk-amber: var(--bv-amber, #e2a43b);
  width: min(1100px, 94vw); max-width: none;
  height: min(820px, 88vh); max-height: none;
  padding: 0; border: 0; border-radius: 6px;
  background: var(--tk-paper); color: var(--tk-green);
  overflow: hidden;
}
.bv-tk[open] { display: flex; flex-direction: column; }
.bv-tk::backdrop { background: rgba(21, 42, 34, .6); }
.bv-tk [hidden] { display: none !important; }

.bv-tk-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 14px 18px 12px; }
.bv-tk-kopf h2 {
  font-family: 'Archivo', sans-serif; font-weight: 900; line-height: 1.1;
  font-size: clamp(20px, 2.4vw, 26px); color: var(--tk-green); margin: 0 !important;
}
.bv-tk-info {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tk-muted);
}
.bv-tk-zu {
  margin-left: auto; width: 36px; height: 36px; padding: 0;
  font-size: 26px; line-height: 1; cursor: pointer;
  background: #fff; color: var(--tk-green); border: 1px solid var(--tk-line); border-radius: 3px;
  box-shadow: none;
}
.bv-tk-zu:hover, .bv-tk-zu:focus-visible { border-color: var(--tk-amber); background: #fff; color: var(--tk-green); }

.bv-tk-karte { flex: 1; min-height: 260px; margin: 0 18px 18px; border: 1px solid var(--tk-line); border-radius: 4px; background: var(--tk-paper); z-index: 0; }
.bv-tk-ohne {
  flex: 1; margin: 0 18px 18px !important; padding: 24px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--tk-line); border-radius: 4px; font-size: 15px; line-height: 1.5;
}
.bv-tk-ohne a { color: var(--tk-green); margin-left: .3em; }

.bv-tk .bv-tk-nadel { background: none; border: 0; }
.bv-tk .bv-tk-nadel svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.bv-tk .leaflet-popup-content { font-size: 14px; line-height: 1.45; margin: 10px 14px; color: #2b2b2b; }
.bv-tk .leaflet-popup-content strong { color: var(--tk-green); }
.bv-tk .leaflet-popup-content a {
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tk-green); text-decoration: none;
}
.bv-tk .leaflet-control a,
.bv-tk .leaflet-control a:hover,
.bv-tk .leaflet-popup-close-button { text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
.bv-tk .leaflet-control-zoom a { color: var(--tk-green) !important; font-family: 'Archivo', sans-serif; font-weight: 700; }
.bv-tk .leaflet-control-attribution a { color: var(--tk-muted) !important; }

@media (max-width: 680px) {
  .bv-tk { width: 100vw; height: 100dvh; border-radius: 0; }
  .bv-tk-kopf { padding: 12px 12px 10px; }
  .bv-tk-karte, .bv-tk-ohne { margin: 0 !important; border-left: 0; border-right: 0; border-radius: 0; }
}
