/* tonicdock — die Seite über den Subdomains.
   Die Karte ist das Inhaltsverzeichnis: New Eden aus dem Static Data Export
   (tools/build_map.py → karte.svg), jedes System in der Farbe seiner
   Sicherheitsstufe. Jedes Werkzeug zeigt auf seinen Raum. Farbe steht auf
   dieser Seite nur für Sicherheit, nirgends für Schmuck.
   Sicherheitsfarben: developers.eveonline.com/docs/guides/system-security/
   („In-game, the security status is often colored according to …“). Im
   hellen Schema dunkler gemischt, sonst verschwinden 0.5 und 0.6 im Grund.
   Systemschrift, kein Skript, kein Fremdabruf. Gilt für / und /en/. */
:root {
  color-scheme: dark light;

  --leere: #161B26;      /* Grund der Sternenkarte */
  --tinte: #E3E6EC;
  --tinte-2: #A7AEBB;
  --strich: #2C3445;
  --tor: rgba(227, 230, 236, .13);

  --s10: #2C75E1; --s09: #399AEB; --s08: #4ECEF8; --s07: #60DBA3;
  --s06: #71E754; --s05: #F5FF83; --s04: #DC6C06; --s03: #CE440F;
  --s02: #BB1116; --s01: #731F1F; --s00: #8D3163;
  --pochven: #4A5263;

  --sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI",
          Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "DejaVu Sans Mono", monospace;
  --rand: clamp(1rem, 4.5vw, 4rem);
}
@media (prefers-color-scheme: light) {
  :root {
    --leere: #EDEFF3;
    --tinte: #171C27;
    --tinte-2: #4D5567;
    --strich: #CDD2DB;
    --tor: rgba(23, 28, 39, .13);

    --s10: #1F5FC4; --s09: #1F7CC8; --s08: #138AAE; --s07: #1E9468;
    --s06: #3E9A22; --s05: #8F9A12; --s04: #C25E00; --s03: #C03D0B;
    --s02: #B00F14; --s01: #7A2222; --s00: #8D3163;
    --pochven: #B4BAC5;
  }
}

* { box-sizing: border-box; }
html { background: var(--leere); }
body {
  margin: 0; background: var(--leere); color: var(--tinte);
  font: 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--rand); top: .75rem; z-index: 10; padding: .4rem .8rem; background: var(--tinte); color: var(--leere); }

/* Kopf: nur der Name und der Weg zum Rechtlichen */
.kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.25rem var(--rand) 0;
  font-size: .875rem; color: var(--tinte-2);
}
.kopf .name { color: var(--tinte); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; }
.kopf .wege { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; }
.kopf .wege a { padding-block: .3rem; }

/* Raum: links die Frage und die Werkzeuge, rechts New Eden */
.raum {
  display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(2rem, 5vw, 5rem); align-items: start;
  padding: clamp(2rem, 6vh, 4.5rem) var(--rand) clamp(2.5rem, 7vh, 5rem);
}
.frage { grid-column: 1 / -1; }
h1 {
  margin: 0; font-size: clamp(2.75rem, 6.4vw, 4.5rem); text-wrap: balance; line-height: .98;
  letter-spacing: -.04em; font-weight: 750;
}
.einstieg { margin: 1.25rem 0 0; color: var(--tinte-2); max-width: 30rem; text-wrap: pretty; }

.werkzeuge { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 2rem; }
.w { position: relative; padding-left: 1.5rem; }
.w .wo { display: block; font-size: 1rem; color: var(--tinte-2); }
.w .wo::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .625rem; height: .625rem; border-radius: 50%; background: var(--farbe);
}
.w-fw { --farbe: var(--s04); }
.w-ns { --farbe: var(--s00); }
.w-alle .wo::before { background: none; box-shadow: inset 0 0 0 2px var(--tinte-2); }
/* Atlas und Industrie liegen nicht im Raum: ein Quadrat in Tinte statt einer Sicherheitsfarbe. */
.w-hangar .wo::before { border-radius: 1px; background: var(--tinte-2); }
.w h2 { margin: .1rem 0 0; font-size: 2.25rem; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.w h2 a { text-decoration: none; }
.w h2 a::after { content: ""; position: absolute; inset: -.5rem -.75rem; }
.w h2 a:focus-visible { outline: none; }
.w:has(a:focus-visible) { outline: 2px solid var(--tinte); outline-offset: .75rem; }
.w:hover h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.w p { margin: .4rem 0 0; max-width: 31rem; text-wrap: pretty; }
.w .wie { margin-top: .35rem; font-size: .875rem; color: var(--tinte-2); }

/* Die Karte. Die Pfade kommen aus karte.svg und tragen keine Farbe. */
.karte { margin: 2.75rem 0 0; position: sticky; top: 1rem; grid-column: 2; grid-row: 2 / span 2; }
.karte svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 6rem); overflow: visible; }
.karte use { fill: none; stroke-linecap: round; stroke-width: 3.2; }
.karte use.tor { stroke: var(--tor); stroke-width: .6; }
.karte .s10 { stroke: var(--s10); } .karte .s09 { stroke: var(--s09); }
.karte .s08 { stroke: var(--s08); } .karte .s07 { stroke: var(--s07); }
.karte .s06 { stroke: var(--s06); } .karte .s05 { stroke: var(--s05); }
.karte .s04 { stroke: var(--s04); } .karte .s03 { stroke: var(--s03); }
.karte .s02 { stroke: var(--s02); } .karte .s01 { stroke: var(--s01); }
.karte .s00 { stroke: var(--s00); } .karte .pv { stroke: var(--pochven); }
.karte .ls use { stroke-width: 2.4; }
.karte .fw use { stroke-width: 5; }
.karte text { fill: var(--tinte); font: 600 21px var(--sans); paint-order: stroke; stroke: var(--leere); stroke-width: 5px; stroke-linejoin: round; }
.karte .z { transition: opacity 240ms ease-out; }
.karte figcaption { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; font-size: .875rem; color: var(--tinte-2); }
.skala { display: inline-flex; align-items: center; gap: 2px; font: .75rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.skala i { width: .875rem; height: .625rem; }

/* Fährt der Zeiger über ein Werkzeug oder liegt der Fokus darauf, tritt sein
   Raum hervor und der Rest zurück. */
.raum:has(.w-fw:is(:hover, :focus-within)) .karte .z:not(.fw),
.raum:has(.w-ns:is(:hover, :focus-within)) .karte .z:not(.ns) { opacity: .14; }

/* Darunter: die Community und was für alle drei gilt */
.dazu {
  display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vh, 4rem) var(--rand);
  border-top: 1px solid var(--strich);
}
.dazu h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; }
.dazu p { margin: .6rem 0 0; max-width: 34rem; text-wrap: pretty; }
.dazu .alle p { color: var(--tinte-2); }
.textlink { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .2em; display: inline-block; padding-block: .2rem; }
.textlink:hover { text-decoration-thickness: 2px; }

.fuss {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem;
  padding: 1.5rem var(--rand) 2.25rem; border-top: 1px solid var(--strich);
  font-size: .875rem; color: var(--tinte-2);
}
.fuss p { margin: 0; max-width: 44rem; }
.fuss a { display: inline-block; padding-block: .2rem; }

@media (max-width: 60rem) {
  .raum, .dazu { grid-template-columns: minmax(0, 1fr); }
  .karte { position: static; grid-column: 1; grid-row: 2; margin-top: 2rem; }
  .werkzeuge { grid-row: 3; margin-top: 2.5rem; }
  .w h2 { font-size: 1.875rem; }
  .karte svg { max-height: none; }
  .karte text { font-size: 34px; stroke-width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .karte .z { transition: none; }
}

/* Rechtliches (/rechtliches/, /en/legal/): eine Textspalte, Sätze in Tinte,
   damit lange Absätze lesbar bleiben. */
.text { padding: clamp(2rem, 6vh, 4rem) var(--rand) clamp(2.5rem, 7vh, 4.5rem); max-width: calc(68ch + 2 * var(--rand)); }
.text h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.text .einstieg { max-width: none; font-size: 1.25rem; margin: 1rem 0 2.25rem; }
.text h2 { margin: 2.5rem 0 .5rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; }
.text h3 { margin: 1.75rem 0 .35rem; font-size: 1.125rem; line-height: 1.3; }
.text p { margin: .5rem 0; text-wrap: pretty; }
.text a { text-decoration-thickness: 1px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.text a:hover { text-decoration-thickness: 2px; }
