/* SEORCH Kontrast – Wikipedia Trends: Ergebnistabelle. Benötigt tools-kit.css und tools-suggest.css */
.wk-urls { margin: 14px auto 0; max-width: 680px; text-align: left; }
.wk-urls[hidden] { display: none; }
.wk-toggle { margin: 12px auto 0; display: block; width: fit-content; padding: 0; border: 0; background: none; color: var(--text-2); font: 500 14px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wk-toggle:hover { color: var(--text); }
.wk-toggle:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 4px; }

.wk-table th { white-space: normal; vertical-align: bottom; }
.wk-table th small { font-size: 9.5px; opacity: .8; }
.wk-table :is(th, td) { padding-inline: 10px; }
.wk-table th button { all: unset; cursor: pointer; display: inline-block; }
.wk-table th small { display: block; }
.wk-sort::before { content: "\00a0↕"; font-size: 11px; opacity: .35; }
.wk-table th[aria-sort="ascending"] .wk-sort::before { content: "\00a0↑"; opacity: .9; }
.wk-table th[aria-sort="descending"] .wk-sort::before { content: "\00a0↓"; opacity: .9; }
.wk-table th button:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; border-radius: 4px; }
.wk-table td { vertical-align: middle; }
.wk-table td.num, .wk-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.wk-table td.num { color: var(--text); white-space: nowrap; }
.wk-page { min-width: 200px; max-width: 320px; }
.wk-page a { font-weight: 700; color: var(--text); }
.wk-page small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.wk-page .wk-snip { max-width: 46ch; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-tag { display: inline-block; margin: 4px 6px 0 0; font: 600 12px var(--font); padding: 3px 7px; border-radius: 6px; color: var(--pc, var(--muted)); background: color-mix(in srgb, var(--pc, var(--muted)) 14%, transparent); }
.wk-spark { display: block; width: 100px; height: 32px; overflow: visible; }
.wk-spark polyline { fill: none; stroke: var(--sc, var(--muted)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wk-spark circle { fill: var(--sc, var(--muted)); }
.wk-up { --sc: var(--c4); }
.wk-down { --sc: var(--c1); }
.wk-yoy { display: inline-block; min-width: 58px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.wk-yoy.wk-up { color: var(--c4); background: color-mix(in srgb, var(--c4) 13%, transparent); }
.wk-yoy.wk-down { color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, transparent); }
.wk-missing td:not(.wk-page) { color: var(--muted); }
.wk-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tool-form .toolbar[hidden] { display: none; }

/* volle Länge statt eigenem Scrollbereich */
#result .sg .kit-scroll:has(> .wk-table) { max-height: none; overflow-y: visible; }

/* Details: aufklappbare Zeile mit Diagramm und verwandten Artikeln */
.wk-more { margin-top: 8px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--stroke-2); background: var(--bg); color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; }
.wk-more::after { content: "\00a0▾"; }
.wk-more[aria-expanded="true"]::after { content: "\00a0▴"; }
.wk-more:hover { color: var(--text); border-color: var(--text); }
.wk-more:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }
.wk-table tr.is-open > td { background: var(--bg-2); }
.wk-detail > td { padding: 0 !important; background: var(--bg-2); }
.wk-detail__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 16px 20px 22px; }
@media (max-width: 900px) { .wk-detail__in { grid-template-columns: minmax(0, 1fr); } }
.wk-chart { margin: 0; }
.wk-chart figcaption, .wk-rel h3 { margin: 0 0 10px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wk-chart svg { display: block; width: 100%; height: auto; }
.kit-result.sg { --wk-u: color-mix(in srgb, var(--text) 30%, transparent); --wk-s: #e8a33d; --wk-a: #8a5cf6; }
.wk-chart rect.u { fill: var(--wk-u); }
.wk-chart rect.u.is-now { fill: var(--red); }
.wk-chart rect.s { fill: var(--wk-s); }
.wk-chart rect.a { fill: var(--wk-a); }
.wk-chart rect.hit { fill: transparent; }
.wk-chart g[data-i] { cursor: help; outline: none; }
.wk-chart :is(g:hover, g.is-hl) rect.u { fill: var(--text); }
.wk-chart :is(g:hover, g.is-hl) rect.u.is-now { fill: var(--red-dark); }
.wk-chart :is(g:hover, g.is-hl) :is(rect.s, rect.a) { opacity: .8; }
.wk-chart g.is-hl rect.hit { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.wk-chart g:focus-visible rect.hit { stroke: var(--c2) !important; stroke-width: 1.5; }
.wk-tt--float:not([hidden]) { display: block; pointer-events: none; }
.wk-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.wk-legend li { display: inline-flex; align-items: center; gap: 6px; }
.wk-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--wk-u); }
.wk-legend li.s::before { background: var(--wk-s); }
.wk-legend li.a::before { background: var(--wk-a); }
.wk-bot { position: relative; cursor: help; border-bottom: 1px dotted var(--stroke-2); }
.wk-bot:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 4px; }
.wk-tt { display: none; position: fixed; top: var(--tt-y, 0); left: var(--tt-x, 0); z-index: 120; width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--shadow-lg); text-align: left; white-space: normal; font: 500 13px/1.4 var(--font); color: var(--text-2); cursor: default; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wk-bot:hover .wk-tt, .wk-bot:focus .wk-tt, .wk-bot:focus-within .wk-tt { display: block; }
.wk-tt strong { display: block; margin-bottom: 8px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wk-tt__bar { display: flex; gap: 2px; height: 12px; margin-bottom: 8px; border-radius: 4px; overflow: hidden; }
.wk-tt__bar span { display: block; min-width: 3px; height: 100%; }
.wk-tt :is(.u, i.u) { background: var(--wk-u); }
.wk-tt :is(.s, i.s) { background: var(--wk-s); }
.wk-tt :is(.a, i.a) { background: var(--wk-a); }
#result .wk-tt table { width: 100%; border-collapse: collapse; border: 0; background: none; margin: 0; }
#result .wk-tt td { padding: 3px 0; border: 0; background: none; font: 500 12.5px/1.4 var(--font); color: var(--text-2); white-space: nowrap; width: auto; min-width: 0; }
#result .wk-tt td:not(:first-child) { padding-left: 12px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
#result .wk-tt tr.sum td { border-top: 1px solid var(--stroke); padding-top: 6px; font-weight: 700; color: var(--text); }
.wk-tt i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }
.wk-tt small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.wk-bot.is-high { display: inline-block; padding: 2px 7px; border: 0; border-radius: 6px; font-weight: 700; color: #7a4a00; background: color-mix(in srgb, #e8a33d 22%, transparent); }
.wk-chart text { font: 600 10px var(--mono); text-anchor: middle; fill: var(--muted); }
.wk-chart text.v { fill: var(--text-2); }
.wk-rel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.wk-rel__head h3 { margin: 0; }
.wk-reltable { width: 100%; font-size: 14px; }
.wk-reltable td, .wk-reltable th { padding: 7px 8px; }
.wk-reltable td a { font-weight: 600; color: var(--text); }
.wk-reltable .wk-yoy { min-width: 0; padding: 2px 6px; font-size: 13px; }
.wk-reltable .btn { white-space: nowrap; }
/* Regeln der äußeren Tabelle (.sg-table) nicht auf die innere übertragen */
#result .wk-reltable td:first-child { width: auto; min-width: 160px; color: var(--text); font-weight: 600; }
#result .wk-reltable td:nth-child(2) { font-weight: 400; }
#result .wk-reltable thead th { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
#result .wk-reltable td.num { color: var(--text-2); }
#result .wk-reltable th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.wk-chart svg, .wk-chart svg * { stroke: none; }
/* Detailinhalt bleibt im sichtbaren Bereich, auch wenn die Tabelle seitlich scrollt */
.wk-detail__in { position: sticky; left: 0; max-width: min(100%, calc(100vw - 2 * var(--gutter) - 2px)); box-sizing: border-box; }
