/* Fußball-Weltkarte (fussball-weltkarte.html). Ursprung: Artefakt "League Structures"; ab jetzt hier weiterentwickeln.
   Alles unter .wk, damit nichts mit styles.css kollidiert. Höhe = Bildschirm minus Navigation (--wk-nav setzt weltkarte.js). */
.wk [hidden] { display: none !important; }
.wk { height: calc(100svh - var(--wk-nav, 77px)); min-height: 520px; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); }
.wk {
  color-scheme: dark;
  --bg: #050706; --panel: #0a0d0c; --panel-2: #101513; --line: #1c2320; --line-2: #2a332f;
  --ink: #e9eee9; --ink-2: #b9c3bc; --ink-3: #85918a; --accent: #38a8e0; --on-accent: #0b1210;
  --ocean: #0a1a24; --ocean-2: #050c11; --land: #1e2724; --land-data: #2d3b35; --border: #050706; --grat: rgba(140, 180, 200, .07);
  --c1: oklch(.74 .12 235); --c2: oklch(.76 .13 150); --c3: oklch(.80 .12 80); --c4: oklch(.72 .14 345); --c5: oklch(.70 .13 290);
  --c6: oklch(.78 .10 195); --c7: oklch(.72 .14 30); --c8: oklch(.80 .13 120); --c9: oklch(.70 .10 260);
  --s1: #163545; --s2: #1d5068; --s3: #22709a; --s4: #3196cc; --s5: #7fd0f5;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif; --body: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --r: 8px; --r-lg: 14px;
}
:root[data-theme="light"] .wk {
  color-scheme: light;
  --bg: #eef0ec; --panel: #f5f6f3; --panel-2: #ffffff; --line: #d5dad2; --line-2: #c3cbc1;
  --ink: #0e1a15; --ink-2: #2b3a33; --ink-3: #5c6a62; --accent: #1f7fb4; --on-accent: #ffffff;
  --ocean: #cfe0e6; --ocean-2: #b6cdd6; --land: #f4f5f1; --land-data: #dfe5d6; --border: #9aa7a0; --grat: rgba(30, 60, 80, .08);
  --c1: oklch(.58 .13 235); --c2: oklch(.58 .13 150); --c3: oklch(.66 .13 75); --c4: oklch(.56 .16 345); --c5: oklch(.52 .14 290);
  --c6: oklch(.60 .10 195); --c7: oklch(.58 .15 30); --c8: oklch(.62 .14 125); --c9: oklch(.50 .10 260);
  --s1: #d9ebf5; --s2: #a6d0e9; --s3: #69aed9; --s4: #2c83bb; --s5: #135581;
}
.wk * { box-sizing: border-box; }
.wk button { font: inherit; color: inherit; }
.wk :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk .app { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100%; }
.wk .stage { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg) 70%); }
.wk .stage canvas, .wk .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wk .stage canvas { cursor: grab; touch-action: none; }
.wk .stage canvas.dragging { cursor: grabbing; }
.wk .stage svg { pointer-events: none; }
.wk #outline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.wk .crumbs { position: absolute; top: 16px; left: max(16px, env(safe-area-inset-left, 0px)); right: 16px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; color: var(--ink-3); pointer-events: none; }
.wk .crumbs button { pointer-events: auto; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; color: var(--ink-2); backdrop-filter: blur(6px); }
.wk .crumbs button[aria-current="true"] { color: var(--ink); border-color: var(--line-2); }
.wk .crumbs span { padding: 0 2px; }
.wk .tools { position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 6px; }
.wk .tools button { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 85%, transparent); cursor: pointer; font-size: 18px; line-height: 1; backdrop-filter: blur(6px); }
.wk .tools button:hover { border-color: var(--accent); }
.wk .tools .world { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.wk .hint { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--ink-3); pointer-events: none; }
.wk .tip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: translate(12px, 12px); max-width: 260px; }
.wk .tip b { font-weight: 600; display: block; }
.wk .tip small { color: var(--ink-3); }
.wk .side { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; min-width: 0; padding-block: 20px 32px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 22px; }
.wk .eyebrow { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wk h1, .wk h2, .wk h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.wk h1 { font-size: 26px; line-height: 1.1; }
.wk h2 { font-size: 20px; line-height: 1.15; }
.wk h3 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wk .lead { color: var(--ink-2); margin: 6px 0 0; }
.wk .search { position: relative; }
.wk .search input { width: 100%; padding: 11px 14px 11px 38px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: inherit; }
.wk .search input::placeholder { color: var(--ink-3); }
.wk .search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.wk .results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.3); max-height: 300px; overflow-y: auto; padding: 4px; margin: 0; list-style: none; }
.wk .results li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.wk .results li[aria-selected="true"], .wk .results li:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wk .badge { font: 500 11px/1.6 var(--mono); padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); white-space: nowrap; }
.wk .badge.off { background: transparent; color: var(--ink-3); border: 1px solid var(--line-2); }
.wk .sports { display: flex; flex-wrap: wrap; gap: 6px; }
.wk .sports button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.wk .sports button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 500; }
.wk .sports button:disabled { cursor: not-allowed; color: var(--ink-3); }
.wk .tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line-2); }
.wk .tabs button { border: 0; background: transparent; padding: 8px; border-radius: 6px; cursor: pointer; color: var(--ink-3); font-weight: 500; }
.wk .tabs button[aria-selected="true"] { background: var(--line-2); color: var(--ink); }
.wk .alist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.wk .alist .node { grid-template-columns: 10px minmax(0, 1fr) auto; }
.wk .alist .pin { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.wk .alist .place { font-size: 12px; color: var(--ink-3); }
.wk .sports small { font-size: 11px; }
.wk .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.wk .facts b { color: var(--ink); font-weight: 500; }
.wk .tree { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wk .tree ul { list-style: none; margin: 2px 0 6px 18px; padding: 0 0 0 10px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.wk .node { width: 100%; display: grid; grid-template-columns: 10px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.wk .tree ul .node { grid-template-columns: 8px 52px minmax(0, 1fr); padding: 5px 8px; font-size: 14px; }
.wk .node.ns { grid-template-columns: 10px minmax(0, 1fr) auto; }
.wk .tree ul .node.ns { grid-template-columns: 8px minmax(0, 1fr); }
.wk .node:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wk .node[aria-current="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.wk .dot { width: 10px; height: 10px; border-radius: 3px; }
.wk .tree ul .dot { width: 8px; height: 8px; border-radius: 50%; }
.wk .short { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.wk .nm { min-width: 0; overflow-wrap: anywhere; }
.wk .cnt { font: 12px var(--mono); color: var(--ink-3); }
.wk .card { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wk .card .lvl { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.wk .card p { margin: 0; color: var(--ink-2); }
.wk .card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.wk .card dt { color: var(--ink-3); }
.wk .card dd { margin: 0; }
.wk .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk .chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: 13px; background: transparent; }
.wk button.chip { cursor: pointer; }
.wk button.chip:hover { border-color: var(--accent); }
.wk .pyr { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wk .tier { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.wk .tier.hit { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wk .tier .n { font: 600 15px/1.4 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wk .tier .t { font-weight: 500; }
.wk .tier .m { font-size: 12px; color: var(--ink-3); }
.wk .tier .chips { margin-top: 6px; }
.wk .tier .chip { font-size: 12px; padding: 1px 8px; color: var(--ink-3); }
.wk .tier .chip.hit { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.wk .note { font-size: 12px; color: var(--ink-3); margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.wk .empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 16px; color: var(--ink-2); }
.wk .legend { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; backdrop-filter: blur(6px); max-width: calc(100% - 92px); display: flex; flex-direction: column; gap: 6px; }
.wk .legend b { font-weight: 500; font-size: 13px; }
.wk .legend .scale { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 2px; }
.wk .legend .scale i { display: block; height: 10px; }
.wk .legend .scale i:first-child { border-radius: 4px 0 0 4px; }
.wk .legend .scale i:last-child { border-radius: 0 4px 4px 0; }
.wk .legend .scale span { font: 11px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wk .legend small { font-size: 11px; color: var(--ink-3); }
.wk .rank { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.wk .rank .node { grid-template-columns: 10px minmax(0, 1fr) 72px; }
.wk .rank .sw { width: 10px; height: 10px; border-radius: 3px; }
.wk .rank .v { font: 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.wk .rank .bar { grid-column: 2 / 4; height: 4px; border-radius: 0 4px 4px 0; background: var(--line-2); overflow: hidden; }
.wk .rank .bar i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.wk .metric { display: flex; flex-wrap: wrap; gap: 6px; }
.wk .metric button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }
.wk .metric button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) {
  .wk .app { display: block; height: auto; }
  .wk .stage { height: min(78vw, 520px); min-height: 320px; }
  .wk .side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .wk .hint { display: none; }
  .wk .legend { padding: 8px 10px; gap: 4px; }
  .wk .legend small { display: none; }
  .wk .legend .scale { grid-template-columns: repeat(5, minmax(38px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .wk .tier { transition: none; }
}
@media (max-width: 860px) { .wk { height: auto; min-height: 0; } }
