/* Radtouren-Karte (ebike.html#touren) – Karte bleibt stehen, die Tour an der Lesemarke wird hervorgehoben (touren.js), Basis: base.css. Daten: shared/content/touren.json */
.touren{--l1:#2c7a57;--l2:var(--c-primary);--l3:var(--c-accent);--tk-land:#eef1f6;--tk-wat:#c4dbef;--tk-riv:#86b5dc}
.touren .chapter-head{margin-bottom:1.5rem}
.l1{--lc:var(--l1)}.l2{--lc:var(--l2)}.l3{--lc:var(--l3)}
.tk-dot{display:inline-block;width:.75em;height:.75em;border-radius:50%;background:var(--lc);vertical-align:-.05em;margin-right:.35em}

/* Vorteile */
.tk-perks{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.75rem}
@media (min-width:760px){.tk-perks{grid-template-columns:1fr 1fr}}
.tk-perks li{display:flex;gap:.85rem;align-items:flex-start;padding:1rem 1.1rem;border-radius:16px;background:var(--c-surface);font-size:.95rem;line-height:1.45}
.tk-perks b{display:block;font-weight:600;margin-bottom:.15rem}
.tk-perks .ico{width:1.6rem;height:1.6rem;color:var(--c-primary);margin-top:.1rem}

/* Filter – reines CSS über :has() */
.tk-filter{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin-bottom:1rem}
.tk-filter fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
.tk-filter legend{float:left;font-size:.78rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--c-muted);margin-right:.4rem}
.tk-filter input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tk-filter label{display:inline-flex;align-items:center;min-height:40px;padding:.3rem .9rem;border:1px solid var(--c-line);border-radius:999px;background:var(--c-bg);font-size:.92rem;font-weight:500;cursor:pointer;user-select:none;-webkit-user-select:none}
.tk-filter label:hover{background:var(--c-surface)}
.tk-filter input:checked + label{background:var(--c-text);border-color:var(--c-text);color:var(--c-bg)}
.tk-filter input:focus-visible + label{outline:3px solid var(--c-primary);outline-offset:2px}
.touren:has(#tk-l1:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-l="1"]),
.touren:has(#tk-l2:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-l="2"]),
.touren:has(#tk-l3:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-l="3"]),
.touren:has(#tk-k1:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-k="1"]),
.touren:has(#tk-k2:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-k="2"]),
.touren:has(#tk-k3:checked) :is(.tk-card,.tk-rt,.tk-num):not([data-k="3"]){display:none}
.tk-empty{display:none;padding:1rem 1.2rem;border-radius:16px;background:var(--c-surface);font-weight:500}
.touren:has(#tk-l1:checked):has(#tk-k3:checked) .tk-empty,.touren:has(#tk-l2:checked):has(#tk-k3:checked) .tk-empty{display:block}

/* Layout: Karte bleibt beim Scrollen der Liste sichtbar */
.tk-grid{display:grid;gap:1rem;align-items:start}
/* --sub-h = Höhe des Themen-Untermenüs (.cat-nav), von app.js gemessen */
.tk-map{--tk-top:calc(var(--head-h) + var(--sub-h,3.75rem));position:sticky;top:var(--tk-top);z-index:5;margin:0}
.tk-svg{display:block;width:100%;height:42vh;height:max(12rem,min(42svh,92vw,100svh - var(--tk-top) - 17rem));border-radius:var(--r);background:var(--tk-land);box-shadow:0 0 0 1px var(--c-line);touch-action:manipulation;user-select:none;-webkit-user-select:none}
.tk-map figcaption{display:flex;flex-wrap:wrap;gap:.2rem 1rem;justify-content:space-between;margin-top:.4rem;font-size:.75rem;line-height:1.35;color:var(--c-muted)}
.tk-map figcaption a{color:inherit}
.tk-key{white-space:nowrap;font-weight:500;color:var(--c-text)}
.tk-key .tk-dot{margin-left:.5em}.tk-key .tk-dot:first-child{margin-left:0}
@media (max-width:899px){.tk-map{background:var(--c-bg);padding-block:.6rem .4rem;margin-inline:calc(-.4 * var(--gutter));box-shadow:0 8px 12px -10px rgb(20 30 60 / .25)}.tk-map figcaption{padding-inline:.3rem}.tk-more{display:none}}
.tk-side .hint{margin-top:1rem}
.tk-side{padding-bottom:12vh}
@media (min-width:900px){
.tk-grid{grid-template-columns:minmax(0,1.45fr) minmax(20rem,1fr);gap:clamp(1.25rem,2.5vw,2.5rem)}
.tk-map{top:calc(var(--tk-top) + .75rem)}
.tk-svg{height:auto;aspect-ratio:3/2;max-height:calc(100svh - var(--head-h) - var(--sub-h,3.75rem) - 4.5rem)}
}

/* „Alle Touren“ (Übersicht) */
.tk-zoom{position:absolute;z-index:2;top:.6rem;left:.6rem;display:flex;gap:2px;padding:2px;border-radius:999px;background:color-mix(in srgb,var(--c-bg) 88%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 1px 4px rgb(0 0 0 / .15)}
@media (max-width:899px){.tk-zoom{top:1.2rem;left:.9rem}}
.tk-zoom button{min-height:40px;padding:.2rem .85rem;border:0;border-radius:999px;background:none;color:var(--c-text);font:500 .85rem/1 var(--f);cursor:pointer}
.tk-zoom button[aria-pressed=true]{background:var(--c-text);color:var(--c-bg)}
.tk-zoom button:disabled{opacity:.4;cursor:default}

/* Karte (SVG). Linien behalten ihre Breite (non-scaling-stroke), Beschriftungen ihre Größe (--u = Einheiten pro px) */
.tk-svg text{font:500 11px/1 var(--f);fill:var(--c-muted);paint-order:stroke;stroke:var(--tk-land);stroke-width:3px;stroke-linejoin:round}
.tk-s{transform:scale(var(--u,3))}
.tk-land{fill:var(--tk-land)}
.tk-water path{fill:var(--tk-wat)}
.tk-riv path{fill:none;stroke:var(--tk-riv);stroke-width:1.2px}
.tk-riv .tk-drau{stroke-width:2.6px}
.tk-border path{fill:none;stroke:#7d8299;stroke-width:1.3px;stroke-dasharray:6 3 1.5 3}
.tk-ctry text,.tk-range text{text-anchor:middle}
.tk-ctry text{font-size:10px;font-weight:600;letter-spacing:.25em;text-transform:uppercase;fill:#8d93a8}
.tk-range text{font-size:10px;font-style:italic;letter-spacing:.12em;fill:#8d93a8}
.tk-wl text{font-size:10px;font-style:italic;fill:#3f78ad;text-anchor:middle}
.tk-pl circle{fill:var(--c-text)}
.tk-pl .al text{text-anchor:end}
.tk-pl :is(.r1,.r3) text{fill:var(--c-text);font-weight:600}
.tk-pk path{fill:#6f6a63}.tk-pk text{text-anchor:middle;font-size:10px}
.tk-poi rect{fill:var(--c-bg);stroke:var(--c-text);stroke-width:1.2px}.tk-poi text{font-size:10px}
.tk-svg:not([data-z=near]) .r2,.tk-svg[data-z=xfar] :is(.r3,.tk-pk text,.tk-wl,.tk-range){display:none}
.tk-rt use{fill:none;stroke-linecap:round;stroke-linejoin:round}
.tk-cs{stroke:#fff;stroke-width:5px;opacity:.85}
.tk-ln{stroke:var(--lc);stroke-width:3px}
.tk-hit{stroke:transparent;stroke-width:18px;pointer-events:stroke;cursor:pointer}
.tk-rt,.tk-num{transition:opacity .3s}
.tk-num{cursor:pointer}
.tk-num circle{fill:var(--lc);stroke:#fff;stroke-width:2px}
.tk-num text{fill:#fff;stroke:none;font-size:11px;font-weight:700;text-anchor:middle}
.tk-home circle{fill:var(--c-accent);stroke:#fff;stroke-width:2.5px}
.tk-home path{fill:none;stroke:#fff;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}
.tk-home .tk-hb{fill:var(--c-accent);filter:drop-shadow(0 1px 1.5px rgb(20 30 60 / .3))}
.tk-home text{font-weight:600;font-size:12px;fill:#fff;stroke:none}
.touren.tk-on .tk-rt:not(.on){opacity:.18}
.touren.tk-on .tk-num:not(.on){opacity:.3}
.tk-rt.on .tk-ln{stroke-width:5px}
.tk-rt.on .tk-cs{stroke-width:9px;opacity:1}

/* Tourenliste */
.tk-list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.tk-card{position:relative;padding:1rem 1.1rem 1.1rem;border:1px solid var(--c-line);border-radius:18px;background:var(--c-bg);transition:border-color .3s,box-shadow .3s}
.tk-card.on{border-color:var(--lc);box-shadow:0 0 0 1px var(--lc),var(--shadow)}
.tk-card h3{font-size:1.08rem;letter-spacing:-.01em;margin:0 0 .35rem}
.tk-sel{display:flex;align-items:center;gap:.65rem;width:100%;min-height:40px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.tk-sel:hover{color:var(--lc)}
.tk-no{flex:none;display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--lc);color:#fff;font-size:.9rem;font-weight:700;font-variant-numeric:tabular-nums}
.tk-meta{display:flex;flex-wrap:wrap;gap:.2rem 0;margin:0 0 .3rem;font-size:.92rem;font-weight:600;font-variant-numeric:tabular-nums}
.tk-meta span+span::before{content:"·";margin-inline:.45rem;color:var(--c-muted);font-weight:400}
.tk-lv{color:var(--lc)}
.tk-from{margin:0 0 .45rem;font-size:.88rem;color:var(--c-muted)}
.tk-badges{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.5rem}
.tk-badges:empty{display:none}
.tk-b{padding:.15rem .55rem;border-radius:999px;background:var(--c-surface-2);font-size:.75rem;font-weight:600;color:var(--c-text)}
.tk-b--si{background:color-mix(in srgb,var(--c-accent) 14%,var(--c-bg));color:var(--c-accent)}
.tk-b--ap{background:none;box-shadow:inset 0 0 0 1px var(--c-line);color:var(--c-muted);font-weight:500}
.tk-hl{margin:0 0 .3rem;padding-left:1.1rem;font-size:.92rem;line-height:1.45}
.tk-hl li+li{margin-top:.15rem}
.tk-card details{font-size:.88rem;line-height:1.45}
.tk-card summary{display:inline-flex;align-items:center;min-height:40px;color:var(--c-primary);font-weight:500;cursor:pointer;list-style:none}
.tk-card summary::-webkit-details-marker{display:none}
.tk-card summary::after{content:"";width:.45em;height:.45em;margin-left:.5em;border:solid currentColor;border-width:0 1.5px 1.5px 0;rotate:45deg;translate:0 -.15em;transition:rotate .2s}
.tk-card details[open] summary::after{rotate:225deg;translate:0 .1em}
.tk-card dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .8rem;margin:.2rem 0 0}
.tk-card dt{font-weight:600}
.tk-card dd{margin:0}
@media (max-width:420px){.tk-card dl{grid-template-columns:1fr;gap:0}.tk-card dd{margin-bottom:.4rem}}
@media (prefers-reduced-motion:reduce){.tk-rt,.tk-num,.tk-card{transition:none}}
