:root {
  --bg: #15171c;
  --panel: #1e2128;
  --panel-2: #262a33;
  --line: #343a46;
  --text: #e6e2d6;
  --muted: #9a9ea8;
  --accent: #d9a441;
  --accent-2: #f0c060;
  --ok: #5fb760;
  --warn: #d9a441;
  --err: #e0605a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .2rem 0 .4rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
code { background: var(--panel-2); padding: 0 .3em; border-radius: 3px; }
.muted, .sub { color: var(--muted); }
.sub { font-size: .85em; margin-left: .4em; }
.err { color: var(--err); }
.ok-text { color: var(--ok); }
.grow { flex: 1; min-width: 0; }

header.top {
  position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  padding: .7rem 1rem; background: #0f1115ee; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brand { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; }
nav a { padding: .3rem .7rem; border-radius: 6px; color: var(--text); white-space: nowrap; }
nav a.active, nav a:hover { background: var(--panel-2); text-decoration: none; }
.account { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
footer { max-width: 1100px; margin: 2rem auto; padding: 1rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }

.status { max-width: 1100px; margin: 1rem auto 0; padding: 0 1rem; color: var(--muted); }
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin: .3rem 0; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }

.pill {
  display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .8rem; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line);
}
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill[hidden] { display: none; }
.pill.warn { border-color: var(--warn); color: var(--warn); }

button, .btn, select, input[type=search], input[type=password] {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .8rem;
}
button, .btn { cursor: pointer; background: var(--accent); color: #1a1406; border-color: var(--accent); font-weight: 600; display: inline-block; }
button:hover, .btn:hover { filter: brightness(1.1); text-decoration: none; }
button.secondary { background: var(--panel-2); color: var(--text); border-color: var(--line); }
button.link { background: none; border: none; color: var(--accent-2); padding: 0 .2rem; }
button.small { font-size: .8rem; padding: .15rem .5rem; margin-top: .3rem; background: var(--panel-2); color: var(--accent-2); border-color: var(--line); }
button:disabled { opacity: .6; cursor: wait; }

.searchbox input { width: 100%; font-size: 1.1rem; padding: .8rem 1rem; }
.list { list-style: none; padding: 0; margin: 1rem 0; }
.list .row { display: flex; gap: .8rem; align-items: center; padding: .5rem .7rem; border-radius: 8px; color: var(--text); }
.list .row:hover { background: var(--panel); text-decoration: none; }
.list .title { font-weight: 600; }
.list .sub { margin-left: 0; }

.icon { width: 36px; height: 36px; border-radius: 6px; flex: none; background: var(--panel-2); }
.icon.big { width: 72px; height: 72px; }
img.mini { width: 22px; height: 22px; vertical-align: middle; border-radius: 3px; margin-right: .3rem; }

.ach-head { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--panel); padding: 1.2rem; border-radius: 10px; border: 1px solid var(--line); flex-wrap: wrap; }
.ach-head .sub { margin-left: 0; }
.ach-head .desc { font-style: italic; color: #cfc9b8; }
.ach-stat { min-width: 220px; display: flex; flex-direction: column; gap: .4rem; }
.big-num { font-size: 2rem; font-weight: 700; color: var(--accent-2); }
.big-num span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.flags { display: flex; gap: .3rem; flex-wrap: wrap; }
.rewards { margin-top: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }

/* Fokus-Ansicht eines Erfolgs */
.focus-head { display: flex; gap: 1rem; align-items: flex-start; background: var(--panel); padding: 1rem 1.2rem; border-radius: 10px; border: 1px solid var(--line); }
.focus-head h1 { margin: .1rem 0 .3rem; }
.focus-head .sub { margin-left: 0; }
.focus-head .req { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.focus-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.focus-status .bar { flex: 1 1 140px; margin: 0; height: 8px; }
.todo h2 { border-bottom-color: var(--accent); }
.todo .hint { margin-top: .4rem; font-size: .9rem; }
details.box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: .8rem 0; }
details.box > summary { font-weight: 600; }
details.box[open] > summary { margin-bottom: .5rem; }
#guide > details { background: var(--panel-2); }
ol.steps.compact > li { padding: .35rem .6rem; align-items: center; }
details.box h3 { font-size: 1rem; margin: 1rem 0 .4rem; }

ol.steps { list-style: none; padding: 0; margin: .5rem 0; counter-reset: step; }
ol.steps > li {
  display: flex; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .4rem; background: var(--panel);
}
ol.steps > li.done { opacity: .55; }
ol.steps > li.done .grow > div:first-child { text-decoration: line-through; }
.check { width: 1.4rem; flex: none; text-align: center; color: var(--ok); }
.check input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.steps-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.summary { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }
.summary .pill { font-size: .9rem; }
.warn-box { border: 1px solid var(--warn); background: #d9a44115; padding: .6rem .8rem; border-radius: 8px; }

details { margin: .4rem 0; }
details > summary { cursor: pointer; color: var(--accent-2); }
#guide > details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .9rem; }
#guide > details > summary { font-weight: 600; font-size: 1.05rem; }
.hint { font-size: .9rem; }

/* Wiki-Inhalte */
.wiki { overflow-x: auto; }
.wiki img { max-width: 100%; height: auto; }
.wiki table { border-collapse: collapse; margin: .5rem 0; font-size: .9rem; background: transparent !important; color: var(--text) !important; }
.wiki th, .wiki td { border: 1px solid var(--line); padding: .3rem .5rem; vertical-align: top; background: transparent !important; color: inherit !important; }
.wiki th { background: var(--panel-2) !important; }
.wiki .infobox, .wiki .achievementbox, .wiki .infobox-achievement { float: none !important; width: auto !important; }
.wiki * { max-width: 100%; }
.wiki a { color: var(--accent-2) !important; }
.acq-out:not(:empty) { margin-top: .4rem; padding: .5rem; background: var(--panel-2); border-radius: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; background: var(--panel); padding: .8rem 1rem; border-radius: 8px; border: 1px solid var(--line); }
.filters input[type=range] { vertical-align: middle; accent-color: var(--accent); }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem 1rem; padding: .5rem; }
#easy-summary { margin: .8rem 0; }

table.easy { width: 100%; border-collapse: collapse; }
table.easy th { text-align: left; color: var(--muted); font-weight: 500; font-size: .85rem; border-bottom: 1px solid var(--line); padding: .4rem; }
table.easy td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.easy tbody tr { cursor: pointer; }
table.easy tbody tr:hover { background: var(--panel); }
table.easy .sub { margin-left: 0; display: block; }
table.easy td.prog { min-width: 120px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1.2rem 1.2rem; margin-bottom: 1rem; }
.card label { display: block; margin: .5rem 0; }
.card input[type=password] { width: 100%; max-width: 560px; }
.row-btns { display: flex; gap: .5rem; margin: .6rem 0; }

.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--accent); padding: .6rem 1rem; border-radius: 8px; z-index: 20; }

/* API-Key-Karte auf der Startseite */
.key-card { border-color: var(--accent); margin-bottom: 1rem; }
.key-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.key-row input { flex: 1; min-width: 220px; }

/* Bilder am Schritt */
.step-imgs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.step-img { margin: 0; background: var(--panel-2); padding: .3rem; border-radius: 6px; max-width: 100%; }
.step-img img { display: block; max-width: min(320px, 100%); height: auto; }
.step-img figcaption { font-size: .8rem; color: var(--muted); margin-top: .2rem; max-width: 320px; }
.hint img { max-width: min(320px, 100%); height: auto; }

/* Startseite: Fortschritt & Merkliste */
.progress-card { padding-top: 1rem; margin-top: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0 .3rem; }
.stat-row div { background: var(--panel-2); border-radius: 8px; padding: .4rem .6rem; }
.stat-row strong { display: block; font-size: 1.15rem; color: var(--text); }
.stat-row span { font-size: .8rem; color: var(--muted); }
.spark { position: relative; margin-top: .4rem; }
.spark svg { width: 100%; height: 70px; display: block; touch-action: none; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--accent); opacity: .12; }
.spark-cross { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.spark-tip { position: absolute; top: .1rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .5rem; font-size: .8rem; white-space: nowrap; }
.tracked .row { align-items: flex-start; }
.tracked li.done { opacity: .6; }
.tracked .bar { max-width: 220px; margin-top: .3rem; }
button.watch { margin: .1rem 0 .5rem; }
.card input[type=number] { width: 8rem; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; }

ol.steps > li.running { border-color: var(--accent); background: #d9a44118; }
.timer-cat > summary .sub { font-weight: 400; margin-left: .5rem; }
.timer-map { margin: .6rem 0 1rem; }
.timer-map h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--accent-2); }
.timer-row { display: flex; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .35rem; background: var(--panel-2); }
.timer-row.running { border-color: var(--accent); background: #d9a44118; }
.t-icon { width: 1.3rem; flex: none; text-align: center; }

/* Besitz & Preise */
.own { color: var(--ok); font-size: .9rem; margin-top: .3rem; }
.price { font-size: .9rem; margin-top: .2rem; }

/* Wegmarken */
.wp { margin-top: .3rem; font-size: .92rem; line-height: 1.8; }
.wp .chatlink { margin-left: .2rem; }

/* Chat-Codes (Wegmarken usw.) */
button.chatlink {
  font: .85em/1.3 ui-monospace, Consolas, monospace; font-weight: 500; padding: .05rem .4rem; margin: 0 .1rem;
  background: #2a2413; color: var(--accent-2); border: 1px dashed var(--accent); border-radius: 4px; cursor: copy;
}
button.chatlink::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .3em; vertical-align: -0.18em; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 9.5 9.5 6.5M7 4.5l1.3-1.3a2.8 2.8 0 0 1 4 4L11 8.5M9 11.5l-1.3 1.3a2.8 2.8 0 0 1-4-4L5 7.5' stroke='%23f0c060' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
button.chatlink.k-waypoint::before { background-image: var(--ic-waypoint, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8 15.2 8 8 15.2.8 8z' fill='%231d6fd8' stroke='%239fd0ff' stroke-width='1.2'/%3E%3Cpath d='M8 4.6 11.4 8 8 11.4 4.6 8z' fill='%23e8f4ff'/%3E%3C/svg%3E")); }
button.chatlink.k-landmark::before { background-image: var(--ic-landmark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5 13.5 8 8 13.5 2.5 8z' fill='%23c9a14a' stroke='%235a3d10' stroke-width='1.3'/%3E%3C/svg%3E")); }
button.chatlink.k-vista::before { background-image: var(--ic-vista, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.8 15 14H1z' fill='%23d8452f' stroke='%23ffb199' stroke-width='1'/%3E%3Ccircle cx='8' cy='10' r='1.8' fill='%23fff2e0'/%3E%3C/svg%3E")); }
button.chatlink.k-area::before, button.chatlink.k-map::before, button.chatlink.k-unlock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a5 5 0 0 0-5 5c0 3.8 5 9 5 9s5-5.2 5-9a5 5 0 0 0-5-5z' fill='%23e07a3f'/%3E%3Ccircle cx='8' cy='6' r='1.9' fill='%23fff'/%3E%3C/svg%3E"); }
button.chatlink.k-item::before, button.chatlink.k-skill::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='4' width='12' height='10' rx='1.5' fill='%23a0703a' stroke='%23f0c060' stroke-width='1'/%3E%3Cpath d='M2 7.5h12M8 4v10' stroke='%23f0c060' stroke-width='1'/%3E%3C/svg%3E"); }
button.chatlink.copied::before { background-image: none; content: "✔"; width: auto; height: auto; vertical-align: baseline; }
button.chatlink.copied { background: var(--ok); color: #0c1a0c; border-style: solid; }

/* Bilder & Galerien aus dem Wiki */
.wiki img { cursor: zoom-in; border-radius: 3px; }
.wiki .thumb, .wiki figure { display: inline-block; margin: .4rem .6rem .4rem 0; padding: .3rem; background: var(--panel-2); border-radius: 6px; vertical-align: top; }
.wiki .thumbinner { width: auto !important; }
.wiki .thumbcaption, .wiki figcaption, .wiki .gallerytext { font-size: .8rem; color: var(--muted); max-width: 320px; }
.wiki ul.gallery { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.wiki li.gallerybox { width: auto !important; background: var(--panel-2); padding: .3rem; border-radius: 6px; }
.wiki li.gallerybox > div { width: auto !important; }
.wiki .floatright, .wiki .tright { float: right; margin-left: 1rem; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: #000d; display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px #000; }
.lightbox figcaption { margin-top: .6rem; color: var(--text); }

/* Seltenheiten */
.r-Junk { color: #aaa; } .r-Basic { color: #fff; } .r-Fine { color: #62a4da; } .r-Masterwork { color: #1a9306; }
.r-Rare { color: #fcd00b; } .r-Exotic { color: #ffa405; } .r-Ascended { color: #fb3e8d; } .r-Legendary { color: #c78eff; }

@media (max-width: 640px) {
  header.top { position: static; padding: .5rem .8rem; gap: .4rem 1rem; }
  nav { gap: .15rem; }
  nav a { padding: .25rem .5rem; }
  .account { margin-left: 0; font-size: .85rem; }
  main { padding: .8rem; }
  table.easy td:nth-child(1), table.easy th:nth-child(1) { display: none; }
  .ach-stat { width: 100%; }
}

/* Sammlungen: Suchtreffer */
h3.res-head { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 0; }
.list.collections { margin-top: .3rem; }
.list.collections .row { border: 1px solid var(--line); background: var(--panel); margin-bottom: .35rem; }
.list.collections .row:hover { border-color: var(--accent); }
.pill.kind { font-size: .75rem; font-weight: 500; vertical-align: 2px; margin-left: .3rem; }
.pill.k-mount { border-color: var(--accent); color: var(--accent-2); }
.pill.k-legendary, .pill.k-set { border-color: #c78eff; color: #c78eff; }
.col-link { margin: .1rem 0 .4rem; }

/* Sammlungen: Baum */
.col-head .focus-status { margin-top: .3rem; }
.next-up { margin: .5rem 0 0; font-weight: 600; }
ul.tree { list-style: none; margin: .2rem 0 .2rem .7rem; padding-left: 1.1rem; border-left: 2px solid var(--line); }
ul.tree.root { margin-left: .3rem; }
ul.tree > li { position: relative; margin: .35rem 0; }
ul.tree > li::before { content: ""; position: absolute; left: -1.1rem; top: 1.15rem; width: .9rem; border-top: 2px solid var(--line); }
ul.tree details { margin: 0; }
.tgroup > details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem .2rem; color: var(--text); font-size: 1.05rem; }
.tgroup > details > summary .sub { margin-left: 0; }
.tgroup.all-done > details > summary strong { color: var(--ok); }
.t-ico { width: 1.4rem; text-align: center; }
.tnode > details > summary, .titem > details > summary {
  display: flex; gap: .55rem; align-items: center; padding: .4rem .6rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); list-style: none;
}
.tnode > details > summary::-webkit-details-marker, .titem > details > summary::-webkit-details-marker { display: none; }
.tnode > details > summary:hover, .titem > details > summary:hover { border-color: var(--accent); }
.tnode > details[open]:has(> .tbody:not(:empty)) > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tnode .icon, .titem .icon, .troot .icon { width: 30px; height: 30px; }
.tnode .title, .titem .title { font-weight: 600; }
.tnode > details > summary .sub, .titem > details > summary .sub { margin-left: 0; display: block; }
.tnode > details > summary .bar { max-width: 240px; margin: .25rem 0 0; }
.st { width: 1.3rem; flex: none; text-align: center; font-weight: 700; }
.s-done > .st, .s-done > details > summary > .st { color: var(--ok); }
.s-progress > details > summary > .st { color: var(--accent-2); }
.titem > details > summary { border-color: #c78eff66; }
.titem.s-done > details > summary { opacity: .6; }
.tgroup.s-done > details > summary { opacity: .7; }
ul.tree:empty { display: none; }
.pill.step { font-size: .72rem; border-color: var(--accent); color: var(--accent-2); vertical-align: 1px; }
.troot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 1.05rem; margin: .4rem 0 .1rem; }
.tref { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding: .25rem .6rem; border: 1px dashed var(--line); border-radius: 8px; font-size: .92rem; }
.tref .sub { margin-left: 0; }
.tref.s-done { opacity: .6; }
.tleaf { display: flex; align-items: center; gap: .35rem; padding: .15rem 0; }
.tleaf.s-done { opacity: .6; }
.tpick > details > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .3rem .2rem; color: var(--text); }
.tpick > details > summary .sub { margin-left: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: .2rem 0 .5rem; }
.seg button { background: var(--panel-2); color: var(--text); border: none; border-radius: 0; padding: .3rem .9rem; font-weight: 500; }
.seg button.on { background: var(--accent); color: #1a1406; font-weight: 700; }
.tnode.s-done > details > summary { opacity: .6; }
.tnode.s-locked > details > summary { border-style: dashed; }
.tnode.s-locked .title { color: var(--muted); }
.tnode.current > details > summary { border-color: var(--accent); background: #d9a44118; }
.tnode.flash > details > summary { box-shadow: 0 0 0 2px var(--accent-2); }
.tbody:empty { display: none; }
.tbody { padding: .6rem .9rem .8rem; border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; background: var(--panel-2); margin-bottom: .3rem; }
.tbody .req { margin: 0 0 .3rem; }
.tbody .desc { font-style: italic; color: #cfc9b8; margin: 0 0 .5rem; font-size: .9rem; }
.t-sec { margin: .5rem 0; }
.t-sec .pre { margin: .25rem 0 .25rem .4rem; }
.t-sec .pre .sub { margin-left: 1.2rem; display: block; }
.t-sec .pre.done { opacity: .6; }
.t-unlock { border-left: 3px solid var(--warn); padding-left: .6rem; }
.t-unlock .unlock-lines > div { margin: .2rem 0; }
ul.t-steps { margin: .3rem 0; padding-left: 1.2rem; }
ul.t-steps li { margin: .1rem 0; }
.t-actions { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.t-actions .btn { font-size: .85rem; padding: .25rem .7rem; }
.t-actions button.small { margin-top: 0; }
#col-acq-body { margin-top: .3rem; }
@media (max-width: 640px) {
  ul.tree { margin-left: .3rem; padding-left: .7rem; }
  ul.tree > li::before { left: -.7rem; width: .55rem; }
}
.col-note { background: var(--panel); border-left: 3px solid var(--accent); padding: .45rem .8rem; border-radius: 0 6px 6px 0; margin: .4rem 0 .8rem; font-size: .92rem; }
.titem .sub a { margin-left: .1rem; }

/* Schritt-Details (Wiki-Zeile): Wegmarke, Gebiet, Beschreibung, Bilder */
.step-det { margin: .3rem 0 .2rem; font-size: .9rem; }
.step-det .sl { margin: .15rem 0; }
.step-det .sk { color: var(--muted); font-size: .85em; }
.step-det .wp { margin-top: .2rem; }
ul.t-steps li.tstep { list-style: none; margin-left: -1.2rem; }
li.tstep > details > summary { color: var(--text); padding: .15rem 0; }
li.tstep > details > summary .sub { margin-left: .2rem; }
li.tstep > details > summary .chatlink { margin-left: .3rem; }
li.tstep > details[open] { background: var(--panel); border-radius: 6px; padding: .2rem .5rem .4rem; margin: .2rem 0; }
.step-det .step-imgs { margin-top: .4rem; }

/* Spur zum nächsten Schritt (alles eingeklappt) */
li.on-path > details > summary { border-left: 3px solid var(--accent); }
.tgroup.on-path > details > summary, .tpick.on-path > details > summary { border-left: none; }
.tgroup.on-path > details > summary strong, .tpick.on-path > details > summary strong { color: var(--accent-2); }
#col-cost { white-space: normal; }
.ev { font-size: .9rem; margin: .25rem 0; }
.ev.running { color: var(--accent-2); font-weight: 600; }

/* Route pro Karte */
.route { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin: .4rem 0; }
.route-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.route-head .sub { margin-left: 0; }
.route-head button.small { margin: 0 0 0 auto; }
ol.route-stops { margin: .4rem 0 0; padding-left: 1.4rem; font-size: .9rem; }
ol.route-stops li { margin: .2rem 0; }
